@aws-sdk/client-cloudformation 3.370.0 → 3.373.0
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.
|
@@ -4211,6 +4211,13 @@ const se_GetTemplateSummaryInput = (input, context) => {
|
|
|
4211
4211
|
if (input.CallAs != null) {
|
|
4212
4212
|
entries["CallAs"] = input.CallAs;
|
|
4213
4213
|
}
|
|
4214
|
+
if (input.TemplateSummaryConfig != null) {
|
|
4215
|
+
const memberEntries = se_TemplateSummaryConfig(input.TemplateSummaryConfig, context);
|
|
4216
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4217
|
+
const loc = `TemplateSummaryConfig.${key}`;
|
|
4218
|
+
entries[loc] = value;
|
|
4219
|
+
});
|
|
4220
|
+
}
|
|
4214
4221
|
return entries;
|
|
4215
4222
|
};
|
|
4216
4223
|
const se_ImportStacksToStackSetInput = (input, context) => {
|
|
@@ -5007,6 +5014,13 @@ const se_Tags = (input, context) => {
|
|
|
5007
5014
|
}
|
|
5008
5015
|
return entries;
|
|
5009
5016
|
};
|
|
5017
|
+
const se_TemplateSummaryConfig = (input, context) => {
|
|
5018
|
+
const entries = {};
|
|
5019
|
+
if (input.TreatUnrecognizedResourceTypesAsWarnings != null) {
|
|
5020
|
+
entries["TreatUnrecognizedResourceTypesAsWarnings"] = input.TreatUnrecognizedResourceTypesAsWarnings;
|
|
5021
|
+
}
|
|
5022
|
+
return entries;
|
|
5023
|
+
};
|
|
5010
5024
|
const se_TestTypeInput = (input, context) => {
|
|
5011
5025
|
const entries = {};
|
|
5012
5026
|
if (input.Arn != null) {
|
|
@@ -6172,6 +6186,9 @@ const de_GetTemplateSummaryOutput = (output, context) => {
|
|
|
6172
6186
|
output["ResourceIdentifierSummaries"]["member"] !== undefined) {
|
|
6173
6187
|
contents.ResourceIdentifierSummaries = de_ResourceIdentifierSummaries((0, smithy_client_1.getArrayIfSingleItem)(output["ResourceIdentifierSummaries"]["member"]), context);
|
|
6174
6188
|
}
|
|
6189
|
+
if (output["Warnings"] !== undefined) {
|
|
6190
|
+
contents.Warnings = de_Warnings(output["Warnings"], context);
|
|
6191
|
+
}
|
|
6175
6192
|
return contents;
|
|
6176
6193
|
};
|
|
6177
6194
|
const de_Imports = (output, context) => {
|
|
@@ -7926,6 +7943,17 @@ const de_ValidateTemplateOutput = (output, context) => {
|
|
|
7926
7943
|
}
|
|
7927
7944
|
return contents;
|
|
7928
7945
|
};
|
|
7946
|
+
const de_Warnings = (output, context) => {
|
|
7947
|
+
const contents = {};
|
|
7948
|
+
if (output.UnrecognizedResourceTypes === "") {
|
|
7949
|
+
contents.UnrecognizedResourceTypes = [];
|
|
7950
|
+
}
|
|
7951
|
+
else if (output["UnrecognizedResourceTypes"] !== undefined &&
|
|
7952
|
+
output["UnrecognizedResourceTypes"]["member"] !== undefined) {
|
|
7953
|
+
contents.UnrecognizedResourceTypes = de_ResourceTypes((0, smithy_client_1.getArrayIfSingleItem)(output["UnrecognizedResourceTypes"]["member"]), context);
|
|
7954
|
+
}
|
|
7955
|
+
return contents;
|
|
7956
|
+
};
|
|
7929
7957
|
const deserializeMetadata = (output) => ({
|
|
7930
7958
|
httpStatusCode: output.statusCode,
|
|
7931
7959
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -4068,6 +4068,13 @@ const se_GetTemplateSummaryInput = (input, context) => {
|
|
|
4068
4068
|
if (input.CallAs != null) {
|
|
4069
4069
|
entries["CallAs"] = input.CallAs;
|
|
4070
4070
|
}
|
|
4071
|
+
if (input.TemplateSummaryConfig != null) {
|
|
4072
|
+
const memberEntries = se_TemplateSummaryConfig(input.TemplateSummaryConfig, context);
|
|
4073
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4074
|
+
const loc = `TemplateSummaryConfig.${key}`;
|
|
4075
|
+
entries[loc] = value;
|
|
4076
|
+
});
|
|
4077
|
+
}
|
|
4071
4078
|
return entries;
|
|
4072
4079
|
};
|
|
4073
4080
|
const se_ImportStacksToStackSetInput = (input, context) => {
|
|
@@ -4864,6 +4871,13 @@ const se_Tags = (input, context) => {
|
|
|
4864
4871
|
}
|
|
4865
4872
|
return entries;
|
|
4866
4873
|
};
|
|
4874
|
+
const se_TemplateSummaryConfig = (input, context) => {
|
|
4875
|
+
const entries = {};
|
|
4876
|
+
if (input.TreatUnrecognizedResourceTypesAsWarnings != null) {
|
|
4877
|
+
entries["TreatUnrecognizedResourceTypesAsWarnings"] = input.TreatUnrecognizedResourceTypesAsWarnings;
|
|
4878
|
+
}
|
|
4879
|
+
return entries;
|
|
4880
|
+
};
|
|
4867
4881
|
const se_TestTypeInput = (input, context) => {
|
|
4868
4882
|
const entries = {};
|
|
4869
4883
|
if (input.Arn != null) {
|
|
@@ -6029,6 +6043,9 @@ const de_GetTemplateSummaryOutput = (output, context) => {
|
|
|
6029
6043
|
output["ResourceIdentifierSummaries"]["member"] !== undefined) {
|
|
6030
6044
|
contents.ResourceIdentifierSummaries = de_ResourceIdentifierSummaries(__getArrayIfSingleItem(output["ResourceIdentifierSummaries"]["member"]), context);
|
|
6031
6045
|
}
|
|
6046
|
+
if (output["Warnings"] !== undefined) {
|
|
6047
|
+
contents.Warnings = de_Warnings(output["Warnings"], context);
|
|
6048
|
+
}
|
|
6032
6049
|
return contents;
|
|
6033
6050
|
};
|
|
6034
6051
|
const de_Imports = (output, context) => {
|
|
@@ -7783,6 +7800,17 @@ const de_ValidateTemplateOutput = (output, context) => {
|
|
|
7783
7800
|
}
|
|
7784
7801
|
return contents;
|
|
7785
7802
|
};
|
|
7803
|
+
const de_Warnings = (output, context) => {
|
|
7804
|
+
const contents = {};
|
|
7805
|
+
if (output.UnrecognizedResourceTypes === "") {
|
|
7806
|
+
contents.UnrecognizedResourceTypes = [];
|
|
7807
|
+
}
|
|
7808
|
+
else if (output["UnrecognizedResourceTypes"] !== undefined &&
|
|
7809
|
+
output["UnrecognizedResourceTypes"]["member"] !== undefined) {
|
|
7810
|
+
contents.UnrecognizedResourceTypes = de_ResourceTypes(__getArrayIfSingleItem(output["UnrecognizedResourceTypes"]["member"]), context);
|
|
7811
|
+
}
|
|
7812
|
+
return contents;
|
|
7813
|
+
};
|
|
7786
7814
|
const deserializeMetadata = (output) => ({
|
|
7787
7815
|
httpStatusCode: output.statusCode,
|
|
7788
7816
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -42,6 +42,9 @@ export interface GetTemplateSummaryCommandOutput extends GetTemplateSummaryOutpu
|
|
|
42
42
|
* StackName: "STRING_VALUE",
|
|
43
43
|
* StackSetName: "STRING_VALUE",
|
|
44
44
|
* CallAs: "SELF" || "DELEGATED_ADMIN",
|
|
45
|
+
* TemplateSummaryConfig: { // TemplateSummaryConfig
|
|
46
|
+
* TreatUnrecognizedResourceTypesAsWarnings: true || false,
|
|
47
|
+
* },
|
|
45
48
|
* };
|
|
46
49
|
* const command = new GetTemplateSummaryCommand(input);
|
|
47
50
|
* const response = await client.send(command);
|
|
@@ -84,6 +87,11 @@ export interface GetTemplateSummaryCommandOutput extends GetTemplateSummaryOutpu
|
|
|
84
87
|
* // ],
|
|
85
88
|
* // },
|
|
86
89
|
* // ],
|
|
90
|
+
* // Warnings: { // Warnings
|
|
91
|
+
* // UnrecognizedResourceTypes: [
|
|
92
|
+
* // "STRING_VALUE",
|
|
93
|
+
* // ],
|
|
94
|
+
* // },
|
|
87
95
|
* // };
|
|
88
96
|
*
|
|
89
97
|
* ```
|
|
@@ -1543,31 +1543,31 @@ export interface CreateChangeSetInput {
|
|
|
1543
1543
|
IncludeNestedStacks?: boolean;
|
|
1544
1544
|
/**
|
|
1545
1545
|
* <p>Determines what action will be taken if stack creation fails. If this parameter is specified, the
|
|
1546
|
-
*
|
|
1547
|
-
*
|
|
1546
|
+
* <code>DisableRollback</code> parameter to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> API operation must not
|
|
1547
|
+
* be specified. This must be one of these values:</p>
|
|
1548
1548
|
* <ul>
|
|
1549
1549
|
* <li>
|
|
1550
1550
|
* <p>
|
|
1551
1551
|
* <code>DELETE</code> - Deletes the change set if the stack creation fails. This is only valid when the
|
|
1552
|
-
*
|
|
1553
|
-
*
|
|
1552
|
+
* <code>ChangeSetType</code> parameter is set to <code>CREATE</code>. If the deletion of the stack fails, the status
|
|
1553
|
+
* of the stack is <code>DELETE_FAILED</code>.</p>
|
|
1554
1554
|
* </li>
|
|
1555
1555
|
* <li>
|
|
1556
1556
|
* <p>
|
|
1557
1557
|
* <code>DO_NOTHING</code> - if the stack creation fails, do nothing. This is equivalent to specifying
|
|
1558
|
-
*
|
|
1559
|
-
*
|
|
1558
|
+
* <code>true</code> for the <code>DisableRollback</code> parameter to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> API
|
|
1559
|
+
* operation.</p>
|
|
1560
1560
|
* </li>
|
|
1561
1561
|
* <li>
|
|
1562
1562
|
* <p>
|
|
1563
1563
|
* <code>ROLLBACK</code> - if the stack creation fails, roll back the stack. This is equivalent to specifying
|
|
1564
|
-
*
|
|
1565
|
-
*
|
|
1564
|
+
* <code>false</code> for the <code>DisableRollback</code> parameter to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> API
|
|
1565
|
+
* operation.</p>
|
|
1566
1566
|
* </li>
|
|
1567
1567
|
* </ul>
|
|
1568
1568
|
* <p>For nested stacks, when the <code>OnStackFailure</code> parameter is set to <code>DELETE</code> for the change
|
|
1569
|
-
*
|
|
1570
|
-
*
|
|
1569
|
+
* set for the parent stack, any failure in a child stack will cause the parent stack creation to fail and all stacks to
|
|
1570
|
+
* be deleted.</p>
|
|
1571
1571
|
*/
|
|
1572
1572
|
OnStackFailure?: OnStackFailure | string;
|
|
1573
1573
|
}
|
|
@@ -2826,26 +2826,26 @@ export interface DescribeChangeSetOutput {
|
|
|
2826
2826
|
RootChangeSetId?: string;
|
|
2827
2827
|
/**
|
|
2828
2828
|
* <p>Determines what action will be taken if stack creation fails. When this parameter is specified, the
|
|
2829
|
-
*
|
|
2830
|
-
*
|
|
2829
|
+
* <code>DisableRollback</code> parameter to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> API operation must not
|
|
2830
|
+
* be specified. This must be one of these values:</p>
|
|
2831
2831
|
* <ul>
|
|
2832
2832
|
* <li>
|
|
2833
2833
|
* <p>
|
|
2834
2834
|
* <code>DELETE</code> - Deletes the change set if the stack creation fails. This is only valid when the
|
|
2835
|
-
*
|
|
2836
|
-
*
|
|
2835
|
+
* <code>ChangeSetType</code> parameter is set to <code>CREATE</code>. If the deletion of the stack fails, the status
|
|
2836
|
+
* of the stack is <code>DELETE_FAILED</code>.</p>
|
|
2837
2837
|
* </li>
|
|
2838
2838
|
* <li>
|
|
2839
2839
|
* <p>
|
|
2840
2840
|
* <code>DO_NOTHING</code> - if the stack creation fails, do nothing. This is equivalent to specifying
|
|
2841
|
-
*
|
|
2842
|
-
*
|
|
2841
|
+
* <code>true</code> for the <code>DisableRollback</code> parameter to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> API
|
|
2842
|
+
* operation.</p>
|
|
2843
2843
|
* </li>
|
|
2844
2844
|
* <li>
|
|
2845
2845
|
* <p>
|
|
2846
2846
|
* <code>ROLLBACK</code> - if the stack creation fails, roll back the stack. This is equivalent to specifying
|
|
2847
|
-
*
|
|
2848
|
-
*
|
|
2847
|
+
* <code>false</code> for the <code>DisableRollback</code> parameter to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ExecuteChangeSet.html">ExecuteChangeSet</a> API
|
|
2848
|
+
* operation.</p>
|
|
2849
2849
|
* </li>
|
|
2850
2850
|
* </ul>
|
|
2851
2851
|
*/
|
|
@@ -5316,19 +5316,19 @@ export interface ExecuteChangeSetInput {
|
|
|
5316
5316
|
ClientRequestToken?: string;
|
|
5317
5317
|
/**
|
|
5318
5318
|
* <p>Preserves the state of previously provisioned resources when an operation
|
|
5319
|
-
*
|
|
5320
|
-
*
|
|
5321
|
-
*
|
|
5319
|
+
* fails. This parameter can't be specified when
|
|
5320
|
+
* the <code>OnStackFailure</code> parameter to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateChangeSet.html">CreateChangeSet</a> API operation was
|
|
5321
|
+
* specified.</p>
|
|
5322
5322
|
* <ul>
|
|
5323
5323
|
* <li>
|
|
5324
5324
|
* <p>
|
|
5325
5325
|
* <code>True</code> - if the stack creation fails, do nothing. This is equivalent to specifying
|
|
5326
|
-
*
|
|
5326
|
+
* <code>DO_NOTHING</code> for the <code>OnStackFailure</code> parameter to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateChangeSet.html">CreateChangeSet</a> API operation.</p>
|
|
5327
5327
|
* </li>
|
|
5328
5328
|
* <li>
|
|
5329
5329
|
* <p>
|
|
5330
5330
|
* <code>False</code> - if the stack creation fails, roll back the stack. This is equivalent to specifying
|
|
5331
|
-
*
|
|
5331
|
+
* <code>ROLLBACK</code> for the <code>OnStackFailure</code> parameter to the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateChangeSet.html">CreateChangeSet</a> API operation.</p>
|
|
5332
5332
|
* </li>
|
|
5333
5333
|
* </ul>
|
|
5334
5334
|
* <p>Default: <code>True</code>
|
|
@@ -5426,6 +5426,17 @@ export interface GetTemplateOutput {
|
|
|
5426
5426
|
*/
|
|
5427
5427
|
StagesAvailable?: (TemplateStage | string)[];
|
|
5428
5428
|
}
|
|
5429
|
+
/**
|
|
5430
|
+
* @public
|
|
5431
|
+
* <p>Options for the <code>GetTemplateSummary</code> API action.</p>
|
|
5432
|
+
*/
|
|
5433
|
+
export interface TemplateSummaryConfig {
|
|
5434
|
+
/**
|
|
5435
|
+
* <p>If set to <code>True</code>, any unrecognized resource types generate warnings and not an error. Any
|
|
5436
|
+
* unrecognized resource types are returned in the <code>Warnings</code> output parameter.</p>
|
|
5437
|
+
*/
|
|
5438
|
+
TreatUnrecognizedResourceTypesAsWarnings?: boolean;
|
|
5439
|
+
}
|
|
5429
5440
|
/**
|
|
5430
5441
|
* @public
|
|
5431
5442
|
* <p>The input for the <a>GetTemplateSummary</a> action.</p>
|
|
@@ -5479,6 +5490,10 @@ export interface GetTemplateSummaryInput {
|
|
|
5479
5490
|
* </ul>
|
|
5480
5491
|
*/
|
|
5481
5492
|
CallAs?: CallAs | string;
|
|
5493
|
+
/**
|
|
5494
|
+
* <p>Specifies options for the <code>GetTemplateSummary</code> API action.</p>
|
|
5495
|
+
*/
|
|
5496
|
+
TemplateSummaryConfig?: TemplateSummaryConfig;
|
|
5482
5497
|
}
|
|
5483
5498
|
/**
|
|
5484
5499
|
* @public
|
|
@@ -5543,6 +5558,18 @@ export interface ResourceIdentifierSummary {
|
|
|
5543
5558
|
*/
|
|
5544
5559
|
ResourceIdentifiers?: string[];
|
|
5545
5560
|
}
|
|
5561
|
+
/**
|
|
5562
|
+
* @public
|
|
5563
|
+
* <p>Contains any warnings returned by the <code>GetTemplateSummary</code> API action.</p>
|
|
5564
|
+
*/
|
|
5565
|
+
export interface Warnings {
|
|
5566
|
+
/**
|
|
5567
|
+
* <p>A list of all of the unrecognized resource types. This is only returned if the
|
|
5568
|
+
* <code>TemplateSummaryConfig</code> parameter has the <code>TreatUnrecognizedResourceTypesAsWarning</code>
|
|
5569
|
+
* configuration set to <code>True</code>.</p>
|
|
5570
|
+
*/
|
|
5571
|
+
UnrecognizedResourceTypes?: string[];
|
|
5572
|
+
}
|
|
5546
5573
|
/**
|
|
5547
5574
|
* @public
|
|
5548
5575
|
* <p>The output for the <a>GetTemplateSummary</a> action.</p>
|
|
@@ -5592,6 +5619,10 @@ export interface GetTemplateSummaryOutput {
|
|
|
5592
5619
|
* is a possible identifier property for an <code>AWS::S3::Bucket</code> resource.</p>
|
|
5593
5620
|
*/
|
|
5594
5621
|
ResourceIdentifierSummaries?: ResourceIdentifierSummary[];
|
|
5622
|
+
/**
|
|
5623
|
+
* <p>An object containing any warnings returned.</p>
|
|
5624
|
+
*/
|
|
5625
|
+
Warnings?: Warnings;
|
|
5595
5626
|
}
|
|
5596
5627
|
/**
|
|
5597
5628
|
* @public
|
|
@@ -1260,12 +1260,16 @@ export interface GetTemplateOutput {
|
|
|
1260
1260
|
TemplateBody?: string;
|
|
1261
1261
|
StagesAvailable?: (TemplateStage | string)[];
|
|
1262
1262
|
}
|
|
1263
|
+
export interface TemplateSummaryConfig {
|
|
1264
|
+
TreatUnrecognizedResourceTypesAsWarnings?: boolean;
|
|
1265
|
+
}
|
|
1263
1266
|
export interface GetTemplateSummaryInput {
|
|
1264
1267
|
TemplateBody?: string;
|
|
1265
1268
|
TemplateURL?: string;
|
|
1266
1269
|
StackName?: string;
|
|
1267
1270
|
StackSetName?: string;
|
|
1268
1271
|
CallAs?: CallAs | string;
|
|
1272
|
+
TemplateSummaryConfig?: TemplateSummaryConfig;
|
|
1269
1273
|
}
|
|
1270
1274
|
export interface ParameterConstraints {
|
|
1271
1275
|
AllowedValues?: string[];
|
|
@@ -1283,6 +1287,9 @@ export interface ResourceIdentifierSummary {
|
|
|
1283
1287
|
LogicalResourceIds?: string[];
|
|
1284
1288
|
ResourceIdentifiers?: string[];
|
|
1285
1289
|
}
|
|
1290
|
+
export interface Warnings {
|
|
1291
|
+
UnrecognizedResourceTypes?: string[];
|
|
1292
|
+
}
|
|
1286
1293
|
export interface GetTemplateSummaryOutput {
|
|
1287
1294
|
Parameters?: ParameterDeclaration[];
|
|
1288
1295
|
Description?: string;
|
|
@@ -1293,6 +1300,7 @@ export interface GetTemplateSummaryOutput {
|
|
|
1293
1300
|
Metadata?: string;
|
|
1294
1301
|
DeclaredTransforms?: string[];
|
|
1295
1302
|
ResourceIdentifierSummaries?: ResourceIdentifierSummary[];
|
|
1303
|
+
Warnings?: Warnings;
|
|
1296
1304
|
}
|
|
1297
1305
|
export interface ImportStacksToStackSetInput {
|
|
1298
1306
|
StackSetName: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudformation",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.373.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|