CfnMappingProps Struct
Example
ts
const regionTable = new CfnMapping(this, 'RegionTable', {
mapping: {
'us-east-1': {
regionName: 'US East (N. Virginia)',
},
'us-east-2': {
regionName: 'US East (Ohio)',
},
},
lazy: true,
});
regionTable.findInMap('us-east-2', 'regionName');
Properties
mappingoptional{ [key: string]: { [key: string]: any } }mappingoptionaltyping.Mapping[str, typing.Mapping[str, Any]]mappingoptionalMap<String, Map<String, Object>>MappingoptionalIDictionary<string, IDictionary<string, object>>Mappingoptional*map[string]*map[string]interface{}#Mapping of key to a set of corresponding set of named values.
Default: No mapping.
notes
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.