Show / Hide Table of Contents

Class CfnMappingProps

Inheritance
object
CfnMappingProps
Implements
ICfnMappingProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnMappingProps : ICfnMappingProps
Syntax (vb)
Public Class CfnMappingProps Implements ICfnMappingProps
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)" }
                    } }
                },
                Lazy = true
            });

            regionTable.FindInMap("us-east-2", "regionName");

Synopsis

Constructors

CfnMappingProps()

Properties

Lazy
Mapping

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

Constructors

CfnMappingProps()

public CfnMappingProps()
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)" }
                    } }
                },
                Lazy = true
            });

            regionTable.FindInMap("us-east-2", "regionName");

Properties

Lazy

public bool? Lazy { get; set; }
Property Value

bool?

Remarks

ExampleMetadata: infused

Mapping

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

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

IDictionary<string, IDictionary<string, 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