@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:04.595Z") @Stability(value=Experimental) public class CfnMapping extends CfnRefElement
Example:
// Example automatically generated from non-compiling source. May contain errors.
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
(experimental) A fluent builder for
CfnMapping. |
| Modifier | Constructor and Description |
|---|---|
|
CfnMapping(software.constructs.Construct scope,
String id) |
|
CfnMapping(software.constructs.Construct scope,
String id,
CfnMappingProps props) |
protected |
CfnMapping(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnMapping(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
findInMap(String key1,
String key2) |
void |
setValue(String key1,
String key2,
Object value)
(experimental) Sets a value in the map based on the two keys.
|
getRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected CfnMapping(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMapping(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public CfnMapping(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnMappingProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public CfnMapping(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public String findInMap(@NotNull String key1, @NotNull String key2)
key1 - This parameter is required.key2 - This parameter is required.@Stability(value=Experimental)
public void setValue(@NotNull
String key1,
@NotNull
String key2,
@NotNull
Object value)
key1 - This parameter is required.key2 - This parameter is required.value - This parameter is required.Copyright © 2021. All rights reserved.