Class CfnMapping
Represents a CloudFormation mapping.
Inherited Members
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public class CfnMapping : CfnRefElement, IConstruct, IDependable
Syntax (vb)
Public Class CfnMapping
Inherits CfnRefElement
Implements IConstruct, IDependable
Remarks
ExampleMetadata: infused
Examples
var regionTable = new CfnMapping(this, "RegionTable", new CfnMappingProps {
Mapping = new Dictionary<string, IDictionary<string, object>> {
{ "us-east-1", new Dictionary<string, object> {
{ "regionName", "US East (N. Virginia)" }
} },
{ "us-east-2", new Dictionary<string, object> {
{ "regionName", "US East (Ohio)" }
} }
}
});
regionTable.FindInMap(Aws.REGION, "regionName");
Synopsis
Constructors
CfnMapping(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnMapping(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnMapping(Construct, String, ICfnMappingProps) |
Methods
FindInMap(String, String) | |
SetValue(String, String, Object) | Sets a value in the map based on the two keys. |
Constructors
CfnMapping(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnMapping(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnMapping(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnMapping(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnMapping(Construct, String, ICfnMappingProps)
public CfnMapping(Construct scope, string id, ICfnMappingProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props ICfnMappingProps
Methods
FindInMap(String, String)
public virtual string FindInMap(string key1, string key2)
Parameters
- key1 System.String
- key2 System.String
Returns
System.String
A reference to a value in the map based on the two keys.
SetValue(String, String, Object)
Sets a value in the map based on the two keys.
public virtual void SetValue(string key1, string key2, object value)
Parameters
- key1 System.String
- key2 System.String
- value System.Object
Implements
Constructs.IConstruct