@aws-sdk/client-cloudformation 3.370.0 → 3.376.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.
- package/README.md +8 -0
- package/dist-cjs/CloudFormation.js +2 -0
- package/dist-cjs/commands/ListStackInstanceResourceDriftsCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-cjs/protocols/Aws_query.js +171 -3
- package/dist-es/CloudFormation.js +2 -0
- package/dist-es/commands/ListStackInstanceResourceDriftsCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/protocols/Aws_query.js +166 -0
- package/dist-types/CloudFormation.d.ts +7 -0
- package/dist-types/CloudFormationClient.d.ts +3 -2
- package/dist-types/commands/GetTemplateSummaryCommand.d.ts +8 -0
- package/dist-types/commands/ListStackInstanceResourceDriftsCommand.d.ts +121 -0
- package/dist-types/commands/ListStackInstancesCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +288 -90
- package/dist-types/protocols/Aws_query.d.ts +9 -0
- package/dist-types/ts3.4/CloudFormation.d.ts +17 -0
- package/dist-types/ts3.4/CloudFormationClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListStackInstanceResourceDriftsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +33 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -564,6 +564,14 @@ ListImports
|
|
|
564
564
|
|
|
565
565
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/classes/listimportscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/listimportscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/listimportscommandoutput.html)
|
|
566
566
|
|
|
567
|
+
</details>
|
|
568
|
+
<details>
|
|
569
|
+
<summary>
|
|
570
|
+
ListStackInstanceResourceDrifts
|
|
571
|
+
</summary>
|
|
572
|
+
|
|
573
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/classes/liststackinstanceresourcedriftscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/liststackinstanceresourcedriftscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/liststackinstanceresourcedriftscommandoutput.html)
|
|
574
|
+
|
|
567
575
|
</details>
|
|
568
576
|
<details>
|
|
569
577
|
<summary>
|
|
@@ -47,6 +47,7 @@ const ImportStacksToStackSetCommand_1 = require("./commands/ImportStacksToStackS
|
|
|
47
47
|
const ListChangeSetsCommand_1 = require("./commands/ListChangeSetsCommand");
|
|
48
48
|
const ListExportsCommand_1 = require("./commands/ListExportsCommand");
|
|
49
49
|
const ListImportsCommand_1 = require("./commands/ListImportsCommand");
|
|
50
|
+
const ListStackInstanceResourceDriftsCommand_1 = require("./commands/ListStackInstanceResourceDriftsCommand");
|
|
50
51
|
const ListStackInstancesCommand_1 = require("./commands/ListStackInstancesCommand");
|
|
51
52
|
const ListStackResourcesCommand_1 = require("./commands/ListStackResourcesCommand");
|
|
52
53
|
const ListStacksCommand_1 = require("./commands/ListStacksCommand");
|
|
@@ -117,6 +118,7 @@ const commands = {
|
|
|
117
118
|
ListChangeSetsCommand: ListChangeSetsCommand_1.ListChangeSetsCommand,
|
|
118
119
|
ListExportsCommand: ListExportsCommand_1.ListExportsCommand,
|
|
119
120
|
ListImportsCommand: ListImportsCommand_1.ListImportsCommand,
|
|
121
|
+
ListStackInstanceResourceDriftsCommand: ListStackInstanceResourceDriftsCommand_1.ListStackInstanceResourceDriftsCommand,
|
|
120
122
|
ListStackInstancesCommand: ListStackInstancesCommand_1.ListStackInstancesCommand,
|
|
121
123
|
ListStackResourcesCommand: ListStackResourcesCommand_1.ListStackResourcesCommand,
|
|
122
124
|
ListStacksCommand: ListStacksCommand_1.ListStacksCommand,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListStackInstanceResourceDriftsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_query_1 = require("../protocols/Aws_query");
|
|
9
|
+
class ListStackInstanceResourceDriftsCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListStackInstanceResourceDriftsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "CloudFormationClient";
|
|
28
|
+
const commandName = "ListStackInstanceResourceDriftsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_query_1.se_ListStackInstanceResourceDriftsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_query_1.de_ListStackInstanceResourceDriftsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListStackInstanceResourceDriftsCommand = ListStackInstanceResourceDriftsCommand;
|
|
@@ -45,6 +45,7 @@ tslib_1.__exportStar(require("./ImportStacksToStackSetCommand"), exports);
|
|
|
45
45
|
tslib_1.__exportStar(require("./ListChangeSetsCommand"), exports);
|
|
46
46
|
tslib_1.__exportStar(require("./ListExportsCommand"), exports);
|
|
47
47
|
tslib_1.__exportStar(require("./ListImportsCommand"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./ListStackInstanceResourceDriftsCommand"), exports);
|
|
48
49
|
tslib_1.__exportStar(require("./ListStackInstancesCommand"), exports);
|
|
49
50
|
tslib_1.__exportStar(require("./ListStackResourcesCommand"), exports);
|
|
50
51
|
tslib_1.__exportStar(require("./ListStackSetOperationResultsCommand"), exports);
|
|
@@ -583,6 +583,7 @@ class StackNotFoundException extends CloudFormationServiceException_1.CloudForma
|
|
|
583
583
|
exports.StackNotFoundException = StackNotFoundException;
|
|
584
584
|
exports.StackInstanceFilterName = {
|
|
585
585
|
DETAILED_STATUS: "DETAILED_STATUS",
|
|
586
|
+
DRIFT_STATUS: "DRIFT_STATUS",
|
|
586
587
|
LAST_OPERATION_ID: "LAST_OPERATION_ID",
|
|
587
588
|
};
|
|
588
589
|
exports.OperationResultFilterName = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_ValidateTemplateCommand = exports.de_UpdateTerminationProtectionCommand = exports.de_UpdateStackSetCommand = exports.de_UpdateStackInstancesCommand = exports.de_UpdateStackCommand = exports.de_TestTypeCommand = exports.de_StopStackSetOperationCommand = exports.de_SignalResourceCommand = exports.de_SetTypeDefaultVersionCommand = exports.de_SetTypeConfigurationCommand = exports.de_SetStackPolicyCommand = exports.de_RollbackStackCommand = exports.de_RegisterTypeCommand = exports.de_RegisterPublisherCommand = exports.de_RecordHandlerProgressCommand = exports.de_PublishTypeCommand = exports.de_ListTypeVersionsCommand = exports.de_ListTypesCommand = exports.de_ListTypeRegistrationsCommand = exports.de_ListStackSetsCommand = exports.de_ListStackSetOperationsCommand = exports.de_ListStackSetOperationResultsCommand = exports.de_ListStacksCommand = exports.de_ListStackResourcesCommand = exports.de_ListStackInstancesCommand = exports.de_ListImportsCommand = exports.de_ListExportsCommand = exports.de_ListChangeSetsCommand = exports.de_ImportStacksToStackSetCommand = exports.de_GetTemplateSummaryCommand = exports.de_GetTemplateCommand = exports.de_GetStackPolicyCommand = exports.de_ExecuteChangeSetCommand = exports.de_EstimateTemplateCostCommand = exports.de_DetectStackSetDriftCommand = exports.de_DetectStackResourceDriftCommand = exports.de_DetectStackDriftCommand = exports.de_DescribeTypeRegistrationCommand = void 0;
|
|
3
|
+
exports.se_ListStackSetOperationsCommand = exports.se_ListStackSetOperationResultsCommand = exports.se_ListStacksCommand = exports.se_ListStackResourcesCommand = exports.se_ListStackInstancesCommand = exports.se_ListStackInstanceResourceDriftsCommand = exports.se_ListImportsCommand = exports.se_ListExportsCommand = exports.se_ListChangeSetsCommand = exports.se_ImportStacksToStackSetCommand = exports.se_GetTemplateSummaryCommand = exports.se_GetTemplateCommand = exports.se_GetStackPolicyCommand = exports.se_ExecuteChangeSetCommand = exports.se_EstimateTemplateCostCommand = exports.se_DetectStackSetDriftCommand = exports.se_DetectStackResourceDriftCommand = exports.se_DetectStackDriftCommand = exports.se_DescribeTypeRegistrationCommand = exports.se_DescribeTypeCommand = exports.se_DescribeStackSetOperationCommand = exports.se_DescribeStackSetCommand = exports.se_DescribeStacksCommand = exports.se_DescribeStackResourcesCommand = exports.se_DescribeStackResourceDriftsCommand = exports.se_DescribeStackResourceCommand = exports.se_DescribeStackInstanceCommand = exports.se_DescribeStackEventsCommand = exports.se_DescribeStackDriftDetectionStatusCommand = exports.se_DescribePublisherCommand = exports.se_DescribeOrganizationsAccessCommand = exports.se_DescribeChangeSetHooksCommand = exports.se_DescribeChangeSetCommand = exports.se_DescribeAccountLimitsCommand = exports.se_DeregisterTypeCommand = exports.se_DeleteStackSetCommand = exports.se_DeleteStackInstancesCommand = exports.se_DeleteStackCommand = exports.se_DeleteChangeSetCommand = exports.se_DeactivateTypeCommand = exports.se_DeactivateOrganizationsAccessCommand = exports.se_CreateStackSetCommand = exports.se_CreateStackInstancesCommand = exports.se_CreateStackCommand = exports.se_CreateChangeSetCommand = exports.se_ContinueUpdateRollbackCommand = exports.se_CancelUpdateStackCommand = exports.se_BatchDescribeTypeConfigurationsCommand = exports.se_ActivateTypeCommand = exports.se_ActivateOrganizationsAccessCommand = void 0;
|
|
4
|
+
exports.de_DescribeStackSetOperationCommand = exports.de_DescribeStackSetCommand = exports.de_DescribeStacksCommand = exports.de_DescribeStackResourcesCommand = exports.de_DescribeStackResourceDriftsCommand = exports.de_DescribeStackResourceCommand = exports.de_DescribeStackInstanceCommand = exports.de_DescribeStackEventsCommand = exports.de_DescribeStackDriftDetectionStatusCommand = exports.de_DescribePublisherCommand = exports.de_DescribeOrganizationsAccessCommand = exports.de_DescribeChangeSetHooksCommand = exports.de_DescribeChangeSetCommand = exports.de_DescribeAccountLimitsCommand = exports.de_DeregisterTypeCommand = exports.de_DeleteStackSetCommand = exports.de_DeleteStackInstancesCommand = exports.de_DeleteStackCommand = exports.de_DeleteChangeSetCommand = exports.de_DeactivateTypeCommand = exports.de_DeactivateOrganizationsAccessCommand = exports.de_CreateStackSetCommand = exports.de_CreateStackInstancesCommand = exports.de_CreateStackCommand = exports.de_CreateChangeSetCommand = exports.de_ContinueUpdateRollbackCommand = exports.de_CancelUpdateStackCommand = exports.de_BatchDescribeTypeConfigurationsCommand = exports.de_ActivateTypeCommand = exports.de_ActivateOrganizationsAccessCommand = exports.se_ValidateTemplateCommand = exports.se_UpdateTerminationProtectionCommand = exports.se_UpdateStackSetCommand = exports.se_UpdateStackInstancesCommand = exports.se_UpdateStackCommand = exports.se_TestTypeCommand = exports.se_StopStackSetOperationCommand = exports.se_SignalResourceCommand = exports.se_SetTypeDefaultVersionCommand = exports.se_SetTypeConfigurationCommand = exports.se_SetStackPolicyCommand = exports.se_RollbackStackCommand = exports.se_RegisterTypeCommand = exports.se_RegisterPublisherCommand = exports.se_RecordHandlerProgressCommand = exports.se_PublishTypeCommand = exports.se_ListTypeVersionsCommand = exports.se_ListTypesCommand = exports.se_ListTypeRegistrationsCommand = exports.se_ListStackSetsCommand = void 0;
|
|
5
|
+
exports.de_ValidateTemplateCommand = exports.de_UpdateTerminationProtectionCommand = exports.de_UpdateStackSetCommand = exports.de_UpdateStackInstancesCommand = exports.de_UpdateStackCommand = exports.de_TestTypeCommand = exports.de_StopStackSetOperationCommand = exports.de_SignalResourceCommand = exports.de_SetTypeDefaultVersionCommand = exports.de_SetTypeConfigurationCommand = exports.de_SetStackPolicyCommand = exports.de_RollbackStackCommand = exports.de_RegisterTypeCommand = exports.de_RegisterPublisherCommand = exports.de_RecordHandlerProgressCommand = exports.de_PublishTypeCommand = exports.de_ListTypeVersionsCommand = exports.de_ListTypesCommand = exports.de_ListTypeRegistrationsCommand = exports.de_ListStackSetsCommand = exports.de_ListStackSetOperationsCommand = exports.de_ListStackSetOperationResultsCommand = exports.de_ListStacksCommand = exports.de_ListStackResourcesCommand = exports.de_ListStackInstancesCommand = exports.de_ListStackInstanceResourceDriftsCommand = exports.de_ListImportsCommand = exports.de_ListExportsCommand = exports.de_ListChangeSetsCommand = exports.de_ImportStacksToStackSetCommand = exports.de_GetTemplateSummaryCommand = exports.de_GetTemplateCommand = exports.de_GetStackPolicyCommand = exports.de_ExecuteChangeSetCommand = exports.de_EstimateTemplateCostCommand = exports.de_DetectStackSetDriftCommand = exports.de_DetectStackResourceDriftCommand = exports.de_DetectStackDriftCommand = exports.de_DescribeTypeRegistrationCommand = exports.de_DescribeTypeCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
@@ -493,6 +493,17 @@ const se_ListImportsCommand = async (input, context) => {
|
|
|
493
493
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
494
494
|
};
|
|
495
495
|
exports.se_ListImportsCommand = se_ListImportsCommand;
|
|
496
|
+
const se_ListStackInstanceResourceDriftsCommand = async (input, context) => {
|
|
497
|
+
const headers = SHARED_HEADERS;
|
|
498
|
+
let body;
|
|
499
|
+
body = buildFormUrlencodedString({
|
|
500
|
+
...se_ListStackInstanceResourceDriftsInput(input, context),
|
|
501
|
+
Action: "ListStackInstanceResourceDrifts",
|
|
502
|
+
Version: "2010-05-15",
|
|
503
|
+
});
|
|
504
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
505
|
+
};
|
|
506
|
+
exports.se_ListStackInstanceResourceDriftsCommand = se_ListStackInstanceResourceDriftsCommand;
|
|
496
507
|
const se_ListStackInstancesCommand = async (input, context) => {
|
|
497
508
|
const headers = SHARED_HEADERS;
|
|
498
509
|
let body;
|
|
@@ -2244,6 +2255,45 @@ const de_ListImportsCommandError = async (output, context) => {
|
|
|
2244
2255
|
errorCode,
|
|
2245
2256
|
});
|
|
2246
2257
|
};
|
|
2258
|
+
const de_ListStackInstanceResourceDriftsCommand = async (output, context) => {
|
|
2259
|
+
if (output.statusCode >= 300) {
|
|
2260
|
+
return de_ListStackInstanceResourceDriftsCommandError(output, context);
|
|
2261
|
+
}
|
|
2262
|
+
const data = await parseBody(output.body, context);
|
|
2263
|
+
let contents = {};
|
|
2264
|
+
contents = de_ListStackInstanceResourceDriftsOutput(data.ListStackInstanceResourceDriftsResult, context);
|
|
2265
|
+
const response = {
|
|
2266
|
+
$metadata: deserializeMetadata(output),
|
|
2267
|
+
...contents,
|
|
2268
|
+
};
|
|
2269
|
+
return response;
|
|
2270
|
+
};
|
|
2271
|
+
exports.de_ListStackInstanceResourceDriftsCommand = de_ListStackInstanceResourceDriftsCommand;
|
|
2272
|
+
const de_ListStackInstanceResourceDriftsCommandError = async (output, context) => {
|
|
2273
|
+
const parsedOutput = {
|
|
2274
|
+
...output,
|
|
2275
|
+
body: await parseErrorBody(output.body, context),
|
|
2276
|
+
};
|
|
2277
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2278
|
+
switch (errorCode) {
|
|
2279
|
+
case "OperationNotFoundException":
|
|
2280
|
+
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
|
2281
|
+
throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
|
|
2282
|
+
case "StackInstanceNotFoundException":
|
|
2283
|
+
case "com.amazonaws.cloudformation#StackInstanceNotFoundException":
|
|
2284
|
+
throw await de_StackInstanceNotFoundExceptionRes(parsedOutput, context);
|
|
2285
|
+
case "StackSetNotFoundException":
|
|
2286
|
+
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
2287
|
+
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
|
2288
|
+
default:
|
|
2289
|
+
const parsedBody = parsedOutput.body;
|
|
2290
|
+
return throwDefaultError({
|
|
2291
|
+
output,
|
|
2292
|
+
parsedBody: parsedBody.Error,
|
|
2293
|
+
errorCode,
|
|
2294
|
+
});
|
|
2295
|
+
}
|
|
2296
|
+
};
|
|
2247
2297
|
const de_ListStackInstancesCommand = async (output, context) => {
|
|
2248
2298
|
if (output.statusCode >= 300) {
|
|
2249
2299
|
return de_ListStackInstancesCommandError(output, context);
|
|
@@ -4211,6 +4261,13 @@ const se_GetTemplateSummaryInput = (input, context) => {
|
|
|
4211
4261
|
if (input.CallAs != null) {
|
|
4212
4262
|
entries["CallAs"] = input.CallAs;
|
|
4213
4263
|
}
|
|
4264
|
+
if (input.TemplateSummaryConfig != null) {
|
|
4265
|
+
const memberEntries = se_TemplateSummaryConfig(input.TemplateSummaryConfig, context);
|
|
4266
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4267
|
+
const loc = `TemplateSummaryConfig.${key}`;
|
|
4268
|
+
entries[loc] = value;
|
|
4269
|
+
});
|
|
4270
|
+
}
|
|
4214
4271
|
return entries;
|
|
4215
4272
|
};
|
|
4216
4273
|
const se_ImportStacksToStackSetInput = (input, context) => {
|
|
@@ -4286,6 +4343,41 @@ const se_ListImportsInput = (input, context) => {
|
|
|
4286
4343
|
}
|
|
4287
4344
|
return entries;
|
|
4288
4345
|
};
|
|
4346
|
+
const se_ListStackInstanceResourceDriftsInput = (input, context) => {
|
|
4347
|
+
const entries = {};
|
|
4348
|
+
if (input.StackSetName != null) {
|
|
4349
|
+
entries["StackSetName"] = input.StackSetName;
|
|
4350
|
+
}
|
|
4351
|
+
if (input.NextToken != null) {
|
|
4352
|
+
entries["NextToken"] = input.NextToken;
|
|
4353
|
+
}
|
|
4354
|
+
if (input.MaxResults != null) {
|
|
4355
|
+
entries["MaxResults"] = input.MaxResults;
|
|
4356
|
+
}
|
|
4357
|
+
if (input.StackInstanceResourceDriftStatuses != null) {
|
|
4358
|
+
const memberEntries = se_StackResourceDriftStatusFilters(input.StackInstanceResourceDriftStatuses, context);
|
|
4359
|
+
if (input.StackInstanceResourceDriftStatuses?.length === 0) {
|
|
4360
|
+
entries.StackInstanceResourceDriftStatuses = [];
|
|
4361
|
+
}
|
|
4362
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4363
|
+
const loc = `StackInstanceResourceDriftStatuses.${key}`;
|
|
4364
|
+
entries[loc] = value;
|
|
4365
|
+
});
|
|
4366
|
+
}
|
|
4367
|
+
if (input.StackInstanceAccount != null) {
|
|
4368
|
+
entries["StackInstanceAccount"] = input.StackInstanceAccount;
|
|
4369
|
+
}
|
|
4370
|
+
if (input.StackInstanceRegion != null) {
|
|
4371
|
+
entries["StackInstanceRegion"] = input.StackInstanceRegion;
|
|
4372
|
+
}
|
|
4373
|
+
if (input.OperationId != null) {
|
|
4374
|
+
entries["OperationId"] = input.OperationId;
|
|
4375
|
+
}
|
|
4376
|
+
if (input.CallAs != null) {
|
|
4377
|
+
entries["CallAs"] = input.CallAs;
|
|
4378
|
+
}
|
|
4379
|
+
return entries;
|
|
4380
|
+
};
|
|
4289
4381
|
const se_ListStackInstancesInput = (input, context) => {
|
|
4290
4382
|
const entries = {};
|
|
4291
4383
|
if (input.StackSetName != null) {
|
|
@@ -5007,6 +5099,13 @@ const se_Tags = (input, context) => {
|
|
|
5007
5099
|
}
|
|
5008
5100
|
return entries;
|
|
5009
5101
|
};
|
|
5102
|
+
const se_TemplateSummaryConfig = (input, context) => {
|
|
5103
|
+
const entries = {};
|
|
5104
|
+
if (input.TreatUnrecognizedResourceTypesAsWarnings != null) {
|
|
5105
|
+
entries["TreatUnrecognizedResourceTypesAsWarnings"] = input.TreatUnrecognizedResourceTypesAsWarnings;
|
|
5106
|
+
}
|
|
5107
|
+
return entries;
|
|
5108
|
+
};
|
|
5010
5109
|
const se_TestTypeInput = (input, context) => {
|
|
5011
5110
|
const entries = {};
|
|
5012
5111
|
if (input.Arn != null) {
|
|
@@ -6172,6 +6271,9 @@ const de_GetTemplateSummaryOutput = (output, context) => {
|
|
|
6172
6271
|
output["ResourceIdentifierSummaries"]["member"] !== undefined) {
|
|
6173
6272
|
contents.ResourceIdentifierSummaries = de_ResourceIdentifierSummaries((0, smithy_client_1.getArrayIfSingleItem)(output["ResourceIdentifierSummaries"]["member"]), context);
|
|
6174
6273
|
}
|
|
6274
|
+
if (output["Warnings"] !== undefined) {
|
|
6275
|
+
contents.Warnings = de_Warnings(output["Warnings"], context);
|
|
6276
|
+
}
|
|
6175
6277
|
return contents;
|
|
6176
6278
|
};
|
|
6177
6279
|
const de_Imports = (output, context) => {
|
|
@@ -6262,6 +6364,19 @@ const de_ListImportsOutput = (output, context) => {
|
|
|
6262
6364
|
}
|
|
6263
6365
|
return contents;
|
|
6264
6366
|
};
|
|
6367
|
+
const de_ListStackInstanceResourceDriftsOutput = (output, context) => {
|
|
6368
|
+
const contents = {};
|
|
6369
|
+
if (output.Summaries === "") {
|
|
6370
|
+
contents.Summaries = [];
|
|
6371
|
+
}
|
|
6372
|
+
else if (output["Summaries"] !== undefined && output["Summaries"]["member"] !== undefined) {
|
|
6373
|
+
contents.Summaries = de_StackInstanceResourceDriftsSummaries((0, smithy_client_1.getArrayIfSingleItem)(output["Summaries"]["member"]), context);
|
|
6374
|
+
}
|
|
6375
|
+
if (output["NextToken"] !== undefined) {
|
|
6376
|
+
contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
|
|
6377
|
+
}
|
|
6378
|
+
return contents;
|
|
6379
|
+
};
|
|
6265
6380
|
const de_ListStackInstancesOutput = (output, context) => {
|
|
6266
6381
|
const contents = {};
|
|
6267
6382
|
if (output.Summaries === "") {
|
|
@@ -7043,6 +7158,48 @@ const de_StackInstanceNotFoundException = (output, context) => {
|
|
|
7043
7158
|
}
|
|
7044
7159
|
return contents;
|
|
7045
7160
|
};
|
|
7161
|
+
const de_StackInstanceResourceDriftsSummaries = (output, context) => {
|
|
7162
|
+
return (output || [])
|
|
7163
|
+
.filter((e) => e != null)
|
|
7164
|
+
.map((entry) => {
|
|
7165
|
+
return de_StackInstanceResourceDriftsSummary(entry, context);
|
|
7166
|
+
});
|
|
7167
|
+
};
|
|
7168
|
+
const de_StackInstanceResourceDriftsSummary = (output, context) => {
|
|
7169
|
+
const contents = {};
|
|
7170
|
+
if (output["StackId"] !== undefined) {
|
|
7171
|
+
contents.StackId = (0, smithy_client_1.expectString)(output["StackId"]);
|
|
7172
|
+
}
|
|
7173
|
+
if (output["LogicalResourceId"] !== undefined) {
|
|
7174
|
+
contents.LogicalResourceId = (0, smithy_client_1.expectString)(output["LogicalResourceId"]);
|
|
7175
|
+
}
|
|
7176
|
+
if (output["PhysicalResourceId"] !== undefined) {
|
|
7177
|
+
contents.PhysicalResourceId = (0, smithy_client_1.expectString)(output["PhysicalResourceId"]);
|
|
7178
|
+
}
|
|
7179
|
+
if (output.PhysicalResourceIdContext === "") {
|
|
7180
|
+
contents.PhysicalResourceIdContext = [];
|
|
7181
|
+
}
|
|
7182
|
+
else if (output["PhysicalResourceIdContext"] !== undefined &&
|
|
7183
|
+
output["PhysicalResourceIdContext"]["member"] !== undefined) {
|
|
7184
|
+
contents.PhysicalResourceIdContext = de_PhysicalResourceIdContext((0, smithy_client_1.getArrayIfSingleItem)(output["PhysicalResourceIdContext"]["member"]), context);
|
|
7185
|
+
}
|
|
7186
|
+
if (output["ResourceType"] !== undefined) {
|
|
7187
|
+
contents.ResourceType = (0, smithy_client_1.expectString)(output["ResourceType"]);
|
|
7188
|
+
}
|
|
7189
|
+
if (output.PropertyDifferences === "") {
|
|
7190
|
+
contents.PropertyDifferences = [];
|
|
7191
|
+
}
|
|
7192
|
+
else if (output["PropertyDifferences"] !== undefined && output["PropertyDifferences"]["member"] !== undefined) {
|
|
7193
|
+
contents.PropertyDifferences = de_PropertyDifferences((0, smithy_client_1.getArrayIfSingleItem)(output["PropertyDifferences"]["member"]), context);
|
|
7194
|
+
}
|
|
7195
|
+
if (output["StackResourceDriftStatus"] !== undefined) {
|
|
7196
|
+
contents.StackResourceDriftStatus = (0, smithy_client_1.expectString)(output["StackResourceDriftStatus"]);
|
|
7197
|
+
}
|
|
7198
|
+
if (output["Timestamp"] !== undefined) {
|
|
7199
|
+
contents.Timestamp = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["Timestamp"]));
|
|
7200
|
+
}
|
|
7201
|
+
return contents;
|
|
7202
|
+
};
|
|
7046
7203
|
const de_StackInstanceSummaries = (output, context) => {
|
|
7047
7204
|
return (output || [])
|
|
7048
7205
|
.filter((e) => e != null)
|
|
@@ -7926,6 +8083,17 @@ const de_ValidateTemplateOutput = (output, context) => {
|
|
|
7926
8083
|
}
|
|
7927
8084
|
return contents;
|
|
7928
8085
|
};
|
|
8086
|
+
const de_Warnings = (output, context) => {
|
|
8087
|
+
const contents = {};
|
|
8088
|
+
if (output.UnrecognizedResourceTypes === "") {
|
|
8089
|
+
contents.UnrecognizedResourceTypes = [];
|
|
8090
|
+
}
|
|
8091
|
+
else if (output["UnrecognizedResourceTypes"] !== undefined &&
|
|
8092
|
+
output["UnrecognizedResourceTypes"]["member"] !== undefined) {
|
|
8093
|
+
contents.UnrecognizedResourceTypes = de_ResourceTypes((0, smithy_client_1.getArrayIfSingleItem)(output["UnrecognizedResourceTypes"]["member"]), context);
|
|
8094
|
+
}
|
|
8095
|
+
return contents;
|
|
8096
|
+
};
|
|
7929
8097
|
const deserializeMetadata = (output) => ({
|
|
7930
8098
|
httpStatusCode: output.statusCode,
|
|
7931
8099
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -44,6 +44,7 @@ import { ImportStacksToStackSetCommand, } from "./commands/ImportStacksToStackSe
|
|
|
44
44
|
import { ListChangeSetsCommand, } from "./commands/ListChangeSetsCommand";
|
|
45
45
|
import { ListExportsCommand } from "./commands/ListExportsCommand";
|
|
46
46
|
import { ListImportsCommand } from "./commands/ListImportsCommand";
|
|
47
|
+
import { ListStackInstanceResourceDriftsCommand, } from "./commands/ListStackInstanceResourceDriftsCommand";
|
|
47
48
|
import { ListStackInstancesCommand, } from "./commands/ListStackInstancesCommand";
|
|
48
49
|
import { ListStackResourcesCommand, } from "./commands/ListStackResourcesCommand";
|
|
49
50
|
import { ListStacksCommand } from "./commands/ListStacksCommand";
|
|
@@ -114,6 +115,7 @@ const commands = {
|
|
|
114
115
|
ListChangeSetsCommand,
|
|
115
116
|
ListExportsCommand,
|
|
116
117
|
ListImportsCommand,
|
|
118
|
+
ListStackInstanceResourceDriftsCommand,
|
|
117
119
|
ListStackInstancesCommand,
|
|
118
120
|
ListStackResourcesCommand,
|
|
119
121
|
ListStacksCommand,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_ListStackInstanceResourceDriftsCommand, se_ListStackInstanceResourceDriftsCommand, } from "../protocols/Aws_query";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListStackInstanceResourceDriftsCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListStackInstanceResourceDriftsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CloudFormationClient";
|
|
25
|
+
const commandName = "ListStackInstanceResourceDriftsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_ListStackInstanceResourceDriftsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_ListStackInstanceResourceDriftsCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -42,6 +42,7 @@ export * from "./ImportStacksToStackSetCommand";
|
|
|
42
42
|
export * from "./ListChangeSetsCommand";
|
|
43
43
|
export * from "./ListExportsCommand";
|
|
44
44
|
export * from "./ListImportsCommand";
|
|
45
|
+
export * from "./ListStackInstanceResourceDriftsCommand";
|
|
45
46
|
export * from "./ListStackInstancesCommand";
|
|
46
47
|
export * from "./ListStackResourcesCommand";
|
|
47
48
|
export * from "./ListStackSetOperationResultsCommand";
|
|
@@ -559,6 +559,7 @@ export class StackNotFoundException extends __BaseException {
|
|
|
559
559
|
}
|
|
560
560
|
export const StackInstanceFilterName = {
|
|
561
561
|
DETAILED_STATUS: "DETAILED_STATUS",
|
|
562
|
+
DRIFT_STATUS: "DRIFT_STATUS",
|
|
562
563
|
LAST_OPERATION_ID: "LAST_OPERATION_ID",
|
|
563
564
|
};
|
|
564
565
|
export const OperationResultFilterName = {
|
|
@@ -444,6 +444,16 @@ export const se_ListImportsCommand = async (input, context) => {
|
|
|
444
444
|
});
|
|
445
445
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
446
446
|
};
|
|
447
|
+
export const se_ListStackInstanceResourceDriftsCommand = async (input, context) => {
|
|
448
|
+
const headers = SHARED_HEADERS;
|
|
449
|
+
let body;
|
|
450
|
+
body = buildFormUrlencodedString({
|
|
451
|
+
...se_ListStackInstanceResourceDriftsInput(input, context),
|
|
452
|
+
Action: "ListStackInstanceResourceDrifts",
|
|
453
|
+
Version: "2010-05-15",
|
|
454
|
+
});
|
|
455
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
456
|
+
};
|
|
447
457
|
export const se_ListStackInstancesCommand = async (input, context) => {
|
|
448
458
|
const headers = SHARED_HEADERS;
|
|
449
459
|
let body;
|
|
@@ -2126,6 +2136,44 @@ const de_ListImportsCommandError = async (output, context) => {
|
|
|
2126
2136
|
errorCode,
|
|
2127
2137
|
});
|
|
2128
2138
|
};
|
|
2139
|
+
export const de_ListStackInstanceResourceDriftsCommand = async (output, context) => {
|
|
2140
|
+
if (output.statusCode >= 300) {
|
|
2141
|
+
return de_ListStackInstanceResourceDriftsCommandError(output, context);
|
|
2142
|
+
}
|
|
2143
|
+
const data = await parseBody(output.body, context);
|
|
2144
|
+
let contents = {};
|
|
2145
|
+
contents = de_ListStackInstanceResourceDriftsOutput(data.ListStackInstanceResourceDriftsResult, context);
|
|
2146
|
+
const response = {
|
|
2147
|
+
$metadata: deserializeMetadata(output),
|
|
2148
|
+
...contents,
|
|
2149
|
+
};
|
|
2150
|
+
return response;
|
|
2151
|
+
};
|
|
2152
|
+
const de_ListStackInstanceResourceDriftsCommandError = async (output, context) => {
|
|
2153
|
+
const parsedOutput = {
|
|
2154
|
+
...output,
|
|
2155
|
+
body: await parseErrorBody(output.body, context),
|
|
2156
|
+
};
|
|
2157
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2158
|
+
switch (errorCode) {
|
|
2159
|
+
case "OperationNotFoundException":
|
|
2160
|
+
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
|
2161
|
+
throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
|
|
2162
|
+
case "StackInstanceNotFoundException":
|
|
2163
|
+
case "com.amazonaws.cloudformation#StackInstanceNotFoundException":
|
|
2164
|
+
throw await de_StackInstanceNotFoundExceptionRes(parsedOutput, context);
|
|
2165
|
+
case "StackSetNotFoundException":
|
|
2166
|
+
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
2167
|
+
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
|
2168
|
+
default:
|
|
2169
|
+
const parsedBody = parsedOutput.body;
|
|
2170
|
+
return throwDefaultError({
|
|
2171
|
+
output,
|
|
2172
|
+
parsedBody: parsedBody.Error,
|
|
2173
|
+
errorCode,
|
|
2174
|
+
});
|
|
2175
|
+
}
|
|
2176
|
+
};
|
|
2129
2177
|
export const de_ListStackInstancesCommand = async (output, context) => {
|
|
2130
2178
|
if (output.statusCode >= 300) {
|
|
2131
2179
|
return de_ListStackInstancesCommandError(output, context);
|
|
@@ -4068,6 +4116,13 @@ const se_GetTemplateSummaryInput = (input, context) => {
|
|
|
4068
4116
|
if (input.CallAs != null) {
|
|
4069
4117
|
entries["CallAs"] = input.CallAs;
|
|
4070
4118
|
}
|
|
4119
|
+
if (input.TemplateSummaryConfig != null) {
|
|
4120
|
+
const memberEntries = se_TemplateSummaryConfig(input.TemplateSummaryConfig, context);
|
|
4121
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4122
|
+
const loc = `TemplateSummaryConfig.${key}`;
|
|
4123
|
+
entries[loc] = value;
|
|
4124
|
+
});
|
|
4125
|
+
}
|
|
4071
4126
|
return entries;
|
|
4072
4127
|
};
|
|
4073
4128
|
const se_ImportStacksToStackSetInput = (input, context) => {
|
|
@@ -4143,6 +4198,41 @@ const se_ListImportsInput = (input, context) => {
|
|
|
4143
4198
|
}
|
|
4144
4199
|
return entries;
|
|
4145
4200
|
};
|
|
4201
|
+
const se_ListStackInstanceResourceDriftsInput = (input, context) => {
|
|
4202
|
+
const entries = {};
|
|
4203
|
+
if (input.StackSetName != null) {
|
|
4204
|
+
entries["StackSetName"] = input.StackSetName;
|
|
4205
|
+
}
|
|
4206
|
+
if (input.NextToken != null) {
|
|
4207
|
+
entries["NextToken"] = input.NextToken;
|
|
4208
|
+
}
|
|
4209
|
+
if (input.MaxResults != null) {
|
|
4210
|
+
entries["MaxResults"] = input.MaxResults;
|
|
4211
|
+
}
|
|
4212
|
+
if (input.StackInstanceResourceDriftStatuses != null) {
|
|
4213
|
+
const memberEntries = se_StackResourceDriftStatusFilters(input.StackInstanceResourceDriftStatuses, context);
|
|
4214
|
+
if (input.StackInstanceResourceDriftStatuses?.length === 0) {
|
|
4215
|
+
entries.StackInstanceResourceDriftStatuses = [];
|
|
4216
|
+
}
|
|
4217
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4218
|
+
const loc = `StackInstanceResourceDriftStatuses.${key}`;
|
|
4219
|
+
entries[loc] = value;
|
|
4220
|
+
});
|
|
4221
|
+
}
|
|
4222
|
+
if (input.StackInstanceAccount != null) {
|
|
4223
|
+
entries["StackInstanceAccount"] = input.StackInstanceAccount;
|
|
4224
|
+
}
|
|
4225
|
+
if (input.StackInstanceRegion != null) {
|
|
4226
|
+
entries["StackInstanceRegion"] = input.StackInstanceRegion;
|
|
4227
|
+
}
|
|
4228
|
+
if (input.OperationId != null) {
|
|
4229
|
+
entries["OperationId"] = input.OperationId;
|
|
4230
|
+
}
|
|
4231
|
+
if (input.CallAs != null) {
|
|
4232
|
+
entries["CallAs"] = input.CallAs;
|
|
4233
|
+
}
|
|
4234
|
+
return entries;
|
|
4235
|
+
};
|
|
4146
4236
|
const se_ListStackInstancesInput = (input, context) => {
|
|
4147
4237
|
const entries = {};
|
|
4148
4238
|
if (input.StackSetName != null) {
|
|
@@ -4864,6 +4954,13 @@ const se_Tags = (input, context) => {
|
|
|
4864
4954
|
}
|
|
4865
4955
|
return entries;
|
|
4866
4956
|
};
|
|
4957
|
+
const se_TemplateSummaryConfig = (input, context) => {
|
|
4958
|
+
const entries = {};
|
|
4959
|
+
if (input.TreatUnrecognizedResourceTypesAsWarnings != null) {
|
|
4960
|
+
entries["TreatUnrecognizedResourceTypesAsWarnings"] = input.TreatUnrecognizedResourceTypesAsWarnings;
|
|
4961
|
+
}
|
|
4962
|
+
return entries;
|
|
4963
|
+
};
|
|
4867
4964
|
const se_TestTypeInput = (input, context) => {
|
|
4868
4965
|
const entries = {};
|
|
4869
4966
|
if (input.Arn != null) {
|
|
@@ -6029,6 +6126,9 @@ const de_GetTemplateSummaryOutput = (output, context) => {
|
|
|
6029
6126
|
output["ResourceIdentifierSummaries"]["member"] !== undefined) {
|
|
6030
6127
|
contents.ResourceIdentifierSummaries = de_ResourceIdentifierSummaries(__getArrayIfSingleItem(output["ResourceIdentifierSummaries"]["member"]), context);
|
|
6031
6128
|
}
|
|
6129
|
+
if (output["Warnings"] !== undefined) {
|
|
6130
|
+
contents.Warnings = de_Warnings(output["Warnings"], context);
|
|
6131
|
+
}
|
|
6032
6132
|
return contents;
|
|
6033
6133
|
};
|
|
6034
6134
|
const de_Imports = (output, context) => {
|
|
@@ -6119,6 +6219,19 @@ const de_ListImportsOutput = (output, context) => {
|
|
|
6119
6219
|
}
|
|
6120
6220
|
return contents;
|
|
6121
6221
|
};
|
|
6222
|
+
const de_ListStackInstanceResourceDriftsOutput = (output, context) => {
|
|
6223
|
+
const contents = {};
|
|
6224
|
+
if (output.Summaries === "") {
|
|
6225
|
+
contents.Summaries = [];
|
|
6226
|
+
}
|
|
6227
|
+
else if (output["Summaries"] !== undefined && output["Summaries"]["member"] !== undefined) {
|
|
6228
|
+
contents.Summaries = de_StackInstanceResourceDriftsSummaries(__getArrayIfSingleItem(output["Summaries"]["member"]), context);
|
|
6229
|
+
}
|
|
6230
|
+
if (output["NextToken"] !== undefined) {
|
|
6231
|
+
contents.NextToken = __expectString(output["NextToken"]);
|
|
6232
|
+
}
|
|
6233
|
+
return contents;
|
|
6234
|
+
};
|
|
6122
6235
|
const de_ListStackInstancesOutput = (output, context) => {
|
|
6123
6236
|
const contents = {};
|
|
6124
6237
|
if (output.Summaries === "") {
|
|
@@ -6900,6 +7013,48 @@ const de_StackInstanceNotFoundException = (output, context) => {
|
|
|
6900
7013
|
}
|
|
6901
7014
|
return contents;
|
|
6902
7015
|
};
|
|
7016
|
+
const de_StackInstanceResourceDriftsSummaries = (output, context) => {
|
|
7017
|
+
return (output || [])
|
|
7018
|
+
.filter((e) => e != null)
|
|
7019
|
+
.map((entry) => {
|
|
7020
|
+
return de_StackInstanceResourceDriftsSummary(entry, context);
|
|
7021
|
+
});
|
|
7022
|
+
};
|
|
7023
|
+
const de_StackInstanceResourceDriftsSummary = (output, context) => {
|
|
7024
|
+
const contents = {};
|
|
7025
|
+
if (output["StackId"] !== undefined) {
|
|
7026
|
+
contents.StackId = __expectString(output["StackId"]);
|
|
7027
|
+
}
|
|
7028
|
+
if (output["LogicalResourceId"] !== undefined) {
|
|
7029
|
+
contents.LogicalResourceId = __expectString(output["LogicalResourceId"]);
|
|
7030
|
+
}
|
|
7031
|
+
if (output["PhysicalResourceId"] !== undefined) {
|
|
7032
|
+
contents.PhysicalResourceId = __expectString(output["PhysicalResourceId"]);
|
|
7033
|
+
}
|
|
7034
|
+
if (output.PhysicalResourceIdContext === "") {
|
|
7035
|
+
contents.PhysicalResourceIdContext = [];
|
|
7036
|
+
}
|
|
7037
|
+
else if (output["PhysicalResourceIdContext"] !== undefined &&
|
|
7038
|
+
output["PhysicalResourceIdContext"]["member"] !== undefined) {
|
|
7039
|
+
contents.PhysicalResourceIdContext = de_PhysicalResourceIdContext(__getArrayIfSingleItem(output["PhysicalResourceIdContext"]["member"]), context);
|
|
7040
|
+
}
|
|
7041
|
+
if (output["ResourceType"] !== undefined) {
|
|
7042
|
+
contents.ResourceType = __expectString(output["ResourceType"]);
|
|
7043
|
+
}
|
|
7044
|
+
if (output.PropertyDifferences === "") {
|
|
7045
|
+
contents.PropertyDifferences = [];
|
|
7046
|
+
}
|
|
7047
|
+
else if (output["PropertyDifferences"] !== undefined && output["PropertyDifferences"]["member"] !== undefined) {
|
|
7048
|
+
contents.PropertyDifferences = de_PropertyDifferences(__getArrayIfSingleItem(output["PropertyDifferences"]["member"]), context);
|
|
7049
|
+
}
|
|
7050
|
+
if (output["StackResourceDriftStatus"] !== undefined) {
|
|
7051
|
+
contents.StackResourceDriftStatus = __expectString(output["StackResourceDriftStatus"]);
|
|
7052
|
+
}
|
|
7053
|
+
if (output["Timestamp"] !== undefined) {
|
|
7054
|
+
contents.Timestamp = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Timestamp"]));
|
|
7055
|
+
}
|
|
7056
|
+
return contents;
|
|
7057
|
+
};
|
|
6903
7058
|
const de_StackInstanceSummaries = (output, context) => {
|
|
6904
7059
|
return (output || [])
|
|
6905
7060
|
.filter((e) => e != null)
|
|
@@ -7783,6 +7938,17 @@ const de_ValidateTemplateOutput = (output, context) => {
|
|
|
7783
7938
|
}
|
|
7784
7939
|
return contents;
|
|
7785
7940
|
};
|
|
7941
|
+
const de_Warnings = (output, context) => {
|
|
7942
|
+
const contents = {};
|
|
7943
|
+
if (output.UnrecognizedResourceTypes === "") {
|
|
7944
|
+
contents.UnrecognizedResourceTypes = [];
|
|
7945
|
+
}
|
|
7946
|
+
else if (output["UnrecognizedResourceTypes"] !== undefined &&
|
|
7947
|
+
output["UnrecognizedResourceTypes"]["member"] !== undefined) {
|
|
7948
|
+
contents.UnrecognizedResourceTypes = de_ResourceTypes(__getArrayIfSingleItem(output["UnrecognizedResourceTypes"]["member"]), context);
|
|
7949
|
+
}
|
|
7950
|
+
return contents;
|
|
7951
|
+
};
|
|
7786
7952
|
const deserializeMetadata = (output) => ({
|
|
7787
7953
|
httpStatusCode: output.statusCode,
|
|
7788
7954
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|