@aws-sdk/client-cloudformation 3.51.0 → 3.54.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/CHANGELOG.md +30 -0
- package/README.md +10 -10
- package/dist-cjs/CloudFormation.js +15 -0
- package/dist-cjs/commands/DescribeChangeSetHooksCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/CloudFormationServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +374 -5
- package/dist-cjs/protocols/Aws_query.js +622 -1350
- package/dist-es/CloudFormation.js +15 -0
- package/dist-es/commands/DescribeChangeSetHooksCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/CloudFormationServiceException.js +12 -0
- package/dist-es/models/models_0.js +338 -1
- package/dist-es/protocols/Aws_query.js +1166 -1418
- package/dist-types/CloudFormation.d.ts +134 -130
- package/dist-types/CloudFormationClient.d.ts +15 -14
- package/dist-types/commands/ActivateTypeCommand.d.ts +1 -2
- package/dist-types/commands/BatchDescribeTypeConfigurationsCommand.d.ts +2 -2
- package/dist-types/commands/CancelUpdateStackCommand.d.ts +2 -1
- package/dist-types/commands/ContinueUpdateRollbackCommand.d.ts +8 -8
- package/dist-types/commands/CreateChangeSetCommand.d.ts +6 -7
- package/dist-types/commands/CreateStackCommand.d.ts +1 -1
- package/dist-types/commands/CreateStackInstancesCommand.d.ts +4 -4
- package/dist-types/commands/DeactivateTypeCommand.d.ts +3 -3
- package/dist-types/commands/DeleteChangeSetCommand.d.ts +2 -2
- package/dist-types/commands/DeleteStackCommand.d.ts +2 -2
- package/dist-types/commands/DeleteStackInstancesCommand.d.ts +1 -1
- package/dist-types/commands/DeregisterTypeCommand.d.ts +3 -3
- package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +3 -3
- package/dist-types/commands/DescribeChangeSetCommand.d.ts +2 -3
- package/dist-types/commands/DescribeChangeSetHooksCommand.d.ts +35 -0
- package/dist-types/commands/DescribePublisherCommand.d.ts +3 -4
- package/dist-types/commands/DescribeStackEventsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeStackResourceDriftsCommand.d.ts +2 -2
- package/dist-types/commands/DescribeStackSetCommand.d.ts +1 -1
- package/dist-types/commands/DescribeStackSetOperationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeStacksCommand.d.ts +1 -1
- package/dist-types/commands/DetectStackDriftCommand.d.ts +1 -1
- package/dist-types/commands/DetectStackResourceDriftCommand.d.ts +1 -1
- package/dist-types/commands/DetectStackSetDriftCommand.d.ts +7 -6
- package/dist-types/commands/ExecuteChangeSetCommand.d.ts +7 -7
- package/dist-types/commands/GetTemplateCommand.d.ts +3 -3
- package/dist-types/commands/GetTemplateSummaryCommand.d.ts +1 -1
- package/dist-types/commands/ImportStacksToStackSetCommand.d.ts +9 -6
- package/dist-types/commands/ListExportsCommand.d.ts +1 -1
- package/dist-types/commands/ListStackSetOperationResultsCommand.d.ts +1 -1
- package/dist-types/commands/ListStackSetOperationsCommand.d.ts +1 -1
- package/dist-types/commands/ListStackSetsCommand.d.ts +2 -3
- package/dist-types/commands/PublishTypeCommand.d.ts +4 -6
- package/dist-types/commands/RecordHandlerProgressCommand.d.ts +1 -1
- package/dist-types/commands/RegisterPublisherCommand.d.ts +4 -4
- package/dist-types/commands/RegisterTypeCommand.d.ts +5 -6
- package/dist-types/commands/RollbackStackCommand.d.ts +1 -1
- package/dist-types/commands/SetTypeConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/SignalResourceCommand.d.ts +2 -2
- package/dist-types/commands/StopStackSetOperationCommand.d.ts +1 -1
- package/dist-types/commands/TestTypeCommand.d.ts +4 -5
- package/dist-types/commands/UpdateStackCommand.d.ts +1 -1
- package/dist-types/commands/UpdateStackInstancesCommand.d.ts +6 -5
- package/dist-types/commands/UpdateStackSetCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CloudFormationServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +1165 -800
- package/dist-types/protocols/Aws_query.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CloudFormation.d.ts +5 -0
- package/dist-types/ts3.4/CloudFormationClient.d.ts +5 -4
- package/dist-types/ts3.4/commands/DescribeChangeSetHooksCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/CloudFormationServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +228 -69
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +34 -34
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_queryValidateTemplateCommand = exports.deserializeAws_queryUpdateTerminationProtectionCommand = exports.deserializeAws_queryUpdateStackSetCommand = exports.deserializeAws_queryUpdateStackInstancesCommand = exports.deserializeAws_queryUpdateStackCommand = exports.deserializeAws_queryTestTypeCommand = exports.deserializeAws_queryStopStackSetOperationCommand = exports.deserializeAws_querySignalResourceCommand = exports.deserializeAws_querySetTypeDefaultVersionCommand = exports.deserializeAws_querySetTypeConfigurationCommand = exports.deserializeAws_querySetStackPolicyCommand = exports.deserializeAws_queryRollbackStackCommand = exports.deserializeAws_queryRegisterTypeCommand = exports.deserializeAws_queryRegisterPublisherCommand = exports.deserializeAws_queryRecordHandlerProgressCommand = exports.deserializeAws_queryPublishTypeCommand = exports.deserializeAws_queryListTypeVersionsCommand = exports.deserializeAws_queryListTypesCommand = exports.deserializeAws_queryListTypeRegistrationsCommand = exports.deserializeAws_queryListStackSetsCommand = exports.deserializeAws_queryListStackSetOperationsCommand = exports.deserializeAws_queryListStackSetOperationResultsCommand = exports.deserializeAws_queryListStacksCommand = exports.deserializeAws_queryListStackResourcesCommand = exports.deserializeAws_queryListStackInstancesCommand = exports.deserializeAws_queryListImportsCommand = exports.deserializeAws_queryListExportsCommand = exports.deserializeAws_queryListChangeSetsCommand = exports.deserializeAws_queryImportStacksToStackSetCommand = exports.deserializeAws_queryGetTemplateSummaryCommand = void 0;
|
|
3
|
+
exports.serializeAws_queryListTypeVersionsCommand = exports.serializeAws_queryListTypesCommand = exports.serializeAws_queryListTypeRegistrationsCommand = exports.serializeAws_queryListStackSetsCommand = exports.serializeAws_queryListStackSetOperationsCommand = exports.serializeAws_queryListStackSetOperationResultsCommand = exports.serializeAws_queryListStacksCommand = exports.serializeAws_queryListStackResourcesCommand = exports.serializeAws_queryListStackInstancesCommand = exports.serializeAws_queryListImportsCommand = exports.serializeAws_queryListExportsCommand = exports.serializeAws_queryListChangeSetsCommand = exports.serializeAws_queryImportStacksToStackSetCommand = exports.serializeAws_queryGetTemplateSummaryCommand = exports.serializeAws_queryGetTemplateCommand = exports.serializeAws_queryGetStackPolicyCommand = exports.serializeAws_queryExecuteChangeSetCommand = exports.serializeAws_queryEstimateTemplateCostCommand = exports.serializeAws_queryDetectStackSetDriftCommand = exports.serializeAws_queryDetectStackResourceDriftCommand = exports.serializeAws_queryDetectStackDriftCommand = exports.serializeAws_queryDescribeTypeRegistrationCommand = exports.serializeAws_queryDescribeTypeCommand = exports.serializeAws_queryDescribeStackSetOperationCommand = exports.serializeAws_queryDescribeStackSetCommand = exports.serializeAws_queryDescribeStacksCommand = exports.serializeAws_queryDescribeStackResourcesCommand = exports.serializeAws_queryDescribeStackResourceDriftsCommand = exports.serializeAws_queryDescribeStackResourceCommand = exports.serializeAws_queryDescribeStackInstanceCommand = exports.serializeAws_queryDescribeStackEventsCommand = exports.serializeAws_queryDescribeStackDriftDetectionStatusCommand = exports.serializeAws_queryDescribePublisherCommand = exports.serializeAws_queryDescribeChangeSetHooksCommand = exports.serializeAws_queryDescribeChangeSetCommand = exports.serializeAws_queryDescribeAccountLimitsCommand = exports.serializeAws_queryDeregisterTypeCommand = exports.serializeAws_queryDeleteStackSetCommand = exports.serializeAws_queryDeleteStackInstancesCommand = exports.serializeAws_queryDeleteStackCommand = exports.serializeAws_queryDeleteChangeSetCommand = exports.serializeAws_queryDeactivateTypeCommand = exports.serializeAws_queryCreateStackSetCommand = exports.serializeAws_queryCreateStackInstancesCommand = exports.serializeAws_queryCreateStackCommand = exports.serializeAws_queryCreateChangeSetCommand = exports.serializeAws_queryContinueUpdateRollbackCommand = exports.serializeAws_queryCancelUpdateStackCommand = exports.serializeAws_queryBatchDescribeTypeConfigurationsCommand = exports.serializeAws_queryActivateTypeCommand = void 0;
|
|
4
|
+
exports.deserializeAws_queryExecuteChangeSetCommand = exports.deserializeAws_queryEstimateTemplateCostCommand = exports.deserializeAws_queryDetectStackSetDriftCommand = exports.deserializeAws_queryDetectStackResourceDriftCommand = exports.deserializeAws_queryDetectStackDriftCommand = exports.deserializeAws_queryDescribeTypeRegistrationCommand = exports.deserializeAws_queryDescribeTypeCommand = exports.deserializeAws_queryDescribeStackSetOperationCommand = exports.deserializeAws_queryDescribeStackSetCommand = exports.deserializeAws_queryDescribeStacksCommand = exports.deserializeAws_queryDescribeStackResourcesCommand = exports.deserializeAws_queryDescribeStackResourceDriftsCommand = exports.deserializeAws_queryDescribeStackResourceCommand = exports.deserializeAws_queryDescribeStackInstanceCommand = exports.deserializeAws_queryDescribeStackEventsCommand = exports.deserializeAws_queryDescribeStackDriftDetectionStatusCommand = exports.deserializeAws_queryDescribePublisherCommand = exports.deserializeAws_queryDescribeChangeSetHooksCommand = exports.deserializeAws_queryDescribeChangeSetCommand = exports.deserializeAws_queryDescribeAccountLimitsCommand = exports.deserializeAws_queryDeregisterTypeCommand = exports.deserializeAws_queryDeleteStackSetCommand = exports.deserializeAws_queryDeleteStackInstancesCommand = exports.deserializeAws_queryDeleteStackCommand = exports.deserializeAws_queryDeleteChangeSetCommand = exports.deserializeAws_queryDeactivateTypeCommand = exports.deserializeAws_queryCreateStackSetCommand = exports.deserializeAws_queryCreateStackInstancesCommand = exports.deserializeAws_queryCreateStackCommand = exports.deserializeAws_queryCreateChangeSetCommand = exports.deserializeAws_queryContinueUpdateRollbackCommand = exports.deserializeAws_queryCancelUpdateStackCommand = exports.deserializeAws_queryBatchDescribeTypeConfigurationsCommand = exports.deserializeAws_queryActivateTypeCommand = exports.serializeAws_queryValidateTemplateCommand = exports.serializeAws_queryUpdateTerminationProtectionCommand = exports.serializeAws_queryUpdateStackSetCommand = exports.serializeAws_queryUpdateStackInstancesCommand = exports.serializeAws_queryUpdateStackCommand = exports.serializeAws_queryTestTypeCommand = exports.serializeAws_queryStopStackSetOperationCommand = exports.serializeAws_querySignalResourceCommand = exports.serializeAws_querySetTypeDefaultVersionCommand = exports.serializeAws_querySetTypeConfigurationCommand = exports.serializeAws_querySetStackPolicyCommand = exports.serializeAws_queryRollbackStackCommand = exports.serializeAws_queryRegisterTypeCommand = exports.serializeAws_queryRegisterPublisherCommand = exports.serializeAws_queryRecordHandlerProgressCommand = exports.serializeAws_queryPublishTypeCommand = void 0;
|
|
5
|
+
exports.deserializeAws_queryValidateTemplateCommand = exports.deserializeAws_queryUpdateTerminationProtectionCommand = exports.deserializeAws_queryUpdateStackSetCommand = exports.deserializeAws_queryUpdateStackInstancesCommand = exports.deserializeAws_queryUpdateStackCommand = exports.deserializeAws_queryTestTypeCommand = exports.deserializeAws_queryStopStackSetOperationCommand = exports.deserializeAws_querySignalResourceCommand = exports.deserializeAws_querySetTypeDefaultVersionCommand = exports.deserializeAws_querySetTypeConfigurationCommand = exports.deserializeAws_querySetStackPolicyCommand = exports.deserializeAws_queryRollbackStackCommand = exports.deserializeAws_queryRegisterTypeCommand = exports.deserializeAws_queryRegisterPublisherCommand = exports.deserializeAws_queryRecordHandlerProgressCommand = exports.deserializeAws_queryPublishTypeCommand = exports.deserializeAws_queryListTypeVersionsCommand = exports.deserializeAws_queryListTypesCommand = exports.deserializeAws_queryListTypeRegistrationsCommand = exports.deserializeAws_queryListStackSetsCommand = exports.deserializeAws_queryListStackSetOperationsCommand = exports.deserializeAws_queryListStackSetOperationResultsCommand = exports.deserializeAws_queryListStacksCommand = exports.deserializeAws_queryListStackResourcesCommand = exports.deserializeAws_queryListStackInstancesCommand = exports.deserializeAws_queryListImportsCommand = exports.deserializeAws_queryListExportsCommand = exports.deserializeAws_queryListChangeSetsCommand = exports.deserializeAws_queryImportStacksToStackSetCommand = exports.deserializeAws_queryGetTemplateSummaryCommand = exports.deserializeAws_queryGetTemplateCommand = exports.deserializeAws_queryGetStackPolicyCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const entities_1 = require("entities");
|
|
9
9
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
10
10
|
const uuid_1 = require("uuid");
|
|
11
|
+
const CloudFormationServiceException_1 = require("../models/CloudFormationServiceException");
|
|
12
|
+
const models_0_1 = require("../models/models_0");
|
|
11
13
|
const serializeAws_queryActivateTypeCommand = async (input, context) => {
|
|
12
14
|
const headers = {
|
|
13
15
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -216,6 +218,19 @@ const serializeAws_queryDescribeChangeSetCommand = async (input, context) => {
|
|
|
216
218
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
219
|
};
|
|
218
220
|
exports.serializeAws_queryDescribeChangeSetCommand = serializeAws_queryDescribeChangeSetCommand;
|
|
221
|
+
const serializeAws_queryDescribeChangeSetHooksCommand = async (input, context) => {
|
|
222
|
+
const headers = {
|
|
223
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
224
|
+
};
|
|
225
|
+
let body;
|
|
226
|
+
body = buildFormUrlencodedString({
|
|
227
|
+
...serializeAws_queryDescribeChangeSetHooksInput(input, context),
|
|
228
|
+
Action: "DescribeChangeSetHooks",
|
|
229
|
+
Version: "2010-05-15",
|
|
230
|
+
});
|
|
231
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
|
+
};
|
|
233
|
+
exports.serializeAws_queryDescribeChangeSetHooksCommand = serializeAws_queryDescribeChangeSetHooksCommand;
|
|
219
234
|
const serializeAws_queryDescribePublisherCommand = async (input, context) => {
|
|
220
235
|
const headers = {
|
|
221
236
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -878,35 +893,19 @@ const deserializeAws_queryActivateTypeCommandError = async (output, context) =>
|
|
|
878
893
|
switch (errorCode) {
|
|
879
894
|
case "CFNRegistryException":
|
|
880
895
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
881
|
-
|
|
882
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
883
|
-
name: errorCode,
|
|
884
|
-
$metadata: deserializeMetadata(output),
|
|
885
|
-
};
|
|
886
|
-
break;
|
|
896
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
887
897
|
case "TypeNotFoundException":
|
|
888
898
|
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
|
889
|
-
|
|
890
|
-
...(await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
891
|
-
name: errorCode,
|
|
892
|
-
$metadata: deserializeMetadata(output),
|
|
893
|
-
};
|
|
894
|
-
break;
|
|
899
|
+
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
895
900
|
default:
|
|
896
901
|
const parsedBody = parsedOutput.body;
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
...parsedBody.Error,
|
|
900
|
-
name: `${errorCode}`,
|
|
901
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
902
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
903
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
902
904
|
$fault: "client",
|
|
903
905
|
$metadata: deserializeMetadata(output),
|
|
904
|
-
};
|
|
906
|
+
});
|
|
907
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
905
908
|
}
|
|
906
|
-
const message = response.message || response.Message || errorCode;
|
|
907
|
-
response.message = message;
|
|
908
|
-
delete response.Message;
|
|
909
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
910
909
|
};
|
|
911
910
|
const deserializeAws_queryBatchDescribeTypeConfigurationsCommand = async (output, context) => {
|
|
912
911
|
if (output.statusCode >= 300) {
|
|
@@ -933,35 +932,19 @@ const deserializeAws_queryBatchDescribeTypeConfigurationsCommandError = async (o
|
|
|
933
932
|
switch (errorCode) {
|
|
934
933
|
case "CFNRegistryException":
|
|
935
934
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
936
|
-
|
|
937
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
938
|
-
name: errorCode,
|
|
939
|
-
$metadata: deserializeMetadata(output),
|
|
940
|
-
};
|
|
941
|
-
break;
|
|
935
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
942
936
|
case "TypeConfigurationNotFoundException":
|
|
943
937
|
case "com.amazonaws.cloudformation#TypeConfigurationNotFoundException":
|
|
944
|
-
|
|
945
|
-
...(await deserializeAws_queryTypeConfigurationNotFoundExceptionResponse(parsedOutput, context)),
|
|
946
|
-
name: errorCode,
|
|
947
|
-
$metadata: deserializeMetadata(output),
|
|
948
|
-
};
|
|
949
|
-
break;
|
|
938
|
+
throw await deserializeAws_queryTypeConfigurationNotFoundExceptionResponse(parsedOutput, context);
|
|
950
939
|
default:
|
|
951
940
|
const parsedBody = parsedOutput.body;
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
...parsedBody.Error,
|
|
955
|
-
name: `${errorCode}`,
|
|
956
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
941
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
942
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
957
943
|
$fault: "client",
|
|
958
944
|
$metadata: deserializeMetadata(output),
|
|
959
|
-
};
|
|
945
|
+
});
|
|
946
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
960
947
|
}
|
|
961
|
-
const message = response.message || response.Message || errorCode;
|
|
962
|
-
response.message = message;
|
|
963
|
-
delete response.Message;
|
|
964
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
965
948
|
};
|
|
966
949
|
const deserializeAws_queryCancelUpdateStackCommand = async (output, context) => {
|
|
967
950
|
if (output.statusCode >= 300) {
|
|
@@ -985,27 +968,16 @@ const deserializeAws_queryCancelUpdateStackCommandError = async (output, context
|
|
|
985
968
|
switch (errorCode) {
|
|
986
969
|
case "TokenAlreadyExistsException":
|
|
987
970
|
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
|
988
|
-
|
|
989
|
-
...(await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
990
|
-
name: errorCode,
|
|
991
|
-
$metadata: deserializeMetadata(output),
|
|
992
|
-
};
|
|
993
|
-
break;
|
|
971
|
+
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
994
972
|
default:
|
|
995
973
|
const parsedBody = parsedOutput.body;
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
...parsedBody.Error,
|
|
999
|
-
name: `${errorCode}`,
|
|
1000
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
974
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
975
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1001
976
|
$fault: "client",
|
|
1002
977
|
$metadata: deserializeMetadata(output),
|
|
1003
|
-
};
|
|
978
|
+
});
|
|
979
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1004
980
|
}
|
|
1005
|
-
const message = response.message || response.Message || errorCode;
|
|
1006
|
-
response.message = message;
|
|
1007
|
-
delete response.Message;
|
|
1008
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1009
981
|
};
|
|
1010
982
|
const deserializeAws_queryContinueUpdateRollbackCommand = async (output, context) => {
|
|
1011
983
|
if (output.statusCode >= 300) {
|
|
@@ -1032,27 +1004,16 @@ const deserializeAws_queryContinueUpdateRollbackCommandError = async (output, co
|
|
|
1032
1004
|
switch (errorCode) {
|
|
1033
1005
|
case "TokenAlreadyExistsException":
|
|
1034
1006
|
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
|
1035
|
-
|
|
1036
|
-
...(await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1037
|
-
name: errorCode,
|
|
1038
|
-
$metadata: deserializeMetadata(output),
|
|
1039
|
-
};
|
|
1040
|
-
break;
|
|
1007
|
+
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1041
1008
|
default:
|
|
1042
1009
|
const parsedBody = parsedOutput.body;
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
...parsedBody.Error,
|
|
1046
|
-
name: `${errorCode}`,
|
|
1047
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1010
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1011
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1048
1012
|
$fault: "client",
|
|
1049
1013
|
$metadata: deserializeMetadata(output),
|
|
1050
|
-
};
|
|
1014
|
+
});
|
|
1015
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1051
1016
|
}
|
|
1052
|
-
const message = response.message || response.Message || errorCode;
|
|
1053
|
-
response.message = message;
|
|
1054
|
-
delete response.Message;
|
|
1055
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1056
1017
|
};
|
|
1057
1018
|
const deserializeAws_queryCreateChangeSetCommand = async (output, context) => {
|
|
1058
1019
|
if (output.statusCode >= 300) {
|
|
@@ -1079,43 +1040,22 @@ const deserializeAws_queryCreateChangeSetCommandError = async (output, context)
|
|
|
1079
1040
|
switch (errorCode) {
|
|
1080
1041
|
case "AlreadyExistsException":
|
|
1081
1042
|
case "com.amazonaws.cloudformation#AlreadyExistsException":
|
|
1082
|
-
|
|
1083
|
-
...(await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1084
|
-
name: errorCode,
|
|
1085
|
-
$metadata: deserializeMetadata(output),
|
|
1086
|
-
};
|
|
1087
|
-
break;
|
|
1043
|
+
throw await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1088
1044
|
case "InsufficientCapabilitiesException":
|
|
1089
1045
|
case "com.amazonaws.cloudformation#InsufficientCapabilitiesException":
|
|
1090
|
-
|
|
1091
|
-
...(await deserializeAws_queryInsufficientCapabilitiesExceptionResponse(parsedOutput, context)),
|
|
1092
|
-
name: errorCode,
|
|
1093
|
-
$metadata: deserializeMetadata(output),
|
|
1094
|
-
};
|
|
1095
|
-
break;
|
|
1046
|
+
throw await deserializeAws_queryInsufficientCapabilitiesExceptionResponse(parsedOutput, context);
|
|
1096
1047
|
case "LimitExceededException":
|
|
1097
1048
|
case "com.amazonaws.cloudformation#LimitExceededException":
|
|
1098
|
-
|
|
1099
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1100
|
-
name: errorCode,
|
|
1101
|
-
$metadata: deserializeMetadata(output),
|
|
1102
|
-
};
|
|
1103
|
-
break;
|
|
1049
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1104
1050
|
default:
|
|
1105
1051
|
const parsedBody = parsedOutput.body;
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
...parsedBody.Error,
|
|
1109
|
-
name: `${errorCode}`,
|
|
1110
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1052
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1053
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1111
1054
|
$fault: "client",
|
|
1112
1055
|
$metadata: deserializeMetadata(output),
|
|
1113
|
-
};
|
|
1056
|
+
});
|
|
1057
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1114
1058
|
}
|
|
1115
|
-
const message = response.message || response.Message || errorCode;
|
|
1116
|
-
response.message = message;
|
|
1117
|
-
delete response.Message;
|
|
1118
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1119
1059
|
};
|
|
1120
1060
|
const deserializeAws_queryCreateStackCommand = async (output, context) => {
|
|
1121
1061
|
if (output.statusCode >= 300) {
|
|
@@ -1142,51 +1082,25 @@ const deserializeAws_queryCreateStackCommandError = async (output, context) => {
|
|
|
1142
1082
|
switch (errorCode) {
|
|
1143
1083
|
case "AlreadyExistsException":
|
|
1144
1084
|
case "com.amazonaws.cloudformation#AlreadyExistsException":
|
|
1145
|
-
|
|
1146
|
-
...(await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1147
|
-
name: errorCode,
|
|
1148
|
-
$metadata: deserializeMetadata(output),
|
|
1149
|
-
};
|
|
1150
|
-
break;
|
|
1085
|
+
throw await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1151
1086
|
case "InsufficientCapabilitiesException":
|
|
1152
1087
|
case "com.amazonaws.cloudformation#InsufficientCapabilitiesException":
|
|
1153
|
-
|
|
1154
|
-
...(await deserializeAws_queryInsufficientCapabilitiesExceptionResponse(parsedOutput, context)),
|
|
1155
|
-
name: errorCode,
|
|
1156
|
-
$metadata: deserializeMetadata(output),
|
|
1157
|
-
};
|
|
1158
|
-
break;
|
|
1088
|
+
throw await deserializeAws_queryInsufficientCapabilitiesExceptionResponse(parsedOutput, context);
|
|
1159
1089
|
case "LimitExceededException":
|
|
1160
1090
|
case "com.amazonaws.cloudformation#LimitExceededException":
|
|
1161
|
-
|
|
1162
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1163
|
-
name: errorCode,
|
|
1164
|
-
$metadata: deserializeMetadata(output),
|
|
1165
|
-
};
|
|
1166
|
-
break;
|
|
1091
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1167
1092
|
case "TokenAlreadyExistsException":
|
|
1168
1093
|
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
|
1169
|
-
|
|
1170
|
-
...(await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1171
|
-
name: errorCode,
|
|
1172
|
-
$metadata: deserializeMetadata(output),
|
|
1173
|
-
};
|
|
1174
|
-
break;
|
|
1094
|
+
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1175
1095
|
default:
|
|
1176
1096
|
const parsedBody = parsedOutput.body;
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
...parsedBody.Error,
|
|
1180
|
-
name: `${errorCode}`,
|
|
1181
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1097
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1098
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1182
1099
|
$fault: "client",
|
|
1183
1100
|
$metadata: deserializeMetadata(output),
|
|
1184
|
-
};
|
|
1101
|
+
});
|
|
1102
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1185
1103
|
}
|
|
1186
|
-
const message = response.message || response.Message || errorCode;
|
|
1187
|
-
response.message = message;
|
|
1188
|
-
delete response.Message;
|
|
1189
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1190
1104
|
};
|
|
1191
1105
|
const deserializeAws_queryCreateStackInstancesCommand = async (output, context) => {
|
|
1192
1106
|
if (output.statusCode >= 300) {
|
|
@@ -1213,67 +1127,31 @@ const deserializeAws_queryCreateStackInstancesCommandError = async (output, cont
|
|
|
1213
1127
|
switch (errorCode) {
|
|
1214
1128
|
case "InvalidOperationException":
|
|
1215
1129
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
1216
|
-
|
|
1217
|
-
...(await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context)),
|
|
1218
|
-
name: errorCode,
|
|
1219
|
-
$metadata: deserializeMetadata(output),
|
|
1220
|
-
};
|
|
1221
|
-
break;
|
|
1130
|
+
throw await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context);
|
|
1222
1131
|
case "LimitExceededException":
|
|
1223
1132
|
case "com.amazonaws.cloudformation#LimitExceededException":
|
|
1224
|
-
|
|
1225
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1226
|
-
name: errorCode,
|
|
1227
|
-
$metadata: deserializeMetadata(output),
|
|
1228
|
-
};
|
|
1229
|
-
break;
|
|
1133
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1230
1134
|
case "OperationIdAlreadyExistsException":
|
|
1231
1135
|
case "com.amazonaws.cloudformation#OperationIdAlreadyExistsException":
|
|
1232
|
-
|
|
1233
|
-
...(await deserializeAws_queryOperationIdAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1234
|
-
name: errorCode,
|
|
1235
|
-
$metadata: deserializeMetadata(output),
|
|
1236
|
-
};
|
|
1237
|
-
break;
|
|
1136
|
+
throw await deserializeAws_queryOperationIdAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1238
1137
|
case "OperationInProgressException":
|
|
1239
1138
|
case "com.amazonaws.cloudformation#OperationInProgressException":
|
|
1240
|
-
|
|
1241
|
-
...(await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context)),
|
|
1242
|
-
name: errorCode,
|
|
1243
|
-
$metadata: deserializeMetadata(output),
|
|
1244
|
-
};
|
|
1245
|
-
break;
|
|
1139
|
+
throw await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context);
|
|
1246
1140
|
case "StackSetNotFoundException":
|
|
1247
1141
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
1248
|
-
|
|
1249
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
1250
|
-
name: errorCode,
|
|
1251
|
-
$metadata: deserializeMetadata(output),
|
|
1252
|
-
};
|
|
1253
|
-
break;
|
|
1142
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
1254
1143
|
case "StaleRequestException":
|
|
1255
1144
|
case "com.amazonaws.cloudformation#StaleRequestException":
|
|
1256
|
-
|
|
1257
|
-
...(await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context)),
|
|
1258
|
-
name: errorCode,
|
|
1259
|
-
$metadata: deserializeMetadata(output),
|
|
1260
|
-
};
|
|
1261
|
-
break;
|
|
1145
|
+
throw await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context);
|
|
1262
1146
|
default:
|
|
1263
1147
|
const parsedBody = parsedOutput.body;
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
...parsedBody.Error,
|
|
1267
|
-
name: `${errorCode}`,
|
|
1268
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1148
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1149
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1269
1150
|
$fault: "client",
|
|
1270
1151
|
$metadata: deserializeMetadata(output),
|
|
1271
|
-
};
|
|
1152
|
+
});
|
|
1153
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1272
1154
|
}
|
|
1273
|
-
const message = response.message || response.Message || errorCode;
|
|
1274
|
-
response.message = message;
|
|
1275
|
-
delete response.Message;
|
|
1276
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1277
1155
|
};
|
|
1278
1156
|
const deserializeAws_queryCreateStackSetCommand = async (output, context) => {
|
|
1279
1157
|
if (output.statusCode >= 300) {
|
|
@@ -1300,43 +1178,22 @@ const deserializeAws_queryCreateStackSetCommandError = async (output, context) =
|
|
|
1300
1178
|
switch (errorCode) {
|
|
1301
1179
|
case "CreatedButModifiedException":
|
|
1302
1180
|
case "com.amazonaws.cloudformation#CreatedButModifiedException":
|
|
1303
|
-
|
|
1304
|
-
...(await deserializeAws_queryCreatedButModifiedExceptionResponse(parsedOutput, context)),
|
|
1305
|
-
name: errorCode,
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
};
|
|
1308
|
-
break;
|
|
1181
|
+
throw await deserializeAws_queryCreatedButModifiedExceptionResponse(parsedOutput, context);
|
|
1309
1182
|
case "LimitExceededException":
|
|
1310
1183
|
case "com.amazonaws.cloudformation#LimitExceededException":
|
|
1311
|
-
|
|
1312
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1313
|
-
name: errorCode,
|
|
1314
|
-
$metadata: deserializeMetadata(output),
|
|
1315
|
-
};
|
|
1316
|
-
break;
|
|
1184
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1317
1185
|
case "NameAlreadyExistsException":
|
|
1318
1186
|
case "com.amazonaws.cloudformation#NameAlreadyExistsException":
|
|
1319
|
-
|
|
1320
|
-
...(await deserializeAws_queryNameAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1321
|
-
name: errorCode,
|
|
1322
|
-
$metadata: deserializeMetadata(output),
|
|
1323
|
-
};
|
|
1324
|
-
break;
|
|
1187
|
+
throw await deserializeAws_queryNameAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1325
1188
|
default:
|
|
1326
1189
|
const parsedBody = parsedOutput.body;
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
...parsedBody.Error,
|
|
1330
|
-
name: `${errorCode}`,
|
|
1331
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1190
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1191
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1332
1192
|
$fault: "client",
|
|
1333
1193
|
$metadata: deserializeMetadata(output),
|
|
1334
|
-
};
|
|
1194
|
+
});
|
|
1195
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1335
1196
|
}
|
|
1336
|
-
const message = response.message || response.Message || errorCode;
|
|
1337
|
-
response.message = message;
|
|
1338
|
-
delete response.Message;
|
|
1339
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1340
1197
|
};
|
|
1341
1198
|
const deserializeAws_queryDeactivateTypeCommand = async (output, context) => {
|
|
1342
1199
|
if (output.statusCode >= 300) {
|
|
@@ -1363,35 +1220,19 @@ const deserializeAws_queryDeactivateTypeCommandError = async (output, context) =
|
|
|
1363
1220
|
switch (errorCode) {
|
|
1364
1221
|
case "CFNRegistryException":
|
|
1365
1222
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
1366
|
-
|
|
1367
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
1368
|
-
name: errorCode,
|
|
1369
|
-
$metadata: deserializeMetadata(output),
|
|
1370
|
-
};
|
|
1371
|
-
break;
|
|
1223
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
1372
1224
|
case "TypeNotFoundException":
|
|
1373
1225
|
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
|
1374
|
-
|
|
1375
|
-
...(await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
1376
|
-
name: errorCode,
|
|
1377
|
-
$metadata: deserializeMetadata(output),
|
|
1378
|
-
};
|
|
1379
|
-
break;
|
|
1226
|
+
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
1380
1227
|
default:
|
|
1381
1228
|
const parsedBody = parsedOutput.body;
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
...parsedBody.Error,
|
|
1385
|
-
name: `${errorCode}`,
|
|
1386
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1229
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1230
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1387
1231
|
$fault: "client",
|
|
1388
1232
|
$metadata: deserializeMetadata(output),
|
|
1389
|
-
};
|
|
1233
|
+
});
|
|
1234
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1390
1235
|
}
|
|
1391
|
-
const message = response.message || response.Message || errorCode;
|
|
1392
|
-
response.message = message;
|
|
1393
|
-
delete response.Message;
|
|
1394
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1395
1236
|
};
|
|
1396
1237
|
const deserializeAws_queryDeleteChangeSetCommand = async (output, context) => {
|
|
1397
1238
|
if (output.statusCode >= 300) {
|
|
@@ -1418,27 +1259,16 @@ const deserializeAws_queryDeleteChangeSetCommandError = async (output, context)
|
|
|
1418
1259
|
switch (errorCode) {
|
|
1419
1260
|
case "InvalidChangeSetStatusException":
|
|
1420
1261
|
case "com.amazonaws.cloudformation#InvalidChangeSetStatusException":
|
|
1421
|
-
|
|
1422
|
-
...(await deserializeAws_queryInvalidChangeSetStatusExceptionResponse(parsedOutput, context)),
|
|
1423
|
-
name: errorCode,
|
|
1424
|
-
$metadata: deserializeMetadata(output),
|
|
1425
|
-
};
|
|
1426
|
-
break;
|
|
1262
|
+
throw await deserializeAws_queryInvalidChangeSetStatusExceptionResponse(parsedOutput, context);
|
|
1427
1263
|
default:
|
|
1428
1264
|
const parsedBody = parsedOutput.body;
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
...parsedBody.Error,
|
|
1432
|
-
name: `${errorCode}`,
|
|
1433
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1265
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1266
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1434
1267
|
$fault: "client",
|
|
1435
1268
|
$metadata: deserializeMetadata(output),
|
|
1436
|
-
};
|
|
1269
|
+
});
|
|
1270
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1437
1271
|
}
|
|
1438
|
-
const message = response.message || response.Message || errorCode;
|
|
1439
|
-
response.message = message;
|
|
1440
|
-
delete response.Message;
|
|
1441
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1442
1272
|
};
|
|
1443
1273
|
const deserializeAws_queryDeleteStackCommand = async (output, context) => {
|
|
1444
1274
|
if (output.statusCode >= 300) {
|
|
@@ -1462,27 +1292,16 @@ const deserializeAws_queryDeleteStackCommandError = async (output, context) => {
|
|
|
1462
1292
|
switch (errorCode) {
|
|
1463
1293
|
case "TokenAlreadyExistsException":
|
|
1464
1294
|
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
|
1465
|
-
|
|
1466
|
-
...(await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1467
|
-
name: errorCode,
|
|
1468
|
-
$metadata: deserializeMetadata(output),
|
|
1469
|
-
};
|
|
1470
|
-
break;
|
|
1295
|
+
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1471
1296
|
default:
|
|
1472
1297
|
const parsedBody = parsedOutput.body;
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
...parsedBody.Error,
|
|
1476
|
-
name: `${errorCode}`,
|
|
1477
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1298
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1299
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1478
1300
|
$fault: "client",
|
|
1479
1301
|
$metadata: deserializeMetadata(output),
|
|
1480
|
-
};
|
|
1302
|
+
});
|
|
1303
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1481
1304
|
}
|
|
1482
|
-
const message = response.message || response.Message || errorCode;
|
|
1483
|
-
response.message = message;
|
|
1484
|
-
delete response.Message;
|
|
1485
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1486
1305
|
};
|
|
1487
1306
|
const deserializeAws_queryDeleteStackInstancesCommand = async (output, context) => {
|
|
1488
1307
|
if (output.statusCode >= 300) {
|
|
@@ -1509,59 +1328,28 @@ const deserializeAws_queryDeleteStackInstancesCommandError = async (output, cont
|
|
|
1509
1328
|
switch (errorCode) {
|
|
1510
1329
|
case "InvalidOperationException":
|
|
1511
1330
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
1512
|
-
|
|
1513
|
-
...(await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context)),
|
|
1514
|
-
name: errorCode,
|
|
1515
|
-
$metadata: deserializeMetadata(output),
|
|
1516
|
-
};
|
|
1517
|
-
break;
|
|
1331
|
+
throw await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context);
|
|
1518
1332
|
case "OperationIdAlreadyExistsException":
|
|
1519
1333
|
case "com.amazonaws.cloudformation#OperationIdAlreadyExistsException":
|
|
1520
|
-
|
|
1521
|
-
...(await deserializeAws_queryOperationIdAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1522
|
-
name: errorCode,
|
|
1523
|
-
$metadata: deserializeMetadata(output),
|
|
1524
|
-
};
|
|
1525
|
-
break;
|
|
1334
|
+
throw await deserializeAws_queryOperationIdAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1526
1335
|
case "OperationInProgressException":
|
|
1527
1336
|
case "com.amazonaws.cloudformation#OperationInProgressException":
|
|
1528
|
-
|
|
1529
|
-
...(await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context)),
|
|
1530
|
-
name: errorCode,
|
|
1531
|
-
$metadata: deserializeMetadata(output),
|
|
1532
|
-
};
|
|
1533
|
-
break;
|
|
1337
|
+
throw await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context);
|
|
1534
1338
|
case "StackSetNotFoundException":
|
|
1535
1339
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
1536
|
-
|
|
1537
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
1538
|
-
name: errorCode,
|
|
1539
|
-
$metadata: deserializeMetadata(output),
|
|
1540
|
-
};
|
|
1541
|
-
break;
|
|
1340
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
1542
1341
|
case "StaleRequestException":
|
|
1543
1342
|
case "com.amazonaws.cloudformation#StaleRequestException":
|
|
1544
|
-
|
|
1545
|
-
...(await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context)),
|
|
1546
|
-
name: errorCode,
|
|
1547
|
-
$metadata: deserializeMetadata(output),
|
|
1548
|
-
};
|
|
1549
|
-
break;
|
|
1343
|
+
throw await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context);
|
|
1550
1344
|
default:
|
|
1551
1345
|
const parsedBody = parsedOutput.body;
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
...parsedBody.Error,
|
|
1555
|
-
name: `${errorCode}`,
|
|
1556
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1346
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1347
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1557
1348
|
$fault: "client",
|
|
1558
1349
|
$metadata: deserializeMetadata(output),
|
|
1559
|
-
};
|
|
1350
|
+
});
|
|
1351
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1560
1352
|
}
|
|
1561
|
-
const message = response.message || response.Message || errorCode;
|
|
1562
|
-
response.message = message;
|
|
1563
|
-
delete response.Message;
|
|
1564
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1565
1353
|
};
|
|
1566
1354
|
const deserializeAws_queryDeleteStackSetCommand = async (output, context) => {
|
|
1567
1355
|
if (output.statusCode >= 300) {
|
|
@@ -1588,35 +1376,19 @@ const deserializeAws_queryDeleteStackSetCommandError = async (output, context) =
|
|
|
1588
1376
|
switch (errorCode) {
|
|
1589
1377
|
case "OperationInProgressException":
|
|
1590
1378
|
case "com.amazonaws.cloudformation#OperationInProgressException":
|
|
1591
|
-
|
|
1592
|
-
...(await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context)),
|
|
1593
|
-
name: errorCode,
|
|
1594
|
-
$metadata: deserializeMetadata(output),
|
|
1595
|
-
};
|
|
1596
|
-
break;
|
|
1379
|
+
throw await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context);
|
|
1597
1380
|
case "StackSetNotEmptyException":
|
|
1598
1381
|
case "com.amazonaws.cloudformation#StackSetNotEmptyException":
|
|
1599
|
-
|
|
1600
|
-
...(await deserializeAws_queryStackSetNotEmptyExceptionResponse(parsedOutput, context)),
|
|
1601
|
-
name: errorCode,
|
|
1602
|
-
$metadata: deserializeMetadata(output),
|
|
1603
|
-
};
|
|
1604
|
-
break;
|
|
1382
|
+
throw await deserializeAws_queryStackSetNotEmptyExceptionResponse(parsedOutput, context);
|
|
1605
1383
|
default:
|
|
1606
1384
|
const parsedBody = parsedOutput.body;
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
...parsedBody.Error,
|
|
1610
|
-
name: `${errorCode}`,
|
|
1611
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1385
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1386
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1612
1387
|
$fault: "client",
|
|
1613
1388
|
$metadata: deserializeMetadata(output),
|
|
1614
|
-
};
|
|
1389
|
+
});
|
|
1390
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1615
1391
|
}
|
|
1616
|
-
const message = response.message || response.Message || errorCode;
|
|
1617
|
-
response.message = message;
|
|
1618
|
-
delete response.Message;
|
|
1619
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1620
1392
|
};
|
|
1621
1393
|
const deserializeAws_queryDeregisterTypeCommand = async (output, context) => {
|
|
1622
1394
|
if (output.statusCode >= 300) {
|
|
@@ -1643,35 +1415,19 @@ const deserializeAws_queryDeregisterTypeCommandError = async (output, context) =
|
|
|
1643
1415
|
switch (errorCode) {
|
|
1644
1416
|
case "CFNRegistryException":
|
|
1645
1417
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
1646
|
-
|
|
1647
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
1648
|
-
name: errorCode,
|
|
1649
|
-
$metadata: deserializeMetadata(output),
|
|
1650
|
-
};
|
|
1651
|
-
break;
|
|
1418
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
1652
1419
|
case "TypeNotFoundException":
|
|
1653
1420
|
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
|
1654
|
-
|
|
1655
|
-
...(await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
1656
|
-
name: errorCode,
|
|
1657
|
-
$metadata: deserializeMetadata(output),
|
|
1658
|
-
};
|
|
1659
|
-
break;
|
|
1421
|
+
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
1660
1422
|
default:
|
|
1661
1423
|
const parsedBody = parsedOutput.body;
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
...parsedBody.Error,
|
|
1665
|
-
name: `${errorCode}`,
|
|
1666
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1424
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1425
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1667
1426
|
$fault: "client",
|
|
1668
1427
|
$metadata: deserializeMetadata(output),
|
|
1669
|
-
};
|
|
1428
|
+
});
|
|
1429
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1670
1430
|
}
|
|
1671
|
-
const message = response.message || response.Message || errorCode;
|
|
1672
|
-
response.message = message;
|
|
1673
|
-
delete response.Message;
|
|
1674
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1675
1431
|
};
|
|
1676
1432
|
const deserializeAws_queryDescribeAccountLimitsCommand = async (output, context) => {
|
|
1677
1433
|
if (output.statusCode >= 300) {
|
|
@@ -1698,19 +1454,13 @@ const deserializeAws_queryDescribeAccountLimitsCommandError = async (output, con
|
|
|
1698
1454
|
switch (errorCode) {
|
|
1699
1455
|
default:
|
|
1700
1456
|
const parsedBody = parsedOutput.body;
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
...parsedBody.Error,
|
|
1704
|
-
name: `${errorCode}`,
|
|
1705
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1457
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1458
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1706
1459
|
$fault: "client",
|
|
1707
1460
|
$metadata: deserializeMetadata(output),
|
|
1708
|
-
};
|
|
1461
|
+
});
|
|
1462
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1709
1463
|
}
|
|
1710
|
-
const message = response.message || response.Message || errorCode;
|
|
1711
|
-
response.message = message;
|
|
1712
|
-
delete response.Message;
|
|
1713
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1714
1464
|
};
|
|
1715
1465
|
const deserializeAws_queryDescribeChangeSetCommand = async (output, context) => {
|
|
1716
1466
|
if (output.statusCode >= 300) {
|
|
@@ -1737,27 +1487,52 @@ const deserializeAws_queryDescribeChangeSetCommandError = async (output, context
|
|
|
1737
1487
|
switch (errorCode) {
|
|
1738
1488
|
case "ChangeSetNotFoundException":
|
|
1739
1489
|
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1490
|
+
throw await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context);
|
|
1491
|
+
default:
|
|
1492
|
+
const parsedBody = parsedOutput.body;
|
|
1493
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1494
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1495
|
+
$fault: "client",
|
|
1743
1496
|
$metadata: deserializeMetadata(output),
|
|
1744
|
-
};
|
|
1745
|
-
|
|
1497
|
+
});
|
|
1498
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1499
|
+
}
|
|
1500
|
+
};
|
|
1501
|
+
const deserializeAws_queryDescribeChangeSetHooksCommand = async (output, context) => {
|
|
1502
|
+
if (output.statusCode >= 300) {
|
|
1503
|
+
return deserializeAws_queryDescribeChangeSetHooksCommandError(output, context);
|
|
1504
|
+
}
|
|
1505
|
+
const data = await parseBody(output.body, context);
|
|
1506
|
+
let contents = {};
|
|
1507
|
+
contents = deserializeAws_queryDescribeChangeSetHooksOutput(data.DescribeChangeSetHooksResult, context);
|
|
1508
|
+
const response = {
|
|
1509
|
+
$metadata: deserializeMetadata(output),
|
|
1510
|
+
...contents,
|
|
1511
|
+
};
|
|
1512
|
+
return Promise.resolve(response);
|
|
1513
|
+
};
|
|
1514
|
+
exports.deserializeAws_queryDescribeChangeSetHooksCommand = deserializeAws_queryDescribeChangeSetHooksCommand;
|
|
1515
|
+
const deserializeAws_queryDescribeChangeSetHooksCommandError = async (output, context) => {
|
|
1516
|
+
const parsedOutput = {
|
|
1517
|
+
...output,
|
|
1518
|
+
body: await parseBody(output.body, context),
|
|
1519
|
+
};
|
|
1520
|
+
let response;
|
|
1521
|
+
let errorCode = "UnknownError";
|
|
1522
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1523
|
+
switch (errorCode) {
|
|
1524
|
+
case "ChangeSetNotFoundException":
|
|
1525
|
+
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
|
|
1526
|
+
throw await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context);
|
|
1746
1527
|
default:
|
|
1747
1528
|
const parsedBody = parsedOutput.body;
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
...parsedBody.Error,
|
|
1751
|
-
name: `${errorCode}`,
|
|
1752
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1529
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1530
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1753
1531
|
$fault: "client",
|
|
1754
1532
|
$metadata: deserializeMetadata(output),
|
|
1755
|
-
};
|
|
1533
|
+
});
|
|
1534
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1756
1535
|
}
|
|
1757
|
-
const message = response.message || response.Message || errorCode;
|
|
1758
|
-
response.message = message;
|
|
1759
|
-
delete response.Message;
|
|
1760
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1761
1536
|
};
|
|
1762
1537
|
const deserializeAws_queryDescribePublisherCommand = async (output, context) => {
|
|
1763
1538
|
if (output.statusCode >= 300) {
|
|
@@ -1784,27 +1559,16 @@ const deserializeAws_queryDescribePublisherCommandError = async (output, context
|
|
|
1784
1559
|
switch (errorCode) {
|
|
1785
1560
|
case "CFNRegistryException":
|
|
1786
1561
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
1787
|
-
|
|
1788
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
1789
|
-
name: errorCode,
|
|
1790
|
-
$metadata: deserializeMetadata(output),
|
|
1791
|
-
};
|
|
1792
|
-
break;
|
|
1562
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
1793
1563
|
default:
|
|
1794
1564
|
const parsedBody = parsedOutput.body;
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
...parsedBody.Error,
|
|
1798
|
-
name: `${errorCode}`,
|
|
1799
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1565
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1566
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1800
1567
|
$fault: "client",
|
|
1801
1568
|
$metadata: deserializeMetadata(output),
|
|
1802
|
-
};
|
|
1569
|
+
});
|
|
1570
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1803
1571
|
}
|
|
1804
|
-
const message = response.message || response.Message || errorCode;
|
|
1805
|
-
response.message = message;
|
|
1806
|
-
delete response.Message;
|
|
1807
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1808
1572
|
};
|
|
1809
1573
|
const deserializeAws_queryDescribeStackDriftDetectionStatusCommand = async (output, context) => {
|
|
1810
1574
|
if (output.statusCode >= 300) {
|
|
@@ -1831,19 +1595,13 @@ const deserializeAws_queryDescribeStackDriftDetectionStatusCommandError = async
|
|
|
1831
1595
|
switch (errorCode) {
|
|
1832
1596
|
default:
|
|
1833
1597
|
const parsedBody = parsedOutput.body;
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
...parsedBody.Error,
|
|
1837
|
-
name: `${errorCode}`,
|
|
1838
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1598
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1599
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1839
1600
|
$fault: "client",
|
|
1840
1601
|
$metadata: deserializeMetadata(output),
|
|
1841
|
-
};
|
|
1602
|
+
});
|
|
1603
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1842
1604
|
}
|
|
1843
|
-
const message = response.message || response.Message || errorCode;
|
|
1844
|
-
response.message = message;
|
|
1845
|
-
delete response.Message;
|
|
1846
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1847
1605
|
};
|
|
1848
1606
|
const deserializeAws_queryDescribeStackEventsCommand = async (output, context) => {
|
|
1849
1607
|
if (output.statusCode >= 300) {
|
|
@@ -1870,19 +1628,13 @@ const deserializeAws_queryDescribeStackEventsCommandError = async (output, conte
|
|
|
1870
1628
|
switch (errorCode) {
|
|
1871
1629
|
default:
|
|
1872
1630
|
const parsedBody = parsedOutput.body;
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
...parsedBody.Error,
|
|
1876
|
-
name: `${errorCode}`,
|
|
1877
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1631
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1632
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1878
1633
|
$fault: "client",
|
|
1879
1634
|
$metadata: deserializeMetadata(output),
|
|
1880
|
-
};
|
|
1635
|
+
});
|
|
1636
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1881
1637
|
}
|
|
1882
|
-
const message = response.message || response.Message || errorCode;
|
|
1883
|
-
response.message = message;
|
|
1884
|
-
delete response.Message;
|
|
1885
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1886
1638
|
};
|
|
1887
1639
|
const deserializeAws_queryDescribeStackInstanceCommand = async (output, context) => {
|
|
1888
1640
|
if (output.statusCode >= 300) {
|
|
@@ -1909,35 +1661,19 @@ const deserializeAws_queryDescribeStackInstanceCommandError = async (output, con
|
|
|
1909
1661
|
switch (errorCode) {
|
|
1910
1662
|
case "StackInstanceNotFoundException":
|
|
1911
1663
|
case "com.amazonaws.cloudformation#StackInstanceNotFoundException":
|
|
1912
|
-
|
|
1913
|
-
...(await deserializeAws_queryStackInstanceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1914
|
-
name: errorCode,
|
|
1915
|
-
$metadata: deserializeMetadata(output),
|
|
1916
|
-
};
|
|
1917
|
-
break;
|
|
1664
|
+
throw await deserializeAws_queryStackInstanceNotFoundExceptionResponse(parsedOutput, context);
|
|
1918
1665
|
case "StackSetNotFoundException":
|
|
1919
1666
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
1920
|
-
|
|
1921
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
1922
|
-
name: errorCode,
|
|
1923
|
-
$metadata: deserializeMetadata(output),
|
|
1924
|
-
};
|
|
1925
|
-
break;
|
|
1667
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
1926
1668
|
default:
|
|
1927
1669
|
const parsedBody = parsedOutput.body;
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
...parsedBody.Error,
|
|
1931
|
-
name: `${errorCode}`,
|
|
1932
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1670
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1671
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1933
1672
|
$fault: "client",
|
|
1934
1673
|
$metadata: deserializeMetadata(output),
|
|
1935
|
-
};
|
|
1674
|
+
});
|
|
1675
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1936
1676
|
}
|
|
1937
|
-
const message = response.message || response.Message || errorCode;
|
|
1938
|
-
response.message = message;
|
|
1939
|
-
delete response.Message;
|
|
1940
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1941
1677
|
};
|
|
1942
1678
|
const deserializeAws_queryDescribeStackResourceCommand = async (output, context) => {
|
|
1943
1679
|
if (output.statusCode >= 300) {
|
|
@@ -1964,19 +1700,13 @@ const deserializeAws_queryDescribeStackResourceCommandError = async (output, con
|
|
|
1964
1700
|
switch (errorCode) {
|
|
1965
1701
|
default:
|
|
1966
1702
|
const parsedBody = parsedOutput.body;
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
...parsedBody.Error,
|
|
1970
|
-
name: `${errorCode}`,
|
|
1971
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1703
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1704
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1972
1705
|
$fault: "client",
|
|
1973
1706
|
$metadata: deserializeMetadata(output),
|
|
1974
|
-
};
|
|
1707
|
+
});
|
|
1708
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1975
1709
|
}
|
|
1976
|
-
const message = response.message || response.Message || errorCode;
|
|
1977
|
-
response.message = message;
|
|
1978
|
-
delete response.Message;
|
|
1979
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1980
1710
|
};
|
|
1981
1711
|
const deserializeAws_queryDescribeStackResourceDriftsCommand = async (output, context) => {
|
|
1982
1712
|
if (output.statusCode >= 300) {
|
|
@@ -2003,19 +1733,13 @@ const deserializeAws_queryDescribeStackResourceDriftsCommandError = async (outpu
|
|
|
2003
1733
|
switch (errorCode) {
|
|
2004
1734
|
default:
|
|
2005
1735
|
const parsedBody = parsedOutput.body;
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
...parsedBody.Error,
|
|
2009
|
-
name: `${errorCode}`,
|
|
2010
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1736
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1737
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2011
1738
|
$fault: "client",
|
|
2012
1739
|
$metadata: deserializeMetadata(output),
|
|
2013
|
-
};
|
|
1740
|
+
});
|
|
1741
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2014
1742
|
}
|
|
2015
|
-
const message = response.message || response.Message || errorCode;
|
|
2016
|
-
response.message = message;
|
|
2017
|
-
delete response.Message;
|
|
2018
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2019
1743
|
};
|
|
2020
1744
|
const deserializeAws_queryDescribeStackResourcesCommand = async (output, context) => {
|
|
2021
1745
|
if (output.statusCode >= 300) {
|
|
@@ -2042,19 +1766,13 @@ const deserializeAws_queryDescribeStackResourcesCommandError = async (output, co
|
|
|
2042
1766
|
switch (errorCode) {
|
|
2043
1767
|
default:
|
|
2044
1768
|
const parsedBody = parsedOutput.body;
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
...parsedBody.Error,
|
|
2048
|
-
name: `${errorCode}`,
|
|
2049
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1769
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1770
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2050
1771
|
$fault: "client",
|
|
2051
1772
|
$metadata: deserializeMetadata(output),
|
|
2052
|
-
};
|
|
1773
|
+
});
|
|
1774
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2053
1775
|
}
|
|
2054
|
-
const message = response.message || response.Message || errorCode;
|
|
2055
|
-
response.message = message;
|
|
2056
|
-
delete response.Message;
|
|
2057
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2058
1776
|
};
|
|
2059
1777
|
const deserializeAws_queryDescribeStacksCommand = async (output, context) => {
|
|
2060
1778
|
if (output.statusCode >= 300) {
|
|
@@ -2081,19 +1799,13 @@ const deserializeAws_queryDescribeStacksCommandError = async (output, context) =
|
|
|
2081
1799
|
switch (errorCode) {
|
|
2082
1800
|
default:
|
|
2083
1801
|
const parsedBody = parsedOutput.body;
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
...parsedBody.Error,
|
|
2087
|
-
name: `${errorCode}`,
|
|
2088
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1802
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1803
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2089
1804
|
$fault: "client",
|
|
2090
1805
|
$metadata: deserializeMetadata(output),
|
|
2091
|
-
};
|
|
1806
|
+
});
|
|
1807
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2092
1808
|
}
|
|
2093
|
-
const message = response.message || response.Message || errorCode;
|
|
2094
|
-
response.message = message;
|
|
2095
|
-
delete response.Message;
|
|
2096
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2097
1809
|
};
|
|
2098
1810
|
const deserializeAws_queryDescribeStackSetCommand = async (output, context) => {
|
|
2099
1811
|
if (output.statusCode >= 300) {
|
|
@@ -2120,27 +1832,16 @@ const deserializeAws_queryDescribeStackSetCommandError = async (output, context)
|
|
|
2120
1832
|
switch (errorCode) {
|
|
2121
1833
|
case "StackSetNotFoundException":
|
|
2122
1834
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
2123
|
-
|
|
2124
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
2125
|
-
name: errorCode,
|
|
2126
|
-
$metadata: deserializeMetadata(output),
|
|
2127
|
-
};
|
|
2128
|
-
break;
|
|
1835
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2129
1836
|
default:
|
|
2130
1837
|
const parsedBody = parsedOutput.body;
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
...parsedBody.Error,
|
|
2134
|
-
name: `${errorCode}`,
|
|
2135
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1838
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1839
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2136
1840
|
$fault: "client",
|
|
2137
1841
|
$metadata: deserializeMetadata(output),
|
|
2138
|
-
};
|
|
1842
|
+
});
|
|
1843
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2139
1844
|
}
|
|
2140
|
-
const message = response.message || response.Message || errorCode;
|
|
2141
|
-
response.message = message;
|
|
2142
|
-
delete response.Message;
|
|
2143
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2144
1845
|
};
|
|
2145
1846
|
const deserializeAws_queryDescribeStackSetOperationCommand = async (output, context) => {
|
|
2146
1847
|
if (output.statusCode >= 300) {
|
|
@@ -2167,35 +1868,19 @@ const deserializeAws_queryDescribeStackSetOperationCommandError = async (output,
|
|
|
2167
1868
|
switch (errorCode) {
|
|
2168
1869
|
case "OperationNotFoundException":
|
|
2169
1870
|
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
|
2170
|
-
|
|
2171
|
-
...(await deserializeAws_queryOperationNotFoundExceptionResponse(parsedOutput, context)),
|
|
2172
|
-
name: errorCode,
|
|
2173
|
-
$metadata: deserializeMetadata(output),
|
|
2174
|
-
};
|
|
2175
|
-
break;
|
|
1871
|
+
throw await deserializeAws_queryOperationNotFoundExceptionResponse(parsedOutput, context);
|
|
2176
1872
|
case "StackSetNotFoundException":
|
|
2177
1873
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
2178
|
-
|
|
2179
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
2180
|
-
name: errorCode,
|
|
2181
|
-
$metadata: deserializeMetadata(output),
|
|
2182
|
-
};
|
|
2183
|
-
break;
|
|
1874
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2184
1875
|
default:
|
|
2185
1876
|
const parsedBody = parsedOutput.body;
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
...parsedBody.Error,
|
|
2189
|
-
name: `${errorCode}`,
|
|
2190
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1877
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1878
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2191
1879
|
$fault: "client",
|
|
2192
1880
|
$metadata: deserializeMetadata(output),
|
|
2193
|
-
};
|
|
1881
|
+
});
|
|
1882
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2194
1883
|
}
|
|
2195
|
-
const message = response.message || response.Message || errorCode;
|
|
2196
|
-
response.message = message;
|
|
2197
|
-
delete response.Message;
|
|
2198
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2199
1884
|
};
|
|
2200
1885
|
const deserializeAws_queryDescribeTypeCommand = async (output, context) => {
|
|
2201
1886
|
if (output.statusCode >= 300) {
|
|
@@ -2222,35 +1907,19 @@ const deserializeAws_queryDescribeTypeCommandError = async (output, context) =>
|
|
|
2222
1907
|
switch (errorCode) {
|
|
2223
1908
|
case "CFNRegistryException":
|
|
2224
1909
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
2225
|
-
|
|
2226
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
2227
|
-
name: errorCode,
|
|
2228
|
-
$metadata: deserializeMetadata(output),
|
|
2229
|
-
};
|
|
2230
|
-
break;
|
|
1910
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
2231
1911
|
case "TypeNotFoundException":
|
|
2232
1912
|
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
|
2233
|
-
|
|
2234
|
-
...(await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
2235
|
-
name: errorCode,
|
|
2236
|
-
$metadata: deserializeMetadata(output),
|
|
2237
|
-
};
|
|
2238
|
-
break;
|
|
1913
|
+
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
2239
1914
|
default:
|
|
2240
1915
|
const parsedBody = parsedOutput.body;
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
...parsedBody.Error,
|
|
2244
|
-
name: `${errorCode}`,
|
|
2245
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1916
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1917
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2246
1918
|
$fault: "client",
|
|
2247
1919
|
$metadata: deserializeMetadata(output),
|
|
2248
|
-
};
|
|
1920
|
+
});
|
|
1921
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2249
1922
|
}
|
|
2250
|
-
const message = response.message || response.Message || errorCode;
|
|
2251
|
-
response.message = message;
|
|
2252
|
-
delete response.Message;
|
|
2253
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2254
1923
|
};
|
|
2255
1924
|
const deserializeAws_queryDescribeTypeRegistrationCommand = async (output, context) => {
|
|
2256
1925
|
if (output.statusCode >= 300) {
|
|
@@ -2277,27 +1946,16 @@ const deserializeAws_queryDescribeTypeRegistrationCommandError = async (output,
|
|
|
2277
1946
|
switch (errorCode) {
|
|
2278
1947
|
case "CFNRegistryException":
|
|
2279
1948
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
2280
|
-
|
|
2281
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
2282
|
-
name: errorCode,
|
|
2283
|
-
$metadata: deserializeMetadata(output),
|
|
2284
|
-
};
|
|
2285
|
-
break;
|
|
1949
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
2286
1950
|
default:
|
|
2287
1951
|
const parsedBody = parsedOutput.body;
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
...parsedBody.Error,
|
|
2291
|
-
name: `${errorCode}`,
|
|
2292
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1952
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1953
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2293
1954
|
$fault: "client",
|
|
2294
1955
|
$metadata: deserializeMetadata(output),
|
|
2295
|
-
};
|
|
1956
|
+
});
|
|
1957
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2296
1958
|
}
|
|
2297
|
-
const message = response.message || response.Message || errorCode;
|
|
2298
|
-
response.message = message;
|
|
2299
|
-
delete response.Message;
|
|
2300
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2301
1959
|
};
|
|
2302
1960
|
const deserializeAws_queryDetectStackDriftCommand = async (output, context) => {
|
|
2303
1961
|
if (output.statusCode >= 300) {
|
|
@@ -2324,19 +1982,13 @@ const deserializeAws_queryDetectStackDriftCommandError = async (output, context)
|
|
|
2324
1982
|
switch (errorCode) {
|
|
2325
1983
|
default:
|
|
2326
1984
|
const parsedBody = parsedOutput.body;
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
...parsedBody.Error,
|
|
2330
|
-
name: `${errorCode}`,
|
|
2331
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1985
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1986
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2332
1987
|
$fault: "client",
|
|
2333
1988
|
$metadata: deserializeMetadata(output),
|
|
2334
|
-
};
|
|
1989
|
+
});
|
|
1990
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2335
1991
|
}
|
|
2336
|
-
const message = response.message || response.Message || errorCode;
|
|
2337
|
-
response.message = message;
|
|
2338
|
-
delete response.Message;
|
|
2339
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2340
1992
|
};
|
|
2341
1993
|
const deserializeAws_queryDetectStackResourceDriftCommand = async (output, context) => {
|
|
2342
1994
|
if (output.statusCode >= 300) {
|
|
@@ -2363,19 +2015,13 @@ const deserializeAws_queryDetectStackResourceDriftCommandError = async (output,
|
|
|
2363
2015
|
switch (errorCode) {
|
|
2364
2016
|
default:
|
|
2365
2017
|
const parsedBody = parsedOutput.body;
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
...parsedBody.Error,
|
|
2369
|
-
name: `${errorCode}`,
|
|
2370
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2018
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2019
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2371
2020
|
$fault: "client",
|
|
2372
2021
|
$metadata: deserializeMetadata(output),
|
|
2373
|
-
};
|
|
2022
|
+
});
|
|
2023
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2374
2024
|
}
|
|
2375
|
-
const message = response.message || response.Message || errorCode;
|
|
2376
|
-
response.message = message;
|
|
2377
|
-
delete response.Message;
|
|
2378
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2379
2025
|
};
|
|
2380
2026
|
const deserializeAws_queryDetectStackSetDriftCommand = async (output, context) => {
|
|
2381
2027
|
if (output.statusCode >= 300) {
|
|
@@ -2402,43 +2048,22 @@ const deserializeAws_queryDetectStackSetDriftCommandError = async (output, conte
|
|
|
2402
2048
|
switch (errorCode) {
|
|
2403
2049
|
case "InvalidOperationException":
|
|
2404
2050
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
2405
|
-
|
|
2406
|
-
...(await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context)),
|
|
2407
|
-
name: errorCode,
|
|
2408
|
-
$metadata: deserializeMetadata(output),
|
|
2409
|
-
};
|
|
2410
|
-
break;
|
|
2051
|
+
throw await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context);
|
|
2411
2052
|
case "OperationInProgressException":
|
|
2412
2053
|
case "com.amazonaws.cloudformation#OperationInProgressException":
|
|
2413
|
-
|
|
2414
|
-
...(await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context)),
|
|
2415
|
-
name: errorCode,
|
|
2416
|
-
$metadata: deserializeMetadata(output),
|
|
2417
|
-
};
|
|
2418
|
-
break;
|
|
2054
|
+
throw await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context);
|
|
2419
2055
|
case "StackSetNotFoundException":
|
|
2420
2056
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
2421
|
-
|
|
2422
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
2423
|
-
name: errorCode,
|
|
2424
|
-
$metadata: deserializeMetadata(output),
|
|
2425
|
-
};
|
|
2426
|
-
break;
|
|
2057
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2427
2058
|
default:
|
|
2428
2059
|
const parsedBody = parsedOutput.body;
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
...parsedBody.Error,
|
|
2432
|
-
name: `${errorCode}`,
|
|
2433
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2060
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2061
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2434
2062
|
$fault: "client",
|
|
2435
2063
|
$metadata: deserializeMetadata(output),
|
|
2436
|
-
};
|
|
2064
|
+
});
|
|
2065
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2437
2066
|
}
|
|
2438
|
-
const message = response.message || response.Message || errorCode;
|
|
2439
|
-
response.message = message;
|
|
2440
|
-
delete response.Message;
|
|
2441
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2442
2067
|
};
|
|
2443
2068
|
const deserializeAws_queryEstimateTemplateCostCommand = async (output, context) => {
|
|
2444
2069
|
if (output.statusCode >= 300) {
|
|
@@ -2465,19 +2090,13 @@ const deserializeAws_queryEstimateTemplateCostCommandError = async (output, cont
|
|
|
2465
2090
|
switch (errorCode) {
|
|
2466
2091
|
default:
|
|
2467
2092
|
const parsedBody = parsedOutput.body;
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
...parsedBody.Error,
|
|
2471
|
-
name: `${errorCode}`,
|
|
2472
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2093
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2094
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2473
2095
|
$fault: "client",
|
|
2474
2096
|
$metadata: deserializeMetadata(output),
|
|
2475
|
-
};
|
|
2097
|
+
});
|
|
2098
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2476
2099
|
}
|
|
2477
|
-
const message = response.message || response.Message || errorCode;
|
|
2478
|
-
response.message = message;
|
|
2479
|
-
delete response.Message;
|
|
2480
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2481
2100
|
};
|
|
2482
2101
|
const deserializeAws_queryExecuteChangeSetCommand = async (output, context) => {
|
|
2483
2102
|
if (output.statusCode >= 300) {
|
|
@@ -2504,51 +2123,25 @@ const deserializeAws_queryExecuteChangeSetCommandError = async (output, context)
|
|
|
2504
2123
|
switch (errorCode) {
|
|
2505
2124
|
case "ChangeSetNotFoundException":
|
|
2506
2125
|
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
|
|
2507
|
-
|
|
2508
|
-
...(await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
2509
|
-
name: errorCode,
|
|
2510
|
-
$metadata: deserializeMetadata(output),
|
|
2511
|
-
};
|
|
2512
|
-
break;
|
|
2126
|
+
throw await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2513
2127
|
case "InsufficientCapabilitiesException":
|
|
2514
2128
|
case "com.amazonaws.cloudformation#InsufficientCapabilitiesException":
|
|
2515
|
-
|
|
2516
|
-
...(await deserializeAws_queryInsufficientCapabilitiesExceptionResponse(parsedOutput, context)),
|
|
2517
|
-
name: errorCode,
|
|
2518
|
-
$metadata: deserializeMetadata(output),
|
|
2519
|
-
};
|
|
2520
|
-
break;
|
|
2129
|
+
throw await deserializeAws_queryInsufficientCapabilitiesExceptionResponse(parsedOutput, context);
|
|
2521
2130
|
case "InvalidChangeSetStatusException":
|
|
2522
2131
|
case "com.amazonaws.cloudformation#InvalidChangeSetStatusException":
|
|
2523
|
-
|
|
2524
|
-
...(await deserializeAws_queryInvalidChangeSetStatusExceptionResponse(parsedOutput, context)),
|
|
2525
|
-
name: errorCode,
|
|
2526
|
-
$metadata: deserializeMetadata(output),
|
|
2527
|
-
};
|
|
2528
|
-
break;
|
|
2132
|
+
throw await deserializeAws_queryInvalidChangeSetStatusExceptionResponse(parsedOutput, context);
|
|
2529
2133
|
case "TokenAlreadyExistsException":
|
|
2530
2134
|
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
|
2531
|
-
|
|
2532
|
-
...(await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
2533
|
-
name: errorCode,
|
|
2534
|
-
$metadata: deserializeMetadata(output),
|
|
2535
|
-
};
|
|
2536
|
-
break;
|
|
2135
|
+
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2537
2136
|
default:
|
|
2538
2137
|
const parsedBody = parsedOutput.body;
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
...parsedBody.Error,
|
|
2542
|
-
name: `${errorCode}`,
|
|
2543
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2138
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2139
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2544
2140
|
$fault: "client",
|
|
2545
2141
|
$metadata: deserializeMetadata(output),
|
|
2546
|
-
};
|
|
2142
|
+
});
|
|
2143
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2547
2144
|
}
|
|
2548
|
-
const message = response.message || response.Message || errorCode;
|
|
2549
|
-
response.message = message;
|
|
2550
|
-
delete response.Message;
|
|
2551
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2552
2145
|
};
|
|
2553
2146
|
const deserializeAws_queryGetStackPolicyCommand = async (output, context) => {
|
|
2554
2147
|
if (output.statusCode >= 300) {
|
|
@@ -2575,19 +2168,13 @@ const deserializeAws_queryGetStackPolicyCommandError = async (output, context) =
|
|
|
2575
2168
|
switch (errorCode) {
|
|
2576
2169
|
default:
|
|
2577
2170
|
const parsedBody = parsedOutput.body;
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
...parsedBody.Error,
|
|
2581
|
-
name: `${errorCode}`,
|
|
2582
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2171
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2172
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2583
2173
|
$fault: "client",
|
|
2584
2174
|
$metadata: deserializeMetadata(output),
|
|
2585
|
-
};
|
|
2175
|
+
});
|
|
2176
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2586
2177
|
}
|
|
2587
|
-
const message = response.message || response.Message || errorCode;
|
|
2588
|
-
response.message = message;
|
|
2589
|
-
delete response.Message;
|
|
2590
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2591
2178
|
};
|
|
2592
2179
|
const deserializeAws_queryGetTemplateCommand = async (output, context) => {
|
|
2593
2180
|
if (output.statusCode >= 300) {
|
|
@@ -2614,27 +2201,16 @@ const deserializeAws_queryGetTemplateCommandError = async (output, context) => {
|
|
|
2614
2201
|
switch (errorCode) {
|
|
2615
2202
|
case "ChangeSetNotFoundException":
|
|
2616
2203
|
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
|
|
2617
|
-
|
|
2618
|
-
...(await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
2619
|
-
name: errorCode,
|
|
2620
|
-
$metadata: deserializeMetadata(output),
|
|
2621
|
-
};
|
|
2622
|
-
break;
|
|
2204
|
+
throw await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2623
2205
|
default:
|
|
2624
2206
|
const parsedBody = parsedOutput.body;
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
...parsedBody.Error,
|
|
2628
|
-
name: `${errorCode}`,
|
|
2629
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2207
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2208
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2630
2209
|
$fault: "client",
|
|
2631
2210
|
$metadata: deserializeMetadata(output),
|
|
2632
|
-
};
|
|
2211
|
+
});
|
|
2212
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2633
2213
|
}
|
|
2634
|
-
const message = response.message || response.Message || errorCode;
|
|
2635
|
-
response.message = message;
|
|
2636
|
-
delete response.Message;
|
|
2637
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2638
2214
|
};
|
|
2639
2215
|
const deserializeAws_queryGetTemplateSummaryCommand = async (output, context) => {
|
|
2640
2216
|
if (output.statusCode >= 300) {
|
|
@@ -2661,27 +2237,16 @@ const deserializeAws_queryGetTemplateSummaryCommandError = async (output, contex
|
|
|
2661
2237
|
switch (errorCode) {
|
|
2662
2238
|
case "StackSetNotFoundException":
|
|
2663
2239
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
2664
|
-
|
|
2665
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
2666
|
-
name: errorCode,
|
|
2667
|
-
$metadata: deserializeMetadata(output),
|
|
2668
|
-
};
|
|
2669
|
-
break;
|
|
2240
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2670
2241
|
default:
|
|
2671
2242
|
const parsedBody = parsedOutput.body;
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
...parsedBody.Error,
|
|
2675
|
-
name: `${errorCode}`,
|
|
2676
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2243
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2244
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2677
2245
|
$fault: "client",
|
|
2678
2246
|
$metadata: deserializeMetadata(output),
|
|
2679
|
-
};
|
|
2247
|
+
});
|
|
2248
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2680
2249
|
}
|
|
2681
|
-
const message = response.message || response.Message || errorCode;
|
|
2682
|
-
response.message = message;
|
|
2683
|
-
delete response.Message;
|
|
2684
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2685
2250
|
};
|
|
2686
2251
|
const deserializeAws_queryImportStacksToStackSetCommand = async (output, context) => {
|
|
2687
2252
|
if (output.statusCode >= 300) {
|
|
@@ -2708,75 +2273,34 @@ const deserializeAws_queryImportStacksToStackSetCommandError = async (output, co
|
|
|
2708
2273
|
switch (errorCode) {
|
|
2709
2274
|
case "InvalidOperationException":
|
|
2710
2275
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
2711
|
-
|
|
2712
|
-
...(await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context)),
|
|
2713
|
-
name: errorCode,
|
|
2714
|
-
$metadata: deserializeMetadata(output),
|
|
2715
|
-
};
|
|
2716
|
-
break;
|
|
2276
|
+
throw await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context);
|
|
2717
2277
|
case "LimitExceededException":
|
|
2718
2278
|
case "com.amazonaws.cloudformation#LimitExceededException":
|
|
2719
|
-
|
|
2720
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2721
|
-
name: errorCode,
|
|
2722
|
-
$metadata: deserializeMetadata(output),
|
|
2723
|
-
};
|
|
2724
|
-
break;
|
|
2279
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
2725
2280
|
case "OperationIdAlreadyExistsException":
|
|
2726
2281
|
case "com.amazonaws.cloudformation#OperationIdAlreadyExistsException":
|
|
2727
|
-
|
|
2728
|
-
...(await deserializeAws_queryOperationIdAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
2729
|
-
name: errorCode,
|
|
2730
|
-
$metadata: deserializeMetadata(output),
|
|
2731
|
-
};
|
|
2732
|
-
break;
|
|
2282
|
+
throw await deserializeAws_queryOperationIdAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2733
2283
|
case "OperationInProgressException":
|
|
2734
2284
|
case "com.amazonaws.cloudformation#OperationInProgressException":
|
|
2735
|
-
|
|
2736
|
-
...(await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context)),
|
|
2737
|
-
name: errorCode,
|
|
2738
|
-
$metadata: deserializeMetadata(output),
|
|
2739
|
-
};
|
|
2740
|
-
break;
|
|
2285
|
+
throw await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context);
|
|
2741
2286
|
case "StackNotFoundException":
|
|
2742
2287
|
case "com.amazonaws.cloudformation#StackNotFoundException":
|
|
2743
|
-
|
|
2744
|
-
...(await deserializeAws_queryStackNotFoundExceptionResponse(parsedOutput, context)),
|
|
2745
|
-
name: errorCode,
|
|
2746
|
-
$metadata: deserializeMetadata(output),
|
|
2747
|
-
};
|
|
2748
|
-
break;
|
|
2288
|
+
throw await deserializeAws_queryStackNotFoundExceptionResponse(parsedOutput, context);
|
|
2749
2289
|
case "StackSetNotFoundException":
|
|
2750
2290
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
2751
|
-
|
|
2752
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
2753
|
-
name: errorCode,
|
|
2754
|
-
$metadata: deserializeMetadata(output),
|
|
2755
|
-
};
|
|
2756
|
-
break;
|
|
2291
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2757
2292
|
case "StaleRequestException":
|
|
2758
2293
|
case "com.amazonaws.cloudformation#StaleRequestException":
|
|
2759
|
-
|
|
2760
|
-
...(await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context)),
|
|
2761
|
-
name: errorCode,
|
|
2762
|
-
$metadata: deserializeMetadata(output),
|
|
2763
|
-
};
|
|
2764
|
-
break;
|
|
2294
|
+
throw await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context);
|
|
2765
2295
|
default:
|
|
2766
2296
|
const parsedBody = parsedOutput.body;
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
...parsedBody.Error,
|
|
2770
|
-
name: `${errorCode}`,
|
|
2771
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2297
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2298
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2772
2299
|
$fault: "client",
|
|
2773
2300
|
$metadata: deserializeMetadata(output),
|
|
2774
|
-
};
|
|
2301
|
+
});
|
|
2302
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2775
2303
|
}
|
|
2776
|
-
const message = response.message || response.Message || errorCode;
|
|
2777
|
-
response.message = message;
|
|
2778
|
-
delete response.Message;
|
|
2779
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2780
2304
|
};
|
|
2781
2305
|
const deserializeAws_queryListChangeSetsCommand = async (output, context) => {
|
|
2782
2306
|
if (output.statusCode >= 300) {
|
|
@@ -2803,19 +2327,13 @@ const deserializeAws_queryListChangeSetsCommandError = async (output, context) =
|
|
|
2803
2327
|
switch (errorCode) {
|
|
2804
2328
|
default:
|
|
2805
2329
|
const parsedBody = parsedOutput.body;
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
...parsedBody.Error,
|
|
2809
|
-
name: `${errorCode}`,
|
|
2810
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2330
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2331
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2811
2332
|
$fault: "client",
|
|
2812
2333
|
$metadata: deserializeMetadata(output),
|
|
2813
|
-
};
|
|
2334
|
+
});
|
|
2335
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2814
2336
|
}
|
|
2815
|
-
const message = response.message || response.Message || errorCode;
|
|
2816
|
-
response.message = message;
|
|
2817
|
-
delete response.Message;
|
|
2818
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2819
2337
|
};
|
|
2820
2338
|
const deserializeAws_queryListExportsCommand = async (output, context) => {
|
|
2821
2339
|
if (output.statusCode >= 300) {
|
|
@@ -2842,19 +2360,13 @@ const deserializeAws_queryListExportsCommandError = async (output, context) => {
|
|
|
2842
2360
|
switch (errorCode) {
|
|
2843
2361
|
default:
|
|
2844
2362
|
const parsedBody = parsedOutput.body;
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
...parsedBody.Error,
|
|
2848
|
-
name: `${errorCode}`,
|
|
2849
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2363
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2364
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2850
2365
|
$fault: "client",
|
|
2851
2366
|
$metadata: deserializeMetadata(output),
|
|
2852
|
-
};
|
|
2367
|
+
});
|
|
2368
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2853
2369
|
}
|
|
2854
|
-
const message = response.message || response.Message || errorCode;
|
|
2855
|
-
response.message = message;
|
|
2856
|
-
delete response.Message;
|
|
2857
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2858
2370
|
};
|
|
2859
2371
|
const deserializeAws_queryListImportsCommand = async (output, context) => {
|
|
2860
2372
|
if (output.statusCode >= 300) {
|
|
@@ -2881,19 +2393,13 @@ const deserializeAws_queryListImportsCommandError = async (output, context) => {
|
|
|
2881
2393
|
switch (errorCode) {
|
|
2882
2394
|
default:
|
|
2883
2395
|
const parsedBody = parsedOutput.body;
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
...parsedBody.Error,
|
|
2887
|
-
name: `${errorCode}`,
|
|
2888
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2396
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2397
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2889
2398
|
$fault: "client",
|
|
2890
2399
|
$metadata: deserializeMetadata(output),
|
|
2891
|
-
};
|
|
2400
|
+
});
|
|
2401
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2892
2402
|
}
|
|
2893
|
-
const message = response.message || response.Message || errorCode;
|
|
2894
|
-
response.message = message;
|
|
2895
|
-
delete response.Message;
|
|
2896
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2897
2403
|
};
|
|
2898
2404
|
const deserializeAws_queryListStackInstancesCommand = async (output, context) => {
|
|
2899
2405
|
if (output.statusCode >= 300) {
|
|
@@ -2920,27 +2426,16 @@ const deserializeAws_queryListStackInstancesCommandError = async (output, contex
|
|
|
2920
2426
|
switch (errorCode) {
|
|
2921
2427
|
case "StackSetNotFoundException":
|
|
2922
2428
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
2923
|
-
|
|
2924
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
2925
|
-
name: errorCode,
|
|
2926
|
-
$metadata: deserializeMetadata(output),
|
|
2927
|
-
};
|
|
2928
|
-
break;
|
|
2429
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2929
2430
|
default:
|
|
2930
2431
|
const parsedBody = parsedOutput.body;
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
...parsedBody.Error,
|
|
2934
|
-
name: `${errorCode}`,
|
|
2935
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2432
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2433
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2936
2434
|
$fault: "client",
|
|
2937
2435
|
$metadata: deserializeMetadata(output),
|
|
2938
|
-
};
|
|
2436
|
+
});
|
|
2437
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2939
2438
|
}
|
|
2940
|
-
const message = response.message || response.Message || errorCode;
|
|
2941
|
-
response.message = message;
|
|
2942
|
-
delete response.Message;
|
|
2943
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2944
2439
|
};
|
|
2945
2440
|
const deserializeAws_queryListStackResourcesCommand = async (output, context) => {
|
|
2946
2441
|
if (output.statusCode >= 300) {
|
|
@@ -2967,19 +2462,13 @@ const deserializeAws_queryListStackResourcesCommandError = async (output, contex
|
|
|
2967
2462
|
switch (errorCode) {
|
|
2968
2463
|
default:
|
|
2969
2464
|
const parsedBody = parsedOutput.body;
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
...parsedBody.Error,
|
|
2973
|
-
name: `${errorCode}`,
|
|
2974
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2465
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2466
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2975
2467
|
$fault: "client",
|
|
2976
2468
|
$metadata: deserializeMetadata(output),
|
|
2977
|
-
};
|
|
2469
|
+
});
|
|
2470
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2978
2471
|
}
|
|
2979
|
-
const message = response.message || response.Message || errorCode;
|
|
2980
|
-
response.message = message;
|
|
2981
|
-
delete response.Message;
|
|
2982
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2983
2472
|
};
|
|
2984
2473
|
const deserializeAws_queryListStacksCommand = async (output, context) => {
|
|
2985
2474
|
if (output.statusCode >= 300) {
|
|
@@ -3006,19 +2495,13 @@ const deserializeAws_queryListStacksCommandError = async (output, context) => {
|
|
|
3006
2495
|
switch (errorCode) {
|
|
3007
2496
|
default:
|
|
3008
2497
|
const parsedBody = parsedOutput.body;
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
...parsedBody.Error,
|
|
3012
|
-
name: `${errorCode}`,
|
|
3013
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2498
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2499
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3014
2500
|
$fault: "client",
|
|
3015
2501
|
$metadata: deserializeMetadata(output),
|
|
3016
|
-
};
|
|
2502
|
+
});
|
|
2503
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3017
2504
|
}
|
|
3018
|
-
const message = response.message || response.Message || errorCode;
|
|
3019
|
-
response.message = message;
|
|
3020
|
-
delete response.Message;
|
|
3021
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3022
2505
|
};
|
|
3023
2506
|
const deserializeAws_queryListStackSetOperationResultsCommand = async (output, context) => {
|
|
3024
2507
|
if (output.statusCode >= 300) {
|
|
@@ -3045,35 +2528,19 @@ const deserializeAws_queryListStackSetOperationResultsCommandError = async (outp
|
|
|
3045
2528
|
switch (errorCode) {
|
|
3046
2529
|
case "OperationNotFoundException":
|
|
3047
2530
|
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
|
3048
|
-
|
|
3049
|
-
...(await deserializeAws_queryOperationNotFoundExceptionResponse(parsedOutput, context)),
|
|
3050
|
-
name: errorCode,
|
|
3051
|
-
$metadata: deserializeMetadata(output),
|
|
3052
|
-
};
|
|
3053
|
-
break;
|
|
2531
|
+
throw await deserializeAws_queryOperationNotFoundExceptionResponse(parsedOutput, context);
|
|
3054
2532
|
case "StackSetNotFoundException":
|
|
3055
2533
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
3056
|
-
|
|
3057
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
3058
|
-
name: errorCode,
|
|
3059
|
-
$metadata: deserializeMetadata(output),
|
|
3060
|
-
};
|
|
3061
|
-
break;
|
|
2534
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
3062
2535
|
default:
|
|
3063
2536
|
const parsedBody = parsedOutput.body;
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
...parsedBody.Error,
|
|
3067
|
-
name: `${errorCode}`,
|
|
3068
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2537
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2538
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3069
2539
|
$fault: "client",
|
|
3070
2540
|
$metadata: deserializeMetadata(output),
|
|
3071
|
-
};
|
|
2541
|
+
});
|
|
2542
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3072
2543
|
}
|
|
3073
|
-
const message = response.message || response.Message || errorCode;
|
|
3074
|
-
response.message = message;
|
|
3075
|
-
delete response.Message;
|
|
3076
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3077
2544
|
};
|
|
3078
2545
|
const deserializeAws_queryListStackSetOperationsCommand = async (output, context) => {
|
|
3079
2546
|
if (output.statusCode >= 300) {
|
|
@@ -3100,27 +2567,16 @@ const deserializeAws_queryListStackSetOperationsCommandError = async (output, co
|
|
|
3100
2567
|
switch (errorCode) {
|
|
3101
2568
|
case "StackSetNotFoundException":
|
|
3102
2569
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
3103
|
-
|
|
3104
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
3105
|
-
name: errorCode,
|
|
3106
|
-
$metadata: deserializeMetadata(output),
|
|
3107
|
-
};
|
|
3108
|
-
break;
|
|
2570
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
3109
2571
|
default:
|
|
3110
2572
|
const parsedBody = parsedOutput.body;
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
...parsedBody.Error,
|
|
3114
|
-
name: `${errorCode}`,
|
|
3115
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2573
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2574
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3116
2575
|
$fault: "client",
|
|
3117
2576
|
$metadata: deserializeMetadata(output),
|
|
3118
|
-
};
|
|
2577
|
+
});
|
|
2578
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3119
2579
|
}
|
|
3120
|
-
const message = response.message || response.Message || errorCode;
|
|
3121
|
-
response.message = message;
|
|
3122
|
-
delete response.Message;
|
|
3123
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3124
2580
|
};
|
|
3125
2581
|
const deserializeAws_queryListStackSetsCommand = async (output, context) => {
|
|
3126
2582
|
if (output.statusCode >= 300) {
|
|
@@ -3147,19 +2603,13 @@ const deserializeAws_queryListStackSetsCommandError = async (output, context) =>
|
|
|
3147
2603
|
switch (errorCode) {
|
|
3148
2604
|
default:
|
|
3149
2605
|
const parsedBody = parsedOutput.body;
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
...parsedBody.Error,
|
|
3153
|
-
name: `${errorCode}`,
|
|
3154
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2606
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2607
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3155
2608
|
$fault: "client",
|
|
3156
2609
|
$metadata: deserializeMetadata(output),
|
|
3157
|
-
};
|
|
2610
|
+
});
|
|
2611
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3158
2612
|
}
|
|
3159
|
-
const message = response.message || response.Message || errorCode;
|
|
3160
|
-
response.message = message;
|
|
3161
|
-
delete response.Message;
|
|
3162
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3163
2613
|
};
|
|
3164
2614
|
const deserializeAws_queryListTypeRegistrationsCommand = async (output, context) => {
|
|
3165
2615
|
if (output.statusCode >= 300) {
|
|
@@ -3186,27 +2636,16 @@ const deserializeAws_queryListTypeRegistrationsCommandError = async (output, con
|
|
|
3186
2636
|
switch (errorCode) {
|
|
3187
2637
|
case "CFNRegistryException":
|
|
3188
2638
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
3189
|
-
|
|
3190
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
3191
|
-
name: errorCode,
|
|
3192
|
-
$metadata: deserializeMetadata(output),
|
|
3193
|
-
};
|
|
3194
|
-
break;
|
|
2639
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
3195
2640
|
default:
|
|
3196
2641
|
const parsedBody = parsedOutput.body;
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
...parsedBody.Error,
|
|
3200
|
-
name: `${errorCode}`,
|
|
3201
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2642
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2643
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3202
2644
|
$fault: "client",
|
|
3203
2645
|
$metadata: deserializeMetadata(output),
|
|
3204
|
-
};
|
|
2646
|
+
});
|
|
2647
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3205
2648
|
}
|
|
3206
|
-
const message = response.message || response.Message || errorCode;
|
|
3207
|
-
response.message = message;
|
|
3208
|
-
delete response.Message;
|
|
3209
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3210
2649
|
};
|
|
3211
2650
|
const deserializeAws_queryListTypesCommand = async (output, context) => {
|
|
3212
2651
|
if (output.statusCode >= 300) {
|
|
@@ -3233,27 +2672,16 @@ const deserializeAws_queryListTypesCommandError = async (output, context) => {
|
|
|
3233
2672
|
switch (errorCode) {
|
|
3234
2673
|
case "CFNRegistryException":
|
|
3235
2674
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
3236
|
-
|
|
3237
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
3238
|
-
name: errorCode,
|
|
3239
|
-
$metadata: deserializeMetadata(output),
|
|
3240
|
-
};
|
|
3241
|
-
break;
|
|
2675
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
3242
2676
|
default:
|
|
3243
2677
|
const parsedBody = parsedOutput.body;
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
...parsedBody.Error,
|
|
3247
|
-
name: `${errorCode}`,
|
|
3248
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2678
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2679
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3249
2680
|
$fault: "client",
|
|
3250
2681
|
$metadata: deserializeMetadata(output),
|
|
3251
|
-
};
|
|
2682
|
+
});
|
|
2683
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3252
2684
|
}
|
|
3253
|
-
const message = response.message || response.Message || errorCode;
|
|
3254
|
-
response.message = message;
|
|
3255
|
-
delete response.Message;
|
|
3256
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3257
2685
|
};
|
|
3258
2686
|
const deserializeAws_queryListTypeVersionsCommand = async (output, context) => {
|
|
3259
2687
|
if (output.statusCode >= 300) {
|
|
@@ -3280,27 +2708,16 @@ const deserializeAws_queryListTypeVersionsCommandError = async (output, context)
|
|
|
3280
2708
|
switch (errorCode) {
|
|
3281
2709
|
case "CFNRegistryException":
|
|
3282
2710
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
3283
|
-
|
|
3284
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
3285
|
-
name: errorCode,
|
|
3286
|
-
$metadata: deserializeMetadata(output),
|
|
3287
|
-
};
|
|
3288
|
-
break;
|
|
2711
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
3289
2712
|
default:
|
|
3290
2713
|
const parsedBody = parsedOutput.body;
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
...parsedBody.Error,
|
|
3294
|
-
name: `${errorCode}`,
|
|
3295
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2714
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2715
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3296
2716
|
$fault: "client",
|
|
3297
2717
|
$metadata: deserializeMetadata(output),
|
|
3298
|
-
};
|
|
2718
|
+
});
|
|
2719
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3299
2720
|
}
|
|
3300
|
-
const message = response.message || response.Message || errorCode;
|
|
3301
|
-
response.message = message;
|
|
3302
|
-
delete response.Message;
|
|
3303
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3304
2721
|
};
|
|
3305
2722
|
const deserializeAws_queryPublishTypeCommand = async (output, context) => {
|
|
3306
2723
|
if (output.statusCode >= 300) {
|
|
@@ -3327,35 +2744,19 @@ const deserializeAws_queryPublishTypeCommandError = async (output, context) => {
|
|
|
3327
2744
|
switch (errorCode) {
|
|
3328
2745
|
case "CFNRegistryException":
|
|
3329
2746
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
3330
|
-
|
|
3331
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
3332
|
-
name: errorCode,
|
|
3333
|
-
$metadata: deserializeMetadata(output),
|
|
3334
|
-
};
|
|
3335
|
-
break;
|
|
2747
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
3336
2748
|
case "TypeNotFoundException":
|
|
3337
2749
|
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
|
3338
|
-
|
|
3339
|
-
...(await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
3340
|
-
name: errorCode,
|
|
3341
|
-
$metadata: deserializeMetadata(output),
|
|
3342
|
-
};
|
|
3343
|
-
break;
|
|
2750
|
+
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
3344
2751
|
default:
|
|
3345
2752
|
const parsedBody = parsedOutput.body;
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
...parsedBody.Error,
|
|
3349
|
-
name: `${errorCode}`,
|
|
3350
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2753
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2754
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3351
2755
|
$fault: "client",
|
|
3352
2756
|
$metadata: deserializeMetadata(output),
|
|
3353
|
-
};
|
|
2757
|
+
});
|
|
2758
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3354
2759
|
}
|
|
3355
|
-
const message = response.message || response.Message || errorCode;
|
|
3356
|
-
response.message = message;
|
|
3357
|
-
delete response.Message;
|
|
3358
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3359
2760
|
};
|
|
3360
2761
|
const deserializeAws_queryRecordHandlerProgressCommand = async (output, context) => {
|
|
3361
2762
|
if (output.statusCode >= 300) {
|
|
@@ -3382,35 +2783,19 @@ const deserializeAws_queryRecordHandlerProgressCommandError = async (output, con
|
|
|
3382
2783
|
switch (errorCode) {
|
|
3383
2784
|
case "InvalidStateTransitionException":
|
|
3384
2785
|
case "com.amazonaws.cloudformation#InvalidStateTransitionException":
|
|
3385
|
-
|
|
3386
|
-
...(await deserializeAws_queryInvalidStateTransitionExceptionResponse(parsedOutput, context)),
|
|
3387
|
-
name: errorCode,
|
|
3388
|
-
$metadata: deserializeMetadata(output),
|
|
3389
|
-
};
|
|
3390
|
-
break;
|
|
2786
|
+
throw await deserializeAws_queryInvalidStateTransitionExceptionResponse(parsedOutput, context);
|
|
3391
2787
|
case "OperationStatusCheckFailedException":
|
|
3392
2788
|
case "com.amazonaws.cloudformation#OperationStatusCheckFailedException":
|
|
3393
|
-
|
|
3394
|
-
...(await deserializeAws_queryOperationStatusCheckFailedExceptionResponse(parsedOutput, context)),
|
|
3395
|
-
name: errorCode,
|
|
3396
|
-
$metadata: deserializeMetadata(output),
|
|
3397
|
-
};
|
|
3398
|
-
break;
|
|
2789
|
+
throw await deserializeAws_queryOperationStatusCheckFailedExceptionResponse(parsedOutput, context);
|
|
3399
2790
|
default:
|
|
3400
2791
|
const parsedBody = parsedOutput.body;
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
...parsedBody.Error,
|
|
3404
|
-
name: `${errorCode}`,
|
|
3405
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2792
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2793
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3406
2794
|
$fault: "client",
|
|
3407
2795
|
$metadata: deserializeMetadata(output),
|
|
3408
|
-
};
|
|
2796
|
+
});
|
|
2797
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3409
2798
|
}
|
|
3410
|
-
const message = response.message || response.Message || errorCode;
|
|
3411
|
-
response.message = message;
|
|
3412
|
-
delete response.Message;
|
|
3413
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3414
2799
|
};
|
|
3415
2800
|
const deserializeAws_queryRegisterPublisherCommand = async (output, context) => {
|
|
3416
2801
|
if (output.statusCode >= 300) {
|
|
@@ -3437,27 +2822,16 @@ const deserializeAws_queryRegisterPublisherCommandError = async (output, context
|
|
|
3437
2822
|
switch (errorCode) {
|
|
3438
2823
|
case "CFNRegistryException":
|
|
3439
2824
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
3440
|
-
|
|
3441
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
3442
|
-
name: errorCode,
|
|
3443
|
-
$metadata: deserializeMetadata(output),
|
|
3444
|
-
};
|
|
3445
|
-
break;
|
|
2825
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
3446
2826
|
default:
|
|
3447
2827
|
const parsedBody = parsedOutput.body;
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
...parsedBody.Error,
|
|
3451
|
-
name: `${errorCode}`,
|
|
3452
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2828
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2829
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3453
2830
|
$fault: "client",
|
|
3454
2831
|
$metadata: deserializeMetadata(output),
|
|
3455
|
-
};
|
|
2832
|
+
});
|
|
2833
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3456
2834
|
}
|
|
3457
|
-
const message = response.message || response.Message || errorCode;
|
|
3458
|
-
response.message = message;
|
|
3459
|
-
delete response.Message;
|
|
3460
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3461
2835
|
};
|
|
3462
2836
|
const deserializeAws_queryRegisterTypeCommand = async (output, context) => {
|
|
3463
2837
|
if (output.statusCode >= 300) {
|
|
@@ -3484,27 +2858,16 @@ const deserializeAws_queryRegisterTypeCommandError = async (output, context) =>
|
|
|
3484
2858
|
switch (errorCode) {
|
|
3485
2859
|
case "CFNRegistryException":
|
|
3486
2860
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
3487
|
-
|
|
3488
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
3489
|
-
name: errorCode,
|
|
3490
|
-
$metadata: deserializeMetadata(output),
|
|
3491
|
-
};
|
|
3492
|
-
break;
|
|
2861
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
3493
2862
|
default:
|
|
3494
2863
|
const parsedBody = parsedOutput.body;
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
...parsedBody.Error,
|
|
3498
|
-
name: `${errorCode}`,
|
|
3499
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2864
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2865
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3500
2866
|
$fault: "client",
|
|
3501
2867
|
$metadata: deserializeMetadata(output),
|
|
3502
|
-
};
|
|
2868
|
+
});
|
|
2869
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3503
2870
|
}
|
|
3504
|
-
const message = response.message || response.Message || errorCode;
|
|
3505
|
-
response.message = message;
|
|
3506
|
-
delete response.Message;
|
|
3507
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3508
2871
|
};
|
|
3509
2872
|
const deserializeAws_queryRollbackStackCommand = async (output, context) => {
|
|
3510
2873
|
if (output.statusCode >= 300) {
|
|
@@ -3531,27 +2894,16 @@ const deserializeAws_queryRollbackStackCommandError = async (output, context) =>
|
|
|
3531
2894
|
switch (errorCode) {
|
|
3532
2895
|
case "TokenAlreadyExistsException":
|
|
3533
2896
|
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
|
3534
|
-
|
|
3535
|
-
...(await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
3536
|
-
name: errorCode,
|
|
3537
|
-
$metadata: deserializeMetadata(output),
|
|
3538
|
-
};
|
|
3539
|
-
break;
|
|
2897
|
+
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
3540
2898
|
default:
|
|
3541
2899
|
const parsedBody = parsedOutput.body;
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
...parsedBody.Error,
|
|
3545
|
-
name: `${errorCode}`,
|
|
3546
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2900
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2901
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3547
2902
|
$fault: "client",
|
|
3548
2903
|
$metadata: deserializeMetadata(output),
|
|
3549
|
-
};
|
|
2904
|
+
});
|
|
2905
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3550
2906
|
}
|
|
3551
|
-
const message = response.message || response.Message || errorCode;
|
|
3552
|
-
response.message = message;
|
|
3553
|
-
delete response.Message;
|
|
3554
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3555
2907
|
};
|
|
3556
2908
|
const deserializeAws_querySetStackPolicyCommand = async (output, context) => {
|
|
3557
2909
|
if (output.statusCode >= 300) {
|
|
@@ -3575,19 +2927,13 @@ const deserializeAws_querySetStackPolicyCommandError = async (output, context) =
|
|
|
3575
2927
|
switch (errorCode) {
|
|
3576
2928
|
default:
|
|
3577
2929
|
const parsedBody = parsedOutput.body;
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
...parsedBody.Error,
|
|
3581
|
-
name: `${errorCode}`,
|
|
3582
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2930
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2931
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3583
2932
|
$fault: "client",
|
|
3584
2933
|
$metadata: deserializeMetadata(output),
|
|
3585
|
-
};
|
|
2934
|
+
});
|
|
2935
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3586
2936
|
}
|
|
3587
|
-
const message = response.message || response.Message || errorCode;
|
|
3588
|
-
response.message = message;
|
|
3589
|
-
delete response.Message;
|
|
3590
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3591
2937
|
};
|
|
3592
2938
|
const deserializeAws_querySetTypeConfigurationCommand = async (output, context) => {
|
|
3593
2939
|
if (output.statusCode >= 300) {
|
|
@@ -3614,35 +2960,19 @@ const deserializeAws_querySetTypeConfigurationCommandError = async (output, cont
|
|
|
3614
2960
|
switch (errorCode) {
|
|
3615
2961
|
case "CFNRegistryException":
|
|
3616
2962
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
3617
|
-
|
|
3618
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
3619
|
-
name: errorCode,
|
|
3620
|
-
$metadata: deserializeMetadata(output),
|
|
3621
|
-
};
|
|
3622
|
-
break;
|
|
2963
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
3623
2964
|
case "TypeNotFoundException":
|
|
3624
2965
|
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
|
3625
|
-
|
|
3626
|
-
...(await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
3627
|
-
name: errorCode,
|
|
3628
|
-
$metadata: deserializeMetadata(output),
|
|
3629
|
-
};
|
|
3630
|
-
break;
|
|
2966
|
+
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
3631
2967
|
default:
|
|
3632
2968
|
const parsedBody = parsedOutput.body;
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
...parsedBody.Error,
|
|
3636
|
-
name: `${errorCode}`,
|
|
3637
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2969
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2970
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3638
2971
|
$fault: "client",
|
|
3639
2972
|
$metadata: deserializeMetadata(output),
|
|
3640
|
-
};
|
|
2973
|
+
});
|
|
2974
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3641
2975
|
}
|
|
3642
|
-
const message = response.message || response.Message || errorCode;
|
|
3643
|
-
response.message = message;
|
|
3644
|
-
delete response.Message;
|
|
3645
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3646
2976
|
};
|
|
3647
2977
|
const deserializeAws_querySetTypeDefaultVersionCommand = async (output, context) => {
|
|
3648
2978
|
if (output.statusCode >= 300) {
|
|
@@ -3669,35 +2999,19 @@ const deserializeAws_querySetTypeDefaultVersionCommandError = async (output, con
|
|
|
3669
2999
|
switch (errorCode) {
|
|
3670
3000
|
case "CFNRegistryException":
|
|
3671
3001
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
3672
|
-
|
|
3673
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
3674
|
-
name: errorCode,
|
|
3675
|
-
$metadata: deserializeMetadata(output),
|
|
3676
|
-
};
|
|
3677
|
-
break;
|
|
3002
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
3678
3003
|
case "TypeNotFoundException":
|
|
3679
3004
|
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
|
3680
|
-
|
|
3681
|
-
...(await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
3682
|
-
name: errorCode,
|
|
3683
|
-
$metadata: deserializeMetadata(output),
|
|
3684
|
-
};
|
|
3685
|
-
break;
|
|
3005
|
+
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
3686
3006
|
default:
|
|
3687
3007
|
const parsedBody = parsedOutput.body;
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
...parsedBody.Error,
|
|
3691
|
-
name: `${errorCode}`,
|
|
3692
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3008
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3009
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3693
3010
|
$fault: "client",
|
|
3694
3011
|
$metadata: deserializeMetadata(output),
|
|
3695
|
-
};
|
|
3012
|
+
});
|
|
3013
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3696
3014
|
}
|
|
3697
|
-
const message = response.message || response.Message || errorCode;
|
|
3698
|
-
response.message = message;
|
|
3699
|
-
delete response.Message;
|
|
3700
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3701
3015
|
};
|
|
3702
3016
|
const deserializeAws_querySignalResourceCommand = async (output, context) => {
|
|
3703
3017
|
if (output.statusCode >= 300) {
|
|
@@ -3721,19 +3035,13 @@ const deserializeAws_querySignalResourceCommandError = async (output, context) =
|
|
|
3721
3035
|
switch (errorCode) {
|
|
3722
3036
|
default:
|
|
3723
3037
|
const parsedBody = parsedOutput.body;
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
...parsedBody.Error,
|
|
3727
|
-
name: `${errorCode}`,
|
|
3728
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3038
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3039
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3729
3040
|
$fault: "client",
|
|
3730
3041
|
$metadata: deserializeMetadata(output),
|
|
3731
|
-
};
|
|
3042
|
+
});
|
|
3043
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3732
3044
|
}
|
|
3733
|
-
const message = response.message || response.Message || errorCode;
|
|
3734
|
-
response.message = message;
|
|
3735
|
-
delete response.Message;
|
|
3736
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3737
3045
|
};
|
|
3738
3046
|
const deserializeAws_queryStopStackSetOperationCommand = async (output, context) => {
|
|
3739
3047
|
if (output.statusCode >= 300) {
|
|
@@ -3760,43 +3068,22 @@ const deserializeAws_queryStopStackSetOperationCommandError = async (output, con
|
|
|
3760
3068
|
switch (errorCode) {
|
|
3761
3069
|
case "InvalidOperationException":
|
|
3762
3070
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
3763
|
-
|
|
3764
|
-
...(await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context)),
|
|
3765
|
-
name: errorCode,
|
|
3766
|
-
$metadata: deserializeMetadata(output),
|
|
3767
|
-
};
|
|
3768
|
-
break;
|
|
3071
|
+
throw await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context);
|
|
3769
3072
|
case "OperationNotFoundException":
|
|
3770
3073
|
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
|
3771
|
-
|
|
3772
|
-
...(await deserializeAws_queryOperationNotFoundExceptionResponse(parsedOutput, context)),
|
|
3773
|
-
name: errorCode,
|
|
3774
|
-
$metadata: deserializeMetadata(output),
|
|
3775
|
-
};
|
|
3776
|
-
break;
|
|
3074
|
+
throw await deserializeAws_queryOperationNotFoundExceptionResponse(parsedOutput, context);
|
|
3777
3075
|
case "StackSetNotFoundException":
|
|
3778
3076
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
3779
|
-
|
|
3780
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
3781
|
-
name: errorCode,
|
|
3782
|
-
$metadata: deserializeMetadata(output),
|
|
3783
|
-
};
|
|
3784
|
-
break;
|
|
3077
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
3785
3078
|
default:
|
|
3786
3079
|
const parsedBody = parsedOutput.body;
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
...parsedBody.Error,
|
|
3790
|
-
name: `${errorCode}`,
|
|
3791
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3080
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3081
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3792
3082
|
$fault: "client",
|
|
3793
3083
|
$metadata: deserializeMetadata(output),
|
|
3794
|
-
};
|
|
3084
|
+
});
|
|
3085
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3795
3086
|
}
|
|
3796
|
-
const message = response.message || response.Message || errorCode;
|
|
3797
|
-
response.message = message;
|
|
3798
|
-
delete response.Message;
|
|
3799
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3800
3087
|
};
|
|
3801
3088
|
const deserializeAws_queryTestTypeCommand = async (output, context) => {
|
|
3802
3089
|
if (output.statusCode >= 300) {
|
|
@@ -3823,35 +3110,19 @@ const deserializeAws_queryTestTypeCommandError = async (output, context) => {
|
|
|
3823
3110
|
switch (errorCode) {
|
|
3824
3111
|
case "CFNRegistryException":
|
|
3825
3112
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
3826
|
-
|
|
3827
|
-
...(await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context)),
|
|
3828
|
-
name: errorCode,
|
|
3829
|
-
$metadata: deserializeMetadata(output),
|
|
3830
|
-
};
|
|
3831
|
-
break;
|
|
3113
|
+
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
3832
3114
|
case "TypeNotFoundException":
|
|
3833
3115
|
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
|
3834
|
-
|
|
3835
|
-
...(await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
3836
|
-
name: errorCode,
|
|
3837
|
-
$metadata: deserializeMetadata(output),
|
|
3838
|
-
};
|
|
3839
|
-
break;
|
|
3116
|
+
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
3840
3117
|
default:
|
|
3841
3118
|
const parsedBody = parsedOutput.body;
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
...parsedBody.Error,
|
|
3845
|
-
name: `${errorCode}`,
|
|
3846
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3119
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3120
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3847
3121
|
$fault: "client",
|
|
3848
3122
|
$metadata: deserializeMetadata(output),
|
|
3849
|
-
};
|
|
3123
|
+
});
|
|
3124
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3850
3125
|
}
|
|
3851
|
-
const message = response.message || response.Message || errorCode;
|
|
3852
|
-
response.message = message;
|
|
3853
|
-
delete response.Message;
|
|
3854
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3855
3126
|
};
|
|
3856
3127
|
const deserializeAws_queryUpdateStackCommand = async (output, context) => {
|
|
3857
3128
|
if (output.statusCode >= 300) {
|
|
@@ -3878,35 +3149,19 @@ const deserializeAws_queryUpdateStackCommandError = async (output, context) => {
|
|
|
3878
3149
|
switch (errorCode) {
|
|
3879
3150
|
case "InsufficientCapabilitiesException":
|
|
3880
3151
|
case "com.amazonaws.cloudformation#InsufficientCapabilitiesException":
|
|
3881
|
-
|
|
3882
|
-
...(await deserializeAws_queryInsufficientCapabilitiesExceptionResponse(parsedOutput, context)),
|
|
3883
|
-
name: errorCode,
|
|
3884
|
-
$metadata: deserializeMetadata(output),
|
|
3885
|
-
};
|
|
3886
|
-
break;
|
|
3152
|
+
throw await deserializeAws_queryInsufficientCapabilitiesExceptionResponse(parsedOutput, context);
|
|
3887
3153
|
case "TokenAlreadyExistsException":
|
|
3888
3154
|
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
|
3889
|
-
|
|
3890
|
-
...(await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
3891
|
-
name: errorCode,
|
|
3892
|
-
$metadata: deserializeMetadata(output),
|
|
3893
|
-
};
|
|
3894
|
-
break;
|
|
3155
|
+
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
3895
3156
|
default:
|
|
3896
3157
|
const parsedBody = parsedOutput.body;
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
...parsedBody.Error,
|
|
3900
|
-
name: `${errorCode}`,
|
|
3901
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3158
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3159
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3902
3160
|
$fault: "client",
|
|
3903
3161
|
$metadata: deserializeMetadata(output),
|
|
3904
|
-
};
|
|
3162
|
+
});
|
|
3163
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3905
3164
|
}
|
|
3906
|
-
const message = response.message || response.Message || errorCode;
|
|
3907
|
-
response.message = message;
|
|
3908
|
-
delete response.Message;
|
|
3909
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3910
3165
|
};
|
|
3911
3166
|
const deserializeAws_queryUpdateStackInstancesCommand = async (output, context) => {
|
|
3912
3167
|
if (output.statusCode >= 300) {
|
|
@@ -3933,67 +3188,31 @@ const deserializeAws_queryUpdateStackInstancesCommandError = async (output, cont
|
|
|
3933
3188
|
switch (errorCode) {
|
|
3934
3189
|
case "InvalidOperationException":
|
|
3935
3190
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
3936
|
-
|
|
3937
|
-
...(await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context)),
|
|
3938
|
-
name: errorCode,
|
|
3939
|
-
$metadata: deserializeMetadata(output),
|
|
3940
|
-
};
|
|
3941
|
-
break;
|
|
3191
|
+
throw await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context);
|
|
3942
3192
|
case "OperationIdAlreadyExistsException":
|
|
3943
3193
|
case "com.amazonaws.cloudformation#OperationIdAlreadyExistsException":
|
|
3944
|
-
|
|
3945
|
-
...(await deserializeAws_queryOperationIdAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
3946
|
-
name: errorCode,
|
|
3947
|
-
$metadata: deserializeMetadata(output),
|
|
3948
|
-
};
|
|
3949
|
-
break;
|
|
3194
|
+
throw await deserializeAws_queryOperationIdAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
3950
3195
|
case "OperationInProgressException":
|
|
3951
3196
|
case "com.amazonaws.cloudformation#OperationInProgressException":
|
|
3952
|
-
|
|
3953
|
-
...(await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context)),
|
|
3954
|
-
name: errorCode,
|
|
3955
|
-
$metadata: deserializeMetadata(output),
|
|
3956
|
-
};
|
|
3957
|
-
break;
|
|
3197
|
+
throw await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context);
|
|
3958
3198
|
case "StackInstanceNotFoundException":
|
|
3959
3199
|
case "com.amazonaws.cloudformation#StackInstanceNotFoundException":
|
|
3960
|
-
|
|
3961
|
-
...(await deserializeAws_queryStackInstanceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3962
|
-
name: errorCode,
|
|
3963
|
-
$metadata: deserializeMetadata(output),
|
|
3964
|
-
};
|
|
3965
|
-
break;
|
|
3200
|
+
throw await deserializeAws_queryStackInstanceNotFoundExceptionResponse(parsedOutput, context);
|
|
3966
3201
|
case "StackSetNotFoundException":
|
|
3967
3202
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
3968
|
-
|
|
3969
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
3970
|
-
name: errorCode,
|
|
3971
|
-
$metadata: deserializeMetadata(output),
|
|
3972
|
-
};
|
|
3973
|
-
break;
|
|
3203
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
3974
3204
|
case "StaleRequestException":
|
|
3975
3205
|
case "com.amazonaws.cloudformation#StaleRequestException":
|
|
3976
|
-
|
|
3977
|
-
...(await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context)),
|
|
3978
|
-
name: errorCode,
|
|
3979
|
-
$metadata: deserializeMetadata(output),
|
|
3980
|
-
};
|
|
3981
|
-
break;
|
|
3206
|
+
throw await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context);
|
|
3982
3207
|
default:
|
|
3983
3208
|
const parsedBody = parsedOutput.body;
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
...parsedBody.Error,
|
|
3987
|
-
name: `${errorCode}`,
|
|
3988
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3209
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3210
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3989
3211
|
$fault: "client",
|
|
3990
3212
|
$metadata: deserializeMetadata(output),
|
|
3991
|
-
};
|
|
3213
|
+
});
|
|
3214
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3992
3215
|
}
|
|
3993
|
-
const message = response.message || response.Message || errorCode;
|
|
3994
|
-
response.message = message;
|
|
3995
|
-
delete response.Message;
|
|
3996
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3997
3216
|
};
|
|
3998
3217
|
const deserializeAws_queryUpdateStackSetCommand = async (output, context) => {
|
|
3999
3218
|
if (output.statusCode >= 300) {
|
|
@@ -4020,67 +3239,31 @@ const deserializeAws_queryUpdateStackSetCommandError = async (output, context) =
|
|
|
4020
3239
|
switch (errorCode) {
|
|
4021
3240
|
case "InvalidOperationException":
|
|
4022
3241
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
4023
|
-
|
|
4024
|
-
...(await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context)),
|
|
4025
|
-
name: errorCode,
|
|
4026
|
-
$metadata: deserializeMetadata(output),
|
|
4027
|
-
};
|
|
4028
|
-
break;
|
|
3242
|
+
throw await deserializeAws_queryInvalidOperationExceptionResponse(parsedOutput, context);
|
|
4029
3243
|
case "OperationIdAlreadyExistsException":
|
|
4030
3244
|
case "com.amazonaws.cloudformation#OperationIdAlreadyExistsException":
|
|
4031
|
-
|
|
4032
|
-
...(await deserializeAws_queryOperationIdAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
4033
|
-
name: errorCode,
|
|
4034
|
-
$metadata: deserializeMetadata(output),
|
|
4035
|
-
};
|
|
4036
|
-
break;
|
|
3245
|
+
throw await deserializeAws_queryOperationIdAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
4037
3246
|
case "OperationInProgressException":
|
|
4038
3247
|
case "com.amazonaws.cloudformation#OperationInProgressException":
|
|
4039
|
-
|
|
4040
|
-
...(await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context)),
|
|
4041
|
-
name: errorCode,
|
|
4042
|
-
$metadata: deserializeMetadata(output),
|
|
4043
|
-
};
|
|
4044
|
-
break;
|
|
3248
|
+
throw await deserializeAws_queryOperationInProgressExceptionResponse(parsedOutput, context);
|
|
4045
3249
|
case "StackInstanceNotFoundException":
|
|
4046
3250
|
case "com.amazonaws.cloudformation#StackInstanceNotFoundException":
|
|
4047
|
-
|
|
4048
|
-
...(await deserializeAws_queryStackInstanceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4049
|
-
name: errorCode,
|
|
4050
|
-
$metadata: deserializeMetadata(output),
|
|
4051
|
-
};
|
|
4052
|
-
break;
|
|
3251
|
+
throw await deserializeAws_queryStackInstanceNotFoundExceptionResponse(parsedOutput, context);
|
|
4053
3252
|
case "StackSetNotFoundException":
|
|
4054
3253
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
4055
|
-
|
|
4056
|
-
...(await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context)),
|
|
4057
|
-
name: errorCode,
|
|
4058
|
-
$metadata: deserializeMetadata(output),
|
|
4059
|
-
};
|
|
4060
|
-
break;
|
|
3254
|
+
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
4061
3255
|
case "StaleRequestException":
|
|
4062
3256
|
case "com.amazonaws.cloudformation#StaleRequestException":
|
|
4063
|
-
|
|
4064
|
-
...(await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context)),
|
|
4065
|
-
name: errorCode,
|
|
4066
|
-
$metadata: deserializeMetadata(output),
|
|
4067
|
-
};
|
|
4068
|
-
break;
|
|
3257
|
+
throw await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context);
|
|
4069
3258
|
default:
|
|
4070
3259
|
const parsedBody = parsedOutput.body;
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
...parsedBody.Error,
|
|
4074
|
-
name: `${errorCode}`,
|
|
4075
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3260
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3261
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4076
3262
|
$fault: "client",
|
|
4077
3263
|
$metadata: deserializeMetadata(output),
|
|
4078
|
-
};
|
|
3264
|
+
});
|
|
3265
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4079
3266
|
}
|
|
4080
|
-
const message = response.message || response.Message || errorCode;
|
|
4081
|
-
response.message = message;
|
|
4082
|
-
delete response.Message;
|
|
4083
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4084
3267
|
};
|
|
4085
3268
|
const deserializeAws_queryUpdateTerminationProtectionCommand = async (output, context) => {
|
|
4086
3269
|
if (output.statusCode >= 300) {
|
|
@@ -4107,19 +3290,13 @@ const deserializeAws_queryUpdateTerminationProtectionCommandError = async (outpu
|
|
|
4107
3290
|
switch (errorCode) {
|
|
4108
3291
|
default:
|
|
4109
3292
|
const parsedBody = parsedOutput.body;
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
...parsedBody.Error,
|
|
4113
|
-
name: `${errorCode}`,
|
|
4114
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3293
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3294
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4115
3295
|
$fault: "client",
|
|
4116
3296
|
$metadata: deserializeMetadata(output),
|
|
4117
|
-
};
|
|
3297
|
+
});
|
|
3298
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4118
3299
|
}
|
|
4119
|
-
const message = response.message || response.Message || errorCode;
|
|
4120
|
-
response.message = message;
|
|
4121
|
-
delete response.Message;
|
|
4122
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4123
3300
|
};
|
|
4124
3301
|
const deserializeAws_queryValidateTemplateCommand = async (output, context) => {
|
|
4125
3302
|
if (output.statusCode >= 300) {
|
|
@@ -4146,261 +3323,211 @@ const deserializeAws_queryValidateTemplateCommandError = async (output, context)
|
|
|
4146
3323
|
switch (errorCode) {
|
|
4147
3324
|
default:
|
|
4148
3325
|
const parsedBody = parsedOutput.body;
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
...parsedBody.Error,
|
|
4152
|
-
name: `${errorCode}`,
|
|
4153
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3326
|
+
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3327
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4154
3328
|
$fault: "client",
|
|
4155
3329
|
$metadata: deserializeMetadata(output),
|
|
4156
|
-
};
|
|
3330
|
+
});
|
|
3331
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4157
3332
|
}
|
|
4158
|
-
const message = response.message || response.Message || errorCode;
|
|
4159
|
-
response.message = message;
|
|
4160
|
-
delete response.Message;
|
|
4161
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4162
3333
|
};
|
|
4163
3334
|
const deserializeAws_queryAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4164
3335
|
const body = parsedOutput.body;
|
|
4165
3336
|
const deserialized = deserializeAws_queryAlreadyExistsException(body.Error, context);
|
|
4166
|
-
const
|
|
4167
|
-
name: "AlreadyExistsException",
|
|
4168
|
-
$fault: "client",
|
|
3337
|
+
const exception = new models_0_1.AlreadyExistsException({
|
|
4169
3338
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4170
3339
|
...deserialized,
|
|
4171
|
-
};
|
|
4172
|
-
return
|
|
3340
|
+
});
|
|
3341
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4173
3342
|
};
|
|
4174
3343
|
const deserializeAws_queryCFNRegistryExceptionResponse = async (parsedOutput, context) => {
|
|
4175
3344
|
const body = parsedOutput.body;
|
|
4176
3345
|
const deserialized = deserializeAws_queryCFNRegistryException(body.Error, context);
|
|
4177
|
-
const
|
|
4178
|
-
name: "CFNRegistryException",
|
|
4179
|
-
$fault: "client",
|
|
3346
|
+
const exception = new models_0_1.CFNRegistryException({
|
|
4180
3347
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4181
3348
|
...deserialized,
|
|
4182
|
-
};
|
|
4183
|
-
return
|
|
3349
|
+
});
|
|
3350
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4184
3351
|
};
|
|
4185
3352
|
const deserializeAws_queryChangeSetNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4186
3353
|
const body = parsedOutput.body;
|
|
4187
3354
|
const deserialized = deserializeAws_queryChangeSetNotFoundException(body.Error, context);
|
|
4188
|
-
const
|
|
4189
|
-
name: "ChangeSetNotFoundException",
|
|
4190
|
-
$fault: "client",
|
|
3355
|
+
const exception = new models_0_1.ChangeSetNotFoundException({
|
|
4191
3356
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4192
3357
|
...deserialized,
|
|
4193
|
-
};
|
|
4194
|
-
return
|
|
3358
|
+
});
|
|
3359
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4195
3360
|
};
|
|
4196
3361
|
const deserializeAws_queryCreatedButModifiedExceptionResponse = async (parsedOutput, context) => {
|
|
4197
3362
|
const body = parsedOutput.body;
|
|
4198
3363
|
const deserialized = deserializeAws_queryCreatedButModifiedException(body.Error, context);
|
|
4199
|
-
const
|
|
4200
|
-
name: "CreatedButModifiedException",
|
|
4201
|
-
$fault: "client",
|
|
3364
|
+
const exception = new models_0_1.CreatedButModifiedException({
|
|
4202
3365
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4203
3366
|
...deserialized,
|
|
4204
|
-
};
|
|
4205
|
-
return
|
|
3367
|
+
});
|
|
3368
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4206
3369
|
};
|
|
4207
3370
|
const deserializeAws_queryInsufficientCapabilitiesExceptionResponse = async (parsedOutput, context) => {
|
|
4208
3371
|
const body = parsedOutput.body;
|
|
4209
3372
|
const deserialized = deserializeAws_queryInsufficientCapabilitiesException(body.Error, context);
|
|
4210
|
-
const
|
|
4211
|
-
name: "InsufficientCapabilitiesException",
|
|
4212
|
-
$fault: "client",
|
|
3373
|
+
const exception = new models_0_1.InsufficientCapabilitiesException({
|
|
4213
3374
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4214
3375
|
...deserialized,
|
|
4215
|
-
};
|
|
4216
|
-
return
|
|
3376
|
+
});
|
|
3377
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4217
3378
|
};
|
|
4218
3379
|
const deserializeAws_queryInvalidChangeSetStatusExceptionResponse = async (parsedOutput, context) => {
|
|
4219
3380
|
const body = parsedOutput.body;
|
|
4220
3381
|
const deserialized = deserializeAws_queryInvalidChangeSetStatusException(body.Error, context);
|
|
4221
|
-
const
|
|
4222
|
-
name: "InvalidChangeSetStatusException",
|
|
4223
|
-
$fault: "client",
|
|
3382
|
+
const exception = new models_0_1.InvalidChangeSetStatusException({
|
|
4224
3383
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4225
3384
|
...deserialized,
|
|
4226
|
-
};
|
|
4227
|
-
return
|
|
3385
|
+
});
|
|
3386
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4228
3387
|
};
|
|
4229
3388
|
const deserializeAws_queryInvalidOperationExceptionResponse = async (parsedOutput, context) => {
|
|
4230
3389
|
const body = parsedOutput.body;
|
|
4231
3390
|
const deserialized = deserializeAws_queryInvalidOperationException(body.Error, context);
|
|
4232
|
-
const
|
|
4233
|
-
name: "InvalidOperationException",
|
|
4234
|
-
$fault: "client",
|
|
3391
|
+
const exception = new models_0_1.InvalidOperationException({
|
|
4235
3392
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4236
3393
|
...deserialized,
|
|
4237
|
-
};
|
|
4238
|
-
return
|
|
3394
|
+
});
|
|
3395
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4239
3396
|
};
|
|
4240
3397
|
const deserializeAws_queryInvalidStateTransitionExceptionResponse = async (parsedOutput, context) => {
|
|
4241
3398
|
const body = parsedOutput.body;
|
|
4242
3399
|
const deserialized = deserializeAws_queryInvalidStateTransitionException(body.Error, context);
|
|
4243
|
-
const
|
|
4244
|
-
name: "InvalidStateTransitionException",
|
|
4245
|
-
$fault: "client",
|
|
3400
|
+
const exception = new models_0_1.InvalidStateTransitionException({
|
|
4246
3401
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4247
3402
|
...deserialized,
|
|
4248
|
-
};
|
|
4249
|
-
return
|
|
3403
|
+
});
|
|
3404
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4250
3405
|
};
|
|
4251
3406
|
const deserializeAws_queryLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4252
3407
|
const body = parsedOutput.body;
|
|
4253
3408
|
const deserialized = deserializeAws_queryLimitExceededException(body.Error, context);
|
|
4254
|
-
const
|
|
4255
|
-
name: "LimitExceededException",
|
|
4256
|
-
$fault: "client",
|
|
3409
|
+
const exception = new models_0_1.LimitExceededException({
|
|
4257
3410
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4258
3411
|
...deserialized,
|
|
4259
|
-
};
|
|
4260
|
-
return
|
|
3412
|
+
});
|
|
3413
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4261
3414
|
};
|
|
4262
3415
|
const deserializeAws_queryNameAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4263
3416
|
const body = parsedOutput.body;
|
|
4264
3417
|
const deserialized = deserializeAws_queryNameAlreadyExistsException(body.Error, context);
|
|
4265
|
-
const
|
|
4266
|
-
name: "NameAlreadyExistsException",
|
|
4267
|
-
$fault: "client",
|
|
3418
|
+
const exception = new models_0_1.NameAlreadyExistsException({
|
|
4268
3419
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4269
3420
|
...deserialized,
|
|
4270
|
-
};
|
|
4271
|
-
return
|
|
3421
|
+
});
|
|
3422
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4272
3423
|
};
|
|
4273
3424
|
const deserializeAws_queryOperationIdAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4274
3425
|
const body = parsedOutput.body;
|
|
4275
3426
|
const deserialized = deserializeAws_queryOperationIdAlreadyExistsException(body.Error, context);
|
|
4276
|
-
const
|
|
4277
|
-
name: "OperationIdAlreadyExistsException",
|
|
4278
|
-
$fault: "client",
|
|
3427
|
+
const exception = new models_0_1.OperationIdAlreadyExistsException({
|
|
4279
3428
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4280
3429
|
...deserialized,
|
|
4281
|
-
};
|
|
4282
|
-
return
|
|
3430
|
+
});
|
|
3431
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4283
3432
|
};
|
|
4284
3433
|
const deserializeAws_queryOperationInProgressExceptionResponse = async (parsedOutput, context) => {
|
|
4285
3434
|
const body = parsedOutput.body;
|
|
4286
3435
|
const deserialized = deserializeAws_queryOperationInProgressException(body.Error, context);
|
|
4287
|
-
const
|
|
4288
|
-
name: "OperationInProgressException",
|
|
4289
|
-
$fault: "client",
|
|
3436
|
+
const exception = new models_0_1.OperationInProgressException({
|
|
4290
3437
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4291
3438
|
...deserialized,
|
|
4292
|
-
};
|
|
4293
|
-
return
|
|
3439
|
+
});
|
|
3440
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4294
3441
|
};
|
|
4295
3442
|
const deserializeAws_queryOperationNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4296
3443
|
const body = parsedOutput.body;
|
|
4297
3444
|
const deserialized = deserializeAws_queryOperationNotFoundException(body.Error, context);
|
|
4298
|
-
const
|
|
4299
|
-
name: "OperationNotFoundException",
|
|
4300
|
-
$fault: "client",
|
|
3445
|
+
const exception = new models_0_1.OperationNotFoundException({
|
|
4301
3446
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4302
3447
|
...deserialized,
|
|
4303
|
-
};
|
|
4304
|
-
return
|
|
3448
|
+
});
|
|
3449
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4305
3450
|
};
|
|
4306
3451
|
const deserializeAws_queryOperationStatusCheckFailedExceptionResponse = async (parsedOutput, context) => {
|
|
4307
3452
|
const body = parsedOutput.body;
|
|
4308
3453
|
const deserialized = deserializeAws_queryOperationStatusCheckFailedException(body.Error, context);
|
|
4309
|
-
const
|
|
4310
|
-
name: "OperationStatusCheckFailedException",
|
|
4311
|
-
$fault: "client",
|
|
3454
|
+
const exception = new models_0_1.OperationStatusCheckFailedException({
|
|
4312
3455
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4313
3456
|
...deserialized,
|
|
4314
|
-
};
|
|
4315
|
-
return
|
|
3457
|
+
});
|
|
3458
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4316
3459
|
};
|
|
4317
3460
|
const deserializeAws_queryStackInstanceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4318
3461
|
const body = parsedOutput.body;
|
|
4319
3462
|
const deserialized = deserializeAws_queryStackInstanceNotFoundException(body.Error, context);
|
|
4320
|
-
const
|
|
4321
|
-
name: "StackInstanceNotFoundException",
|
|
4322
|
-
$fault: "client",
|
|
3463
|
+
const exception = new models_0_1.StackInstanceNotFoundException({
|
|
4323
3464
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4324
3465
|
...deserialized,
|
|
4325
|
-
};
|
|
4326
|
-
return
|
|
3466
|
+
});
|
|
3467
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4327
3468
|
};
|
|
4328
3469
|
const deserializeAws_queryStackNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4329
3470
|
const body = parsedOutput.body;
|
|
4330
3471
|
const deserialized = deserializeAws_queryStackNotFoundException(body.Error, context);
|
|
4331
|
-
const
|
|
4332
|
-
name: "StackNotFoundException",
|
|
4333
|
-
$fault: "client",
|
|
3472
|
+
const exception = new models_0_1.StackNotFoundException({
|
|
4334
3473
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4335
3474
|
...deserialized,
|
|
4336
|
-
};
|
|
4337
|
-
return
|
|
3475
|
+
});
|
|
3476
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4338
3477
|
};
|
|
4339
3478
|
const deserializeAws_queryStackSetNotEmptyExceptionResponse = async (parsedOutput, context) => {
|
|
4340
3479
|
const body = parsedOutput.body;
|
|
4341
3480
|
const deserialized = deserializeAws_queryStackSetNotEmptyException(body.Error, context);
|
|
4342
|
-
const
|
|
4343
|
-
name: "StackSetNotEmptyException",
|
|
4344
|
-
$fault: "client",
|
|
3481
|
+
const exception = new models_0_1.StackSetNotEmptyException({
|
|
4345
3482
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4346
3483
|
...deserialized,
|
|
4347
|
-
};
|
|
4348
|
-
return
|
|
3484
|
+
});
|
|
3485
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4349
3486
|
};
|
|
4350
3487
|
const deserializeAws_queryStackSetNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4351
3488
|
const body = parsedOutput.body;
|
|
4352
3489
|
const deserialized = deserializeAws_queryStackSetNotFoundException(body.Error, context);
|
|
4353
|
-
const
|
|
4354
|
-
name: "StackSetNotFoundException",
|
|
4355
|
-
$fault: "client",
|
|
3490
|
+
const exception = new models_0_1.StackSetNotFoundException({
|
|
4356
3491
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4357
3492
|
...deserialized,
|
|
4358
|
-
};
|
|
4359
|
-
return
|
|
3493
|
+
});
|
|
3494
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4360
3495
|
};
|
|
4361
3496
|
const deserializeAws_queryStaleRequestExceptionResponse = async (parsedOutput, context) => {
|
|
4362
3497
|
const body = parsedOutput.body;
|
|
4363
3498
|
const deserialized = deserializeAws_queryStaleRequestException(body.Error, context);
|
|
4364
|
-
const
|
|
4365
|
-
name: "StaleRequestException",
|
|
4366
|
-
$fault: "client",
|
|
3499
|
+
const exception = new models_0_1.StaleRequestException({
|
|
4367
3500
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4368
3501
|
...deserialized,
|
|
4369
|
-
};
|
|
4370
|
-
return
|
|
3502
|
+
});
|
|
3503
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4371
3504
|
};
|
|
4372
3505
|
const deserializeAws_queryTokenAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4373
3506
|
const body = parsedOutput.body;
|
|
4374
3507
|
const deserialized = deserializeAws_queryTokenAlreadyExistsException(body.Error, context);
|
|
4375
|
-
const
|
|
4376
|
-
name: "TokenAlreadyExistsException",
|
|
4377
|
-
$fault: "client",
|
|
3508
|
+
const exception = new models_0_1.TokenAlreadyExistsException({
|
|
4378
3509
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4379
3510
|
...deserialized,
|
|
4380
|
-
};
|
|
4381
|
-
return
|
|
3511
|
+
});
|
|
3512
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4382
3513
|
};
|
|
4383
3514
|
const deserializeAws_queryTypeConfigurationNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4384
3515
|
const body = parsedOutput.body;
|
|
4385
3516
|
const deserialized = deserializeAws_queryTypeConfigurationNotFoundException(body.Error, context);
|
|
4386
|
-
const
|
|
4387
|
-
name: "TypeConfigurationNotFoundException",
|
|
4388
|
-
$fault: "client",
|
|
3517
|
+
const exception = new models_0_1.TypeConfigurationNotFoundException({
|
|
4389
3518
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4390
3519
|
...deserialized,
|
|
4391
|
-
};
|
|
4392
|
-
return
|
|
3520
|
+
});
|
|
3521
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4393
3522
|
};
|
|
4394
3523
|
const deserializeAws_queryTypeNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4395
3524
|
const body = parsedOutput.body;
|
|
4396
3525
|
const deserialized = deserializeAws_queryTypeNotFoundException(body.Error, context);
|
|
4397
|
-
const
|
|
4398
|
-
name: "TypeNotFoundException",
|
|
4399
|
-
$fault: "client",
|
|
3526
|
+
const exception = new models_0_1.TypeNotFoundException({
|
|
4400
3527
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4401
3528
|
...deserialized,
|
|
4402
|
-
};
|
|
4403
|
-
return
|
|
3529
|
+
});
|
|
3530
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4404
3531
|
};
|
|
4405
3532
|
const serializeAws_queryAccountList = (input, context) => {
|
|
4406
3533
|
const entries = {};
|
|
@@ -4944,6 +4071,22 @@ const serializeAws_queryDescribeAccountLimitsInput = (input, context) => {
|
|
|
4944
4071
|
}
|
|
4945
4072
|
return entries;
|
|
4946
4073
|
};
|
|
4074
|
+
const serializeAws_queryDescribeChangeSetHooksInput = (input, context) => {
|
|
4075
|
+
const entries = {};
|
|
4076
|
+
if (input.ChangeSetName !== undefined && input.ChangeSetName !== null) {
|
|
4077
|
+
entries["ChangeSetName"] = input.ChangeSetName;
|
|
4078
|
+
}
|
|
4079
|
+
if (input.StackName !== undefined && input.StackName !== null) {
|
|
4080
|
+
entries["StackName"] = input.StackName;
|
|
4081
|
+
}
|
|
4082
|
+
if (input.NextToken !== undefined && input.NextToken !== null) {
|
|
4083
|
+
entries["NextToken"] = input.NextToken;
|
|
4084
|
+
}
|
|
4085
|
+
if (input.LogicalResourceId !== undefined && input.LogicalResourceId !== null) {
|
|
4086
|
+
entries["LogicalResourceId"] = input.LogicalResourceId;
|
|
4087
|
+
}
|
|
4088
|
+
return entries;
|
|
4089
|
+
};
|
|
4947
4090
|
const serializeAws_queryDescribeChangeSetInput = (input, context) => {
|
|
4948
4091
|
const entries = {};
|
|
4949
4092
|
if (input.ChangeSetName !== undefined && input.ChangeSetName !== null) {
|
|
@@ -6441,11 +5584,15 @@ const deserializeAws_queryCFNRegistryException = (output, context) => {
|
|
|
6441
5584
|
const deserializeAws_queryChange = (output, context) => {
|
|
6442
5585
|
const contents = {
|
|
6443
5586
|
Type: undefined,
|
|
5587
|
+
HookInvocationCount: undefined,
|
|
6444
5588
|
ResourceChange: undefined,
|
|
6445
5589
|
};
|
|
6446
5590
|
if (output["Type"] !== undefined) {
|
|
6447
5591
|
contents.Type = smithy_client_1.expectString(output["Type"]);
|
|
6448
5592
|
}
|
|
5593
|
+
if (output["HookInvocationCount"] !== undefined) {
|
|
5594
|
+
contents.HookInvocationCount = smithy_client_1.strictParseInt32(output["HookInvocationCount"]);
|
|
5595
|
+
}
|
|
6449
5596
|
if (output["ResourceChange"] !== undefined) {
|
|
6450
5597
|
contents.ResourceChange = deserializeAws_queryResourceChange(output["ResourceChange"], context);
|
|
6451
5598
|
}
|
|
@@ -6461,6 +5608,75 @@ const deserializeAws_queryChanges = (output, context) => {
|
|
|
6461
5608
|
return deserializeAws_queryChange(entry, context);
|
|
6462
5609
|
});
|
|
6463
5610
|
};
|
|
5611
|
+
const deserializeAws_queryChangeSetHook = (output, context) => {
|
|
5612
|
+
const contents = {
|
|
5613
|
+
InvocationPoint: undefined,
|
|
5614
|
+
FailureMode: undefined,
|
|
5615
|
+
TypeName: undefined,
|
|
5616
|
+
TypeVersionId: undefined,
|
|
5617
|
+
TypeConfigurationVersionId: undefined,
|
|
5618
|
+
TargetDetails: undefined,
|
|
5619
|
+
};
|
|
5620
|
+
if (output["InvocationPoint"] !== undefined) {
|
|
5621
|
+
contents.InvocationPoint = smithy_client_1.expectString(output["InvocationPoint"]);
|
|
5622
|
+
}
|
|
5623
|
+
if (output["FailureMode"] !== undefined) {
|
|
5624
|
+
contents.FailureMode = smithy_client_1.expectString(output["FailureMode"]);
|
|
5625
|
+
}
|
|
5626
|
+
if (output["TypeName"] !== undefined) {
|
|
5627
|
+
contents.TypeName = smithy_client_1.expectString(output["TypeName"]);
|
|
5628
|
+
}
|
|
5629
|
+
if (output["TypeVersionId"] !== undefined) {
|
|
5630
|
+
contents.TypeVersionId = smithy_client_1.expectString(output["TypeVersionId"]);
|
|
5631
|
+
}
|
|
5632
|
+
if (output["TypeConfigurationVersionId"] !== undefined) {
|
|
5633
|
+
contents.TypeConfigurationVersionId = smithy_client_1.expectString(output["TypeConfigurationVersionId"]);
|
|
5634
|
+
}
|
|
5635
|
+
if (output["TargetDetails"] !== undefined) {
|
|
5636
|
+
contents.TargetDetails = deserializeAws_queryChangeSetHookTargetDetails(output["TargetDetails"], context);
|
|
5637
|
+
}
|
|
5638
|
+
return contents;
|
|
5639
|
+
};
|
|
5640
|
+
const deserializeAws_queryChangeSetHookResourceTargetDetails = (output, context) => {
|
|
5641
|
+
const contents = {
|
|
5642
|
+
LogicalResourceId: undefined,
|
|
5643
|
+
ResourceType: undefined,
|
|
5644
|
+
ResourceAction: undefined,
|
|
5645
|
+
};
|
|
5646
|
+
if (output["LogicalResourceId"] !== undefined) {
|
|
5647
|
+
contents.LogicalResourceId = smithy_client_1.expectString(output["LogicalResourceId"]);
|
|
5648
|
+
}
|
|
5649
|
+
if (output["ResourceType"] !== undefined) {
|
|
5650
|
+
contents.ResourceType = smithy_client_1.expectString(output["ResourceType"]);
|
|
5651
|
+
}
|
|
5652
|
+
if (output["ResourceAction"] !== undefined) {
|
|
5653
|
+
contents.ResourceAction = smithy_client_1.expectString(output["ResourceAction"]);
|
|
5654
|
+
}
|
|
5655
|
+
return contents;
|
|
5656
|
+
};
|
|
5657
|
+
const deserializeAws_queryChangeSetHooks = (output, context) => {
|
|
5658
|
+
return (output || [])
|
|
5659
|
+
.filter((e) => e != null)
|
|
5660
|
+
.map((entry) => {
|
|
5661
|
+
if (entry === null) {
|
|
5662
|
+
return null;
|
|
5663
|
+
}
|
|
5664
|
+
return deserializeAws_queryChangeSetHook(entry, context);
|
|
5665
|
+
});
|
|
5666
|
+
};
|
|
5667
|
+
const deserializeAws_queryChangeSetHookTargetDetails = (output, context) => {
|
|
5668
|
+
const contents = {
|
|
5669
|
+
TargetType: undefined,
|
|
5670
|
+
ResourceTargetDetails: undefined,
|
|
5671
|
+
};
|
|
5672
|
+
if (output["TargetType"] !== undefined) {
|
|
5673
|
+
contents.TargetType = smithy_client_1.expectString(output["TargetType"]);
|
|
5674
|
+
}
|
|
5675
|
+
if (output["ResourceTargetDetails"] !== undefined) {
|
|
5676
|
+
contents.ResourceTargetDetails = deserializeAws_queryChangeSetHookResourceTargetDetails(output["ResourceTargetDetails"], context);
|
|
5677
|
+
}
|
|
5678
|
+
return contents;
|
|
5679
|
+
};
|
|
6464
5680
|
const deserializeAws_queryChangeSetNotFoundException = (output, context) => {
|
|
6465
5681
|
const contents = {
|
|
6466
5682
|
Message: undefined,
|
|
@@ -6650,6 +5866,42 @@ const deserializeAws_queryDescribeAccountLimitsOutput = (output, context) => {
|
|
|
6650
5866
|
}
|
|
6651
5867
|
return contents;
|
|
6652
5868
|
};
|
|
5869
|
+
const deserializeAws_queryDescribeChangeSetHooksOutput = (output, context) => {
|
|
5870
|
+
const contents = {
|
|
5871
|
+
ChangeSetId: undefined,
|
|
5872
|
+
ChangeSetName: undefined,
|
|
5873
|
+
Hooks: undefined,
|
|
5874
|
+
Status: undefined,
|
|
5875
|
+
NextToken: undefined,
|
|
5876
|
+
StackId: undefined,
|
|
5877
|
+
StackName: undefined,
|
|
5878
|
+
};
|
|
5879
|
+
if (output["ChangeSetId"] !== undefined) {
|
|
5880
|
+
contents.ChangeSetId = smithy_client_1.expectString(output["ChangeSetId"]);
|
|
5881
|
+
}
|
|
5882
|
+
if (output["ChangeSetName"] !== undefined) {
|
|
5883
|
+
contents.ChangeSetName = smithy_client_1.expectString(output["ChangeSetName"]);
|
|
5884
|
+
}
|
|
5885
|
+
if (output.Hooks === "") {
|
|
5886
|
+
contents.Hooks = [];
|
|
5887
|
+
}
|
|
5888
|
+
if (output["Hooks"] !== undefined && output["Hooks"]["member"] !== undefined) {
|
|
5889
|
+
contents.Hooks = deserializeAws_queryChangeSetHooks(smithy_client_1.getArrayIfSingleItem(output["Hooks"]["member"]), context);
|
|
5890
|
+
}
|
|
5891
|
+
if (output["Status"] !== undefined) {
|
|
5892
|
+
contents.Status = smithy_client_1.expectString(output["Status"]);
|
|
5893
|
+
}
|
|
5894
|
+
if (output["NextToken"] !== undefined) {
|
|
5895
|
+
contents.NextToken = smithy_client_1.expectString(output["NextToken"]);
|
|
5896
|
+
}
|
|
5897
|
+
if (output["StackId"] !== undefined) {
|
|
5898
|
+
contents.StackId = smithy_client_1.expectString(output["StackId"]);
|
|
5899
|
+
}
|
|
5900
|
+
if (output["StackName"] !== undefined) {
|
|
5901
|
+
contents.StackName = smithy_client_1.expectString(output["StackName"]);
|
|
5902
|
+
}
|
|
5903
|
+
return contents;
|
|
5904
|
+
};
|
|
6653
5905
|
const deserializeAws_queryDescribeChangeSetOutput = (output, context) => {
|
|
6654
5906
|
const contents = {
|
|
6655
5907
|
ChangeSetName: undefined,
|
|
@@ -8166,6 +7418,11 @@ const deserializeAws_queryStackEvent = (output, context) => {
|
|
|
8166
7418
|
ResourceStatusReason: undefined,
|
|
8167
7419
|
ResourceProperties: undefined,
|
|
8168
7420
|
ClientRequestToken: undefined,
|
|
7421
|
+
HookType: undefined,
|
|
7422
|
+
HookStatus: undefined,
|
|
7423
|
+
HookStatusReason: undefined,
|
|
7424
|
+
HookInvocationPoint: undefined,
|
|
7425
|
+
HookFailureMode: undefined,
|
|
8169
7426
|
};
|
|
8170
7427
|
if (output["StackId"] !== undefined) {
|
|
8171
7428
|
contents.StackId = smithy_client_1.expectString(output["StackId"]);
|
|
@@ -8200,6 +7457,21 @@ const deserializeAws_queryStackEvent = (output, context) => {
|
|
|
8200
7457
|
if (output["ClientRequestToken"] !== undefined) {
|
|
8201
7458
|
contents.ClientRequestToken = smithy_client_1.expectString(output["ClientRequestToken"]);
|
|
8202
7459
|
}
|
|
7460
|
+
if (output["HookType"] !== undefined) {
|
|
7461
|
+
contents.HookType = smithy_client_1.expectString(output["HookType"]);
|
|
7462
|
+
}
|
|
7463
|
+
if (output["HookStatus"] !== undefined) {
|
|
7464
|
+
contents.HookStatus = smithy_client_1.expectString(output["HookStatus"]);
|
|
7465
|
+
}
|
|
7466
|
+
if (output["HookStatusReason"] !== undefined) {
|
|
7467
|
+
contents.HookStatusReason = smithy_client_1.expectString(output["HookStatusReason"]);
|
|
7468
|
+
}
|
|
7469
|
+
if (output["HookInvocationPoint"] !== undefined) {
|
|
7470
|
+
contents.HookInvocationPoint = smithy_client_1.expectString(output["HookInvocationPoint"]);
|
|
7471
|
+
}
|
|
7472
|
+
if (output["HookFailureMode"] !== undefined) {
|
|
7473
|
+
contents.HookFailureMode = smithy_client_1.expectString(output["HookFailureMode"]);
|
|
7474
|
+
}
|
|
8203
7475
|
return contents;
|
|
8204
7476
|
};
|
|
8205
7477
|
const deserializeAws_queryStackEvents = (output, context) => {
|