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(
    ConfigurationUpdate={
        'CustomLayers': [
            'string',
        ],
        'PoliticalView': 'string'
    },
    Description='string',
    MapName='string',
    PricingPlan='RequestBasedUsage'|'MobileAssetTracking'|'MobileAssetManagement'
)
Parameters:
  • ConfigurationUpdate (dict) –

    Updates the parts of the map configuration that can be updated, including the political view.

    • 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) –

    • 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.

  • Description (string) – Updates the description for the map resource.

  • MapName (string) –

    [REQUIRED]

    The name of the map resource to update.

  • PricingPlan (string) – No longer used. If included, the only allowed value is RequestBasedUsage.

Return type:

dict

Returns:

Response Syntax

{
    'MapArn': 'string',
    'MapName': 'string',
    'UpdateTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • 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

    • MapName (string) –

      The name of the updated map resource.

    • 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