LocationService / Client / update_map



Updates the specified properties of a given map resource.

See also: AWS API Documentation

Request Syntax

response = client.update_map(
        'CustomLayers': [
        'PoliticalView': 'string'
  • 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.


      Currenlty only VectorEsriNavigation supports CustomLayers. For more information, see Custom Layers.

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


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


    The name of the map resource to update.

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

Return type:



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.


  • LocationService.Client.exceptions.InternalServerException

  • LocationService.Client.exceptions.ResourceNotFoundException

  • LocationService.Client.exceptions.AccessDeniedException

  • LocationService.Client.exceptions.ValidationException

  • LocationService.Client.exceptions.ThrottlingException