Interface CfnMapProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnMapProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:08.890Z")
@Stability(Stable)
public interface CfnMapProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnMap.
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.*;
CfnMapProps cfnMapProps = CfnMapProps.builder()
.configuration(MapConfigurationProperty.builder()
.style("style")
// the properties below are optional
.customLayers(List.of("customLayers"))
.politicalView("politicalView")
.build())
.mapName("mapName")
// the properties below are optional
.description("description")
.pricingPlan("pricingPlan")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnMapPropsstatic final classAn implementation forCfnMapProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnMapProps.Builderbuilder()Specifies theMapConfiguration, including the map style, for the map resource that you create.default StringAn optional description for the map resource.The name for the map resource.default StringNo longer used.getTags()Applies one or more tags to the map resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConfiguration
Specifies theMapConfiguration, 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.
Returns union: either
IResolvableorCfnMap.MapConfigurationProperty- See Also:
-
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.
- See Also:
-
getDescription
An optional description for the map resource.- See Also:
-
getPricingPlan
No longer used. If included, the only allowed value isRequestBasedUsage.Allowed Values :
RequestBasedUsage- See Also:
-
getTags
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: + - = . _ : /
- See Also:
-
builder
- Returns:
- a
CfnMapProps.BuilderofCfnMapProps
-