Class CfnMappingProps
public class CfnMappingProps : ICfnMappingProps
- Inheritance
-
CfnMappingProps
- Implements
- Inherited Members
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
Constructors
CfnMappingProps()
public CfnMappingProps()
Properties
Lazy
public bool? Lazy { get; set; }
Property Value
- bool?
Mapping
Mapping of key to a set of corresponding set of named values.
public IDictionary<string, IDictionary<string, object>>? Mapping { get; set; }
Property Value
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.