Show / Hide Table of Contents

Class CfnMapping

Represents a CloudFormation mapping.

Inheritance
System.Object
Construct
CfnElement
CfnRefElement
CfnMapping
Implements
IConstruct
Constructs.IConstruct
IDependable
Inherited Members
CfnRefElement.Ref
CfnElement.IsCfnElement(Object)
CfnElement.OverrideLogicalId(String)
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public class CfnMapping : CfnRefElement, IConstruct, IConstruct, IDependable
Syntax (vb)
Public Class CfnMapping
    Inherits CfnRefElement
    Implements IConstruct, IConstruct, IDependable
Remarks

ExampleMetadata: infused

Examples
CfnMapping 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

IConstruct
Constructs.IConstruct
IDependable
Back to top Generated by DocFX