Amazon Location Service Maps
API Reference
API Version 2020-11-19
Amazon Location Service Maps: API Reference
Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.
Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.
Table of Contents
Welcome ... 1
Actions ... 2
CreateMap ... 3
Request Syntax ... 3
URI Request Parameters ... 3
Request Body ... 3
Response Syntax ... 4
Response Elements ... 5
Errors ... 5
See Also ... 6
DeleteMap ... 7
Request Syntax ... 7
URI Request Parameters ... 7
Request Body ... 7
Response Syntax ... 7
Response Elements ... 7
Errors ... 7
See Also ... 8
DescribeMap ... 9
Request Syntax ... 9
URI Request Parameters ... 9
Request Body ... 9
Response Syntax ... 9
Response Elements ... 9
Errors ... 11
See Also ... 11
GetMapGlyphs ... 13
Request Syntax ... 13
URI Request Parameters ... 13
Request Body ... 13
Response Syntax ... 14
Response Elements ... 14
Errors ... 14
See Also ... 15
GetMapSprites ... 16
Request Syntax ... 16
URI Request Parameters ... 16
Request Body ... 16
Response Syntax ... 16
Response Elements ... 16
Errors ... 17
See Also ... 17
GetMapStyleDescriptor ... 19
Request Syntax ... 19
URI Request Parameters ... 19
Request Body ... 19
Response Syntax ... 19
Response Elements ... 19
Errors ... 20
See Also ... 20
GetMapTile ... 21
Request Syntax ... 21
URI Request Parameters ... 21
Request Body ... 21
Response Syntax ... 21
Response Elements ... 22
Errors ... 22
See Also ... 22
ListMaps ... 24
Request Syntax ... 24
URI Request Parameters ... 24
Request Body ... 24
Response Syntax ... 24
Response Elements ... 25
Errors ... 25
See Also ... 26
UpdateMap ... 27
Request Syntax ... 27
URI Request Parameters ... 27
Request Body ... 27
Response Syntax ... 27
Response Elements ... 28
Errors ... 28
See Also ... 29
Data Types ... 30
ListMapsResponseEntry ... 31
Contents ... 31
See Also ... 32
MapConfiguration ... 33
Contents ... 33
See Also ... 33
ValidationExceptionField ... 35
Contents ... 35
See Also ... 35
Common Parameters ... 36
Common Errors ... 38
Welcome
Welcome to the Amazon Location Service Maps API Reference.
Amazon Location Maps lets you visualize location information and are the foundations of many location- based service capabilities. Amazon Location Service provides map tiles of different styles sourced from global location data providers such as:
• Esri
• HERE Technologies
For additional information , see Data providers in the Amazon Location Service Developer Guide.
To display Amazon Location Maps in your application, add one of the service's front-end mobile of web software development kits (SDKs) to your application. For additional information on how to use map resources, see the Using maps topic in the Amazon Location Service Developer Guide. It provides definitions, tutorials, code examples, and instructions about how to integrate Amazon Location features into web or mobile apps.
NoteWhen using Amazon Location Maps, make sure to provide the appropriate data attribution and follow the terms of use for each data provider you've selected to use. For additional information, read more about Data Providers from the Amazon Location Service Developer guide.
By using Amazon Location Maps, you agree that AWS may transmit your API queries to your chosen third-party data provider for processing, which may be outside the AWS Region you are currently using. For more information, see the AWS Service Terms for Amazon Location Service.
This document was last published on March 6, 2022.
Actions
The following actions are supported:
• CreateMap (p. 3)
• DeleteMap (p. 7)
• DescribeMap (p. 9)
• GetMapGlyphs (p. 13)
• GetMapSprites (p. 16)
• GetMapStyleDescriptor (p. 19)
• GetMapTile (p. 21)
• ListMaps (p. 24)
• UpdateMap (p. 27)
CreateMap
CreateMap
Creates a map resource in your AWS account, which provides map tiles of different styles sourced from global location data providers.
NoteIf your application is tracking or routing assets you use in your business, such as delivery vehicles or employees, you may only use HERE as your geolocation provider. See section 82 of the AWS service terms for more details.
Request Syntax
POST /maps/v0/maps HTTP/1.1 Content-type: application/json {
"Configuration": { "Style": "string"
},
"Description": "string", "MapName": "string", "PricingPlan": "string", "Tags": {
"string" : "string"
}}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
Configuration (p. 3)
Specifies the map style selected from an available data provider.
Type: MapConfiguration (p. 33) object Required: Yes
Description (p. 3)
An optional description for the map resource.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
Required: No MapName (p. 3)
The name for the map resource.
Requirements:
Response Syntax
• Must contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
• Must be a unique map resource name.
• No spaces allowed. For example, ExampleMap.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern: ^[-._\w]+$
Required: Yes PricingPlan (p. 3)
This parameter has been deprecated.
No longer used. If included, the only allowed value is RequestBasedUsage.
Type: String
Valid Values: RequestBasedUsage | MobileAssetTracking | MobileAssetManagement Required: No
Tags (p. 3)
Applies one or more tags to the map resource. A tag is a key-value pair helps manage, identify, search, and filter your resources by labelling them.
Format: "key" : "value"
Restrictions:
• Maximum 50 tags per resource
• Each resource tag must be unique with a maximum of one value.
• Maximum key length: 128 Unicode characters in UTF-8
• Maximum value length: 256 Unicode characters in UTF-8
• Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : / @.
• Cannot use "aws:" as a prefix for a key.
Type: String to string map
Map Entries: Minimum number of 0 items. Maximum number of 50 items.
Key Length Constraints: Minimum length of 1. Maximum length of 128.
Key Pattern: ^[a-zA-Z+-=._:/]+$
Value Length Constraints: Minimum length of 0. Maximum length of 256.
Value Pattern: ^[A-Za-z0-9 _=@:.+-/]*$
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
Response Elements
{
"CreateTime": number, "MapArn": "string", "MapName": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
CreateTime (p. 4)
The timestamp for when the map resource was created in ISO 8601 format: YYYY-MM- DDThh:mm:ss.sssZ.
Type: Timestamp MapArn (p. 4)
The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across all AWS.
• Format example: arn:aws:geo:region:account-id:maps/ExampleMap Type: String
Length Constraints: Minimum length of 0. Maximum length of 1600.
Pattern: ^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?) {2}:([^/].*)?$
MapName (p. 4)
The name of the map resource.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern: ^[-._\w]+$
Errors
For information about the errors that are common to all actions, see Common Errors (p. 38).
AccessDeniedException
The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
HTTP Status Code: 403 ConflictException
The request was unsuccessful because of a conflict.
HTTP Status Code: 409 InternalServerException
The request has failed to process because of an unknown server error, exception, or failure.
See Also
HTTP Status Code: 500 ThrottlingException
The request was denied because of request throttling.
HTTP Status Code: 429 ValidationException
The input failed to meet the constraints specified by the AWS service.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DeleteMap
DeleteMap
Deletes a map resource from your AWS account.
NoteThis operation deletes the resource permanently. If the map is being used in an application, the map may not render.
Request Syntax
DELETE /maps/v0/maps/MapName HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
MapName (p. 7)
The name of the map resource to be deleted.
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern: ^[-._\w]+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 38).
AccessDeniedException
The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
HTTP Status Code: 403 InternalServerException
The request has failed to process because of an unknown server error, exception, or failure.
See Also
HTTP Status Code: 500 ResourceNotFoundException
The resource that you've entered was not found in your AWS account.
HTTP Status Code: 404 ThrottlingException
The request was denied because of request throttling.
HTTP Status Code: 429 ValidationException
The input failed to meet the constraints specified by the AWS service.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DescribeMap
DescribeMap
Retrieves the map resource details.
Request Syntax
GET /maps/v0/maps/MapName HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
MapName (p. 9)
The name of the map resource.
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern: ^[-._\w]+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json {
"Configuration": { "Style": "string"
},
"CreateTime": number, "DataSource": "string", "Description": "string", "MapArn": "string", "MapName": "string", "PricingPlan": "string", "Tags": {
"string" : "string"
},
"UpdateTime": number }
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
Response Elements
Configuration (p. 9)
Specifies the map tile style selected from a partner data provider.
Type: MapConfiguration (p. 33) object CreateTime (p. 9)
The timestamp for when the map resource was created in ISO 8601 format: YYYY-MM- DDThh:mm:ss.sssZ.
Type: Timestamp DataSource (p. 9)
Specifies the data provider for the associated map tiles.
Type: String Description (p. 9)
The optional description for the map resource.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
MapArn (p. 9)
The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across all AWS.
• Format example: arn:aws:geo:region:account-id:maps/ExampleMap Type: String
Length Constraints: Minimum length of 0. Maximum length of 1600.
Pattern: ^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?) {2}:([^/].*)?$
MapName (p. 9)
The map style selected from an available provider.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern: ^[-._\w]+$
PricingPlan (p. 9)
This parameter has been deprecated.
No longer used. Always returns RequestBasedUsage.
Type: String
Valid Values: RequestBasedUsage | MobileAssetTracking | MobileAssetManagement Tags (p. 9)
Tags associated with the map resource.
Type: String to string map
Map Entries: Minimum number of 0 items. Maximum number of 50 items.
Errors
Key Length Constraints: Minimum length of 1. Maximum length of 128.
Key Pattern: ^[a-zA-Z+-=._:/]+$
Value Length Constraints: Minimum length of 0. Maximum length of 256.
Value Pattern: ^[A-Za-z0-9 _=@:.+-/]*$
UpdateTime (p. 9)
The timestamp for when the map resource was last update in ISO 8601 format: YYYY-MM- DDThh:mm:ss.sssZ.
Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Errors (p. 38).
AccessDeniedException
The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
HTTP Status Code: 403 InternalServerException
The request has failed to process because of an unknown server error, exception, or failure.
HTTP Status Code: 500 ResourceNotFoundException
The resource that you've entered was not found in your AWS account.
HTTP Status Code: 404 ThrottlingException
The request was denied because of request throttling.
HTTP Status Code: 429 ValidationException
The input failed to meet the constraints specified by the AWS service.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
See Also
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
GetMapGlyphs
GetMapGlyphs
Retrieves glyphs used to display labels on a map.
Request Syntax
GET /maps/v0/maps/MapName/glyphs/FontStack/FontUnicodeRange HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
FontStack (p. 13)
A comma-separated list of fonts to load glyphs from in order of preference. For example, Noto Sans Regular, Arial Unicode.
Valid fonts stacks for Esri styles:
• VectorEsriDarkGrayCanvas – Ubuntu Medium Italic | Ubuntu Medium | Ubuntu Italic | Ubuntu Regular | Ubuntu Bold
• VectorEsriLightGrayCanvas – Ubuntu Italic | Ubuntu Regular | Ubuntu Light | Ubuntu Bold
• VectorEsriTopographic – Noto Sans Italic | Noto Sans Regular | Noto Sans Bold | Noto Serif Regular | Roboto Condensed Light Italic
• VectorEsriStreets – Arial Regular | Arial Italic | Arial Bold
• VectorEsriNavigation – Arial Regular | Arial Italic | Arial Bold Valid font stacks for HERE Technologies styles:
• VectorHereBerlin – Fira GO Regular | Fira GO Bold Required: Yes
FontUnicodeRange (p. 13)
A Unicode range of characters to download glyphs for. Each response will contain 256 characters.
For example, 0–255 includes all characters from range U+0000 to 00FF. Must be aligned to multiples of 256.
Pattern: ^[0-9]+-[0-9]+\.pbf$
Required: Yes MapName (p. 13)
The map resource associated with the glyph file.
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern: ^[-._\w]+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
Response Syntax
HTTP/1.1 200
Content-Type: ContentType Blob
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The response returns the following HTTP headers.
ContentType (p. 14)
The map glyph content type. For example, application/octet-stream.
The response returns the following as the HTTP body.
Blob (p. 14)
The blob's content type.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 38).
AccessDeniedException
The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
HTTP Status Code: 403 InternalServerException
The request has failed to process because of an unknown server error, exception, or failure.
HTTP Status Code: 500 ResourceNotFoundException
The resource that you've entered was not found in your AWS account.
HTTP Status Code: 404 ThrottlingException
The request was denied because of request throttling.
HTTP Status Code: 429 ValidationException
The input failed to meet the constraints specified by the AWS service.
HTTP Status Code: 400
See Also
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
GetMapSprites
GetMapSprites
Retrieves the sprite sheet corresponding to a map resource. The sprite sheet is a PNG image paired with a JSON document describing the offsets of individual icons that will be displayed on a rendered map.
Request Syntax
GET /maps/v0/maps/MapName/sprites/FileName HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
FileName (p. 16)
The name of the sprite file. Use the following file names for the sprite sheet:
• sprites.png
• [email protected] for high pixel density displays
For the JSON document contain image offsets. Use the following file names:
• sprites.json
• [email protected] for high pixel density displays Pattern: ^sprites(@2x)?\.(png|json)$
Required: Yes MapName (p. 16)
The map resource associated with the sprite file.
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern: ^[-._\w]+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-Type: ContentType Blob
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The response returns the following HTTP headers.
Errors
ContentType (p. 16)
The content type of the sprite sheet and offsets. For example, the sprite sheet content type is image/png, and the sprite offset JSON document is application/json.
The response returns the following as the HTTP body.
Blob (p. 16)
Contains the body of the sprite sheet or JSON offset file.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 38).
AccessDeniedException
The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
HTTP Status Code: 403 InternalServerException
The request has failed to process because of an unknown server error, exception, or failure.
HTTP Status Code: 500 ResourceNotFoundException
The resource that you've entered was not found in your AWS account.
HTTP Status Code: 404 ThrottlingException
The request was denied because of request throttling.
HTTP Status Code: 429 ValidationException
The input failed to meet the constraints specified by the AWS service.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
See Also
• AWS SDK for Ruby V3
GetMapStyleDescriptor
GetMapStyleDescriptor
Retrieves the map style descriptor from a map resource.
The style descriptor contains specifications on how features render on a map. For example, what data to display, what order to display the data in, and the style for the data. Style descriptors follow the Mapbox Style Specification.
Request Syntax
GET /maps/v0/maps/MapName/style-descriptor HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
MapName (p. 19)
The map resource to retrieve the style descriptor from.
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern: ^[-._\w]+$
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-Type: ContentType Blob
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The response returns the following HTTP headers.
ContentType (p. 19)
The style descriptor's content type. For example, application/json.
The response returns the following as the HTTP body.
Blob (p. 19)
Contains the body of the style descriptor.
Errors
Errors
For information about the errors that are common to all actions, see Common Errors (p. 38).
AccessDeniedException
The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
HTTP Status Code: 403 InternalServerException
The request has failed to process because of an unknown server error, exception, or failure.
HTTP Status Code: 500 ResourceNotFoundException
The resource that you've entered was not found in your AWS account.
HTTP Status Code: 404 ThrottlingException
The request was denied because of request throttling.
HTTP Status Code: 429 ValidationException
The input failed to meet the constraints specified by the AWS service.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
GetMapTile
GetMapTile
Retrieves a vector data tile from the map resource. Map tiles are used by clients to render a map. they're addressed using a grid arrangement with an X coordinate, Y coordinate, and Z (zoom) level.
The origin (0, 0) is the top left of the map. Increasing the zoom level by 1 doubles both the X and Y dimensions, so a tile containing data for the entire world at (0/0/0) will be split into 4 tiles at zoom 1 (1/0/0, 1/0/1, 1/1/0, 1/1/1).
Request Syntax
GET /maps/v0/maps/MapName/tiles/Z/X/Y HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
MapName (p. 21)
The map resource to retrieve the map tiles from.
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern: ^[-._\w]+$
Required: Yes X (p. 21)
The X axis value for the map tile.
Pattern: \d+
Required: Yes Y (p. 21)
The Y axis value for the map tile.
Pattern: \d+
Required: Yes Z (p. 21)
The zoom value for the map tile.
Pattern: \d+
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Response Elements
Content-Type: ContentType Blob
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The response returns the following HTTP headers.
ContentType (p. 21)
The map tile's content type. For example, application/vnd.mapbox-vector-tile.
The response returns the following as the HTTP body.
Blob (p. 21)
Contains Mapbox Vector Tile (MVT) data.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 38).
AccessDeniedException
The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
HTTP Status Code: 403 InternalServerException
The request has failed to process because of an unknown server error, exception, or failure.
HTTP Status Code: 500 ResourceNotFoundException
The resource that you've entered was not found in your AWS account.
HTTP Status Code: 404 ThrottlingException
The request was denied because of request throttling.
HTTP Status Code: 429 ValidationException
The input failed to meet the constraints specified by the AWS service.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
See Also
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
ListMaps
ListMaps
Lists map resources in your AWS account.
Request Syntax
POST /maps/v0/list-maps HTTP/1.1 Content-type: application/json {
"MaxResults": number, "NextToken": "string"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
MaxResults (p. 24)
An optional limit for the number of resources returned in a single call.
Default value: 100 Type: Integer
Valid Range: Minimum value of 1. Maximum value of 100.
Required: No NextToken (p. 24)
The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.
Default value: null Type: String
Length Constraints: Minimum length of 1. Maximum length of 2000.
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json {
"Entries": [ {
Response Elements
"CreateTime": number, "DataSource": "string", "Description": "string", "MapName": "string", "PricingPlan": "string", "UpdateTime": number }
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
Entries (p. 24)
Contains a list of maps in your AWS account
Type: Array of ListMapsResponseEntry (p. 31) objects NextToken (p. 24)
A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 2000.
Errors
For information about the errors that are common to all actions, see Common Errors (p. 38).
AccessDeniedException
The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
HTTP Status Code: 403 InternalServerException
The request has failed to process because of an unknown server error, exception, or failure.
HTTP Status Code: 500 ThrottlingException
The request was denied because of request throttling.
HTTP Status Code: 429 ValidationException
The input failed to meet the constraints specified by the AWS service.
HTTP Status Code: 400
See Also
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
UpdateMap
UpdateMap
Updates the specified properties of a given map resource.
Request Syntax
PATCH /maps/v0/maps/MapName HTTP/1.1 Content-type: application/json {
"Description": "string", "PricingPlan": "string"
}
URI Request Parameters
The request uses the following URI parameters.
MapName (p. 27)
The name of the map resource to update.
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern: ^[-._\w]+$
Required: Yes
Request Body
The request accepts the following data in JSON format.
Description (p. 27)
Updates the description for the map resource.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
Required: No PricingPlan (p. 27)
This parameter has been deprecated.
No longer used. If included, the only allowed value is RequestBasedUsage.
Type: String
Valid Values: RequestBasedUsage | MobileAssetTracking | MobileAssetManagement Required: No
Response Syntax
HTTP/1.1 200
Response Elements
Content-type: application/json { "MapArn": "string",
"MapName": "string", "UpdateTime": number }
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
MapArn (p. 27)
The Amazon Resource Name (ARN) of the updated map resource. Used to specify a resource across AWS.
• Format example: arn:aws:geo:region:account-id:maps/ExampleMap Type: String
Length Constraints: Minimum length of 0. Maximum length of 1600.
Pattern: ^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?) {2}:([^/].*)?$
MapName (p. 27)
The name of the updated map resource.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern: ^[-._\w]+$
UpdateTime (p. 27)
The timestamp for when the map resource was last updated in ISO 8601 format: YYYY-MM- DDThh:mm:ss.sssZ.
Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Errors (p. 38).
AccessDeniedException
The request was denied because of insufficient access or permissions. Check with an administrator to verify your permissions.
HTTP Status Code: 403 InternalServerException
The request has failed to process because of an unknown server error, exception, or failure.
HTTP Status Code: 500
See Also
ResourceNotFoundException
The resource that you've entered was not found in your AWS account.
HTTP Status Code: 404 ThrottlingException
The request was denied because of request throttling.
HTTP Status Code: 429 ValidationException
The input failed to meet the constraints specified by the AWS service.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
Data Types
The Amazon Location Service Maps API contains several data types that various actions use. This section describes each data type in detail.
Note
The order of each element in a data type structure is not guaranteed. Applications should not assume a particular order.
The following data types are supported:
• ListMapsResponseEntry (p. 31)
• MapConfiguration (p. 33)
• ValidationExceptionField (p. 35)
ListMapsResponseEntry
ListMapsResponseEntry
Contains details of an existing map resource in your AWS account.
Contents
CreateTime
The timestamp for when the map resource was created in ISO 8601 format: YYYY-MM- DDThh:mm:ss.sssZ.
Type: Timestamp Required: Yes DataSource
Specifies the data provider for the associated map tiles.
Type: String Required: Yes Description
The description for the map resource.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 1000.
Required: Yes MapName
The name of the associated map resource.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern: ^[-._\w]+$
Required: Yes PricingPlan
This member has been deprecated.
No longer used. Always returns RequestBasedUsage.
Type: String
Valid Values: RequestBasedUsage | MobileAssetTracking | MobileAssetManagement Required: No
UpdateTime
The timestamp for when the map resource was last updated in ISO 8601 format: YYYY-MM- DDThh:mm:ss.sssZ.
Type: Timestamp
See Also
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
MapConfiguration
MapConfiguration
Specifies the map tile style selected from an available provider.
Contents
Style
Specifies the map style selected from an available data provider.
Valid Esri map styles:
• VectorEsriDarkGrayCanvas – The Esri Dark Gray Canvas map style. A vector basemap with a dark gray, neutral background with minimal colors, labels, and features that's designed to draw attention to your thematic content.
• RasterEsriImagery – The Esri Imagery map style. A raster basemap that provides one meter or better satellite and aerial imagery in many parts of the world and lower resolution satellite imagery worldwide.
• VectorEsriLightGrayCanvas – The Esri Light Gray Canvas map style, which provides a detailed vector basemap with a light gray, neutral background style with minimal colors, labels, and features that's designed to draw attention to your thematic content.
• VectorEsriTopographic – The Esri Light map style, which provides a detailed vector basemap with a classic Esri map style.
• VectorEsriStreets – The Esri World Streets map style, which provides a detailed vector basemap for the world symbolized with a classic Esri street map style. The vector tile layer is similar in content and style to the World Street Map raster map.
• VectorEsriNavigation – The Esri World Navigation map style, which provides a detailed basemap for the world symbolized with a custom navigation map style that's designed for use during the day in mobile devices.
Valid HERE Technologies map styles:
• VectorHereBerlin – The HERE Berlin map style is a high contrast detailed base map of the world that blends 3D and 2D rendering.
NoteWhen using HERE as your data provider, and selecting the Style VectorHereBerlin, you may not use HERE Technologies maps for Asset Management. See the AWS Service Terms for Amazon Location Service.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 100.
Pattern: ^[-._\w]+$
Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
See Also
• AWS SDK for Ruby V3
ValidationExceptionField
ValidationExceptionField
The input failed to meet the constraints specified by the AWS service in a specified field.
Contents
message
A message with the reason for the validation exception error.
Type: String Required: Yes name
The field name where the invalid entry was detected.
Type: String Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for Ruby V3
Common Parameters
The following list contains the parameters that all actions use for signing Signature Version 4 requests with a query string. Any action-specific parameters are listed in the topic for that action. For more information about Signature Version 4, see Signature Version 4 Signing Process in the Amazon Web Services General Reference.
Action
The action to be performed.
Type: string Required: Yes Version
The API version that the request is written for, expressed in the format YYYY-MM-DD.
Type: string Required: Yes X-Amz-Algorithm
The hash algorithm that you used to create the request signature.
Condition: Specify this parameter when you include authentication information in a query string instead of in the HTTP authorization header.
Type: string
Valid Values: AWS4-HMAC-SHA256 Required: Conditional
X-Amz-Credential
The credential scope value, which is a string that includes your access key, the date, the region you are targeting, the service you are requesting, and a termination string ("aws4_request"). The value is expressed in the following format: access_key/YYYYMMDD/region/service/aws4_request.
For more information, see Task 2: Create a String to Sign for Signature Version 4 in the Amazon Web Services General Reference.
Condition: Specify this parameter when you include authentication information in a query string instead of in the HTTP authorization header.
Type: string
Required: Conditional X-Amz-Date
The date that is used to create the signature. The format must be ISO 8601 basic format (YYYYMMDD'T'HHMMSS'Z'). For example, the following date time is a valid X-Amz-Date value:
20120325T120000Z.
Condition: X-Amz-Date is optional for all requests; it can be used to override the date used for signing requests. If the Date header is specified in the ISO 8601 basic format, X-Amz-Date is
not required. When X-Amz-Date is used, it always overrides the value of the Date header. For more information, see Handling Dates in Signature Version 4 in the Amazon Web Services General Reference.
Type: string
Required: Conditional X-Amz-Security-Token
The temporary security token that was obtained through a call to AWS Security Token Service (AWS STS). For a list of services that support temporary security credentials from AWS Security Token Service, go to AWS Services That Work with IAM in the IAM User Guide.
Condition: If you're using temporary security credentials from the AWS Security Token Service, you must include the security token.
Type: string
Required: Conditional X-Amz-Signature
Specifies the hex-encoded signature that was calculated from the string to sign and the derived signing key.
Condition: Specify this parameter when you include authentication information in a query string instead of in the HTTP authorization header.
Type: string
Required: Conditional X-Amz-SignedHeaders
Specifies all the HTTP headers that were included as part of the canonical request. For more information about specifying signed headers, see Task 1: Create a Canonical Request For Signature Version 4 in the Amazon Web Services General Reference.
Condition: Specify this parameter when you include authentication information in a query string instead of in the HTTP authorization header.
Type: string
Required: Conditional
Common Errors
This section lists the errors common to the API actions of all AWS services. For errors specific to an API action for this service, see the topic for that API action.
AccessDeniedException
You do not have sufficient access to perform this action.
HTTP Status Code: 400 IncompleteSignature
The request signature does not conform to AWS standards.
HTTP Status Code: 400 InternalFailure
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500 InvalidAction
The action or operation requested is invalid. Verify that the action is typed correctly.
HTTP Status Code: 400 InvalidClientTokenId
The X.509 certificate or AWS access key ID provided does not exist in our records.
HTTP Status Code: 403 InvalidParameterCombination
Parameters that must not be used together were used together.
HTTP Status Code: 400 InvalidParameterValue
An invalid or out-of-range value was supplied for the input parameter.
HTTP Status Code: 400 InvalidQueryParameter
The AWS query string is malformed or does not adhere to AWS standards.
HTTP Status Code: 400 MalformedQueryString
The query string contains a syntax error.
HTTP Status Code: 404 MissingAction
The request is missing an action or a required parameter.
HTTP Status Code: 400
MissingAuthenticationToken
The request must contain either a valid (registered) AWS access key ID or X.509 certificate.
HTTP Status Code: 403 MissingParameter
A required parameter for the specified action is not supplied.
HTTP Status Code: 400 NotAuthorized
You do not have permission to perform this action.
HTTP Status Code: 400 OptInRequired
The AWS access key ID needs a subscription for the service.
HTTP Status Code: 403 RequestExpired
The request reached the service more than 15 minutes after the date stamp on the request or more than 15 minutes after the request expiration date (such as for pre-signed URLs), or the date stamp on the request is more than 15 minutes in the future.
HTTP Status Code: 400 ServiceUnavailable
The request has failed due to a temporary failure of the server.
HTTP Status Code: 503 ThrottlingException
The request was denied due to request throttling.
HTTP Status Code: 400 ValidationError
The input fails to satisfy the constraints specified by an AWS service.
HTTP Status Code: 400