java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:59.775Z") @Stability(Stable) public class CfnMap extends CfnResource implements IInspectable
A CloudFormation AWS::Location::Map.

The AWS::Location::Map resource specifies a map resource in your AWS account, which provides map tiles of different styles sourced from global location data providers.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.location.*;
 CfnMap cfnMap = CfnMap.Builder.create(this, "MyCfnMap")
         .configuration(MapConfigurationProperty.builder()
                 .style("style")
                 .build())
         .mapName("mapName")
         // the properties below are optional
         .description("description")
         .pricingPlan("pricingPlan")
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnMap

      protected CfnMap(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnMap

      protected CfnMap(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnMap

      @Stability(Stable) public CfnMap(@NotNull Construct scope, @NotNull String id, @NotNull CfnMapProps props)
      Create a new AWS::Location::Map.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      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
    • getAttrCreateTime

      @Stability(Stable) @NotNull public String getAttrCreateTime()
      The timestamp for when the map resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ .
    • getAttrDataSource

      @Stability(Stable) @NotNull public String getAttrDataSource()
      The data provider for the associated map tiles.
    • getAttrMapArn

      @Stability(Stable) @NotNull public String getAttrMapArn()
      Synonym for Arn .

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

      @Stability(Stable) @NotNull public String getAttrUpdateTime()
      The timestamp for when the map resource was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ .
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getConfiguration

      @Stability(Stable) @NotNull public Object getConfiguration()
      Specifies the MapConfiguration , including the map style, for the map resource that you create.

      The map style defines the look of maps and the data provider for your map resource.

    • setConfiguration

      @Stability(Stable) public void setConfiguration(@NotNull CfnMap.MapConfigurationProperty value)
      Specifies the MapConfiguration , including the map style, for the map resource that you create.

      The map style defines the look of maps and the data provider for your map resource.

    • setConfiguration

      @Stability(Stable) public void setConfiguration(@NotNull IResolvable value)
      Specifies the MapConfiguration , including the map style, for the map resource that you create.

      The map style defines the look of maps and the data provider for your map resource.

    • getMapName

      @Stability(Stable) @NotNull public String getMapName()
      The name for the map resource.

      Requirements:

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

      @Stability(Stable) public void setMapName(@NotNull String value)
      The name for the map resource.

      Requirements:

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

      @Stability(Stable) @Nullable public String getDescription()
      An optional description for the map resource.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      An optional description for the map resource.
    • getPricingPlan

      @Stability(Stable) @Nullable public String getPricingPlan()
      No longer used. If included, the only allowed value is RequestBasedUsage .

      Allowed Values : RequestBasedUsage

    • setPricingPlan

      @Stability(Stable) public void setPricingPlan(@Nullable String value)
      No longer used. If included, the only allowed value is RequestBasedUsage .

      Allowed Values : RequestBasedUsage