@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-25T18:28:55.960Z") public class CfnMapping extends CfnRefElement
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");
Modifier and Type | Class and Description |
---|---|
static class |
CfnMapping.Builder
A fluent builder for
CfnMapping . |
IConstruct.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
CfnMapping(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnMapping(software.amazon.jsii.JsiiObjectRef objRef) |
|
CfnMapping(software.constructs.Construct scope,
java.lang.String id) |
|
CfnMapping(software.constructs.Construct scope,
java.lang.String id,
CfnMappingProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
findInMap(java.lang.String key1,
java.lang.String key2) |
void |
setValue(java.lang.String key1,
java.lang.String key2,
java.lang.Object value)
Sets a value in the map based on the two keys.
|
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected CfnMapping(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMapping(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnMapping(software.constructs.Construct scope, java.lang.String id, CfnMappingProps props)
scope
- This parameter is required.id
- This parameter is required.props
- public CfnMapping(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public java.lang.String findInMap(java.lang.String key1, java.lang.String key2)
key1
- This parameter is required.key2
- This parameter is required.public void setValue(java.lang.String key1, java.lang.String key2, java.lang.Object value)
key1
- This parameter is required.key2
- This parameter is required.value
- This parameter is required.