@awboost/cfntypes 1.0.0-beta.62 → 1.0.0-beta.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/template.d.ts +11 -1
- package/package.json +1 -1
package/lib/template.d.ts
CHANGED
@@ -64,7 +64,7 @@ export interface Template {
|
|
64
64
|
*
|
65
65
|
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/mappings-section-structure.html | Mappings}
|
66
66
|
*/
|
67
|
-
Mappings?: TemplateMap<
|
67
|
+
Mappings?: TemplateMap<MappingDefinition>;
|
68
68
|
/**
|
69
69
|
* You can use the optional `Metadata` section to include arbitrary JSON or
|
70
70
|
* YAML objects that provide details about the template.
|
@@ -121,6 +121,16 @@ export type TemplateSection = {
|
|
121
121
|
export interface TemplateMap<T> {
|
122
122
|
[key: string]: T;
|
123
123
|
}
|
124
|
+
/**
|
125
|
+
* The optional `Mappings` section matches a key to a corresponding set of
|
126
|
+
* named values. For example, if you want to set values based on a region, you
|
127
|
+
* can create a mapping that uses the region name as a key and contains the
|
128
|
+
* values you want to specify for each specific region. You use the
|
129
|
+
* `Fn::FindInMap` intrinsic function to retrieve values in a map.
|
130
|
+
*
|
131
|
+
* @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/mappings-section-structure.html | Mappings}
|
132
|
+
*/
|
133
|
+
export type MappingDefinition<TopLevelKey extends string = string, SecondLevelKey extends string = string> = Record<TopLevelKey, Record<SecondLevelKey, any>>;
|
124
134
|
/**
|
125
135
|
* The name of the resource output to be exported for a cross-stack reference.
|
126
136
|
*
|