Package software.amazon.awscdk
Class CfnMapping
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnMapping
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-14T03:24:51.088Z")
@Stability(Stable)
public class CfnMapping
extends CfnRefElement
Represents a CloudFormation mapping.
Example:
CfnMapping regionTable = CfnMapping.Builder.create(this, "RegionTable") .mapping(Map.of( "us-east-1", Map.of( "regionName", "US East (N. Virginia)"), "us-east-2", Map.of( "regionName", "US East (Ohio)"))) .build(); regionTable.findInMap(Aws.REGION, "regionName");
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnMapping
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnMapping
(software.amazon.jsii.JsiiObjectRef objRef) CfnMapping
(software.constructs.Construct scope, String id) CfnMapping
(software.constructs.Construct scope, String id, CfnMappingProps props) -
Method Summary
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
CfnMapping
protected CfnMapping(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMapping
protected CfnMapping(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMapping
@Stability(Stable) public CfnMapping(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnMappingProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
-
-
CfnMapping
@Stability(Stable) public CfnMapping(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.
-
-
Method Details
-
findInMap
@Stability(Stable) @NotNull public String findInMap(@NotNull String key1, @NotNull String key2, @Nullable String defaultValue) - Parameters:
key1
- This parameter is required.key2
- This parameter is required.defaultValue
-- Returns:
- A reference to a value in the map based on the two keys. If mapping is lazy, the value from the map or default value is returned instead of the reference and the mapping is not rendered in the template.
-
findInMap
- Parameters:
key1
- This parameter is required.key2
- This parameter is required.- Returns:
- A reference to a value in the map based on the two keys. If mapping is lazy, the value from the map or default value is returned instead of the reference and the mapping is not rendered in the template.
-
setValue
@Stability(Stable) public void setValue(@NotNull String key1, @NotNull String key2, @NotNull Object value) Sets a value in the map based on the two keys.- Parameters:
key1
- This parameter is required.key2
- This parameter is required.value
- This parameter is required.
-