LocationService / Client / update_map
update_map#
- LocationService.Client.update_map(**kwargs)#
Updates the specified properties of a given map resource.
See also: AWS API Documentation
Request Syntax
response = client.update_map( MapName='string', PricingPlan='RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement', Description='string', ConfigurationUpdate={ 'PoliticalView': 'string', 'CustomLayers': [ 'string', ] } )
- Parameters:
MapName (string) –
[REQUIRED]
The name of the map resource to update.
PricingPlan (string) – No longer used. If included, the only allowed value is
RequestBasedUsage
.Description (string) – Updates the description for the map resource.
ConfigurationUpdate (dict) –
Updates the parts of the map configuration that can be updated, including the political view.
PoliticalView (string) –
Specifies the political view for the style. Set to an empty string to not use a political view, or, for styles that support specific political views, you can choose a view, such as
IND
for the Indian view.Note
Not all map resources or styles support political view styles. See Political views for more information.
CustomLayers (list) –
Specifies the custom layers for the style. Leave unset to not enable any custom layer, or, for styles that support custom layers, you can enable layer(s), such as POI layer for the VectorEsriNavigation style. Default is
unset
.Note
Not all map resources or styles support custom layers. See Custom Layers for more information.
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'MapName': 'string', 'MapArn': 'string', 'UpdateTime': datetime(2015, 1, 1) }
Response Structure
(dict) –
MapName (string) –
The name of the updated map resource.
MapArn (string) –
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:map/ExampleMap
UpdateTime (datetime) –
The timestamp for when the map resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
Exceptions
LocationService.Client.exceptions.InternalServerException
LocationService.Client.exceptions.ResourceNotFoundException
LocationService.Client.exceptions.AccessDeniedException
LocationService.Client.exceptions.ValidationException
LocationService.Client.exceptions.ThrottlingException