@cdk8s/awscdk-resolver 0.0.56 → 0.0.58
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/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +191 -1696
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +180 -1685
- package/node_modules/@aws-sdk/client-cloudformation/package.json +14 -14
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +9 -90
- package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +8 -89
- package/node_modules/@aws-sdk/client-sso/package.json +11 -11
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +30 -135
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +29 -134
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +14 -14
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +74 -196
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +17 -15
- package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +30 -178
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +4 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts +11 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultRoleAssumers.d.ts +4 -7
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +11 -3
- package/node_modules/@aws-sdk/client-sts/package.json +12 -12
- package/node_modules/@aws-sdk/core/CHANGELOG.md +11 -0
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +13 -7
- package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +6 -2
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts +10 -2
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +10 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +5 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +28 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +5 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +10 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthConfiguration.js +6 -2
- package/node_modules/@aws-sdk/middleware-signing/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +16 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +3 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/index.js +26 -15
- package/node_modules/@smithy/core/dist-es/pagination/createPaginator.js +12 -1
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +13 -3
- package/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js +1 -1
- package/node_modules/@smithy/util-defaults-mode-node/package.json +1 -1
- package/package.json +5 -5
@@ -816,7 +816,7 @@ export const se_ValidateTemplateCommand = async (input, context) => {
|
|
816
816
|
};
|
817
817
|
export const de_ActivateOrganizationsAccessCommand = async (output, context) => {
|
818
818
|
if (output.statusCode >= 300) {
|
819
|
-
return
|
819
|
+
return de_CommandError(output, context);
|
820
820
|
}
|
821
821
|
const data = await parseBody(output.body, context);
|
822
822
|
let contents = {};
|
@@ -827,31 +827,9 @@ export const de_ActivateOrganizationsAccessCommand = async (output, context) =>
|
|
827
827
|
};
|
828
828
|
return response;
|
829
829
|
};
|
830
|
-
const de_ActivateOrganizationsAccessCommandError = async (output, context) => {
|
831
|
-
const parsedOutput = {
|
832
|
-
...output,
|
833
|
-
body: await parseErrorBody(output.body, context),
|
834
|
-
};
|
835
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
836
|
-
switch (errorCode) {
|
837
|
-
case "InvalidOperationException":
|
838
|
-
case "com.amazonaws.cloudformation#InvalidOperationException":
|
839
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
840
|
-
case "OperationNotFoundException":
|
841
|
-
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
842
|
-
throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
|
843
|
-
default:
|
844
|
-
const parsedBody = parsedOutput.body;
|
845
|
-
return throwDefaultError({
|
846
|
-
output,
|
847
|
-
parsedBody: parsedBody.Error,
|
848
|
-
errorCode,
|
849
|
-
});
|
850
|
-
}
|
851
|
-
};
|
852
830
|
export const de_ActivateTypeCommand = async (output, context) => {
|
853
831
|
if (output.statusCode >= 300) {
|
854
|
-
return
|
832
|
+
return de_CommandError(output, context);
|
855
833
|
}
|
856
834
|
const data = await parseBody(output.body, context);
|
857
835
|
let contents = {};
|
@@ -862,31 +840,9 @@ export const de_ActivateTypeCommand = async (output, context) => {
|
|
862
840
|
};
|
863
841
|
return response;
|
864
842
|
};
|
865
|
-
const de_ActivateTypeCommandError = async (output, context) => {
|
866
|
-
const parsedOutput = {
|
867
|
-
...output,
|
868
|
-
body: await parseErrorBody(output.body, context),
|
869
|
-
};
|
870
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
871
|
-
switch (errorCode) {
|
872
|
-
case "CFNRegistryException":
|
873
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
874
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
875
|
-
case "TypeNotFoundException":
|
876
|
-
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
877
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
878
|
-
default:
|
879
|
-
const parsedBody = parsedOutput.body;
|
880
|
-
return throwDefaultError({
|
881
|
-
output,
|
882
|
-
parsedBody: parsedBody.Error,
|
883
|
-
errorCode,
|
884
|
-
});
|
885
|
-
}
|
886
|
-
};
|
887
843
|
export const de_BatchDescribeTypeConfigurationsCommand = async (output, context) => {
|
888
844
|
if (output.statusCode >= 300) {
|
889
|
-
return
|
845
|
+
return de_CommandError(output, context);
|
890
846
|
}
|
891
847
|
const data = await parseBody(output.body, context);
|
892
848
|
let contents = {};
|
@@ -897,31 +853,9 @@ export const de_BatchDescribeTypeConfigurationsCommand = async (output, context)
|
|
897
853
|
};
|
898
854
|
return response;
|
899
855
|
};
|
900
|
-
const de_BatchDescribeTypeConfigurationsCommandError = async (output, context) => {
|
901
|
-
const parsedOutput = {
|
902
|
-
...output,
|
903
|
-
body: await parseErrorBody(output.body, context),
|
904
|
-
};
|
905
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
906
|
-
switch (errorCode) {
|
907
|
-
case "CFNRegistryException":
|
908
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
909
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
910
|
-
case "TypeConfigurationNotFoundException":
|
911
|
-
case "com.amazonaws.cloudformation#TypeConfigurationNotFoundException":
|
912
|
-
throw await de_TypeConfigurationNotFoundExceptionRes(parsedOutput, context);
|
913
|
-
default:
|
914
|
-
const parsedBody = parsedOutput.body;
|
915
|
-
return throwDefaultError({
|
916
|
-
output,
|
917
|
-
parsedBody: parsedBody.Error,
|
918
|
-
errorCode,
|
919
|
-
});
|
920
|
-
}
|
921
|
-
};
|
922
856
|
export const de_CancelUpdateStackCommand = async (output, context) => {
|
923
857
|
if (output.statusCode >= 300) {
|
924
|
-
return
|
858
|
+
return de_CommandError(output, context);
|
925
859
|
}
|
926
860
|
await collectBody(output.body, context);
|
927
861
|
const response = {
|
@@ -929,28 +863,9 @@ export const de_CancelUpdateStackCommand = async (output, context) => {
|
|
929
863
|
};
|
930
864
|
return response;
|
931
865
|
};
|
932
|
-
const de_CancelUpdateStackCommandError = async (output, context) => {
|
933
|
-
const parsedOutput = {
|
934
|
-
...output,
|
935
|
-
body: await parseErrorBody(output.body, context),
|
936
|
-
};
|
937
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
938
|
-
switch (errorCode) {
|
939
|
-
case "TokenAlreadyExistsException":
|
940
|
-
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
941
|
-
throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
|
942
|
-
default:
|
943
|
-
const parsedBody = parsedOutput.body;
|
944
|
-
return throwDefaultError({
|
945
|
-
output,
|
946
|
-
parsedBody: parsedBody.Error,
|
947
|
-
errorCode,
|
948
|
-
});
|
949
|
-
}
|
950
|
-
};
|
951
866
|
export const de_ContinueUpdateRollbackCommand = async (output, context) => {
|
952
867
|
if (output.statusCode >= 300) {
|
953
|
-
return
|
868
|
+
return de_CommandError(output, context);
|
954
869
|
}
|
955
870
|
const data = await parseBody(output.body, context);
|
956
871
|
let contents = {};
|
@@ -961,28 +876,9 @@ export const de_ContinueUpdateRollbackCommand = async (output, context) => {
|
|
961
876
|
};
|
962
877
|
return response;
|
963
878
|
};
|
964
|
-
const de_ContinueUpdateRollbackCommandError = async (output, context) => {
|
965
|
-
const parsedOutput = {
|
966
|
-
...output,
|
967
|
-
body: await parseErrorBody(output.body, context),
|
968
|
-
};
|
969
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
970
|
-
switch (errorCode) {
|
971
|
-
case "TokenAlreadyExistsException":
|
972
|
-
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
973
|
-
throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
|
974
|
-
default:
|
975
|
-
const parsedBody = parsedOutput.body;
|
976
|
-
return throwDefaultError({
|
977
|
-
output,
|
978
|
-
parsedBody: parsedBody.Error,
|
979
|
-
errorCode,
|
980
|
-
});
|
981
|
-
}
|
982
|
-
};
|
983
879
|
export const de_CreateChangeSetCommand = async (output, context) => {
|
984
880
|
if (output.statusCode >= 300) {
|
985
|
-
return
|
881
|
+
return de_CommandError(output, context);
|
986
882
|
}
|
987
883
|
const data = await parseBody(output.body, context);
|
988
884
|
let contents = {};
|
@@ -993,34 +889,9 @@ export const de_CreateChangeSetCommand = async (output, context) => {
|
|
993
889
|
};
|
994
890
|
return response;
|
995
891
|
};
|
996
|
-
const de_CreateChangeSetCommandError = async (output, context) => {
|
997
|
-
const parsedOutput = {
|
998
|
-
...output,
|
999
|
-
body: await parseErrorBody(output.body, context),
|
1000
|
-
};
|
1001
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1002
|
-
switch (errorCode) {
|
1003
|
-
case "AlreadyExistsException":
|
1004
|
-
case "com.amazonaws.cloudformation#AlreadyExistsException":
|
1005
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
1006
|
-
case "InsufficientCapabilitiesException":
|
1007
|
-
case "com.amazonaws.cloudformation#InsufficientCapabilitiesException":
|
1008
|
-
throw await de_InsufficientCapabilitiesExceptionRes(parsedOutput, context);
|
1009
|
-
case "LimitExceededException":
|
1010
|
-
case "com.amazonaws.cloudformation#LimitExceededException":
|
1011
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
1012
|
-
default:
|
1013
|
-
const parsedBody = parsedOutput.body;
|
1014
|
-
return throwDefaultError({
|
1015
|
-
output,
|
1016
|
-
parsedBody: parsedBody.Error,
|
1017
|
-
errorCode,
|
1018
|
-
});
|
1019
|
-
}
|
1020
|
-
};
|
1021
892
|
export const de_CreateGeneratedTemplateCommand = async (output, context) => {
|
1022
893
|
if (output.statusCode >= 300) {
|
1023
|
-
return
|
894
|
+
return de_CommandError(output, context);
|
1024
895
|
}
|
1025
896
|
const data = await parseBody(output.body, context);
|
1026
897
|
let contents = {};
|
@@ -1031,34 +902,9 @@ export const de_CreateGeneratedTemplateCommand = async (output, context) => {
|
|
1031
902
|
};
|
1032
903
|
return response;
|
1033
904
|
};
|
1034
|
-
const de_CreateGeneratedTemplateCommandError = async (output, context) => {
|
1035
|
-
const parsedOutput = {
|
1036
|
-
...output,
|
1037
|
-
body: await parseErrorBody(output.body, context),
|
1038
|
-
};
|
1039
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1040
|
-
switch (errorCode) {
|
1041
|
-
case "AlreadyExistsException":
|
1042
|
-
case "com.amazonaws.cloudformation#AlreadyExistsException":
|
1043
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
1044
|
-
case "ConcurrentResourcesLimitExceeded":
|
1045
|
-
case "com.amazonaws.cloudformation#ConcurrentResourcesLimitExceededException":
|
1046
|
-
throw await de_ConcurrentResourcesLimitExceededExceptionRes(parsedOutput, context);
|
1047
|
-
case "LimitExceededException":
|
1048
|
-
case "com.amazonaws.cloudformation#LimitExceededException":
|
1049
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
1050
|
-
default:
|
1051
|
-
const parsedBody = parsedOutput.body;
|
1052
|
-
return throwDefaultError({
|
1053
|
-
output,
|
1054
|
-
parsedBody: parsedBody.Error,
|
1055
|
-
errorCode,
|
1056
|
-
});
|
1057
|
-
}
|
1058
|
-
};
|
1059
905
|
export const de_CreateStackCommand = async (output, context) => {
|
1060
906
|
if (output.statusCode >= 300) {
|
1061
|
-
return
|
907
|
+
return de_CommandError(output, context);
|
1062
908
|
}
|
1063
909
|
const data = await parseBody(output.body, context);
|
1064
910
|
let contents = {};
|
@@ -1069,37 +915,9 @@ export const de_CreateStackCommand = async (output, context) => {
|
|
1069
915
|
};
|
1070
916
|
return response;
|
1071
917
|
};
|
1072
|
-
const de_CreateStackCommandError = async (output, context) => {
|
1073
|
-
const parsedOutput = {
|
1074
|
-
...output,
|
1075
|
-
body: await parseErrorBody(output.body, context),
|
1076
|
-
};
|
1077
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1078
|
-
switch (errorCode) {
|
1079
|
-
case "AlreadyExistsException":
|
1080
|
-
case "com.amazonaws.cloudformation#AlreadyExistsException":
|
1081
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
1082
|
-
case "InsufficientCapabilitiesException":
|
1083
|
-
case "com.amazonaws.cloudformation#InsufficientCapabilitiesException":
|
1084
|
-
throw await de_InsufficientCapabilitiesExceptionRes(parsedOutput, context);
|
1085
|
-
case "LimitExceededException":
|
1086
|
-
case "com.amazonaws.cloudformation#LimitExceededException":
|
1087
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
1088
|
-
case "TokenAlreadyExistsException":
|
1089
|
-
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
1090
|
-
throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
|
1091
|
-
default:
|
1092
|
-
const parsedBody = parsedOutput.body;
|
1093
|
-
return throwDefaultError({
|
1094
|
-
output,
|
1095
|
-
parsedBody: parsedBody.Error,
|
1096
|
-
errorCode,
|
1097
|
-
});
|
1098
|
-
}
|
1099
|
-
};
|
1100
918
|
export const de_CreateStackInstancesCommand = async (output, context) => {
|
1101
919
|
if (output.statusCode >= 300) {
|
1102
|
-
return
|
920
|
+
return de_CommandError(output, context);
|
1103
921
|
}
|
1104
922
|
const data = await parseBody(output.body, context);
|
1105
923
|
let contents = {};
|
@@ -1110,43 +928,9 @@ export const de_CreateStackInstancesCommand = async (output, context) => {
|
|
1110
928
|
};
|
1111
929
|
return response;
|
1112
930
|
};
|
1113
|
-
const de_CreateStackInstancesCommandError = async (output, context) => {
|
1114
|
-
const parsedOutput = {
|
1115
|
-
...output,
|
1116
|
-
body: await parseErrorBody(output.body, context),
|
1117
|
-
};
|
1118
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1119
|
-
switch (errorCode) {
|
1120
|
-
case "InvalidOperationException":
|
1121
|
-
case "com.amazonaws.cloudformation#InvalidOperationException":
|
1122
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
1123
|
-
case "LimitExceededException":
|
1124
|
-
case "com.amazonaws.cloudformation#LimitExceededException":
|
1125
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
1126
|
-
case "OperationIdAlreadyExistsException":
|
1127
|
-
case "com.amazonaws.cloudformation#OperationIdAlreadyExistsException":
|
1128
|
-
throw await de_OperationIdAlreadyExistsExceptionRes(parsedOutput, context);
|
1129
|
-
case "OperationInProgressException":
|
1130
|
-
case "com.amazonaws.cloudformation#OperationInProgressException":
|
1131
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
1132
|
-
case "StackSetNotFoundException":
|
1133
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
1134
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
1135
|
-
case "StaleRequestException":
|
1136
|
-
case "com.amazonaws.cloudformation#StaleRequestException":
|
1137
|
-
throw await de_StaleRequestExceptionRes(parsedOutput, context);
|
1138
|
-
default:
|
1139
|
-
const parsedBody = parsedOutput.body;
|
1140
|
-
return throwDefaultError({
|
1141
|
-
output,
|
1142
|
-
parsedBody: parsedBody.Error,
|
1143
|
-
errorCode,
|
1144
|
-
});
|
1145
|
-
}
|
1146
|
-
};
|
1147
931
|
export const de_CreateStackSetCommand = async (output, context) => {
|
1148
932
|
if (output.statusCode >= 300) {
|
1149
|
-
return
|
933
|
+
return de_CommandError(output, context);
|
1150
934
|
}
|
1151
935
|
const data = await parseBody(output.body, context);
|
1152
936
|
let contents = {};
|
@@ -1157,34 +941,9 @@ export const de_CreateStackSetCommand = async (output, context) => {
|
|
1157
941
|
};
|
1158
942
|
return response;
|
1159
943
|
};
|
1160
|
-
const de_CreateStackSetCommandError = async (output, context) => {
|
1161
|
-
const parsedOutput = {
|
1162
|
-
...output,
|
1163
|
-
body: await parseErrorBody(output.body, context),
|
1164
|
-
};
|
1165
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1166
|
-
switch (errorCode) {
|
1167
|
-
case "CreatedButModifiedException":
|
1168
|
-
case "com.amazonaws.cloudformation#CreatedButModifiedException":
|
1169
|
-
throw await de_CreatedButModifiedExceptionRes(parsedOutput, context);
|
1170
|
-
case "LimitExceededException":
|
1171
|
-
case "com.amazonaws.cloudformation#LimitExceededException":
|
1172
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
1173
|
-
case "NameAlreadyExistsException":
|
1174
|
-
case "com.amazonaws.cloudformation#NameAlreadyExistsException":
|
1175
|
-
throw await de_NameAlreadyExistsExceptionRes(parsedOutput, context);
|
1176
|
-
default:
|
1177
|
-
const parsedBody = parsedOutput.body;
|
1178
|
-
return throwDefaultError({
|
1179
|
-
output,
|
1180
|
-
parsedBody: parsedBody.Error,
|
1181
|
-
errorCode,
|
1182
|
-
});
|
1183
|
-
}
|
1184
|
-
};
|
1185
944
|
export const de_DeactivateOrganizationsAccessCommand = async (output, context) => {
|
1186
945
|
if (output.statusCode >= 300) {
|
1187
|
-
return
|
946
|
+
return de_CommandError(output, context);
|
1188
947
|
}
|
1189
948
|
const data = await parseBody(output.body, context);
|
1190
949
|
let contents = {};
|
@@ -1195,31 +954,9 @@ export const de_DeactivateOrganizationsAccessCommand = async (output, context) =
|
|
1195
954
|
};
|
1196
955
|
return response;
|
1197
956
|
};
|
1198
|
-
const de_DeactivateOrganizationsAccessCommandError = async (output, context) => {
|
1199
|
-
const parsedOutput = {
|
1200
|
-
...output,
|
1201
|
-
body: await parseErrorBody(output.body, context),
|
1202
|
-
};
|
1203
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1204
|
-
switch (errorCode) {
|
1205
|
-
case "InvalidOperationException":
|
1206
|
-
case "com.amazonaws.cloudformation#InvalidOperationException":
|
1207
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
1208
|
-
case "OperationNotFoundException":
|
1209
|
-
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
1210
|
-
throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
|
1211
|
-
default:
|
1212
|
-
const parsedBody = parsedOutput.body;
|
1213
|
-
return throwDefaultError({
|
1214
|
-
output,
|
1215
|
-
parsedBody: parsedBody.Error,
|
1216
|
-
errorCode,
|
1217
|
-
});
|
1218
|
-
}
|
1219
|
-
};
|
1220
957
|
export const de_DeactivateTypeCommand = async (output, context) => {
|
1221
958
|
if (output.statusCode >= 300) {
|
1222
|
-
return
|
959
|
+
return de_CommandError(output, context);
|
1223
960
|
}
|
1224
961
|
const data = await parseBody(output.body, context);
|
1225
962
|
let contents = {};
|
@@ -1230,31 +967,9 @@ export const de_DeactivateTypeCommand = async (output, context) => {
|
|
1230
967
|
};
|
1231
968
|
return response;
|
1232
969
|
};
|
1233
|
-
const de_DeactivateTypeCommandError = async (output, context) => {
|
1234
|
-
const parsedOutput = {
|
1235
|
-
...output,
|
1236
|
-
body: await parseErrorBody(output.body, context),
|
1237
|
-
};
|
1238
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1239
|
-
switch (errorCode) {
|
1240
|
-
case "CFNRegistryException":
|
1241
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
1242
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
1243
|
-
case "TypeNotFoundException":
|
1244
|
-
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
1245
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
1246
|
-
default:
|
1247
|
-
const parsedBody = parsedOutput.body;
|
1248
|
-
return throwDefaultError({
|
1249
|
-
output,
|
1250
|
-
parsedBody: parsedBody.Error,
|
1251
|
-
errorCode,
|
1252
|
-
});
|
1253
|
-
}
|
1254
|
-
};
|
1255
970
|
export const de_DeleteChangeSetCommand = async (output, context) => {
|
1256
971
|
if (output.statusCode >= 300) {
|
1257
|
-
return
|
972
|
+
return de_CommandError(output, context);
|
1258
973
|
}
|
1259
974
|
const data = await parseBody(output.body, context);
|
1260
975
|
let contents = {};
|
@@ -1265,28 +980,9 @@ export const de_DeleteChangeSetCommand = async (output, context) => {
|
|
1265
980
|
};
|
1266
981
|
return response;
|
1267
982
|
};
|
1268
|
-
const de_DeleteChangeSetCommandError = async (output, context) => {
|
1269
|
-
const parsedOutput = {
|
1270
|
-
...output,
|
1271
|
-
body: await parseErrorBody(output.body, context),
|
1272
|
-
};
|
1273
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1274
|
-
switch (errorCode) {
|
1275
|
-
case "InvalidChangeSetStatus":
|
1276
|
-
case "com.amazonaws.cloudformation#InvalidChangeSetStatusException":
|
1277
|
-
throw await de_InvalidChangeSetStatusExceptionRes(parsedOutput, context);
|
1278
|
-
default:
|
1279
|
-
const parsedBody = parsedOutput.body;
|
1280
|
-
return throwDefaultError({
|
1281
|
-
output,
|
1282
|
-
parsedBody: parsedBody.Error,
|
1283
|
-
errorCode,
|
1284
|
-
});
|
1285
|
-
}
|
1286
|
-
};
|
1287
983
|
export const de_DeleteGeneratedTemplateCommand = async (output, context) => {
|
1288
984
|
if (output.statusCode >= 300) {
|
1289
|
-
return
|
985
|
+
return de_CommandError(output, context);
|
1290
986
|
}
|
1291
987
|
await collectBody(output.body, context);
|
1292
988
|
const response = {
|
@@ -1294,31 +990,9 @@ export const de_DeleteGeneratedTemplateCommand = async (output, context) => {
|
|
1294
990
|
};
|
1295
991
|
return response;
|
1296
992
|
};
|
1297
|
-
const de_DeleteGeneratedTemplateCommandError = async (output, context) => {
|
1298
|
-
const parsedOutput = {
|
1299
|
-
...output,
|
1300
|
-
body: await parseErrorBody(output.body, context),
|
1301
|
-
};
|
1302
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1303
|
-
switch (errorCode) {
|
1304
|
-
case "ConcurrentResourcesLimitExceeded":
|
1305
|
-
case "com.amazonaws.cloudformation#ConcurrentResourcesLimitExceededException":
|
1306
|
-
throw await de_ConcurrentResourcesLimitExceededExceptionRes(parsedOutput, context);
|
1307
|
-
case "GeneratedTemplateNotFound":
|
1308
|
-
case "com.amazonaws.cloudformation#GeneratedTemplateNotFoundException":
|
1309
|
-
throw await de_GeneratedTemplateNotFoundExceptionRes(parsedOutput, context);
|
1310
|
-
default:
|
1311
|
-
const parsedBody = parsedOutput.body;
|
1312
|
-
return throwDefaultError({
|
1313
|
-
output,
|
1314
|
-
parsedBody: parsedBody.Error,
|
1315
|
-
errorCode,
|
1316
|
-
});
|
1317
|
-
}
|
1318
|
-
};
|
1319
993
|
export const de_DeleteStackCommand = async (output, context) => {
|
1320
994
|
if (output.statusCode >= 300) {
|
1321
|
-
return
|
995
|
+
return de_CommandError(output, context);
|
1322
996
|
}
|
1323
997
|
await collectBody(output.body, context);
|
1324
998
|
const response = {
|
@@ -1326,28 +1000,9 @@ export const de_DeleteStackCommand = async (output, context) => {
|
|
1326
1000
|
};
|
1327
1001
|
return response;
|
1328
1002
|
};
|
1329
|
-
const de_DeleteStackCommandError = async (output, context) => {
|
1330
|
-
const parsedOutput = {
|
1331
|
-
...output,
|
1332
|
-
body: await parseErrorBody(output.body, context),
|
1333
|
-
};
|
1334
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1335
|
-
switch (errorCode) {
|
1336
|
-
case "TokenAlreadyExistsException":
|
1337
|
-
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
1338
|
-
throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
|
1339
|
-
default:
|
1340
|
-
const parsedBody = parsedOutput.body;
|
1341
|
-
return throwDefaultError({
|
1342
|
-
output,
|
1343
|
-
parsedBody: parsedBody.Error,
|
1344
|
-
errorCode,
|
1345
|
-
});
|
1346
|
-
}
|
1347
|
-
};
|
1348
1003
|
export const de_DeleteStackInstancesCommand = async (output, context) => {
|
1349
1004
|
if (output.statusCode >= 300) {
|
1350
|
-
return
|
1005
|
+
return de_CommandError(output, context);
|
1351
1006
|
}
|
1352
1007
|
const data = await parseBody(output.body, context);
|
1353
1008
|
let contents = {};
|
@@ -1358,40 +1013,9 @@ export const de_DeleteStackInstancesCommand = async (output, context) => {
|
|
1358
1013
|
};
|
1359
1014
|
return response;
|
1360
1015
|
};
|
1361
|
-
const de_DeleteStackInstancesCommandError = async (output, context) => {
|
1362
|
-
const parsedOutput = {
|
1363
|
-
...output,
|
1364
|
-
body: await parseErrorBody(output.body, context),
|
1365
|
-
};
|
1366
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1367
|
-
switch (errorCode) {
|
1368
|
-
case "InvalidOperationException":
|
1369
|
-
case "com.amazonaws.cloudformation#InvalidOperationException":
|
1370
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
1371
|
-
case "OperationIdAlreadyExistsException":
|
1372
|
-
case "com.amazonaws.cloudformation#OperationIdAlreadyExistsException":
|
1373
|
-
throw await de_OperationIdAlreadyExistsExceptionRes(parsedOutput, context);
|
1374
|
-
case "OperationInProgressException":
|
1375
|
-
case "com.amazonaws.cloudformation#OperationInProgressException":
|
1376
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
1377
|
-
case "StackSetNotFoundException":
|
1378
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
1379
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
1380
|
-
case "StaleRequestException":
|
1381
|
-
case "com.amazonaws.cloudformation#StaleRequestException":
|
1382
|
-
throw await de_StaleRequestExceptionRes(parsedOutput, context);
|
1383
|
-
default:
|
1384
|
-
const parsedBody = parsedOutput.body;
|
1385
|
-
return throwDefaultError({
|
1386
|
-
output,
|
1387
|
-
parsedBody: parsedBody.Error,
|
1388
|
-
errorCode,
|
1389
|
-
});
|
1390
|
-
}
|
1391
|
-
};
|
1392
1016
|
export const de_DeleteStackSetCommand = async (output, context) => {
|
1393
1017
|
if (output.statusCode >= 300) {
|
1394
|
-
return
|
1018
|
+
return de_CommandError(output, context);
|
1395
1019
|
}
|
1396
1020
|
const data = await parseBody(output.body, context);
|
1397
1021
|
let contents = {};
|
@@ -1402,31 +1026,9 @@ export const de_DeleteStackSetCommand = async (output, context) => {
|
|
1402
1026
|
};
|
1403
1027
|
return response;
|
1404
1028
|
};
|
1405
|
-
const de_DeleteStackSetCommandError = async (output, context) => {
|
1406
|
-
const parsedOutput = {
|
1407
|
-
...output,
|
1408
|
-
body: await parseErrorBody(output.body, context),
|
1409
|
-
};
|
1410
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1411
|
-
switch (errorCode) {
|
1412
|
-
case "OperationInProgressException":
|
1413
|
-
case "com.amazonaws.cloudformation#OperationInProgressException":
|
1414
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
1415
|
-
case "StackSetNotEmptyException":
|
1416
|
-
case "com.amazonaws.cloudformation#StackSetNotEmptyException":
|
1417
|
-
throw await de_StackSetNotEmptyExceptionRes(parsedOutput, context);
|
1418
|
-
default:
|
1419
|
-
const parsedBody = parsedOutput.body;
|
1420
|
-
return throwDefaultError({
|
1421
|
-
output,
|
1422
|
-
parsedBody: parsedBody.Error,
|
1423
|
-
errorCode,
|
1424
|
-
});
|
1425
|
-
}
|
1426
|
-
};
|
1427
1029
|
export const de_DeregisterTypeCommand = async (output, context) => {
|
1428
1030
|
if (output.statusCode >= 300) {
|
1429
|
-
return
|
1031
|
+
return de_CommandError(output, context);
|
1430
1032
|
}
|
1431
1033
|
const data = await parseBody(output.body, context);
|
1432
1034
|
let contents = {};
|
@@ -1437,31 +1039,9 @@ export const de_DeregisterTypeCommand = async (output, context) => {
|
|
1437
1039
|
};
|
1438
1040
|
return response;
|
1439
1041
|
};
|
1440
|
-
const de_DeregisterTypeCommandError = async (output, context) => {
|
1441
|
-
const parsedOutput = {
|
1442
|
-
...output,
|
1443
|
-
body: await parseErrorBody(output.body, context),
|
1444
|
-
};
|
1445
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1446
|
-
switch (errorCode) {
|
1447
|
-
case "CFNRegistryException":
|
1448
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
1449
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
1450
|
-
case "TypeNotFoundException":
|
1451
|
-
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
1452
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
1453
|
-
default:
|
1454
|
-
const parsedBody = parsedOutput.body;
|
1455
|
-
return throwDefaultError({
|
1456
|
-
output,
|
1457
|
-
parsedBody: parsedBody.Error,
|
1458
|
-
errorCode,
|
1459
|
-
});
|
1460
|
-
}
|
1461
|
-
};
|
1462
1042
|
export const de_DescribeAccountLimitsCommand = async (output, context) => {
|
1463
1043
|
if (output.statusCode >= 300) {
|
1464
|
-
return
|
1044
|
+
return de_CommandError(output, context);
|
1465
1045
|
}
|
1466
1046
|
const data = await parseBody(output.body, context);
|
1467
1047
|
let contents = {};
|
@@ -1472,22 +1052,9 @@ export const de_DescribeAccountLimitsCommand = async (output, context) => {
|
|
1472
1052
|
};
|
1473
1053
|
return response;
|
1474
1054
|
};
|
1475
|
-
const de_DescribeAccountLimitsCommandError = async (output, context) => {
|
1476
|
-
const parsedOutput = {
|
1477
|
-
...output,
|
1478
|
-
body: await parseErrorBody(output.body, context),
|
1479
|
-
};
|
1480
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1481
|
-
const parsedBody = parsedOutput.body;
|
1482
|
-
return throwDefaultError({
|
1483
|
-
output,
|
1484
|
-
parsedBody: parsedBody.Error,
|
1485
|
-
errorCode,
|
1486
|
-
});
|
1487
|
-
};
|
1488
1055
|
export const de_DescribeChangeSetCommand = async (output, context) => {
|
1489
1056
|
if (output.statusCode >= 300) {
|
1490
|
-
return
|
1057
|
+
return de_CommandError(output, context);
|
1491
1058
|
}
|
1492
1059
|
const data = await parseBody(output.body, context);
|
1493
1060
|
let contents = {};
|
@@ -1498,28 +1065,9 @@ export const de_DescribeChangeSetCommand = async (output, context) => {
|
|
1498
1065
|
};
|
1499
1066
|
return response;
|
1500
1067
|
};
|
1501
|
-
const de_DescribeChangeSetCommandError = async (output, context) => {
|
1502
|
-
const parsedOutput = {
|
1503
|
-
...output,
|
1504
|
-
body: await parseErrorBody(output.body, context),
|
1505
|
-
};
|
1506
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1507
|
-
switch (errorCode) {
|
1508
|
-
case "ChangeSetNotFound":
|
1509
|
-
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
|
1510
|
-
throw await de_ChangeSetNotFoundExceptionRes(parsedOutput, context);
|
1511
|
-
default:
|
1512
|
-
const parsedBody = parsedOutput.body;
|
1513
|
-
return throwDefaultError({
|
1514
|
-
output,
|
1515
|
-
parsedBody: parsedBody.Error,
|
1516
|
-
errorCode,
|
1517
|
-
});
|
1518
|
-
}
|
1519
|
-
};
|
1520
1068
|
export const de_DescribeChangeSetHooksCommand = async (output, context) => {
|
1521
1069
|
if (output.statusCode >= 300) {
|
1522
|
-
return
|
1070
|
+
return de_CommandError(output, context);
|
1523
1071
|
}
|
1524
1072
|
const data = await parseBody(output.body, context);
|
1525
1073
|
let contents = {};
|
@@ -1530,28 +1078,9 @@ export const de_DescribeChangeSetHooksCommand = async (output, context) => {
|
|
1530
1078
|
};
|
1531
1079
|
return response;
|
1532
1080
|
};
|
1533
|
-
const de_DescribeChangeSetHooksCommandError = async (output, context) => {
|
1534
|
-
const parsedOutput = {
|
1535
|
-
...output,
|
1536
|
-
body: await parseErrorBody(output.body, context),
|
1537
|
-
};
|
1538
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1539
|
-
switch (errorCode) {
|
1540
|
-
case "ChangeSetNotFound":
|
1541
|
-
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
|
1542
|
-
throw await de_ChangeSetNotFoundExceptionRes(parsedOutput, context);
|
1543
|
-
default:
|
1544
|
-
const parsedBody = parsedOutput.body;
|
1545
|
-
return throwDefaultError({
|
1546
|
-
output,
|
1547
|
-
parsedBody: parsedBody.Error,
|
1548
|
-
errorCode,
|
1549
|
-
});
|
1550
|
-
}
|
1551
|
-
};
|
1552
1081
|
export const de_DescribeGeneratedTemplateCommand = async (output, context) => {
|
1553
1082
|
if (output.statusCode >= 300) {
|
1554
|
-
return
|
1083
|
+
return de_CommandError(output, context);
|
1555
1084
|
}
|
1556
1085
|
const data = await parseBody(output.body, context);
|
1557
1086
|
let contents = {};
|
@@ -1562,28 +1091,9 @@ export const de_DescribeGeneratedTemplateCommand = async (output, context) => {
|
|
1562
1091
|
};
|
1563
1092
|
return response;
|
1564
1093
|
};
|
1565
|
-
const de_DescribeGeneratedTemplateCommandError = async (output, context) => {
|
1566
|
-
const parsedOutput = {
|
1567
|
-
...output,
|
1568
|
-
body: await parseErrorBody(output.body, context),
|
1569
|
-
};
|
1570
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1571
|
-
switch (errorCode) {
|
1572
|
-
case "GeneratedTemplateNotFound":
|
1573
|
-
case "com.amazonaws.cloudformation#GeneratedTemplateNotFoundException":
|
1574
|
-
throw await de_GeneratedTemplateNotFoundExceptionRes(parsedOutput, context);
|
1575
|
-
default:
|
1576
|
-
const parsedBody = parsedOutput.body;
|
1577
|
-
return throwDefaultError({
|
1578
|
-
output,
|
1579
|
-
parsedBody: parsedBody.Error,
|
1580
|
-
errorCode,
|
1581
|
-
});
|
1582
|
-
}
|
1583
|
-
};
|
1584
1094
|
export const de_DescribeOrganizationsAccessCommand = async (output, context) => {
|
1585
1095
|
if (output.statusCode >= 300) {
|
1586
|
-
return
|
1096
|
+
return de_CommandError(output, context);
|
1587
1097
|
}
|
1588
1098
|
const data = await parseBody(output.body, context);
|
1589
1099
|
let contents = {};
|
@@ -1594,31 +1104,9 @@ export const de_DescribeOrganizationsAccessCommand = async (output, context) =>
|
|
1594
1104
|
};
|
1595
1105
|
return response;
|
1596
1106
|
};
|
1597
|
-
const de_DescribeOrganizationsAccessCommandError = async (output, context) => {
|
1598
|
-
const parsedOutput = {
|
1599
|
-
...output,
|
1600
|
-
body: await parseErrorBody(output.body, context),
|
1601
|
-
};
|
1602
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1603
|
-
switch (errorCode) {
|
1604
|
-
case "InvalidOperationException":
|
1605
|
-
case "com.amazonaws.cloudformation#InvalidOperationException":
|
1606
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
1607
|
-
case "OperationNotFoundException":
|
1608
|
-
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
1609
|
-
throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
|
1610
|
-
default:
|
1611
|
-
const parsedBody = parsedOutput.body;
|
1612
|
-
return throwDefaultError({
|
1613
|
-
output,
|
1614
|
-
parsedBody: parsedBody.Error,
|
1615
|
-
errorCode,
|
1616
|
-
});
|
1617
|
-
}
|
1618
|
-
};
|
1619
1107
|
export const de_DescribePublisherCommand = async (output, context) => {
|
1620
1108
|
if (output.statusCode >= 300) {
|
1621
|
-
return
|
1109
|
+
return de_CommandError(output, context);
|
1622
1110
|
}
|
1623
1111
|
const data = await parseBody(output.body, context);
|
1624
1112
|
let contents = {};
|
@@ -1629,28 +1117,9 @@ export const de_DescribePublisherCommand = async (output, context) => {
|
|
1629
1117
|
};
|
1630
1118
|
return response;
|
1631
1119
|
};
|
1632
|
-
const de_DescribePublisherCommandError = async (output, context) => {
|
1633
|
-
const parsedOutput = {
|
1634
|
-
...output,
|
1635
|
-
body: await parseErrorBody(output.body, context),
|
1636
|
-
};
|
1637
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1638
|
-
switch (errorCode) {
|
1639
|
-
case "CFNRegistryException":
|
1640
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
1641
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
1642
|
-
default:
|
1643
|
-
const parsedBody = parsedOutput.body;
|
1644
|
-
return throwDefaultError({
|
1645
|
-
output,
|
1646
|
-
parsedBody: parsedBody.Error,
|
1647
|
-
errorCode,
|
1648
|
-
});
|
1649
|
-
}
|
1650
|
-
};
|
1651
1120
|
export const de_DescribeResourceScanCommand = async (output, context) => {
|
1652
1121
|
if (output.statusCode >= 300) {
|
1653
|
-
return
|
1122
|
+
return de_CommandError(output, context);
|
1654
1123
|
}
|
1655
1124
|
const data = await parseBody(output.body, context);
|
1656
1125
|
let contents = {};
|
@@ -1661,28 +1130,9 @@ export const de_DescribeResourceScanCommand = async (output, context) => {
|
|
1661
1130
|
};
|
1662
1131
|
return response;
|
1663
1132
|
};
|
1664
|
-
const de_DescribeResourceScanCommandError = async (output, context) => {
|
1665
|
-
const parsedOutput = {
|
1666
|
-
...output,
|
1667
|
-
body: await parseErrorBody(output.body, context),
|
1668
|
-
};
|
1669
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1670
|
-
switch (errorCode) {
|
1671
|
-
case "ResourceScanNotFound":
|
1672
|
-
case "com.amazonaws.cloudformation#ResourceScanNotFoundException":
|
1673
|
-
throw await de_ResourceScanNotFoundExceptionRes(parsedOutput, context);
|
1674
|
-
default:
|
1675
|
-
const parsedBody = parsedOutput.body;
|
1676
|
-
return throwDefaultError({
|
1677
|
-
output,
|
1678
|
-
parsedBody: parsedBody.Error,
|
1679
|
-
errorCode,
|
1680
|
-
});
|
1681
|
-
}
|
1682
|
-
};
|
1683
1133
|
export const de_DescribeStackDriftDetectionStatusCommand = async (output, context) => {
|
1684
1134
|
if (output.statusCode >= 300) {
|
1685
|
-
return
|
1135
|
+
return de_CommandError(output, context);
|
1686
1136
|
}
|
1687
1137
|
const data = await parseBody(output.body, context);
|
1688
1138
|
let contents = {};
|
@@ -1693,22 +1143,9 @@ export const de_DescribeStackDriftDetectionStatusCommand = async (output, contex
|
|
1693
1143
|
};
|
1694
1144
|
return response;
|
1695
1145
|
};
|
1696
|
-
const de_DescribeStackDriftDetectionStatusCommandError = async (output, context) => {
|
1697
|
-
const parsedOutput = {
|
1698
|
-
...output,
|
1699
|
-
body: await parseErrorBody(output.body, context),
|
1700
|
-
};
|
1701
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1702
|
-
const parsedBody = parsedOutput.body;
|
1703
|
-
return throwDefaultError({
|
1704
|
-
output,
|
1705
|
-
parsedBody: parsedBody.Error,
|
1706
|
-
errorCode,
|
1707
|
-
});
|
1708
|
-
};
|
1709
1146
|
export const de_DescribeStackEventsCommand = async (output, context) => {
|
1710
1147
|
if (output.statusCode >= 300) {
|
1711
|
-
return
|
1148
|
+
return de_CommandError(output, context);
|
1712
1149
|
}
|
1713
1150
|
const data = await parseBody(output.body, context);
|
1714
1151
|
let contents = {};
|
@@ -1719,22 +1156,9 @@ export const de_DescribeStackEventsCommand = async (output, context) => {
|
|
1719
1156
|
};
|
1720
1157
|
return response;
|
1721
1158
|
};
|
1722
|
-
const de_DescribeStackEventsCommandError = async (output, context) => {
|
1723
|
-
const parsedOutput = {
|
1724
|
-
...output,
|
1725
|
-
body: await parseErrorBody(output.body, context),
|
1726
|
-
};
|
1727
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1728
|
-
const parsedBody = parsedOutput.body;
|
1729
|
-
return throwDefaultError({
|
1730
|
-
output,
|
1731
|
-
parsedBody: parsedBody.Error,
|
1732
|
-
errorCode,
|
1733
|
-
});
|
1734
|
-
};
|
1735
1159
|
export const de_DescribeStackInstanceCommand = async (output, context) => {
|
1736
1160
|
if (output.statusCode >= 300) {
|
1737
|
-
return
|
1161
|
+
return de_CommandError(output, context);
|
1738
1162
|
}
|
1739
1163
|
const data = await parseBody(output.body, context);
|
1740
1164
|
let contents = {};
|
@@ -1745,31 +1169,9 @@ export const de_DescribeStackInstanceCommand = async (output, context) => {
|
|
1745
1169
|
};
|
1746
1170
|
return response;
|
1747
1171
|
};
|
1748
|
-
const de_DescribeStackInstanceCommandError = async (output, context) => {
|
1749
|
-
const parsedOutput = {
|
1750
|
-
...output,
|
1751
|
-
body: await parseErrorBody(output.body, context),
|
1752
|
-
};
|
1753
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1754
|
-
switch (errorCode) {
|
1755
|
-
case "StackInstanceNotFoundException":
|
1756
|
-
case "com.amazonaws.cloudformation#StackInstanceNotFoundException":
|
1757
|
-
throw await de_StackInstanceNotFoundExceptionRes(parsedOutput, context);
|
1758
|
-
case "StackSetNotFoundException":
|
1759
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
1760
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
1761
|
-
default:
|
1762
|
-
const parsedBody = parsedOutput.body;
|
1763
|
-
return throwDefaultError({
|
1764
|
-
output,
|
1765
|
-
parsedBody: parsedBody.Error,
|
1766
|
-
errorCode,
|
1767
|
-
});
|
1768
|
-
}
|
1769
|
-
};
|
1770
1172
|
export const de_DescribeStackResourceCommand = async (output, context) => {
|
1771
1173
|
if (output.statusCode >= 300) {
|
1772
|
-
return
|
1174
|
+
return de_CommandError(output, context);
|
1773
1175
|
}
|
1774
1176
|
const data = await parseBody(output.body, context);
|
1775
1177
|
let contents = {};
|
@@ -1780,22 +1182,9 @@ export const de_DescribeStackResourceCommand = async (output, context) => {
|
|
1780
1182
|
};
|
1781
1183
|
return response;
|
1782
1184
|
};
|
1783
|
-
const de_DescribeStackResourceCommandError = async (output, context) => {
|
1784
|
-
const parsedOutput = {
|
1785
|
-
...output,
|
1786
|
-
body: await parseErrorBody(output.body, context),
|
1787
|
-
};
|
1788
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1789
|
-
const parsedBody = parsedOutput.body;
|
1790
|
-
return throwDefaultError({
|
1791
|
-
output,
|
1792
|
-
parsedBody: parsedBody.Error,
|
1793
|
-
errorCode,
|
1794
|
-
});
|
1795
|
-
};
|
1796
1185
|
export const de_DescribeStackResourceDriftsCommand = async (output, context) => {
|
1797
1186
|
if (output.statusCode >= 300) {
|
1798
|
-
return
|
1187
|
+
return de_CommandError(output, context);
|
1799
1188
|
}
|
1800
1189
|
const data = await parseBody(output.body, context);
|
1801
1190
|
let contents = {};
|
@@ -1806,22 +1195,9 @@ export const de_DescribeStackResourceDriftsCommand = async (output, context) =>
|
|
1806
1195
|
};
|
1807
1196
|
return response;
|
1808
1197
|
};
|
1809
|
-
const de_DescribeStackResourceDriftsCommandError = async (output, context) => {
|
1810
|
-
const parsedOutput = {
|
1811
|
-
...output,
|
1812
|
-
body: await parseErrorBody(output.body, context),
|
1813
|
-
};
|
1814
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1815
|
-
const parsedBody = parsedOutput.body;
|
1816
|
-
return throwDefaultError({
|
1817
|
-
output,
|
1818
|
-
parsedBody: parsedBody.Error,
|
1819
|
-
errorCode,
|
1820
|
-
});
|
1821
|
-
};
|
1822
1198
|
export const de_DescribeStackResourcesCommand = async (output, context) => {
|
1823
1199
|
if (output.statusCode >= 300) {
|
1824
|
-
return
|
1200
|
+
return de_CommandError(output, context);
|
1825
1201
|
}
|
1826
1202
|
const data = await parseBody(output.body, context);
|
1827
1203
|
let contents = {};
|
@@ -1832,22 +1208,9 @@ export const de_DescribeStackResourcesCommand = async (output, context) => {
|
|
1832
1208
|
};
|
1833
1209
|
return response;
|
1834
1210
|
};
|
1835
|
-
const de_DescribeStackResourcesCommandError = async (output, context) => {
|
1836
|
-
const parsedOutput = {
|
1837
|
-
...output,
|
1838
|
-
body: await parseErrorBody(output.body, context),
|
1839
|
-
};
|
1840
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1841
|
-
const parsedBody = parsedOutput.body;
|
1842
|
-
return throwDefaultError({
|
1843
|
-
output,
|
1844
|
-
parsedBody: parsedBody.Error,
|
1845
|
-
errorCode,
|
1846
|
-
});
|
1847
|
-
};
|
1848
1211
|
export const de_DescribeStacksCommand = async (output, context) => {
|
1849
1212
|
if (output.statusCode >= 300) {
|
1850
|
-
return
|
1213
|
+
return de_CommandError(output, context);
|
1851
1214
|
}
|
1852
1215
|
const data = await parseBody(output.body, context);
|
1853
1216
|
let contents = {};
|
@@ -1858,22 +1221,9 @@ export const de_DescribeStacksCommand = async (output, context) => {
|
|
1858
1221
|
};
|
1859
1222
|
return response;
|
1860
1223
|
};
|
1861
|
-
const de_DescribeStacksCommandError = async (output, context) => {
|
1862
|
-
const parsedOutput = {
|
1863
|
-
...output,
|
1864
|
-
body: await parseErrorBody(output.body, context),
|
1865
|
-
};
|
1866
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1867
|
-
const parsedBody = parsedOutput.body;
|
1868
|
-
return throwDefaultError({
|
1869
|
-
output,
|
1870
|
-
parsedBody: parsedBody.Error,
|
1871
|
-
errorCode,
|
1872
|
-
});
|
1873
|
-
};
|
1874
1224
|
export const de_DescribeStackSetCommand = async (output, context) => {
|
1875
1225
|
if (output.statusCode >= 300) {
|
1876
|
-
return
|
1226
|
+
return de_CommandError(output, context);
|
1877
1227
|
}
|
1878
1228
|
const data = await parseBody(output.body, context);
|
1879
1229
|
let contents = {};
|
@@ -1884,28 +1234,9 @@ export const de_DescribeStackSetCommand = async (output, context) => {
|
|
1884
1234
|
};
|
1885
1235
|
return response;
|
1886
1236
|
};
|
1887
|
-
const de_DescribeStackSetCommandError = async (output, context) => {
|
1888
|
-
const parsedOutput = {
|
1889
|
-
...output,
|
1890
|
-
body: await parseErrorBody(output.body, context),
|
1891
|
-
};
|
1892
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1893
|
-
switch (errorCode) {
|
1894
|
-
case "StackSetNotFoundException":
|
1895
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
1896
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
1897
|
-
default:
|
1898
|
-
const parsedBody = parsedOutput.body;
|
1899
|
-
return throwDefaultError({
|
1900
|
-
output,
|
1901
|
-
parsedBody: parsedBody.Error,
|
1902
|
-
errorCode,
|
1903
|
-
});
|
1904
|
-
}
|
1905
|
-
};
|
1906
1237
|
export const de_DescribeStackSetOperationCommand = async (output, context) => {
|
1907
1238
|
if (output.statusCode >= 300) {
|
1908
|
-
return
|
1239
|
+
return de_CommandError(output, context);
|
1909
1240
|
}
|
1910
1241
|
const data = await parseBody(output.body, context);
|
1911
1242
|
let contents = {};
|
@@ -1916,31 +1247,9 @@ export const de_DescribeStackSetOperationCommand = async (output, context) => {
|
|
1916
1247
|
};
|
1917
1248
|
return response;
|
1918
1249
|
};
|
1919
|
-
const de_DescribeStackSetOperationCommandError = async (output, context) => {
|
1920
|
-
const parsedOutput = {
|
1921
|
-
...output,
|
1922
|
-
body: await parseErrorBody(output.body, context),
|
1923
|
-
};
|
1924
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1925
|
-
switch (errorCode) {
|
1926
|
-
case "OperationNotFoundException":
|
1927
|
-
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
1928
|
-
throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
|
1929
|
-
case "StackSetNotFoundException":
|
1930
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
1931
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
1932
|
-
default:
|
1933
|
-
const parsedBody = parsedOutput.body;
|
1934
|
-
return throwDefaultError({
|
1935
|
-
output,
|
1936
|
-
parsedBody: parsedBody.Error,
|
1937
|
-
errorCode,
|
1938
|
-
});
|
1939
|
-
}
|
1940
|
-
};
|
1941
1250
|
export const de_DescribeTypeCommand = async (output, context) => {
|
1942
1251
|
if (output.statusCode >= 300) {
|
1943
|
-
return
|
1252
|
+
return de_CommandError(output, context);
|
1944
1253
|
}
|
1945
1254
|
const data = await parseBody(output.body, context);
|
1946
1255
|
let contents = {};
|
@@ -1951,31 +1260,9 @@ export const de_DescribeTypeCommand = async (output, context) => {
|
|
1951
1260
|
};
|
1952
1261
|
return response;
|
1953
1262
|
};
|
1954
|
-
const de_DescribeTypeCommandError = async (output, context) => {
|
1955
|
-
const parsedOutput = {
|
1956
|
-
...output,
|
1957
|
-
body: await parseErrorBody(output.body, context),
|
1958
|
-
};
|
1959
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1960
|
-
switch (errorCode) {
|
1961
|
-
case "CFNRegistryException":
|
1962
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
1963
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
1964
|
-
case "TypeNotFoundException":
|
1965
|
-
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
1966
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
1967
|
-
default:
|
1968
|
-
const parsedBody = parsedOutput.body;
|
1969
|
-
return throwDefaultError({
|
1970
|
-
output,
|
1971
|
-
parsedBody: parsedBody.Error,
|
1972
|
-
errorCode,
|
1973
|
-
});
|
1974
|
-
}
|
1975
|
-
};
|
1976
1263
|
export const de_DescribeTypeRegistrationCommand = async (output, context) => {
|
1977
1264
|
if (output.statusCode >= 300) {
|
1978
|
-
return
|
1265
|
+
return de_CommandError(output, context);
|
1979
1266
|
}
|
1980
1267
|
const data = await parseBody(output.body, context);
|
1981
1268
|
let contents = {};
|
@@ -1986,28 +1273,9 @@ export const de_DescribeTypeRegistrationCommand = async (output, context) => {
|
|
1986
1273
|
};
|
1987
1274
|
return response;
|
1988
1275
|
};
|
1989
|
-
const de_DescribeTypeRegistrationCommandError = async (output, context) => {
|
1990
|
-
const parsedOutput = {
|
1991
|
-
...output,
|
1992
|
-
body: await parseErrorBody(output.body, context),
|
1993
|
-
};
|
1994
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
1995
|
-
switch (errorCode) {
|
1996
|
-
case "CFNRegistryException":
|
1997
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
1998
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
1999
|
-
default:
|
2000
|
-
const parsedBody = parsedOutput.body;
|
2001
|
-
return throwDefaultError({
|
2002
|
-
output,
|
2003
|
-
parsedBody: parsedBody.Error,
|
2004
|
-
errorCode,
|
2005
|
-
});
|
2006
|
-
}
|
2007
|
-
};
|
2008
1276
|
export const de_DetectStackDriftCommand = async (output, context) => {
|
2009
1277
|
if (output.statusCode >= 300) {
|
2010
|
-
return
|
1278
|
+
return de_CommandError(output, context);
|
2011
1279
|
}
|
2012
1280
|
const data = await parseBody(output.body, context);
|
2013
1281
|
let contents = {};
|
@@ -2018,22 +1286,9 @@ export const de_DetectStackDriftCommand = async (output, context) => {
|
|
2018
1286
|
};
|
2019
1287
|
return response;
|
2020
1288
|
};
|
2021
|
-
const de_DetectStackDriftCommandError = async (output, context) => {
|
2022
|
-
const parsedOutput = {
|
2023
|
-
...output,
|
2024
|
-
body: await parseErrorBody(output.body, context),
|
2025
|
-
};
|
2026
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2027
|
-
const parsedBody = parsedOutput.body;
|
2028
|
-
return throwDefaultError({
|
2029
|
-
output,
|
2030
|
-
parsedBody: parsedBody.Error,
|
2031
|
-
errorCode,
|
2032
|
-
});
|
2033
|
-
};
|
2034
1289
|
export const de_DetectStackResourceDriftCommand = async (output, context) => {
|
2035
1290
|
if (output.statusCode >= 300) {
|
2036
|
-
return
|
1291
|
+
return de_CommandError(output, context);
|
2037
1292
|
}
|
2038
1293
|
const data = await parseBody(output.body, context);
|
2039
1294
|
let contents = {};
|
@@ -2044,22 +1299,9 @@ export const de_DetectStackResourceDriftCommand = async (output, context) => {
|
|
2044
1299
|
};
|
2045
1300
|
return response;
|
2046
1301
|
};
|
2047
|
-
const de_DetectStackResourceDriftCommandError = async (output, context) => {
|
2048
|
-
const parsedOutput = {
|
2049
|
-
...output,
|
2050
|
-
body: await parseErrorBody(output.body, context),
|
2051
|
-
};
|
2052
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2053
|
-
const parsedBody = parsedOutput.body;
|
2054
|
-
return throwDefaultError({
|
2055
|
-
output,
|
2056
|
-
parsedBody: parsedBody.Error,
|
2057
|
-
errorCode,
|
2058
|
-
});
|
2059
|
-
};
|
2060
1302
|
export const de_DetectStackSetDriftCommand = async (output, context) => {
|
2061
1303
|
if (output.statusCode >= 300) {
|
2062
|
-
return
|
1304
|
+
return de_CommandError(output, context);
|
2063
1305
|
}
|
2064
1306
|
const data = await parseBody(output.body, context);
|
2065
1307
|
let contents = {};
|
@@ -2070,34 +1312,9 @@ export const de_DetectStackSetDriftCommand = async (output, context) => {
|
|
2070
1312
|
};
|
2071
1313
|
return response;
|
2072
1314
|
};
|
2073
|
-
const de_DetectStackSetDriftCommandError = async (output, context) => {
|
2074
|
-
const parsedOutput = {
|
2075
|
-
...output,
|
2076
|
-
body: await parseErrorBody(output.body, context),
|
2077
|
-
};
|
2078
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2079
|
-
switch (errorCode) {
|
2080
|
-
case "InvalidOperationException":
|
2081
|
-
case "com.amazonaws.cloudformation#InvalidOperationException":
|
2082
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
2083
|
-
case "OperationInProgressException":
|
2084
|
-
case "com.amazonaws.cloudformation#OperationInProgressException":
|
2085
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
2086
|
-
case "StackSetNotFoundException":
|
2087
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
2088
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
2089
|
-
default:
|
2090
|
-
const parsedBody = parsedOutput.body;
|
2091
|
-
return throwDefaultError({
|
2092
|
-
output,
|
2093
|
-
parsedBody: parsedBody.Error,
|
2094
|
-
errorCode,
|
2095
|
-
});
|
2096
|
-
}
|
2097
|
-
};
|
2098
1315
|
export const de_EstimateTemplateCostCommand = async (output, context) => {
|
2099
1316
|
if (output.statusCode >= 300) {
|
2100
|
-
return
|
1317
|
+
return de_CommandError(output, context);
|
2101
1318
|
}
|
2102
1319
|
const data = await parseBody(output.body, context);
|
2103
1320
|
let contents = {};
|
@@ -2108,22 +1325,9 @@ export const de_EstimateTemplateCostCommand = async (output, context) => {
|
|
2108
1325
|
};
|
2109
1326
|
return response;
|
2110
1327
|
};
|
2111
|
-
const de_EstimateTemplateCostCommandError = async (output, context) => {
|
2112
|
-
const parsedOutput = {
|
2113
|
-
...output,
|
2114
|
-
body: await parseErrorBody(output.body, context),
|
2115
|
-
};
|
2116
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2117
|
-
const parsedBody = parsedOutput.body;
|
2118
|
-
return throwDefaultError({
|
2119
|
-
output,
|
2120
|
-
parsedBody: parsedBody.Error,
|
2121
|
-
errorCode,
|
2122
|
-
});
|
2123
|
-
};
|
2124
1328
|
export const de_ExecuteChangeSetCommand = async (output, context) => {
|
2125
1329
|
if (output.statusCode >= 300) {
|
2126
|
-
return
|
1330
|
+
return de_CommandError(output, context);
|
2127
1331
|
}
|
2128
1332
|
const data = await parseBody(output.body, context);
|
2129
1333
|
let contents = {};
|
@@ -2134,37 +1338,9 @@ export const de_ExecuteChangeSetCommand = async (output, context) => {
|
|
2134
1338
|
};
|
2135
1339
|
return response;
|
2136
1340
|
};
|
2137
|
-
const de_ExecuteChangeSetCommandError = async (output, context) => {
|
2138
|
-
const parsedOutput = {
|
2139
|
-
...output,
|
2140
|
-
body: await parseErrorBody(output.body, context),
|
2141
|
-
};
|
2142
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2143
|
-
switch (errorCode) {
|
2144
|
-
case "ChangeSetNotFound":
|
2145
|
-
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
|
2146
|
-
throw await de_ChangeSetNotFoundExceptionRes(parsedOutput, context);
|
2147
|
-
case "InsufficientCapabilitiesException":
|
2148
|
-
case "com.amazonaws.cloudformation#InsufficientCapabilitiesException":
|
2149
|
-
throw await de_InsufficientCapabilitiesExceptionRes(parsedOutput, context);
|
2150
|
-
case "InvalidChangeSetStatus":
|
2151
|
-
case "com.amazonaws.cloudformation#InvalidChangeSetStatusException":
|
2152
|
-
throw await de_InvalidChangeSetStatusExceptionRes(parsedOutput, context);
|
2153
|
-
case "TokenAlreadyExistsException":
|
2154
|
-
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
2155
|
-
throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
|
2156
|
-
default:
|
2157
|
-
const parsedBody = parsedOutput.body;
|
2158
|
-
return throwDefaultError({
|
2159
|
-
output,
|
2160
|
-
parsedBody: parsedBody.Error,
|
2161
|
-
errorCode,
|
2162
|
-
});
|
2163
|
-
}
|
2164
|
-
};
|
2165
1341
|
export const de_GetGeneratedTemplateCommand = async (output, context) => {
|
2166
1342
|
if (output.statusCode >= 300) {
|
2167
|
-
return
|
1343
|
+
return de_CommandError(output, context);
|
2168
1344
|
}
|
2169
1345
|
const data = await parseBody(output.body, context);
|
2170
1346
|
let contents = {};
|
@@ -2175,28 +1351,9 @@ export const de_GetGeneratedTemplateCommand = async (output, context) => {
|
|
2175
1351
|
};
|
2176
1352
|
return response;
|
2177
1353
|
};
|
2178
|
-
const de_GetGeneratedTemplateCommandError = async (output, context) => {
|
2179
|
-
const parsedOutput = {
|
2180
|
-
...output,
|
2181
|
-
body: await parseErrorBody(output.body, context),
|
2182
|
-
};
|
2183
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2184
|
-
switch (errorCode) {
|
2185
|
-
case "GeneratedTemplateNotFound":
|
2186
|
-
case "com.amazonaws.cloudformation#GeneratedTemplateNotFoundException":
|
2187
|
-
throw await de_GeneratedTemplateNotFoundExceptionRes(parsedOutput, context);
|
2188
|
-
default:
|
2189
|
-
const parsedBody = parsedOutput.body;
|
2190
|
-
return throwDefaultError({
|
2191
|
-
output,
|
2192
|
-
parsedBody: parsedBody.Error,
|
2193
|
-
errorCode,
|
2194
|
-
});
|
2195
|
-
}
|
2196
|
-
};
|
2197
1354
|
export const de_GetStackPolicyCommand = async (output, context) => {
|
2198
1355
|
if (output.statusCode >= 300) {
|
2199
|
-
return
|
1356
|
+
return de_CommandError(output, context);
|
2200
1357
|
}
|
2201
1358
|
const data = await parseBody(output.body, context);
|
2202
1359
|
let contents = {};
|
@@ -2207,22 +1364,9 @@ export const de_GetStackPolicyCommand = async (output, context) => {
|
|
2207
1364
|
};
|
2208
1365
|
return response;
|
2209
1366
|
};
|
2210
|
-
const de_GetStackPolicyCommandError = async (output, context) => {
|
2211
|
-
const parsedOutput = {
|
2212
|
-
...output,
|
2213
|
-
body: await parseErrorBody(output.body, context),
|
2214
|
-
};
|
2215
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2216
|
-
const parsedBody = parsedOutput.body;
|
2217
|
-
return throwDefaultError({
|
2218
|
-
output,
|
2219
|
-
parsedBody: parsedBody.Error,
|
2220
|
-
errorCode,
|
2221
|
-
});
|
2222
|
-
};
|
2223
1367
|
export const de_GetTemplateCommand = async (output, context) => {
|
2224
1368
|
if (output.statusCode >= 300) {
|
2225
|
-
return
|
1369
|
+
return de_CommandError(output, context);
|
2226
1370
|
}
|
2227
1371
|
const data = await parseBody(output.body, context);
|
2228
1372
|
let contents = {};
|
@@ -2233,28 +1377,9 @@ export const de_GetTemplateCommand = async (output, context) => {
|
|
2233
1377
|
};
|
2234
1378
|
return response;
|
2235
1379
|
};
|
2236
|
-
const de_GetTemplateCommandError = async (output, context) => {
|
2237
|
-
const parsedOutput = {
|
2238
|
-
...output,
|
2239
|
-
body: await parseErrorBody(output.body, context),
|
2240
|
-
};
|
2241
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2242
|
-
switch (errorCode) {
|
2243
|
-
case "ChangeSetNotFound":
|
2244
|
-
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
|
2245
|
-
throw await de_ChangeSetNotFoundExceptionRes(parsedOutput, context);
|
2246
|
-
default:
|
2247
|
-
const parsedBody = parsedOutput.body;
|
2248
|
-
return throwDefaultError({
|
2249
|
-
output,
|
2250
|
-
parsedBody: parsedBody.Error,
|
2251
|
-
errorCode,
|
2252
|
-
});
|
2253
|
-
}
|
2254
|
-
};
|
2255
1380
|
export const de_GetTemplateSummaryCommand = async (output, context) => {
|
2256
1381
|
if (output.statusCode >= 300) {
|
2257
|
-
return
|
1382
|
+
return de_CommandError(output, context);
|
2258
1383
|
}
|
2259
1384
|
const data = await parseBody(output.body, context);
|
2260
1385
|
let contents = {};
|
@@ -2265,28 +1390,9 @@ export const de_GetTemplateSummaryCommand = async (output, context) => {
|
|
2265
1390
|
};
|
2266
1391
|
return response;
|
2267
1392
|
};
|
2268
|
-
const de_GetTemplateSummaryCommandError = async (output, context) => {
|
2269
|
-
const parsedOutput = {
|
2270
|
-
...output,
|
2271
|
-
body: await parseErrorBody(output.body, context),
|
2272
|
-
};
|
2273
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2274
|
-
switch (errorCode) {
|
2275
|
-
case "StackSetNotFoundException":
|
2276
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
2277
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
2278
|
-
default:
|
2279
|
-
const parsedBody = parsedOutput.body;
|
2280
|
-
return throwDefaultError({
|
2281
|
-
output,
|
2282
|
-
parsedBody: parsedBody.Error,
|
2283
|
-
errorCode,
|
2284
|
-
});
|
2285
|
-
}
|
2286
|
-
};
|
2287
1393
|
export const de_ImportStacksToStackSetCommand = async (output, context) => {
|
2288
1394
|
if (output.statusCode >= 300) {
|
2289
|
-
return
|
1395
|
+
return de_CommandError(output, context);
|
2290
1396
|
}
|
2291
1397
|
const data = await parseBody(output.body, context);
|
2292
1398
|
let contents = {};
|
@@ -2297,46 +1403,9 @@ export const de_ImportStacksToStackSetCommand = async (output, context) => {
|
|
2297
1403
|
};
|
2298
1404
|
return response;
|
2299
1405
|
};
|
2300
|
-
const de_ImportStacksToStackSetCommandError = async (output, context) => {
|
2301
|
-
const parsedOutput = {
|
2302
|
-
...output,
|
2303
|
-
body: await parseErrorBody(output.body, context),
|
2304
|
-
};
|
2305
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2306
|
-
switch (errorCode) {
|
2307
|
-
case "InvalidOperationException":
|
2308
|
-
case "com.amazonaws.cloudformation#InvalidOperationException":
|
2309
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
2310
|
-
case "LimitExceededException":
|
2311
|
-
case "com.amazonaws.cloudformation#LimitExceededException":
|
2312
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
2313
|
-
case "OperationIdAlreadyExistsException":
|
2314
|
-
case "com.amazonaws.cloudformation#OperationIdAlreadyExistsException":
|
2315
|
-
throw await de_OperationIdAlreadyExistsExceptionRes(parsedOutput, context);
|
2316
|
-
case "OperationInProgressException":
|
2317
|
-
case "com.amazonaws.cloudformation#OperationInProgressException":
|
2318
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
2319
|
-
case "StackNotFoundException":
|
2320
|
-
case "com.amazonaws.cloudformation#StackNotFoundException":
|
2321
|
-
throw await de_StackNotFoundExceptionRes(parsedOutput, context);
|
2322
|
-
case "StackSetNotFoundException":
|
2323
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
2324
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
2325
|
-
case "StaleRequestException":
|
2326
|
-
case "com.amazonaws.cloudformation#StaleRequestException":
|
2327
|
-
throw await de_StaleRequestExceptionRes(parsedOutput, context);
|
2328
|
-
default:
|
2329
|
-
const parsedBody = parsedOutput.body;
|
2330
|
-
return throwDefaultError({
|
2331
|
-
output,
|
2332
|
-
parsedBody: parsedBody.Error,
|
2333
|
-
errorCode,
|
2334
|
-
});
|
2335
|
-
}
|
2336
|
-
};
|
2337
1406
|
export const de_ListChangeSetsCommand = async (output, context) => {
|
2338
1407
|
if (output.statusCode >= 300) {
|
2339
|
-
return
|
1408
|
+
return de_CommandError(output, context);
|
2340
1409
|
}
|
2341
1410
|
const data = await parseBody(output.body, context);
|
2342
1411
|
let contents = {};
|
@@ -2347,22 +1416,9 @@ export const de_ListChangeSetsCommand = async (output, context) => {
|
|
2347
1416
|
};
|
2348
1417
|
return response;
|
2349
1418
|
};
|
2350
|
-
const de_ListChangeSetsCommandError = async (output, context) => {
|
2351
|
-
const parsedOutput = {
|
2352
|
-
...output,
|
2353
|
-
body: await parseErrorBody(output.body, context),
|
2354
|
-
};
|
2355
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2356
|
-
const parsedBody = parsedOutput.body;
|
2357
|
-
return throwDefaultError({
|
2358
|
-
output,
|
2359
|
-
parsedBody: parsedBody.Error,
|
2360
|
-
errorCode,
|
2361
|
-
});
|
2362
|
-
};
|
2363
1419
|
export const de_ListExportsCommand = async (output, context) => {
|
2364
1420
|
if (output.statusCode >= 300) {
|
2365
|
-
return
|
1421
|
+
return de_CommandError(output, context);
|
2366
1422
|
}
|
2367
1423
|
const data = await parseBody(output.body, context);
|
2368
1424
|
let contents = {};
|
@@ -2373,22 +1429,9 @@ export const de_ListExportsCommand = async (output, context) => {
|
|
2373
1429
|
};
|
2374
1430
|
return response;
|
2375
1431
|
};
|
2376
|
-
const de_ListExportsCommandError = async (output, context) => {
|
2377
|
-
const parsedOutput = {
|
2378
|
-
...output,
|
2379
|
-
body: await parseErrorBody(output.body, context),
|
2380
|
-
};
|
2381
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2382
|
-
const parsedBody = parsedOutput.body;
|
2383
|
-
return throwDefaultError({
|
2384
|
-
output,
|
2385
|
-
parsedBody: parsedBody.Error,
|
2386
|
-
errorCode,
|
2387
|
-
});
|
2388
|
-
};
|
2389
1432
|
export const de_ListGeneratedTemplatesCommand = async (output, context) => {
|
2390
1433
|
if (output.statusCode >= 300) {
|
2391
|
-
return
|
1434
|
+
return de_CommandError(output, context);
|
2392
1435
|
}
|
2393
1436
|
const data = await parseBody(output.body, context);
|
2394
1437
|
let contents = {};
|
@@ -2399,22 +1442,9 @@ export const de_ListGeneratedTemplatesCommand = async (output, context) => {
|
|
2399
1442
|
};
|
2400
1443
|
return response;
|
2401
1444
|
};
|
2402
|
-
const de_ListGeneratedTemplatesCommandError = async (output, context) => {
|
2403
|
-
const parsedOutput = {
|
2404
|
-
...output,
|
2405
|
-
body: await parseErrorBody(output.body, context),
|
2406
|
-
};
|
2407
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2408
|
-
const parsedBody = parsedOutput.body;
|
2409
|
-
return throwDefaultError({
|
2410
|
-
output,
|
2411
|
-
parsedBody: parsedBody.Error,
|
2412
|
-
errorCode,
|
2413
|
-
});
|
2414
|
-
};
|
2415
1445
|
export const de_ListImportsCommand = async (output, context) => {
|
2416
1446
|
if (output.statusCode >= 300) {
|
2417
|
-
return
|
1447
|
+
return de_CommandError(output, context);
|
2418
1448
|
}
|
2419
1449
|
const data = await parseBody(output.body, context);
|
2420
1450
|
let contents = {};
|
@@ -2425,22 +1455,9 @@ export const de_ListImportsCommand = async (output, context) => {
|
|
2425
1455
|
};
|
2426
1456
|
return response;
|
2427
1457
|
};
|
2428
|
-
const de_ListImportsCommandError = async (output, context) => {
|
2429
|
-
const parsedOutput = {
|
2430
|
-
...output,
|
2431
|
-
body: await parseErrorBody(output.body, context),
|
2432
|
-
};
|
2433
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2434
|
-
const parsedBody = parsedOutput.body;
|
2435
|
-
return throwDefaultError({
|
2436
|
-
output,
|
2437
|
-
parsedBody: parsedBody.Error,
|
2438
|
-
errorCode,
|
2439
|
-
});
|
2440
|
-
};
|
2441
1458
|
export const de_ListResourceScanRelatedResourcesCommand = async (output, context) => {
|
2442
1459
|
if (output.statusCode >= 300) {
|
2443
|
-
return
|
1460
|
+
return de_CommandError(output, context);
|
2444
1461
|
}
|
2445
1462
|
const data = await parseBody(output.body, context);
|
2446
1463
|
let contents = {};
|
@@ -2451,31 +1468,9 @@ export const de_ListResourceScanRelatedResourcesCommand = async (output, context
|
|
2451
1468
|
};
|
2452
1469
|
return response;
|
2453
1470
|
};
|
2454
|
-
const de_ListResourceScanRelatedResourcesCommandError = async (output, context) => {
|
2455
|
-
const parsedOutput = {
|
2456
|
-
...output,
|
2457
|
-
body: await parseErrorBody(output.body, context),
|
2458
|
-
};
|
2459
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2460
|
-
switch (errorCode) {
|
2461
|
-
case "ResourceScanInProgress":
|
2462
|
-
case "com.amazonaws.cloudformation#ResourceScanInProgressException":
|
2463
|
-
throw await de_ResourceScanInProgressExceptionRes(parsedOutput, context);
|
2464
|
-
case "ResourceScanNotFound":
|
2465
|
-
case "com.amazonaws.cloudformation#ResourceScanNotFoundException":
|
2466
|
-
throw await de_ResourceScanNotFoundExceptionRes(parsedOutput, context);
|
2467
|
-
default:
|
2468
|
-
const parsedBody = parsedOutput.body;
|
2469
|
-
return throwDefaultError({
|
2470
|
-
output,
|
2471
|
-
parsedBody: parsedBody.Error,
|
2472
|
-
errorCode,
|
2473
|
-
});
|
2474
|
-
}
|
2475
|
-
};
|
2476
1471
|
export const de_ListResourceScanResourcesCommand = async (output, context) => {
|
2477
1472
|
if (output.statusCode >= 300) {
|
2478
|
-
return
|
1473
|
+
return de_CommandError(output, context);
|
2479
1474
|
}
|
2480
1475
|
const data = await parseBody(output.body, context);
|
2481
1476
|
let contents = {};
|
@@ -2486,31 +1481,9 @@ export const de_ListResourceScanResourcesCommand = async (output, context) => {
|
|
2486
1481
|
};
|
2487
1482
|
return response;
|
2488
1483
|
};
|
2489
|
-
const de_ListResourceScanResourcesCommandError = async (output, context) => {
|
2490
|
-
const parsedOutput = {
|
2491
|
-
...output,
|
2492
|
-
body: await parseErrorBody(output.body, context),
|
2493
|
-
};
|
2494
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2495
|
-
switch (errorCode) {
|
2496
|
-
case "ResourceScanInProgress":
|
2497
|
-
case "com.amazonaws.cloudformation#ResourceScanInProgressException":
|
2498
|
-
throw await de_ResourceScanInProgressExceptionRes(parsedOutput, context);
|
2499
|
-
case "ResourceScanNotFound":
|
2500
|
-
case "com.amazonaws.cloudformation#ResourceScanNotFoundException":
|
2501
|
-
throw await de_ResourceScanNotFoundExceptionRes(parsedOutput, context);
|
2502
|
-
default:
|
2503
|
-
const parsedBody = parsedOutput.body;
|
2504
|
-
return throwDefaultError({
|
2505
|
-
output,
|
2506
|
-
parsedBody: parsedBody.Error,
|
2507
|
-
errorCode,
|
2508
|
-
});
|
2509
|
-
}
|
2510
|
-
};
|
2511
1484
|
export const de_ListResourceScansCommand = async (output, context) => {
|
2512
1485
|
if (output.statusCode >= 300) {
|
2513
|
-
return
|
1486
|
+
return de_CommandError(output, context);
|
2514
1487
|
}
|
2515
1488
|
const data = await parseBody(output.body, context);
|
2516
1489
|
let contents = {};
|
@@ -2521,22 +1494,9 @@ export const de_ListResourceScansCommand = async (output, context) => {
|
|
2521
1494
|
};
|
2522
1495
|
return response;
|
2523
1496
|
};
|
2524
|
-
const de_ListResourceScansCommandError = async (output, context) => {
|
2525
|
-
const parsedOutput = {
|
2526
|
-
...output,
|
2527
|
-
body: await parseErrorBody(output.body, context),
|
2528
|
-
};
|
2529
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2530
|
-
const parsedBody = parsedOutput.body;
|
2531
|
-
return throwDefaultError({
|
2532
|
-
output,
|
2533
|
-
parsedBody: parsedBody.Error,
|
2534
|
-
errorCode,
|
2535
|
-
});
|
2536
|
-
};
|
2537
1497
|
export const de_ListStackInstanceResourceDriftsCommand = async (output, context) => {
|
2538
1498
|
if (output.statusCode >= 300) {
|
2539
|
-
return
|
1499
|
+
return de_CommandError(output, context);
|
2540
1500
|
}
|
2541
1501
|
const data = await parseBody(output.body, context);
|
2542
1502
|
let contents = {};
|
@@ -2547,34 +1507,9 @@ export const de_ListStackInstanceResourceDriftsCommand = async (output, context)
|
|
2547
1507
|
};
|
2548
1508
|
return response;
|
2549
1509
|
};
|
2550
|
-
const de_ListStackInstanceResourceDriftsCommandError = async (output, context) => {
|
2551
|
-
const parsedOutput = {
|
2552
|
-
...output,
|
2553
|
-
body: await parseErrorBody(output.body, context),
|
2554
|
-
};
|
2555
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2556
|
-
switch (errorCode) {
|
2557
|
-
case "OperationNotFoundException":
|
2558
|
-
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
2559
|
-
throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
|
2560
|
-
case "StackInstanceNotFoundException":
|
2561
|
-
case "com.amazonaws.cloudformation#StackInstanceNotFoundException":
|
2562
|
-
throw await de_StackInstanceNotFoundExceptionRes(parsedOutput, context);
|
2563
|
-
case "StackSetNotFoundException":
|
2564
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
2565
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
2566
|
-
default:
|
2567
|
-
const parsedBody = parsedOutput.body;
|
2568
|
-
return throwDefaultError({
|
2569
|
-
output,
|
2570
|
-
parsedBody: parsedBody.Error,
|
2571
|
-
errorCode,
|
2572
|
-
});
|
2573
|
-
}
|
2574
|
-
};
|
2575
1510
|
export const de_ListStackInstancesCommand = async (output, context) => {
|
2576
1511
|
if (output.statusCode >= 300) {
|
2577
|
-
return
|
1512
|
+
return de_CommandError(output, context);
|
2578
1513
|
}
|
2579
1514
|
const data = await parseBody(output.body, context);
|
2580
1515
|
let contents = {};
|
@@ -2585,28 +1520,9 @@ export const de_ListStackInstancesCommand = async (output, context) => {
|
|
2585
1520
|
};
|
2586
1521
|
return response;
|
2587
1522
|
};
|
2588
|
-
const de_ListStackInstancesCommandError = async (output, context) => {
|
2589
|
-
const parsedOutput = {
|
2590
|
-
...output,
|
2591
|
-
body: await parseErrorBody(output.body, context),
|
2592
|
-
};
|
2593
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2594
|
-
switch (errorCode) {
|
2595
|
-
case "StackSetNotFoundException":
|
2596
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
2597
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
2598
|
-
default:
|
2599
|
-
const parsedBody = parsedOutput.body;
|
2600
|
-
return throwDefaultError({
|
2601
|
-
output,
|
2602
|
-
parsedBody: parsedBody.Error,
|
2603
|
-
errorCode,
|
2604
|
-
});
|
2605
|
-
}
|
2606
|
-
};
|
2607
1523
|
export const de_ListStackResourcesCommand = async (output, context) => {
|
2608
1524
|
if (output.statusCode >= 300) {
|
2609
|
-
return
|
1525
|
+
return de_CommandError(output, context);
|
2610
1526
|
}
|
2611
1527
|
const data = await parseBody(output.body, context);
|
2612
1528
|
let contents = {};
|
@@ -2617,22 +1533,9 @@ export const de_ListStackResourcesCommand = async (output, context) => {
|
|
2617
1533
|
};
|
2618
1534
|
return response;
|
2619
1535
|
};
|
2620
|
-
const de_ListStackResourcesCommandError = async (output, context) => {
|
2621
|
-
const parsedOutput = {
|
2622
|
-
...output,
|
2623
|
-
body: await parseErrorBody(output.body, context),
|
2624
|
-
};
|
2625
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2626
|
-
const parsedBody = parsedOutput.body;
|
2627
|
-
return throwDefaultError({
|
2628
|
-
output,
|
2629
|
-
parsedBody: parsedBody.Error,
|
2630
|
-
errorCode,
|
2631
|
-
});
|
2632
|
-
};
|
2633
1536
|
export const de_ListStacksCommand = async (output, context) => {
|
2634
1537
|
if (output.statusCode >= 300) {
|
2635
|
-
return
|
1538
|
+
return de_CommandError(output, context);
|
2636
1539
|
}
|
2637
1540
|
const data = await parseBody(output.body, context);
|
2638
1541
|
let contents = {};
|
@@ -2643,22 +1546,9 @@ export const de_ListStacksCommand = async (output, context) => {
|
|
2643
1546
|
};
|
2644
1547
|
return response;
|
2645
1548
|
};
|
2646
|
-
const de_ListStacksCommandError = async (output, context) => {
|
2647
|
-
const parsedOutput = {
|
2648
|
-
...output,
|
2649
|
-
body: await parseErrorBody(output.body, context),
|
2650
|
-
};
|
2651
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2652
|
-
const parsedBody = parsedOutput.body;
|
2653
|
-
return throwDefaultError({
|
2654
|
-
output,
|
2655
|
-
parsedBody: parsedBody.Error,
|
2656
|
-
errorCode,
|
2657
|
-
});
|
2658
|
-
};
|
2659
1549
|
export const de_ListStackSetOperationResultsCommand = async (output, context) => {
|
2660
1550
|
if (output.statusCode >= 300) {
|
2661
|
-
return
|
1551
|
+
return de_CommandError(output, context);
|
2662
1552
|
}
|
2663
1553
|
const data = await parseBody(output.body, context);
|
2664
1554
|
let contents = {};
|
@@ -2669,31 +1559,9 @@ export const de_ListStackSetOperationResultsCommand = async (output, context) =>
|
|
2669
1559
|
};
|
2670
1560
|
return response;
|
2671
1561
|
};
|
2672
|
-
const de_ListStackSetOperationResultsCommandError = async (output, context) => {
|
2673
|
-
const parsedOutput = {
|
2674
|
-
...output,
|
2675
|
-
body: await parseErrorBody(output.body, context),
|
2676
|
-
};
|
2677
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2678
|
-
switch (errorCode) {
|
2679
|
-
case "OperationNotFoundException":
|
2680
|
-
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
2681
|
-
throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
|
2682
|
-
case "StackSetNotFoundException":
|
2683
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
2684
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
2685
|
-
default:
|
2686
|
-
const parsedBody = parsedOutput.body;
|
2687
|
-
return throwDefaultError({
|
2688
|
-
output,
|
2689
|
-
parsedBody: parsedBody.Error,
|
2690
|
-
errorCode,
|
2691
|
-
});
|
2692
|
-
}
|
2693
|
-
};
|
2694
1562
|
export const de_ListStackSetOperationsCommand = async (output, context) => {
|
2695
1563
|
if (output.statusCode >= 300) {
|
2696
|
-
return
|
1564
|
+
return de_CommandError(output, context);
|
2697
1565
|
}
|
2698
1566
|
const data = await parseBody(output.body, context);
|
2699
1567
|
let contents = {};
|
@@ -2704,28 +1572,9 @@ export const de_ListStackSetOperationsCommand = async (output, context) => {
|
|
2704
1572
|
};
|
2705
1573
|
return response;
|
2706
1574
|
};
|
2707
|
-
const de_ListStackSetOperationsCommandError = async (output, context) => {
|
2708
|
-
const parsedOutput = {
|
2709
|
-
...output,
|
2710
|
-
body: await parseErrorBody(output.body, context),
|
2711
|
-
};
|
2712
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2713
|
-
switch (errorCode) {
|
2714
|
-
case "StackSetNotFoundException":
|
2715
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
2716
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
2717
|
-
default:
|
2718
|
-
const parsedBody = parsedOutput.body;
|
2719
|
-
return throwDefaultError({
|
2720
|
-
output,
|
2721
|
-
parsedBody: parsedBody.Error,
|
2722
|
-
errorCode,
|
2723
|
-
});
|
2724
|
-
}
|
2725
|
-
};
|
2726
1575
|
export const de_ListStackSetsCommand = async (output, context) => {
|
2727
1576
|
if (output.statusCode >= 300) {
|
2728
|
-
return
|
1577
|
+
return de_CommandError(output, context);
|
2729
1578
|
}
|
2730
1579
|
const data = await parseBody(output.body, context);
|
2731
1580
|
let contents = {};
|
@@ -2736,22 +1585,9 @@ export const de_ListStackSetsCommand = async (output, context) => {
|
|
2736
1585
|
};
|
2737
1586
|
return response;
|
2738
1587
|
};
|
2739
|
-
const de_ListStackSetsCommandError = async (output, context) => {
|
2740
|
-
const parsedOutput = {
|
2741
|
-
...output,
|
2742
|
-
body: await parseErrorBody(output.body, context),
|
2743
|
-
};
|
2744
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2745
|
-
const parsedBody = parsedOutput.body;
|
2746
|
-
return throwDefaultError({
|
2747
|
-
output,
|
2748
|
-
parsedBody: parsedBody.Error,
|
2749
|
-
errorCode,
|
2750
|
-
});
|
2751
|
-
};
|
2752
1588
|
export const de_ListTypeRegistrationsCommand = async (output, context) => {
|
2753
1589
|
if (output.statusCode >= 300) {
|
2754
|
-
return
|
1590
|
+
return de_CommandError(output, context);
|
2755
1591
|
}
|
2756
1592
|
const data = await parseBody(output.body, context);
|
2757
1593
|
let contents = {};
|
@@ -2762,60 +1598,22 @@ export const de_ListTypeRegistrationsCommand = async (output, context) => {
|
|
2762
1598
|
};
|
2763
1599
|
return response;
|
2764
1600
|
};
|
2765
|
-
const
|
2766
|
-
|
2767
|
-
|
2768
|
-
|
2769
|
-
|
2770
|
-
|
2771
|
-
|
2772
|
-
|
2773
|
-
|
2774
|
-
|
2775
|
-
default:
|
2776
|
-
const parsedBody = parsedOutput.body;
|
2777
|
-
return throwDefaultError({
|
2778
|
-
output,
|
2779
|
-
parsedBody: parsedBody.Error,
|
2780
|
-
errorCode,
|
2781
|
-
});
|
2782
|
-
}
|
2783
|
-
};
|
2784
|
-
export const de_ListTypesCommand = async (output, context) => {
|
2785
|
-
if (output.statusCode >= 300) {
|
2786
|
-
return de_ListTypesCommandError(output, context);
|
2787
|
-
}
|
2788
|
-
const data = await parseBody(output.body, context);
|
2789
|
-
let contents = {};
|
2790
|
-
contents = de_ListTypesOutput(data.ListTypesResult, context);
|
2791
|
-
const response = {
|
2792
|
-
$metadata: deserializeMetadata(output),
|
2793
|
-
...contents,
|
1601
|
+
export const de_ListTypesCommand = async (output, context) => {
|
1602
|
+
if (output.statusCode >= 300) {
|
1603
|
+
return de_CommandError(output, context);
|
1604
|
+
}
|
1605
|
+
const data = await parseBody(output.body, context);
|
1606
|
+
let contents = {};
|
1607
|
+
contents = de_ListTypesOutput(data.ListTypesResult, context);
|
1608
|
+
const response = {
|
1609
|
+
$metadata: deserializeMetadata(output),
|
1610
|
+
...contents,
|
2794
1611
|
};
|
2795
1612
|
return response;
|
2796
1613
|
};
|
2797
|
-
const de_ListTypesCommandError = async (output, context) => {
|
2798
|
-
const parsedOutput = {
|
2799
|
-
...output,
|
2800
|
-
body: await parseErrorBody(output.body, context),
|
2801
|
-
};
|
2802
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2803
|
-
switch (errorCode) {
|
2804
|
-
case "CFNRegistryException":
|
2805
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
2806
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
2807
|
-
default:
|
2808
|
-
const parsedBody = parsedOutput.body;
|
2809
|
-
return throwDefaultError({
|
2810
|
-
output,
|
2811
|
-
parsedBody: parsedBody.Error,
|
2812
|
-
errorCode,
|
2813
|
-
});
|
2814
|
-
}
|
2815
|
-
};
|
2816
1614
|
export const de_ListTypeVersionsCommand = async (output, context) => {
|
2817
1615
|
if (output.statusCode >= 300) {
|
2818
|
-
return
|
1616
|
+
return de_CommandError(output, context);
|
2819
1617
|
}
|
2820
1618
|
const data = await parseBody(output.body, context);
|
2821
1619
|
let contents = {};
|
@@ -2826,28 +1624,9 @@ export const de_ListTypeVersionsCommand = async (output, context) => {
|
|
2826
1624
|
};
|
2827
1625
|
return response;
|
2828
1626
|
};
|
2829
|
-
const de_ListTypeVersionsCommandError = async (output, context) => {
|
2830
|
-
const parsedOutput = {
|
2831
|
-
...output,
|
2832
|
-
body: await parseErrorBody(output.body, context),
|
2833
|
-
};
|
2834
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2835
|
-
switch (errorCode) {
|
2836
|
-
case "CFNRegistryException":
|
2837
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
2838
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
2839
|
-
default:
|
2840
|
-
const parsedBody = parsedOutput.body;
|
2841
|
-
return throwDefaultError({
|
2842
|
-
output,
|
2843
|
-
parsedBody: parsedBody.Error,
|
2844
|
-
errorCode,
|
2845
|
-
});
|
2846
|
-
}
|
2847
|
-
};
|
2848
1627
|
export const de_PublishTypeCommand = async (output, context) => {
|
2849
1628
|
if (output.statusCode >= 300) {
|
2850
|
-
return
|
1629
|
+
return de_CommandError(output, context);
|
2851
1630
|
}
|
2852
1631
|
const data = await parseBody(output.body, context);
|
2853
1632
|
let contents = {};
|
@@ -2858,31 +1637,9 @@ export const de_PublishTypeCommand = async (output, context) => {
|
|
2858
1637
|
};
|
2859
1638
|
return response;
|
2860
1639
|
};
|
2861
|
-
const de_PublishTypeCommandError = async (output, context) => {
|
2862
|
-
const parsedOutput = {
|
2863
|
-
...output,
|
2864
|
-
body: await parseErrorBody(output.body, context),
|
2865
|
-
};
|
2866
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2867
|
-
switch (errorCode) {
|
2868
|
-
case "CFNRegistryException":
|
2869
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
2870
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
2871
|
-
case "TypeNotFoundException":
|
2872
|
-
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
2873
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
2874
|
-
default:
|
2875
|
-
const parsedBody = parsedOutput.body;
|
2876
|
-
return throwDefaultError({
|
2877
|
-
output,
|
2878
|
-
parsedBody: parsedBody.Error,
|
2879
|
-
errorCode,
|
2880
|
-
});
|
2881
|
-
}
|
2882
|
-
};
|
2883
1640
|
export const de_RecordHandlerProgressCommand = async (output, context) => {
|
2884
1641
|
if (output.statusCode >= 300) {
|
2885
|
-
return
|
1642
|
+
return de_CommandError(output, context);
|
2886
1643
|
}
|
2887
1644
|
const data = await parseBody(output.body, context);
|
2888
1645
|
let contents = {};
|
@@ -2893,31 +1650,9 @@ export const de_RecordHandlerProgressCommand = async (output, context) => {
|
|
2893
1650
|
};
|
2894
1651
|
return response;
|
2895
1652
|
};
|
2896
|
-
const de_RecordHandlerProgressCommandError = async (output, context) => {
|
2897
|
-
const parsedOutput = {
|
2898
|
-
...output,
|
2899
|
-
body: await parseErrorBody(output.body, context),
|
2900
|
-
};
|
2901
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2902
|
-
switch (errorCode) {
|
2903
|
-
case "ConditionalCheckFailed":
|
2904
|
-
case "com.amazonaws.cloudformation#OperationStatusCheckFailedException":
|
2905
|
-
throw await de_OperationStatusCheckFailedExceptionRes(parsedOutput, context);
|
2906
|
-
case "InvalidStateTransition":
|
2907
|
-
case "com.amazonaws.cloudformation#InvalidStateTransitionException":
|
2908
|
-
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
2909
|
-
default:
|
2910
|
-
const parsedBody = parsedOutput.body;
|
2911
|
-
return throwDefaultError({
|
2912
|
-
output,
|
2913
|
-
parsedBody: parsedBody.Error,
|
2914
|
-
errorCode,
|
2915
|
-
});
|
2916
|
-
}
|
2917
|
-
};
|
2918
1653
|
export const de_RegisterPublisherCommand = async (output, context) => {
|
2919
1654
|
if (output.statusCode >= 300) {
|
2920
|
-
return
|
1655
|
+
return de_CommandError(output, context);
|
2921
1656
|
}
|
2922
1657
|
const data = await parseBody(output.body, context);
|
2923
1658
|
let contents = {};
|
@@ -2928,28 +1663,9 @@ export const de_RegisterPublisherCommand = async (output, context) => {
|
|
2928
1663
|
};
|
2929
1664
|
return response;
|
2930
1665
|
};
|
2931
|
-
const de_RegisterPublisherCommandError = async (output, context) => {
|
2932
|
-
const parsedOutput = {
|
2933
|
-
...output,
|
2934
|
-
body: await parseErrorBody(output.body, context),
|
2935
|
-
};
|
2936
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2937
|
-
switch (errorCode) {
|
2938
|
-
case "CFNRegistryException":
|
2939
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
2940
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
2941
|
-
default:
|
2942
|
-
const parsedBody = parsedOutput.body;
|
2943
|
-
return throwDefaultError({
|
2944
|
-
output,
|
2945
|
-
parsedBody: parsedBody.Error,
|
2946
|
-
errorCode,
|
2947
|
-
});
|
2948
|
-
}
|
2949
|
-
};
|
2950
1666
|
export const de_RegisterTypeCommand = async (output, context) => {
|
2951
1667
|
if (output.statusCode >= 300) {
|
2952
|
-
return
|
1668
|
+
return de_CommandError(output, context);
|
2953
1669
|
}
|
2954
1670
|
const data = await parseBody(output.body, context);
|
2955
1671
|
let contents = {};
|
@@ -2960,28 +1676,9 @@ export const de_RegisterTypeCommand = async (output, context) => {
|
|
2960
1676
|
};
|
2961
1677
|
return response;
|
2962
1678
|
};
|
2963
|
-
const de_RegisterTypeCommandError = async (output, context) => {
|
2964
|
-
const parsedOutput = {
|
2965
|
-
...output,
|
2966
|
-
body: await parseErrorBody(output.body, context),
|
2967
|
-
};
|
2968
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
2969
|
-
switch (errorCode) {
|
2970
|
-
case "CFNRegistryException":
|
2971
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
2972
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
2973
|
-
default:
|
2974
|
-
const parsedBody = parsedOutput.body;
|
2975
|
-
return throwDefaultError({
|
2976
|
-
output,
|
2977
|
-
parsedBody: parsedBody.Error,
|
2978
|
-
errorCode,
|
2979
|
-
});
|
2980
|
-
}
|
2981
|
-
};
|
2982
1679
|
export const de_RollbackStackCommand = async (output, context) => {
|
2983
1680
|
if (output.statusCode >= 300) {
|
2984
|
-
return
|
1681
|
+
return de_CommandError(output, context);
|
2985
1682
|
}
|
2986
1683
|
const data = await parseBody(output.body, context);
|
2987
1684
|
let contents = {};
|
@@ -2992,28 +1689,9 @@ export const de_RollbackStackCommand = async (output, context) => {
|
|
2992
1689
|
};
|
2993
1690
|
return response;
|
2994
1691
|
};
|
2995
|
-
const de_RollbackStackCommandError = async (output, context) => {
|
2996
|
-
const parsedOutput = {
|
2997
|
-
...output,
|
2998
|
-
body: await parseErrorBody(output.body, context),
|
2999
|
-
};
|
3000
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
3001
|
-
switch (errorCode) {
|
3002
|
-
case "TokenAlreadyExistsException":
|
3003
|
-
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
3004
|
-
throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
|
3005
|
-
default:
|
3006
|
-
const parsedBody = parsedOutput.body;
|
3007
|
-
return throwDefaultError({
|
3008
|
-
output,
|
3009
|
-
parsedBody: parsedBody.Error,
|
3010
|
-
errorCode,
|
3011
|
-
});
|
3012
|
-
}
|
3013
|
-
};
|
3014
1692
|
export const de_SetStackPolicyCommand = async (output, context) => {
|
3015
1693
|
if (output.statusCode >= 300) {
|
3016
|
-
return
|
1694
|
+
return de_CommandError(output, context);
|
3017
1695
|
}
|
3018
1696
|
await collectBody(output.body, context);
|
3019
1697
|
const response = {
|
@@ -3021,22 +1699,9 @@ export const de_SetStackPolicyCommand = async (output, context) => {
|
|
3021
1699
|
};
|
3022
1700
|
return response;
|
3023
1701
|
};
|
3024
|
-
const de_SetStackPolicyCommandError = async (output, context) => {
|
3025
|
-
const parsedOutput = {
|
3026
|
-
...output,
|
3027
|
-
body: await parseErrorBody(output.body, context),
|
3028
|
-
};
|
3029
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
3030
|
-
const parsedBody = parsedOutput.body;
|
3031
|
-
return throwDefaultError({
|
3032
|
-
output,
|
3033
|
-
parsedBody: parsedBody.Error,
|
3034
|
-
errorCode,
|
3035
|
-
});
|
3036
|
-
};
|
3037
1702
|
export const de_SetTypeConfigurationCommand = async (output, context) => {
|
3038
1703
|
if (output.statusCode >= 300) {
|
3039
|
-
return
|
1704
|
+
return de_CommandError(output, context);
|
3040
1705
|
}
|
3041
1706
|
const data = await parseBody(output.body, context);
|
3042
1707
|
let contents = {};
|
@@ -3047,31 +1712,9 @@ export const de_SetTypeConfigurationCommand = async (output, context) => {
|
|
3047
1712
|
};
|
3048
1713
|
return response;
|
3049
1714
|
};
|
3050
|
-
const de_SetTypeConfigurationCommandError = async (output, context) => {
|
3051
|
-
const parsedOutput = {
|
3052
|
-
...output,
|
3053
|
-
body: await parseErrorBody(output.body, context),
|
3054
|
-
};
|
3055
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
3056
|
-
switch (errorCode) {
|
3057
|
-
case "CFNRegistryException":
|
3058
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
3059
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
3060
|
-
case "TypeNotFoundException":
|
3061
|
-
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
3062
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
3063
|
-
default:
|
3064
|
-
const parsedBody = parsedOutput.body;
|
3065
|
-
return throwDefaultError({
|
3066
|
-
output,
|
3067
|
-
parsedBody: parsedBody.Error,
|
3068
|
-
errorCode,
|
3069
|
-
});
|
3070
|
-
}
|
3071
|
-
};
|
3072
1715
|
export const de_SetTypeDefaultVersionCommand = async (output, context) => {
|
3073
1716
|
if (output.statusCode >= 300) {
|
3074
|
-
return
|
1717
|
+
return de_CommandError(output, context);
|
3075
1718
|
}
|
3076
1719
|
const data = await parseBody(output.body, context);
|
3077
1720
|
let contents = {};
|
@@ -3082,31 +1725,9 @@ export const de_SetTypeDefaultVersionCommand = async (output, context) => {
|
|
3082
1725
|
};
|
3083
1726
|
return response;
|
3084
1727
|
};
|
3085
|
-
const de_SetTypeDefaultVersionCommandError = async (output, context) => {
|
3086
|
-
const parsedOutput = {
|
3087
|
-
...output,
|
3088
|
-
body: await parseErrorBody(output.body, context),
|
3089
|
-
};
|
3090
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
3091
|
-
switch (errorCode) {
|
3092
|
-
case "CFNRegistryException":
|
3093
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
3094
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
3095
|
-
case "TypeNotFoundException":
|
3096
|
-
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
3097
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
3098
|
-
default:
|
3099
|
-
const parsedBody = parsedOutput.body;
|
3100
|
-
return throwDefaultError({
|
3101
|
-
output,
|
3102
|
-
parsedBody: parsedBody.Error,
|
3103
|
-
errorCode,
|
3104
|
-
});
|
3105
|
-
}
|
3106
|
-
};
|
3107
1728
|
export const de_SignalResourceCommand = async (output, context) => {
|
3108
1729
|
if (output.statusCode >= 300) {
|
3109
|
-
return
|
1730
|
+
return de_CommandError(output, context);
|
3110
1731
|
}
|
3111
1732
|
await collectBody(output.body, context);
|
3112
1733
|
const response = {
|
@@ -3114,22 +1735,9 @@ export const de_SignalResourceCommand = async (output, context) => {
|
|
3114
1735
|
};
|
3115
1736
|
return response;
|
3116
1737
|
};
|
3117
|
-
const de_SignalResourceCommandError = async (output, context) => {
|
3118
|
-
const parsedOutput = {
|
3119
|
-
...output,
|
3120
|
-
body: await parseErrorBody(output.body, context),
|
3121
|
-
};
|
3122
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
3123
|
-
const parsedBody = parsedOutput.body;
|
3124
|
-
return throwDefaultError({
|
3125
|
-
output,
|
3126
|
-
parsedBody: parsedBody.Error,
|
3127
|
-
errorCode,
|
3128
|
-
});
|
3129
|
-
};
|
3130
1738
|
export const de_StartResourceScanCommand = async (output, context) => {
|
3131
1739
|
if (output.statusCode >= 300) {
|
3132
|
-
return
|
1740
|
+
return de_CommandError(output, context);
|
3133
1741
|
}
|
3134
1742
|
const data = await parseBody(output.body, context);
|
3135
1743
|
let contents = {};
|
@@ -3140,31 +1748,9 @@ export const de_StartResourceScanCommand = async (output, context) => {
|
|
3140
1748
|
};
|
3141
1749
|
return response;
|
3142
1750
|
};
|
3143
|
-
const de_StartResourceScanCommandError = async (output, context) => {
|
3144
|
-
const parsedOutput = {
|
3145
|
-
...output,
|
3146
|
-
body: await parseErrorBody(output.body, context),
|
3147
|
-
};
|
3148
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
3149
|
-
switch (errorCode) {
|
3150
|
-
case "ResourceScanInProgress":
|
3151
|
-
case "com.amazonaws.cloudformation#ResourceScanInProgressException":
|
3152
|
-
throw await de_ResourceScanInProgressExceptionRes(parsedOutput, context);
|
3153
|
-
case "ResourceScanLimitExceeded":
|
3154
|
-
case "com.amazonaws.cloudformation#ResourceScanLimitExceededException":
|
3155
|
-
throw await de_ResourceScanLimitExceededExceptionRes(parsedOutput, context);
|
3156
|
-
default:
|
3157
|
-
const parsedBody = parsedOutput.body;
|
3158
|
-
return throwDefaultError({
|
3159
|
-
output,
|
3160
|
-
parsedBody: parsedBody.Error,
|
3161
|
-
errorCode,
|
3162
|
-
});
|
3163
|
-
}
|
3164
|
-
};
|
3165
1751
|
export const de_StopStackSetOperationCommand = async (output, context) => {
|
3166
1752
|
if (output.statusCode >= 300) {
|
3167
|
-
return
|
1753
|
+
return de_CommandError(output, context);
|
3168
1754
|
}
|
3169
1755
|
const data = await parseBody(output.body, context);
|
3170
1756
|
let contents = {};
|
@@ -3175,34 +1761,9 @@ export const de_StopStackSetOperationCommand = async (output, context) => {
|
|
3175
1761
|
};
|
3176
1762
|
return response;
|
3177
1763
|
};
|
3178
|
-
const de_StopStackSetOperationCommandError = async (output, context) => {
|
3179
|
-
const parsedOutput = {
|
3180
|
-
...output,
|
3181
|
-
body: await parseErrorBody(output.body, context),
|
3182
|
-
};
|
3183
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
3184
|
-
switch (errorCode) {
|
3185
|
-
case "InvalidOperationException":
|
3186
|
-
case "com.amazonaws.cloudformation#InvalidOperationException":
|
3187
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
3188
|
-
case "OperationNotFoundException":
|
3189
|
-
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
3190
|
-
throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
|
3191
|
-
case "StackSetNotFoundException":
|
3192
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
3193
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
3194
|
-
default:
|
3195
|
-
const parsedBody = parsedOutput.body;
|
3196
|
-
return throwDefaultError({
|
3197
|
-
output,
|
3198
|
-
parsedBody: parsedBody.Error,
|
3199
|
-
errorCode,
|
3200
|
-
});
|
3201
|
-
}
|
3202
|
-
};
|
3203
1764
|
export const de_TestTypeCommand = async (output, context) => {
|
3204
1765
|
if (output.statusCode >= 300) {
|
3205
|
-
return
|
1766
|
+
return de_CommandError(output, context);
|
3206
1767
|
}
|
3207
1768
|
const data = await parseBody(output.body, context);
|
3208
1769
|
let contents = {};
|
@@ -3213,31 +1774,9 @@ export const de_TestTypeCommand = async (output, context) => {
|
|
3213
1774
|
};
|
3214
1775
|
return response;
|
3215
1776
|
};
|
3216
|
-
const de_TestTypeCommandError = async (output, context) => {
|
3217
|
-
const parsedOutput = {
|
3218
|
-
...output,
|
3219
|
-
body: await parseErrorBody(output.body, context),
|
3220
|
-
};
|
3221
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
3222
|
-
switch (errorCode) {
|
3223
|
-
case "CFNRegistryException":
|
3224
|
-
case "com.amazonaws.cloudformation#CFNRegistryException":
|
3225
|
-
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
3226
|
-
case "TypeNotFoundException":
|
3227
|
-
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
3228
|
-
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
3229
|
-
default:
|
3230
|
-
const parsedBody = parsedOutput.body;
|
3231
|
-
return throwDefaultError({
|
3232
|
-
output,
|
3233
|
-
parsedBody: parsedBody.Error,
|
3234
|
-
errorCode,
|
3235
|
-
});
|
3236
|
-
}
|
3237
|
-
};
|
3238
1777
|
export const de_UpdateGeneratedTemplateCommand = async (output, context) => {
|
3239
1778
|
if (output.statusCode >= 300) {
|
3240
|
-
return
|
1779
|
+
return de_CommandError(output, context);
|
3241
1780
|
}
|
3242
1781
|
const data = await parseBody(output.body, context);
|
3243
1782
|
let contents = {};
|
@@ -3248,34 +1787,9 @@ export const de_UpdateGeneratedTemplateCommand = async (output, context) => {
|
|
3248
1787
|
};
|
3249
1788
|
return response;
|
3250
1789
|
};
|
3251
|
-
const de_UpdateGeneratedTemplateCommandError = async (output, context) => {
|
3252
|
-
const parsedOutput = {
|
3253
|
-
...output,
|
3254
|
-
body: await parseErrorBody(output.body, context),
|
3255
|
-
};
|
3256
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
3257
|
-
switch (errorCode) {
|
3258
|
-
case "AlreadyExistsException":
|
3259
|
-
case "com.amazonaws.cloudformation#AlreadyExistsException":
|
3260
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
3261
|
-
case "GeneratedTemplateNotFound":
|
3262
|
-
case "com.amazonaws.cloudformation#GeneratedTemplateNotFoundException":
|
3263
|
-
throw await de_GeneratedTemplateNotFoundExceptionRes(parsedOutput, context);
|
3264
|
-
case "LimitExceededException":
|
3265
|
-
case "com.amazonaws.cloudformation#LimitExceededException":
|
3266
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
3267
|
-
default:
|
3268
|
-
const parsedBody = parsedOutput.body;
|
3269
|
-
return throwDefaultError({
|
3270
|
-
output,
|
3271
|
-
parsedBody: parsedBody.Error,
|
3272
|
-
errorCode,
|
3273
|
-
});
|
3274
|
-
}
|
3275
|
-
};
|
3276
1790
|
export const de_UpdateStackCommand = async (output, context) => {
|
3277
1791
|
if (output.statusCode >= 300) {
|
3278
|
-
return
|
1792
|
+
return de_CommandError(output, context);
|
3279
1793
|
}
|
3280
1794
|
const data = await parseBody(output.body, context);
|
3281
1795
|
let contents = {};
|
@@ -3286,31 +1800,9 @@ export const de_UpdateStackCommand = async (output, context) => {
|
|
3286
1800
|
};
|
3287
1801
|
return response;
|
3288
1802
|
};
|
3289
|
-
const de_UpdateStackCommandError = async (output, context) => {
|
3290
|
-
const parsedOutput = {
|
3291
|
-
...output,
|
3292
|
-
body: await parseErrorBody(output.body, context),
|
3293
|
-
};
|
3294
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
3295
|
-
switch (errorCode) {
|
3296
|
-
case "InsufficientCapabilitiesException":
|
3297
|
-
case "com.amazonaws.cloudformation#InsufficientCapabilitiesException":
|
3298
|
-
throw await de_InsufficientCapabilitiesExceptionRes(parsedOutput, context);
|
3299
|
-
case "TokenAlreadyExistsException":
|
3300
|
-
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
3301
|
-
throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
|
3302
|
-
default:
|
3303
|
-
const parsedBody = parsedOutput.body;
|
3304
|
-
return throwDefaultError({
|
3305
|
-
output,
|
3306
|
-
parsedBody: parsedBody.Error,
|
3307
|
-
errorCode,
|
3308
|
-
});
|
3309
|
-
}
|
3310
|
-
};
|
3311
1803
|
export const de_UpdateStackInstancesCommand = async (output, context) => {
|
3312
1804
|
if (output.statusCode >= 300) {
|
3313
|
-
return
|
1805
|
+
return de_CommandError(output, context);
|
3314
1806
|
}
|
3315
1807
|
const data = await parseBody(output.body, context);
|
3316
1808
|
let contents = {};
|
@@ -3321,54 +1813,46 @@ export const de_UpdateStackInstancesCommand = async (output, context) => {
|
|
3321
1813
|
};
|
3322
1814
|
return response;
|
3323
1815
|
};
|
3324
|
-
const
|
3325
|
-
|
3326
|
-
|
3327
|
-
|
1816
|
+
export const de_UpdateStackSetCommand = async (output, context) => {
|
1817
|
+
if (output.statusCode >= 300) {
|
1818
|
+
return de_CommandError(output, context);
|
1819
|
+
}
|
1820
|
+
const data = await parseBody(output.body, context);
|
1821
|
+
let contents = {};
|
1822
|
+
contents = de_UpdateStackSetOutput(data.UpdateStackSetResult, context);
|
1823
|
+
const response = {
|
1824
|
+
$metadata: deserializeMetadata(output),
|
1825
|
+
...contents,
|
3328
1826
|
};
|
3329
|
-
|
3330
|
-
|
3331
|
-
|
3332
|
-
|
3333
|
-
|
3334
|
-
case "OperationIdAlreadyExistsException":
|
3335
|
-
case "com.amazonaws.cloudformation#OperationIdAlreadyExistsException":
|
3336
|
-
throw await de_OperationIdAlreadyExistsExceptionRes(parsedOutput, context);
|
3337
|
-
case "OperationInProgressException":
|
3338
|
-
case "com.amazonaws.cloudformation#OperationInProgressException":
|
3339
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
3340
|
-
case "StackInstanceNotFoundException":
|
3341
|
-
case "com.amazonaws.cloudformation#StackInstanceNotFoundException":
|
3342
|
-
throw await de_StackInstanceNotFoundExceptionRes(parsedOutput, context);
|
3343
|
-
case "StackSetNotFoundException":
|
3344
|
-
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
3345
|
-
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
3346
|
-
case "StaleRequestException":
|
3347
|
-
case "com.amazonaws.cloudformation#StaleRequestException":
|
3348
|
-
throw await de_StaleRequestExceptionRes(parsedOutput, context);
|
3349
|
-
default:
|
3350
|
-
const parsedBody = parsedOutput.body;
|
3351
|
-
return throwDefaultError({
|
3352
|
-
output,
|
3353
|
-
parsedBody: parsedBody.Error,
|
3354
|
-
errorCode,
|
3355
|
-
});
|
1827
|
+
return response;
|
1828
|
+
};
|
1829
|
+
export const de_UpdateTerminationProtectionCommand = async (output, context) => {
|
1830
|
+
if (output.statusCode >= 300) {
|
1831
|
+
return de_CommandError(output, context);
|
3356
1832
|
}
|
1833
|
+
const data = await parseBody(output.body, context);
|
1834
|
+
let contents = {};
|
1835
|
+
contents = de_UpdateTerminationProtectionOutput(data.UpdateTerminationProtectionResult, context);
|
1836
|
+
const response = {
|
1837
|
+
$metadata: deserializeMetadata(output),
|
1838
|
+
...contents,
|
1839
|
+
};
|
1840
|
+
return response;
|
3357
1841
|
};
|
3358
|
-
export const
|
1842
|
+
export const de_ValidateTemplateCommand = async (output, context) => {
|
3359
1843
|
if (output.statusCode >= 300) {
|
3360
|
-
return
|
1844
|
+
return de_CommandError(output, context);
|
3361
1845
|
}
|
3362
1846
|
const data = await parseBody(output.body, context);
|
3363
1847
|
let contents = {};
|
3364
|
-
contents =
|
1848
|
+
contents = de_ValidateTemplateOutput(data.ValidateTemplateResult, context);
|
3365
1849
|
const response = {
|
3366
1850
|
$metadata: deserializeMetadata(output),
|
3367
1851
|
...contents,
|
3368
1852
|
};
|
3369
1853
|
return response;
|
3370
1854
|
};
|
3371
|
-
const
|
1855
|
+
const de_CommandError = async (output, context) => {
|
3372
1856
|
const parsedOutput = {
|
3373
1857
|
...output,
|
3374
1858
|
body: await parseErrorBody(output.body, context),
|
@@ -3378,21 +1862,84 @@ const de_UpdateStackSetCommandError = async (output, context) => {
|
|
3378
1862
|
case "InvalidOperationException":
|
3379
1863
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
3380
1864
|
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
1865
|
+
case "OperationNotFoundException":
|
1866
|
+
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
1867
|
+
throw await de_OperationNotFoundExceptionRes(parsedOutput, context);
|
1868
|
+
case "CFNRegistryException":
|
1869
|
+
case "com.amazonaws.cloudformation#CFNRegistryException":
|
1870
|
+
throw await de_CFNRegistryExceptionRes(parsedOutput, context);
|
1871
|
+
case "TypeNotFoundException":
|
1872
|
+
case "com.amazonaws.cloudformation#TypeNotFoundException":
|
1873
|
+
throw await de_TypeNotFoundExceptionRes(parsedOutput, context);
|
1874
|
+
case "TypeConfigurationNotFoundException":
|
1875
|
+
case "com.amazonaws.cloudformation#TypeConfigurationNotFoundException":
|
1876
|
+
throw await de_TypeConfigurationNotFoundExceptionRes(parsedOutput, context);
|
1877
|
+
case "TokenAlreadyExistsException":
|
1878
|
+
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
1879
|
+
throw await de_TokenAlreadyExistsExceptionRes(parsedOutput, context);
|
1880
|
+
case "AlreadyExistsException":
|
1881
|
+
case "com.amazonaws.cloudformation#AlreadyExistsException":
|
1882
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
1883
|
+
case "InsufficientCapabilitiesException":
|
1884
|
+
case "com.amazonaws.cloudformation#InsufficientCapabilitiesException":
|
1885
|
+
throw await de_InsufficientCapabilitiesExceptionRes(parsedOutput, context);
|
1886
|
+
case "LimitExceededException":
|
1887
|
+
case "com.amazonaws.cloudformation#LimitExceededException":
|
1888
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
1889
|
+
case "ConcurrentResourcesLimitExceeded":
|
1890
|
+
case "com.amazonaws.cloudformation#ConcurrentResourcesLimitExceededException":
|
1891
|
+
throw await de_ConcurrentResourcesLimitExceededExceptionRes(parsedOutput, context);
|
3381
1892
|
case "OperationIdAlreadyExistsException":
|
3382
1893
|
case "com.amazonaws.cloudformation#OperationIdAlreadyExistsException":
|
3383
1894
|
throw await de_OperationIdAlreadyExistsExceptionRes(parsedOutput, context);
|
3384
1895
|
case "OperationInProgressException":
|
3385
1896
|
case "com.amazonaws.cloudformation#OperationInProgressException":
|
3386
1897
|
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
3387
|
-
case "StackInstanceNotFoundException":
|
3388
|
-
case "com.amazonaws.cloudformation#StackInstanceNotFoundException":
|
3389
|
-
throw await de_StackInstanceNotFoundExceptionRes(parsedOutput, context);
|
3390
1898
|
case "StackSetNotFoundException":
|
3391
1899
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
3392
1900
|
throw await de_StackSetNotFoundExceptionRes(parsedOutput, context);
|
3393
1901
|
case "StaleRequestException":
|
3394
1902
|
case "com.amazonaws.cloudformation#StaleRequestException":
|
3395
1903
|
throw await de_StaleRequestExceptionRes(parsedOutput, context);
|
1904
|
+
case "CreatedButModifiedException":
|
1905
|
+
case "com.amazonaws.cloudformation#CreatedButModifiedException":
|
1906
|
+
throw await de_CreatedButModifiedExceptionRes(parsedOutput, context);
|
1907
|
+
case "NameAlreadyExistsException":
|
1908
|
+
case "com.amazonaws.cloudformation#NameAlreadyExistsException":
|
1909
|
+
throw await de_NameAlreadyExistsExceptionRes(parsedOutput, context);
|
1910
|
+
case "InvalidChangeSetStatus":
|
1911
|
+
case "com.amazonaws.cloudformation#InvalidChangeSetStatusException":
|
1912
|
+
throw await de_InvalidChangeSetStatusExceptionRes(parsedOutput, context);
|
1913
|
+
case "GeneratedTemplateNotFound":
|
1914
|
+
case "com.amazonaws.cloudformation#GeneratedTemplateNotFoundException":
|
1915
|
+
throw await de_GeneratedTemplateNotFoundExceptionRes(parsedOutput, context);
|
1916
|
+
case "StackSetNotEmptyException":
|
1917
|
+
case "com.amazonaws.cloudformation#StackSetNotEmptyException":
|
1918
|
+
throw await de_StackSetNotEmptyExceptionRes(parsedOutput, context);
|
1919
|
+
case "ChangeSetNotFound":
|
1920
|
+
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
|
1921
|
+
throw await de_ChangeSetNotFoundExceptionRes(parsedOutput, context);
|
1922
|
+
case "ResourceScanNotFound":
|
1923
|
+
case "com.amazonaws.cloudformation#ResourceScanNotFoundException":
|
1924
|
+
throw await de_ResourceScanNotFoundExceptionRes(parsedOutput, context);
|
1925
|
+
case "StackInstanceNotFoundException":
|
1926
|
+
case "com.amazonaws.cloudformation#StackInstanceNotFoundException":
|
1927
|
+
throw await de_StackInstanceNotFoundExceptionRes(parsedOutput, context);
|
1928
|
+
case "StackNotFoundException":
|
1929
|
+
case "com.amazonaws.cloudformation#StackNotFoundException":
|
1930
|
+
throw await de_StackNotFoundExceptionRes(parsedOutput, context);
|
1931
|
+
case "ResourceScanInProgress":
|
1932
|
+
case "com.amazonaws.cloudformation#ResourceScanInProgressException":
|
1933
|
+
throw await de_ResourceScanInProgressExceptionRes(parsedOutput, context);
|
1934
|
+
case "ConditionalCheckFailed":
|
1935
|
+
case "com.amazonaws.cloudformation#OperationStatusCheckFailedException":
|
1936
|
+
throw await de_OperationStatusCheckFailedExceptionRes(parsedOutput, context);
|
1937
|
+
case "InvalidStateTransition":
|
1938
|
+
case "com.amazonaws.cloudformation#InvalidStateTransitionException":
|
1939
|
+
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
1940
|
+
case "ResourceScanLimitExceeded":
|
1941
|
+
case "com.amazonaws.cloudformation#ResourceScanLimitExceededException":
|
1942
|
+
throw await de_ResourceScanLimitExceededExceptionRes(parsedOutput, context);
|
3396
1943
|
default:
|
3397
1944
|
const parsedBody = parsedOutput.body;
|
3398
1945
|
return throwDefaultError({
|
@@ -3402,58 +1949,6 @@ const de_UpdateStackSetCommandError = async (output, context) => {
|
|
3402
1949
|
});
|
3403
1950
|
}
|
3404
1951
|
};
|
3405
|
-
export const de_UpdateTerminationProtectionCommand = async (output, context) => {
|
3406
|
-
if (output.statusCode >= 300) {
|
3407
|
-
return de_UpdateTerminationProtectionCommandError(output, context);
|
3408
|
-
}
|
3409
|
-
const data = await parseBody(output.body, context);
|
3410
|
-
let contents = {};
|
3411
|
-
contents = de_UpdateTerminationProtectionOutput(data.UpdateTerminationProtectionResult, context);
|
3412
|
-
const response = {
|
3413
|
-
$metadata: deserializeMetadata(output),
|
3414
|
-
...contents,
|
3415
|
-
};
|
3416
|
-
return response;
|
3417
|
-
};
|
3418
|
-
const de_UpdateTerminationProtectionCommandError = async (output, context) => {
|
3419
|
-
const parsedOutput = {
|
3420
|
-
...output,
|
3421
|
-
body: await parseErrorBody(output.body, context),
|
3422
|
-
};
|
3423
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
3424
|
-
const parsedBody = parsedOutput.body;
|
3425
|
-
return throwDefaultError({
|
3426
|
-
output,
|
3427
|
-
parsedBody: parsedBody.Error,
|
3428
|
-
errorCode,
|
3429
|
-
});
|
3430
|
-
};
|
3431
|
-
export const de_ValidateTemplateCommand = async (output, context) => {
|
3432
|
-
if (output.statusCode >= 300) {
|
3433
|
-
return de_ValidateTemplateCommandError(output, context);
|
3434
|
-
}
|
3435
|
-
const data = await parseBody(output.body, context);
|
3436
|
-
let contents = {};
|
3437
|
-
contents = de_ValidateTemplateOutput(data.ValidateTemplateResult, context);
|
3438
|
-
const response = {
|
3439
|
-
$metadata: deserializeMetadata(output),
|
3440
|
-
...contents,
|
3441
|
-
};
|
3442
|
-
return response;
|
3443
|
-
};
|
3444
|
-
const de_ValidateTemplateCommandError = async (output, context) => {
|
3445
|
-
const parsedOutput = {
|
3446
|
-
...output,
|
3447
|
-
body: await parseErrorBody(output.body, context),
|
3448
|
-
};
|
3449
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
3450
|
-
const parsedBody = parsedOutput.body;
|
3451
|
-
return throwDefaultError({
|
3452
|
-
output,
|
3453
|
-
parsedBody: parsedBody.Error,
|
3454
|
-
errorCode,
|
3455
|
-
});
|
3456
|
-
};
|
3457
1952
|
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
3458
1953
|
const body = parsedOutput.body;
|
3459
1954
|
const deserialized = de_AlreadyExistsException(body.Error, context);
|