@aws-sdk/client-cloudformation 3.51.0 → 3.52.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +10 -10
  3. package/dist-cjs/CloudFormation.js +15 -0
  4. package/dist-cjs/commands/DescribeChangeSetHooksCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +1 -0
  6. package/dist-cjs/models/models_0.js +65 -5
  7. package/dist-cjs/protocols/Aws_query.js +208 -3
  8. package/dist-es/CloudFormation.js +15 -0
  9. package/dist-es/commands/DescribeChangeSetHooksCommand.js +39 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/models/models_0.js +50 -0
  12. package/dist-es/protocols/Aws_query.js +211 -0
  13. package/dist-types/CloudFormation.d.ts +134 -130
  14. package/dist-types/CloudFormationClient.d.ts +13 -12
  15. package/dist-types/commands/ActivateTypeCommand.d.ts +1 -2
  16. package/dist-types/commands/BatchDescribeTypeConfigurationsCommand.d.ts +2 -2
  17. package/dist-types/commands/CancelUpdateStackCommand.d.ts +2 -1
  18. package/dist-types/commands/ContinueUpdateRollbackCommand.d.ts +8 -8
  19. package/dist-types/commands/CreateChangeSetCommand.d.ts +6 -7
  20. package/dist-types/commands/CreateStackCommand.d.ts +1 -1
  21. package/dist-types/commands/CreateStackInstancesCommand.d.ts +4 -4
  22. package/dist-types/commands/DeactivateTypeCommand.d.ts +3 -3
  23. package/dist-types/commands/DeleteChangeSetCommand.d.ts +2 -2
  24. package/dist-types/commands/DeleteStackCommand.d.ts +2 -2
  25. package/dist-types/commands/DeleteStackInstancesCommand.d.ts +1 -1
  26. package/dist-types/commands/DeregisterTypeCommand.d.ts +3 -3
  27. package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +3 -3
  28. package/dist-types/commands/DescribeChangeSetCommand.d.ts +2 -3
  29. package/dist-types/commands/DescribeChangeSetHooksCommand.d.ts +35 -0
  30. package/dist-types/commands/DescribePublisherCommand.d.ts +3 -4
  31. package/dist-types/commands/DescribeStackEventsCommand.d.ts +1 -1
  32. package/dist-types/commands/DescribeStackResourceDriftsCommand.d.ts +2 -2
  33. package/dist-types/commands/DescribeStackSetCommand.d.ts +1 -1
  34. package/dist-types/commands/DescribeStackSetOperationCommand.d.ts +1 -1
  35. package/dist-types/commands/DescribeStacksCommand.d.ts +1 -1
  36. package/dist-types/commands/DetectStackDriftCommand.d.ts +1 -1
  37. package/dist-types/commands/DetectStackResourceDriftCommand.d.ts +1 -1
  38. package/dist-types/commands/DetectStackSetDriftCommand.d.ts +7 -6
  39. package/dist-types/commands/ExecuteChangeSetCommand.d.ts +7 -7
  40. package/dist-types/commands/GetTemplateCommand.d.ts +3 -3
  41. package/dist-types/commands/GetTemplateSummaryCommand.d.ts +1 -1
  42. package/dist-types/commands/ImportStacksToStackSetCommand.d.ts +9 -6
  43. package/dist-types/commands/ListExportsCommand.d.ts +1 -1
  44. package/dist-types/commands/ListStackSetOperationResultsCommand.d.ts +1 -1
  45. package/dist-types/commands/ListStackSetOperationsCommand.d.ts +1 -1
  46. package/dist-types/commands/ListStackSetsCommand.d.ts +2 -3
  47. package/dist-types/commands/PublishTypeCommand.d.ts +4 -6
  48. package/dist-types/commands/RecordHandlerProgressCommand.d.ts +1 -1
  49. package/dist-types/commands/RegisterPublisherCommand.d.ts +4 -4
  50. package/dist-types/commands/RegisterTypeCommand.d.ts +5 -6
  51. package/dist-types/commands/RollbackStackCommand.d.ts +1 -1
  52. package/dist-types/commands/SetTypeConfigurationCommand.d.ts +3 -3
  53. package/dist-types/commands/SignalResourceCommand.d.ts +2 -2
  54. package/dist-types/commands/StopStackSetOperationCommand.d.ts +1 -1
  55. package/dist-types/commands/TestTypeCommand.d.ts +4 -5
  56. package/dist-types/commands/UpdateStackCommand.d.ts +1 -1
  57. package/dist-types/commands/UpdateStackInstancesCommand.d.ts +6 -5
  58. package/dist-types/commands/UpdateStackSetCommand.d.ts +1 -1
  59. package/dist-types/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
  60. package/dist-types/commands/index.d.ts +1 -0
  61. package/dist-types/models/models_0.d.ts +1009 -733
  62. package/dist-types/protocols/Aws_query.d.ts +3 -0
  63. package/dist-types/ts3.4/CloudFormation.d.ts +5 -0
  64. package/dist-types/ts3.4/CloudFormationClient.d.ts +3 -2
  65. package/dist-types/ts3.4/commands/DescribeChangeSetHooksCommand.d.ts +17 -0
  66. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  67. package/dist-types/ts3.4/models/models_0.d.ts +116 -2
  68. package/dist-types/ts3.4/protocols/Aws_query.d.ts +3 -0
  69. package/package.json +34 -34
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeChangeSetHooksInput, DescribeChangeSetHooksOutput } from "../models/models_0";
5
+ import { deserializeAws_queryDescribeChangeSetHooksCommand, serializeAws_queryDescribeChangeSetHooksCommand, } from "../protocols/Aws_query";
6
+ var DescribeChangeSetHooksCommand = (function (_super) {
7
+ __extends(DescribeChangeSetHooksCommand, _super);
8
+ function DescribeChangeSetHooksCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeChangeSetHooksCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFormationClient";
18
+ var commandName = "DescribeChangeSetHooksCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeChangeSetHooksInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeChangeSetHooksOutput.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeChangeSetHooksCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_queryDescribeChangeSetHooksCommand(input, context);
33
+ };
34
+ DescribeChangeSetHooksCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_queryDescribeChangeSetHooksCommand(output, context);
36
+ };
37
+ return DescribeChangeSetHooksCommand;
38
+ }($Command));
39
+ export { DescribeChangeSetHooksCommand };
@@ -14,6 +14,7 @@ export * from "./DeleteStackSetCommand";
14
14
  export * from "./DeregisterTypeCommand";
15
15
  export * from "./DescribeAccountLimitsCommand";
16
16
  export * from "./DescribeChangeSetCommand";
17
+ export * from "./DescribeChangeSetHooksCommand";
17
18
  export * from "./DescribePublisherCommand";
18
19
  export * from "./DescribeStackDriftDetectionStatusCommand";
19
20
  export * from "./DescribeStackEventsCommand";
@@ -13,6 +13,7 @@ export var LoggingConfig;
13
13
  })(LoggingConfig || (LoggingConfig = {}));
14
14
  export var ThirdPartyType;
15
15
  (function (ThirdPartyType) {
16
+ ThirdPartyType["HOOK"] = "HOOK";
16
17
  ThirdPartyType["MODULE"] = "MODULE";
17
18
  ThirdPartyType["RESOURCE"] = "RESOURCE";
18
19
  })(ThirdPartyType || (ThirdPartyType = {}));
@@ -141,6 +142,37 @@ export var Change;
141
142
  (function (Change) {
142
143
  Change.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
144
  })(Change || (Change = {}));
145
+ export var HookFailureMode;
146
+ (function (HookFailureMode) {
147
+ HookFailureMode["FAIL"] = "FAIL";
148
+ HookFailureMode["WARN"] = "WARN";
149
+ })(HookFailureMode || (HookFailureMode = {}));
150
+ export var HookInvocationPoint;
151
+ (function (HookInvocationPoint) {
152
+ HookInvocationPoint["PRE_PROVISION"] = "PRE_PROVISION";
153
+ })(HookInvocationPoint || (HookInvocationPoint = {}));
154
+ export var ChangeSetHookResourceTargetDetails;
155
+ (function (ChangeSetHookResourceTargetDetails) {
156
+ ChangeSetHookResourceTargetDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
157
+ })(ChangeSetHookResourceTargetDetails || (ChangeSetHookResourceTargetDetails = {}));
158
+ export var HookTargetType;
159
+ (function (HookTargetType) {
160
+ HookTargetType["RESOURCE"] = "RESOURCE";
161
+ })(HookTargetType || (HookTargetType = {}));
162
+ export var ChangeSetHookTargetDetails;
163
+ (function (ChangeSetHookTargetDetails) {
164
+ ChangeSetHookTargetDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
165
+ })(ChangeSetHookTargetDetails || (ChangeSetHookTargetDetails = {}));
166
+ export var ChangeSetHook;
167
+ (function (ChangeSetHook) {
168
+ ChangeSetHook.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
169
+ })(ChangeSetHook || (ChangeSetHook = {}));
170
+ export var ChangeSetHooksStatus;
171
+ (function (ChangeSetHooksStatus) {
172
+ ChangeSetHooksStatus["PLANNED"] = "PLANNED";
173
+ ChangeSetHooksStatus["PLANNING"] = "PLANNING";
174
+ ChangeSetHooksStatus["UNAVAILABLE"] = "UNAVAILABLE";
175
+ })(ChangeSetHooksStatus || (ChangeSetHooksStatus = {}));
144
176
  export var ChangeSetStatus;
145
177
  (function (ChangeSetStatus) {
146
178
  ChangeSetStatus["CREATE_COMPLETE"] = "CREATE_COMPLETE";
@@ -314,6 +346,14 @@ export var DescribeChangeSetOutput;
314
346
  (function (DescribeChangeSetOutput) {
315
347
  DescribeChangeSetOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
316
348
  })(DescribeChangeSetOutput || (DescribeChangeSetOutput = {}));
349
+ export var DescribeChangeSetHooksInput;
350
+ (function (DescribeChangeSetHooksInput) {
351
+ DescribeChangeSetHooksInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
352
+ })(DescribeChangeSetHooksInput || (DescribeChangeSetHooksInput = {}));
353
+ export var DescribeChangeSetHooksOutput;
354
+ (function (DescribeChangeSetHooksOutput) {
355
+ DescribeChangeSetHooksOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
356
+ })(DescribeChangeSetHooksOutput || (DescribeChangeSetHooksOutput = {}));
317
357
  export var DescribePublisherInput;
318
358
  (function (DescribePublisherInput) {
319
359
  DescribePublisherInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -358,6 +398,13 @@ export var DescribeStackEventsInput;
358
398
  (function (DescribeStackEventsInput) {
359
399
  DescribeStackEventsInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
360
400
  })(DescribeStackEventsInput || (DescribeStackEventsInput = {}));
401
+ export var HookStatus;
402
+ (function (HookStatus) {
403
+ HookStatus["HOOK_COMPLETE_FAILED"] = "HOOK_COMPLETE_FAILED";
404
+ HookStatus["HOOK_COMPLETE_SUCCEEDED"] = "HOOK_COMPLETE_SUCCEEDED";
405
+ HookStatus["HOOK_FAILED"] = "HOOK_FAILED";
406
+ HookStatus["HOOK_IN_PROGRESS"] = "HOOK_IN_PROGRESS";
407
+ })(HookStatus || (HookStatus = {}));
361
408
  export var ResourceStatus;
362
409
  (function (ResourceStatus) {
363
410
  ResourceStatus["CREATE_COMPLETE"] = "CREATE_COMPLETE";
@@ -840,11 +887,13 @@ export var HandlerErrorCode;
840
887
  HandlerErrorCode["AccessDenied"] = "AccessDenied";
841
888
  HandlerErrorCode["AlreadyExists"] = "AlreadyExists";
842
889
  HandlerErrorCode["GeneralServiceException"] = "GeneralServiceException";
890
+ HandlerErrorCode["HandlerInternalFailure"] = "HandlerInternalFailure";
843
891
  HandlerErrorCode["InternalFailure"] = "InternalFailure";
844
892
  HandlerErrorCode["InvalidCredentials"] = "InvalidCredentials";
845
893
  HandlerErrorCode["InvalidRequest"] = "InvalidRequest";
846
894
  HandlerErrorCode["InvalidTypeConfiguration"] = "InvalidTypeConfiguration";
847
895
  HandlerErrorCode["NetworkFailure"] = "NetworkFailure";
896
+ HandlerErrorCode["NonCompliant"] = "NonCompliant";
848
897
  HandlerErrorCode["NotFound"] = "NotFound";
849
898
  HandlerErrorCode["NotUpdatable"] = "NotUpdatable";
850
899
  HandlerErrorCode["ResourceConflict"] = "ResourceConflict";
@@ -852,6 +901,7 @@ export var HandlerErrorCode;
852
901
  HandlerErrorCode["ServiceLimitExceeded"] = "ServiceLimitExceeded";
853
902
  HandlerErrorCode["ServiceTimeout"] = "NotStabilized";
854
903
  HandlerErrorCode["Throttling"] = "Throttling";
904
+ HandlerErrorCode["Unknown"] = "Unknown";
855
905
  })(HandlerErrorCode || (HandlerErrorCode = {}));
856
906
  export var RecordHandlerProgressInput;
857
907
  (function (RecordHandlerProgressInput) {
@@ -164,6 +164,16 @@ export var serializeAws_queryDescribeChangeSetCommand = function (input, context
164
164
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
165
165
  });
166
166
  }); };
167
+ export var serializeAws_queryDescribeChangeSetHooksCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
168
+ var headers, body;
169
+ return __generator(this, function (_a) {
170
+ headers = {
171
+ "content-type": "application/x-www-form-urlencoded",
172
+ };
173
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryDescribeChangeSetHooksInput(input, context)), { Action: "DescribeChangeSetHooks", Version: "2010-05-15" }));
174
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
175
+ });
176
+ }); };
167
177
  export var serializeAws_queryDescribePublisherCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
168
178
  var headers, body;
169
179
  return __generator(this, function (_a) {
@@ -1706,6 +1716,62 @@ var deserializeAws_queryDescribeChangeSetCommandError = function (output, contex
1706
1716
  }
1707
1717
  });
1708
1718
  }); };
1719
+ export var deserializeAws_queryDescribeChangeSetHooksCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1720
+ var data, contents, response;
1721
+ return __generator(this, function (_a) {
1722
+ switch (_a.label) {
1723
+ case 0:
1724
+ if (output.statusCode >= 300) {
1725
+ return [2, deserializeAws_queryDescribeChangeSetHooksCommandError(output, context)];
1726
+ }
1727
+ return [4, parseBody(output.body, context)];
1728
+ case 1:
1729
+ data = _a.sent();
1730
+ contents = {};
1731
+ contents = deserializeAws_queryDescribeChangeSetHooksOutput(data.DescribeChangeSetHooksResult, context);
1732
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
1733
+ return [2, Promise.resolve(response)];
1734
+ }
1735
+ });
1736
+ }); };
1737
+ var deserializeAws_queryDescribeChangeSetHooksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1738
+ var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
1739
+ var _d;
1740
+ return __generator(this, function (_e) {
1741
+ switch (_e.label) {
1742
+ case 0:
1743
+ _a = [__assign({}, output)];
1744
+ _d = {};
1745
+ return [4, parseBody(output.body, context)];
1746
+ case 1:
1747
+ parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
1748
+ errorCode = "UnknownError";
1749
+ errorCode = loadQueryErrorCode(output, parsedOutput.body);
1750
+ _b = errorCode;
1751
+ switch (_b) {
1752
+ case "ChangeSetNotFoundException": return [3, 2];
1753
+ case "com.amazonaws.cloudformation#ChangeSetNotFoundException": return [3, 2];
1754
+ }
1755
+ return [3, 4];
1756
+ case 2:
1757
+ _c = [{}];
1758
+ return [4, deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context)];
1759
+ case 3:
1760
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1761
+ return [3, 5];
1762
+ case 4:
1763
+ parsedBody = parsedOutput.body;
1764
+ errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
1765
+ response = __assign(__assign({}, parsedBody.Error), { name: "" + errorCode, message: parsedBody.Error.message || parsedBody.Error.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1766
+ _e.label = 5;
1767
+ case 5:
1768
+ message = response.message || response.Message || errorCode;
1769
+ response.message = message;
1770
+ delete response.Message;
1771
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1772
+ }
1773
+ });
1774
+ }); };
1709
1775
  export var deserializeAws_queryDescribePublisherCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1710
1776
  var data, contents, response;
1711
1777
  return __generator(this, function (_a) {
@@ -5269,6 +5335,22 @@ var serializeAws_queryDescribeAccountLimitsInput = function (input, context) {
5269
5335
  }
5270
5336
  return entries;
5271
5337
  };
5338
+ var serializeAws_queryDescribeChangeSetHooksInput = function (input, context) {
5339
+ var entries = {};
5340
+ if (input.ChangeSetName !== undefined && input.ChangeSetName !== null) {
5341
+ entries["ChangeSetName"] = input.ChangeSetName;
5342
+ }
5343
+ if (input.StackName !== undefined && input.StackName !== null) {
5344
+ entries["StackName"] = input.StackName;
5345
+ }
5346
+ if (input.NextToken !== undefined && input.NextToken !== null) {
5347
+ entries["NextToken"] = input.NextToken;
5348
+ }
5349
+ if (input.LogicalResourceId !== undefined && input.LogicalResourceId !== null) {
5350
+ entries["LogicalResourceId"] = input.LogicalResourceId;
5351
+ }
5352
+ return entries;
5353
+ };
5272
5354
  var serializeAws_queryDescribeChangeSetInput = function (input, context) {
5273
5355
  var entries = {};
5274
5356
  if (input.ChangeSetName !== undefined && input.ChangeSetName !== null) {
@@ -6982,11 +7064,15 @@ var deserializeAws_queryCFNRegistryException = function (output, context) {
6982
7064
  var deserializeAws_queryChange = function (output, context) {
6983
7065
  var contents = {
6984
7066
  Type: undefined,
7067
+ HookInvocationCount: undefined,
6985
7068
  ResourceChange: undefined,
6986
7069
  };
6987
7070
  if (output["Type"] !== undefined) {
6988
7071
  contents.Type = __expectString(output["Type"]);
6989
7072
  }
7073
+ if (output["HookInvocationCount"] !== undefined) {
7074
+ contents.HookInvocationCount = __strictParseInt32(output["HookInvocationCount"]);
7075
+ }
6990
7076
  if (output["ResourceChange"] !== undefined) {
6991
7077
  contents.ResourceChange = deserializeAws_queryResourceChange(output["ResourceChange"], context);
6992
7078
  }
@@ -7002,6 +7088,75 @@ var deserializeAws_queryChanges = function (output, context) {
7002
7088
  return deserializeAws_queryChange(entry, context);
7003
7089
  });
7004
7090
  };
7091
+ var deserializeAws_queryChangeSetHook = function (output, context) {
7092
+ var contents = {
7093
+ InvocationPoint: undefined,
7094
+ FailureMode: undefined,
7095
+ TypeName: undefined,
7096
+ TypeVersionId: undefined,
7097
+ TypeConfigurationVersionId: undefined,
7098
+ TargetDetails: undefined,
7099
+ };
7100
+ if (output["InvocationPoint"] !== undefined) {
7101
+ contents.InvocationPoint = __expectString(output["InvocationPoint"]);
7102
+ }
7103
+ if (output["FailureMode"] !== undefined) {
7104
+ contents.FailureMode = __expectString(output["FailureMode"]);
7105
+ }
7106
+ if (output["TypeName"] !== undefined) {
7107
+ contents.TypeName = __expectString(output["TypeName"]);
7108
+ }
7109
+ if (output["TypeVersionId"] !== undefined) {
7110
+ contents.TypeVersionId = __expectString(output["TypeVersionId"]);
7111
+ }
7112
+ if (output["TypeConfigurationVersionId"] !== undefined) {
7113
+ contents.TypeConfigurationVersionId = __expectString(output["TypeConfigurationVersionId"]);
7114
+ }
7115
+ if (output["TargetDetails"] !== undefined) {
7116
+ contents.TargetDetails = deserializeAws_queryChangeSetHookTargetDetails(output["TargetDetails"], context);
7117
+ }
7118
+ return contents;
7119
+ };
7120
+ var deserializeAws_queryChangeSetHookResourceTargetDetails = function (output, context) {
7121
+ var contents = {
7122
+ LogicalResourceId: undefined,
7123
+ ResourceType: undefined,
7124
+ ResourceAction: undefined,
7125
+ };
7126
+ if (output["LogicalResourceId"] !== undefined) {
7127
+ contents.LogicalResourceId = __expectString(output["LogicalResourceId"]);
7128
+ }
7129
+ if (output["ResourceType"] !== undefined) {
7130
+ contents.ResourceType = __expectString(output["ResourceType"]);
7131
+ }
7132
+ if (output["ResourceAction"] !== undefined) {
7133
+ contents.ResourceAction = __expectString(output["ResourceAction"]);
7134
+ }
7135
+ return contents;
7136
+ };
7137
+ var deserializeAws_queryChangeSetHooks = function (output, context) {
7138
+ return (output || [])
7139
+ .filter(function (e) { return e != null; })
7140
+ .map(function (entry) {
7141
+ if (entry === null) {
7142
+ return null;
7143
+ }
7144
+ return deserializeAws_queryChangeSetHook(entry, context);
7145
+ });
7146
+ };
7147
+ var deserializeAws_queryChangeSetHookTargetDetails = function (output, context) {
7148
+ var contents = {
7149
+ TargetType: undefined,
7150
+ ResourceTargetDetails: undefined,
7151
+ };
7152
+ if (output["TargetType"] !== undefined) {
7153
+ contents.TargetType = __expectString(output["TargetType"]);
7154
+ }
7155
+ if (output["ResourceTargetDetails"] !== undefined) {
7156
+ contents.ResourceTargetDetails = deserializeAws_queryChangeSetHookResourceTargetDetails(output["ResourceTargetDetails"], context);
7157
+ }
7158
+ return contents;
7159
+ };
7005
7160
  var deserializeAws_queryChangeSetNotFoundException = function (output, context) {
7006
7161
  var contents = {
7007
7162
  Message: undefined,
@@ -7191,6 +7346,42 @@ var deserializeAws_queryDescribeAccountLimitsOutput = function (output, context)
7191
7346
  }
7192
7347
  return contents;
7193
7348
  };
7349
+ var deserializeAws_queryDescribeChangeSetHooksOutput = function (output, context) {
7350
+ var contents = {
7351
+ ChangeSetId: undefined,
7352
+ ChangeSetName: undefined,
7353
+ Hooks: undefined,
7354
+ Status: undefined,
7355
+ NextToken: undefined,
7356
+ StackId: undefined,
7357
+ StackName: undefined,
7358
+ };
7359
+ if (output["ChangeSetId"] !== undefined) {
7360
+ contents.ChangeSetId = __expectString(output["ChangeSetId"]);
7361
+ }
7362
+ if (output["ChangeSetName"] !== undefined) {
7363
+ contents.ChangeSetName = __expectString(output["ChangeSetName"]);
7364
+ }
7365
+ if (output.Hooks === "") {
7366
+ contents.Hooks = [];
7367
+ }
7368
+ if (output["Hooks"] !== undefined && output["Hooks"]["member"] !== undefined) {
7369
+ contents.Hooks = deserializeAws_queryChangeSetHooks(__getArrayIfSingleItem(output["Hooks"]["member"]), context);
7370
+ }
7371
+ if (output["Status"] !== undefined) {
7372
+ contents.Status = __expectString(output["Status"]);
7373
+ }
7374
+ if (output["NextToken"] !== undefined) {
7375
+ contents.NextToken = __expectString(output["NextToken"]);
7376
+ }
7377
+ if (output["StackId"] !== undefined) {
7378
+ contents.StackId = __expectString(output["StackId"]);
7379
+ }
7380
+ if (output["StackName"] !== undefined) {
7381
+ contents.StackName = __expectString(output["StackName"]);
7382
+ }
7383
+ return contents;
7384
+ };
7194
7385
  var deserializeAws_queryDescribeChangeSetOutput = function (output, context) {
7195
7386
  var contents = {
7196
7387
  ChangeSetName: undefined,
@@ -8707,6 +8898,11 @@ var deserializeAws_queryStackEvent = function (output, context) {
8707
8898
  ResourceStatusReason: undefined,
8708
8899
  ResourceProperties: undefined,
8709
8900
  ClientRequestToken: undefined,
8901
+ HookType: undefined,
8902
+ HookStatus: undefined,
8903
+ HookStatusReason: undefined,
8904
+ HookInvocationPoint: undefined,
8905
+ HookFailureMode: undefined,
8710
8906
  };
8711
8907
  if (output["StackId"] !== undefined) {
8712
8908
  contents.StackId = __expectString(output["StackId"]);
@@ -8741,6 +8937,21 @@ var deserializeAws_queryStackEvent = function (output, context) {
8741
8937
  if (output["ClientRequestToken"] !== undefined) {
8742
8938
  contents.ClientRequestToken = __expectString(output["ClientRequestToken"]);
8743
8939
  }
8940
+ if (output["HookType"] !== undefined) {
8941
+ contents.HookType = __expectString(output["HookType"]);
8942
+ }
8943
+ if (output["HookStatus"] !== undefined) {
8944
+ contents.HookStatus = __expectString(output["HookStatus"]);
8945
+ }
8946
+ if (output["HookStatusReason"] !== undefined) {
8947
+ contents.HookStatusReason = __expectString(output["HookStatusReason"]);
8948
+ }
8949
+ if (output["HookInvocationPoint"] !== undefined) {
8950
+ contents.HookInvocationPoint = __expectString(output["HookInvocationPoint"]);
8951
+ }
8952
+ if (output["HookFailureMode"] !== undefined) {
8953
+ contents.HookFailureMode = __expectString(output["HookFailureMode"]);
8954
+ }
8744
8955
  return contents;
8745
8956
  };
8746
8957
  var deserializeAws_queryStackEvents = function (output, context) {