Table of Contents

Interface ICfnMappingProps

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll
public interface ICfnMappingProps

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");

Remarks

ExampleMetadata: infused

Properties

Lazy

bool? Lazy { get; }

Property Value

bool?

Mapping

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

IDictionary<string, IDictionary<string, object>>? Mapping { get; }

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.