Show / Hide Table of Contents

Class CfnMappingProps

Inheritance
System.Object
CfnMappingProps
Implements
ICfnMappingProps
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public class CfnMappingProps : Object, ICfnMappingProps
Syntax (vb)
Public Class CfnMappingProps
    Inherits Object
    Implements ICfnMappingProps
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

CfnMappingProps()

Properties

Lazy
Mapping

Mapping of key to a set of corresponding set of named values.

Constructors

CfnMappingProps()

public CfnMappingProps()

Properties

Lazy

public Nullable<bool> Lazy { get; set; }
Property Value

System.Nullable<System.Boolean>

Mapping

Mapping of key to a set of corresponding set of named values.

public IDictionary<string, IDictionary<string, object>> Mapping { get; set; }
Property Value

System.Collections.Generic.IDictionary<System.String, System.Collections.Generic.IDictionary<System.String, System.Object>>

Remarks

The key identifies a map of name-value pairs and must be unique within the mapping.

For example, if you want to set values based on a region, you can create a mapping that uses the region name as a key and contains the values you want to specify for each specific region.

Default: - No mapping.

Implements

ICfnMappingProps
Back to top Generated by DocFX