@aws-sdk/client-cloudformation 3.118.1 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist-cjs/models/models_0.js +12 -5
- package/dist-cjs/protocols/Aws_query.js +337 -265
- package/dist-es/models/models_0.js +7 -0
- package/dist-es/protocols/Aws_query.js +337 -265
- package/dist-types/CloudFormation.d.ts +8 -5
- package/dist-types/commands/SignalResourceCommand.d.ts +5 -4
- package/dist-types/commands/StopStackSetOperationCommand.d.ts +3 -1
- package/dist-types/models/models_0.d.ts +79 -40
- package/dist-types/ts3.4/models/models_0.d.ts +8 -0
- package/package.json +27 -27
|
@@ -888,8 +888,7 @@ const deserializeAws_queryActivateTypeCommandError = async (output, context) =>
|
|
|
888
888
|
body: await parseBody(output.body, context),
|
|
889
889
|
};
|
|
890
890
|
let response;
|
|
891
|
-
|
|
892
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
891
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
893
892
|
switch (errorCode) {
|
|
894
893
|
case "CFNRegistryException":
|
|
895
894
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
@@ -899,10 +898,12 @@ const deserializeAws_queryActivateTypeCommandError = async (output, context) =>
|
|
|
899
898
|
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
900
899
|
default:
|
|
901
900
|
const parsedBody = parsedOutput.body;
|
|
901
|
+
const $metadata = deserializeMetadata(output);
|
|
902
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
902
903
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
903
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
904
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
904
905
|
$fault: "client",
|
|
905
|
-
$metadata
|
|
906
|
+
$metadata,
|
|
906
907
|
});
|
|
907
908
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
908
909
|
}
|
|
@@ -927,8 +928,7 @@ const deserializeAws_queryBatchDescribeTypeConfigurationsCommandError = async (o
|
|
|
927
928
|
body: await parseBody(output.body, context),
|
|
928
929
|
};
|
|
929
930
|
let response;
|
|
930
|
-
|
|
931
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
931
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
932
932
|
switch (errorCode) {
|
|
933
933
|
case "CFNRegistryException":
|
|
934
934
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
@@ -938,10 +938,12 @@ const deserializeAws_queryBatchDescribeTypeConfigurationsCommandError = async (o
|
|
|
938
938
|
throw await deserializeAws_queryTypeConfigurationNotFoundExceptionResponse(parsedOutput, context);
|
|
939
939
|
default:
|
|
940
940
|
const parsedBody = parsedOutput.body;
|
|
941
|
+
const $metadata = deserializeMetadata(output);
|
|
942
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
941
943
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
942
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
944
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
943
945
|
$fault: "client",
|
|
944
|
-
$metadata
|
|
946
|
+
$metadata,
|
|
945
947
|
});
|
|
946
948
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
947
949
|
}
|
|
@@ -963,18 +965,19 @@ const deserializeAws_queryCancelUpdateStackCommandError = async (output, context
|
|
|
963
965
|
body: await parseBody(output.body, context),
|
|
964
966
|
};
|
|
965
967
|
let response;
|
|
966
|
-
|
|
967
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
968
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
968
969
|
switch (errorCode) {
|
|
969
970
|
case "TokenAlreadyExistsException":
|
|
970
971
|
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
|
971
972
|
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
972
973
|
default:
|
|
973
974
|
const parsedBody = parsedOutput.body;
|
|
975
|
+
const $metadata = deserializeMetadata(output);
|
|
976
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
974
977
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
975
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
978
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
976
979
|
$fault: "client",
|
|
977
|
-
$metadata
|
|
980
|
+
$metadata,
|
|
978
981
|
});
|
|
979
982
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
980
983
|
}
|
|
@@ -999,18 +1002,19 @@ const deserializeAws_queryContinueUpdateRollbackCommandError = async (output, co
|
|
|
999
1002
|
body: await parseBody(output.body, context),
|
|
1000
1003
|
};
|
|
1001
1004
|
let response;
|
|
1002
|
-
|
|
1003
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1005
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1004
1006
|
switch (errorCode) {
|
|
1005
1007
|
case "TokenAlreadyExistsException":
|
|
1006
1008
|
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
|
1007
1009
|
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1008
1010
|
default:
|
|
1009
1011
|
const parsedBody = parsedOutput.body;
|
|
1012
|
+
const $metadata = deserializeMetadata(output);
|
|
1013
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1010
1014
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1011
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1015
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1012
1016
|
$fault: "client",
|
|
1013
|
-
$metadata
|
|
1017
|
+
$metadata,
|
|
1014
1018
|
});
|
|
1015
1019
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1016
1020
|
}
|
|
@@ -1035,8 +1039,7 @@ const deserializeAws_queryCreateChangeSetCommandError = async (output, context)
|
|
|
1035
1039
|
body: await parseBody(output.body, context),
|
|
1036
1040
|
};
|
|
1037
1041
|
let response;
|
|
1038
|
-
|
|
1039
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1042
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1040
1043
|
switch (errorCode) {
|
|
1041
1044
|
case "AlreadyExistsException":
|
|
1042
1045
|
case "com.amazonaws.cloudformation#AlreadyExistsException":
|
|
@@ -1049,10 +1052,12 @@ const deserializeAws_queryCreateChangeSetCommandError = async (output, context)
|
|
|
1049
1052
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1050
1053
|
default:
|
|
1051
1054
|
const parsedBody = parsedOutput.body;
|
|
1055
|
+
const $metadata = deserializeMetadata(output);
|
|
1056
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1052
1057
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1053
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1058
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1054
1059
|
$fault: "client",
|
|
1055
|
-
$metadata
|
|
1060
|
+
$metadata,
|
|
1056
1061
|
});
|
|
1057
1062
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1058
1063
|
}
|
|
@@ -1077,8 +1082,7 @@ const deserializeAws_queryCreateStackCommandError = async (output, context) => {
|
|
|
1077
1082
|
body: await parseBody(output.body, context),
|
|
1078
1083
|
};
|
|
1079
1084
|
let response;
|
|
1080
|
-
|
|
1081
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1085
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1082
1086
|
switch (errorCode) {
|
|
1083
1087
|
case "AlreadyExistsException":
|
|
1084
1088
|
case "com.amazonaws.cloudformation#AlreadyExistsException":
|
|
@@ -1094,10 +1098,12 @@ const deserializeAws_queryCreateStackCommandError = async (output, context) => {
|
|
|
1094
1098
|
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1095
1099
|
default:
|
|
1096
1100
|
const parsedBody = parsedOutput.body;
|
|
1101
|
+
const $metadata = deserializeMetadata(output);
|
|
1102
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1097
1103
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1098
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1104
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1099
1105
|
$fault: "client",
|
|
1100
|
-
$metadata
|
|
1106
|
+
$metadata,
|
|
1101
1107
|
});
|
|
1102
1108
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1103
1109
|
}
|
|
@@ -1122,8 +1128,7 @@ const deserializeAws_queryCreateStackInstancesCommandError = async (output, cont
|
|
|
1122
1128
|
body: await parseBody(output.body, context),
|
|
1123
1129
|
};
|
|
1124
1130
|
let response;
|
|
1125
|
-
|
|
1126
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1131
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1127
1132
|
switch (errorCode) {
|
|
1128
1133
|
case "InvalidOperationException":
|
|
1129
1134
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
@@ -1145,10 +1150,12 @@ const deserializeAws_queryCreateStackInstancesCommandError = async (output, cont
|
|
|
1145
1150
|
throw await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context);
|
|
1146
1151
|
default:
|
|
1147
1152
|
const parsedBody = parsedOutput.body;
|
|
1153
|
+
const $metadata = deserializeMetadata(output);
|
|
1154
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1148
1155
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1149
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1156
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1150
1157
|
$fault: "client",
|
|
1151
|
-
$metadata
|
|
1158
|
+
$metadata,
|
|
1152
1159
|
});
|
|
1153
1160
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1154
1161
|
}
|
|
@@ -1173,8 +1180,7 @@ const deserializeAws_queryCreateStackSetCommandError = async (output, context) =
|
|
|
1173
1180
|
body: await parseBody(output.body, context),
|
|
1174
1181
|
};
|
|
1175
1182
|
let response;
|
|
1176
|
-
|
|
1177
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1183
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1178
1184
|
switch (errorCode) {
|
|
1179
1185
|
case "CreatedButModifiedException":
|
|
1180
1186
|
case "com.amazonaws.cloudformation#CreatedButModifiedException":
|
|
@@ -1187,10 +1193,12 @@ const deserializeAws_queryCreateStackSetCommandError = async (output, context) =
|
|
|
1187
1193
|
throw await deserializeAws_queryNameAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1188
1194
|
default:
|
|
1189
1195
|
const parsedBody = parsedOutput.body;
|
|
1196
|
+
const $metadata = deserializeMetadata(output);
|
|
1197
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1190
1198
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1191
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1199
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1192
1200
|
$fault: "client",
|
|
1193
|
-
$metadata
|
|
1201
|
+
$metadata,
|
|
1194
1202
|
});
|
|
1195
1203
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1196
1204
|
}
|
|
@@ -1215,8 +1223,7 @@ const deserializeAws_queryDeactivateTypeCommandError = async (output, context) =
|
|
|
1215
1223
|
body: await parseBody(output.body, context),
|
|
1216
1224
|
};
|
|
1217
1225
|
let response;
|
|
1218
|
-
|
|
1219
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1226
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1220
1227
|
switch (errorCode) {
|
|
1221
1228
|
case "CFNRegistryException":
|
|
1222
1229
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
@@ -1226,10 +1233,12 @@ const deserializeAws_queryDeactivateTypeCommandError = async (output, context) =
|
|
|
1226
1233
|
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
1227
1234
|
default:
|
|
1228
1235
|
const parsedBody = parsedOutput.body;
|
|
1236
|
+
const $metadata = deserializeMetadata(output);
|
|
1237
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1229
1238
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1230
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1239
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1231
1240
|
$fault: "client",
|
|
1232
|
-
$metadata
|
|
1241
|
+
$metadata,
|
|
1233
1242
|
});
|
|
1234
1243
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1235
1244
|
}
|
|
@@ -1254,18 +1263,19 @@ const deserializeAws_queryDeleteChangeSetCommandError = async (output, context)
|
|
|
1254
1263
|
body: await parseBody(output.body, context),
|
|
1255
1264
|
};
|
|
1256
1265
|
let response;
|
|
1257
|
-
|
|
1258
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1266
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1259
1267
|
switch (errorCode) {
|
|
1260
1268
|
case "InvalidChangeSetStatusException":
|
|
1261
1269
|
case "com.amazonaws.cloudformation#InvalidChangeSetStatusException":
|
|
1262
1270
|
throw await deserializeAws_queryInvalidChangeSetStatusExceptionResponse(parsedOutput, context);
|
|
1263
1271
|
default:
|
|
1264
1272
|
const parsedBody = parsedOutput.body;
|
|
1273
|
+
const $metadata = deserializeMetadata(output);
|
|
1274
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1265
1275
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1266
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1276
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1267
1277
|
$fault: "client",
|
|
1268
|
-
$metadata
|
|
1278
|
+
$metadata,
|
|
1269
1279
|
});
|
|
1270
1280
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1271
1281
|
}
|
|
@@ -1287,18 +1297,19 @@ const deserializeAws_queryDeleteStackCommandError = async (output, context) => {
|
|
|
1287
1297
|
body: await parseBody(output.body, context),
|
|
1288
1298
|
};
|
|
1289
1299
|
let response;
|
|
1290
|
-
|
|
1291
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1300
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1292
1301
|
switch (errorCode) {
|
|
1293
1302
|
case "TokenAlreadyExistsException":
|
|
1294
1303
|
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
|
1295
1304
|
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1296
1305
|
default:
|
|
1297
1306
|
const parsedBody = parsedOutput.body;
|
|
1307
|
+
const $metadata = deserializeMetadata(output);
|
|
1308
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1298
1309
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1299
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1310
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1300
1311
|
$fault: "client",
|
|
1301
|
-
$metadata
|
|
1312
|
+
$metadata,
|
|
1302
1313
|
});
|
|
1303
1314
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1304
1315
|
}
|
|
@@ -1323,8 +1334,7 @@ const deserializeAws_queryDeleteStackInstancesCommandError = async (output, cont
|
|
|
1323
1334
|
body: await parseBody(output.body, context),
|
|
1324
1335
|
};
|
|
1325
1336
|
let response;
|
|
1326
|
-
|
|
1327
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1337
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1328
1338
|
switch (errorCode) {
|
|
1329
1339
|
case "InvalidOperationException":
|
|
1330
1340
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
@@ -1343,10 +1353,12 @@ const deserializeAws_queryDeleteStackInstancesCommandError = async (output, cont
|
|
|
1343
1353
|
throw await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context);
|
|
1344
1354
|
default:
|
|
1345
1355
|
const parsedBody = parsedOutput.body;
|
|
1356
|
+
const $metadata = deserializeMetadata(output);
|
|
1357
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1346
1358
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1347
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1359
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1348
1360
|
$fault: "client",
|
|
1349
|
-
$metadata
|
|
1361
|
+
$metadata,
|
|
1350
1362
|
});
|
|
1351
1363
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1352
1364
|
}
|
|
@@ -1371,8 +1383,7 @@ const deserializeAws_queryDeleteStackSetCommandError = async (output, context) =
|
|
|
1371
1383
|
body: await parseBody(output.body, context),
|
|
1372
1384
|
};
|
|
1373
1385
|
let response;
|
|
1374
|
-
|
|
1375
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1386
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1376
1387
|
switch (errorCode) {
|
|
1377
1388
|
case "OperationInProgressException":
|
|
1378
1389
|
case "com.amazonaws.cloudformation#OperationInProgressException":
|
|
@@ -1382,10 +1393,12 @@ const deserializeAws_queryDeleteStackSetCommandError = async (output, context) =
|
|
|
1382
1393
|
throw await deserializeAws_queryStackSetNotEmptyExceptionResponse(parsedOutput, context);
|
|
1383
1394
|
default:
|
|
1384
1395
|
const parsedBody = parsedOutput.body;
|
|
1396
|
+
const $metadata = deserializeMetadata(output);
|
|
1397
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1385
1398
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1386
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1399
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1387
1400
|
$fault: "client",
|
|
1388
|
-
$metadata
|
|
1401
|
+
$metadata,
|
|
1389
1402
|
});
|
|
1390
1403
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1391
1404
|
}
|
|
@@ -1410,8 +1423,7 @@ const deserializeAws_queryDeregisterTypeCommandError = async (output, context) =
|
|
|
1410
1423
|
body: await parseBody(output.body, context),
|
|
1411
1424
|
};
|
|
1412
1425
|
let response;
|
|
1413
|
-
|
|
1414
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1426
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1415
1427
|
switch (errorCode) {
|
|
1416
1428
|
case "CFNRegistryException":
|
|
1417
1429
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
@@ -1421,10 +1433,12 @@ const deserializeAws_queryDeregisterTypeCommandError = async (output, context) =
|
|
|
1421
1433
|
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
1422
1434
|
default:
|
|
1423
1435
|
const parsedBody = parsedOutput.body;
|
|
1436
|
+
const $metadata = deserializeMetadata(output);
|
|
1437
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1424
1438
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1425
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1439
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1426
1440
|
$fault: "client",
|
|
1427
|
-
$metadata
|
|
1441
|
+
$metadata,
|
|
1428
1442
|
});
|
|
1429
1443
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1430
1444
|
}
|
|
@@ -1449,15 +1463,16 @@ const deserializeAws_queryDescribeAccountLimitsCommandError = async (output, con
|
|
|
1449
1463
|
body: await parseBody(output.body, context),
|
|
1450
1464
|
};
|
|
1451
1465
|
let response;
|
|
1452
|
-
|
|
1453
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1466
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1454
1467
|
switch (errorCode) {
|
|
1455
1468
|
default:
|
|
1456
1469
|
const parsedBody = parsedOutput.body;
|
|
1470
|
+
const $metadata = deserializeMetadata(output);
|
|
1471
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1457
1472
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1458
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1473
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1459
1474
|
$fault: "client",
|
|
1460
|
-
$metadata
|
|
1475
|
+
$metadata,
|
|
1461
1476
|
});
|
|
1462
1477
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1463
1478
|
}
|
|
@@ -1482,18 +1497,19 @@ const deserializeAws_queryDescribeChangeSetCommandError = async (output, context
|
|
|
1482
1497
|
body: await parseBody(output.body, context),
|
|
1483
1498
|
};
|
|
1484
1499
|
let response;
|
|
1485
|
-
|
|
1486
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1500
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1487
1501
|
switch (errorCode) {
|
|
1488
1502
|
case "ChangeSetNotFoundException":
|
|
1489
1503
|
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
|
|
1490
1504
|
throw await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context);
|
|
1491
1505
|
default:
|
|
1492
1506
|
const parsedBody = parsedOutput.body;
|
|
1507
|
+
const $metadata = deserializeMetadata(output);
|
|
1508
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1493
1509
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1494
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1510
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1495
1511
|
$fault: "client",
|
|
1496
|
-
$metadata
|
|
1512
|
+
$metadata,
|
|
1497
1513
|
});
|
|
1498
1514
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1499
1515
|
}
|
|
@@ -1518,18 +1534,19 @@ const deserializeAws_queryDescribeChangeSetHooksCommandError = async (output, co
|
|
|
1518
1534
|
body: await parseBody(output.body, context),
|
|
1519
1535
|
};
|
|
1520
1536
|
let response;
|
|
1521
|
-
|
|
1522
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1537
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1523
1538
|
switch (errorCode) {
|
|
1524
1539
|
case "ChangeSetNotFoundException":
|
|
1525
1540
|
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
|
|
1526
1541
|
throw await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context);
|
|
1527
1542
|
default:
|
|
1528
1543
|
const parsedBody = parsedOutput.body;
|
|
1544
|
+
const $metadata = deserializeMetadata(output);
|
|
1545
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1529
1546
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1530
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1547
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1531
1548
|
$fault: "client",
|
|
1532
|
-
$metadata
|
|
1549
|
+
$metadata,
|
|
1533
1550
|
});
|
|
1534
1551
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1535
1552
|
}
|
|
@@ -1554,18 +1571,19 @@ const deserializeAws_queryDescribePublisherCommandError = async (output, context
|
|
|
1554
1571
|
body: await parseBody(output.body, context),
|
|
1555
1572
|
};
|
|
1556
1573
|
let response;
|
|
1557
|
-
|
|
1558
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1574
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1559
1575
|
switch (errorCode) {
|
|
1560
1576
|
case "CFNRegistryException":
|
|
1561
1577
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
1562
1578
|
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
1563
1579
|
default:
|
|
1564
1580
|
const parsedBody = parsedOutput.body;
|
|
1581
|
+
const $metadata = deserializeMetadata(output);
|
|
1582
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1565
1583
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1566
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1584
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1567
1585
|
$fault: "client",
|
|
1568
|
-
$metadata
|
|
1586
|
+
$metadata,
|
|
1569
1587
|
});
|
|
1570
1588
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1571
1589
|
}
|
|
@@ -1590,15 +1608,16 @@ const deserializeAws_queryDescribeStackDriftDetectionStatusCommandError = async
|
|
|
1590
1608
|
body: await parseBody(output.body, context),
|
|
1591
1609
|
};
|
|
1592
1610
|
let response;
|
|
1593
|
-
|
|
1594
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1611
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1595
1612
|
switch (errorCode) {
|
|
1596
1613
|
default:
|
|
1597
1614
|
const parsedBody = parsedOutput.body;
|
|
1615
|
+
const $metadata = deserializeMetadata(output);
|
|
1616
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1598
1617
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1599
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1618
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1600
1619
|
$fault: "client",
|
|
1601
|
-
$metadata
|
|
1620
|
+
$metadata,
|
|
1602
1621
|
});
|
|
1603
1622
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1604
1623
|
}
|
|
@@ -1623,15 +1642,16 @@ const deserializeAws_queryDescribeStackEventsCommandError = async (output, conte
|
|
|
1623
1642
|
body: await parseBody(output.body, context),
|
|
1624
1643
|
};
|
|
1625
1644
|
let response;
|
|
1626
|
-
|
|
1627
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1645
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1628
1646
|
switch (errorCode) {
|
|
1629
1647
|
default:
|
|
1630
1648
|
const parsedBody = parsedOutput.body;
|
|
1649
|
+
const $metadata = deserializeMetadata(output);
|
|
1650
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1631
1651
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1632
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1652
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1633
1653
|
$fault: "client",
|
|
1634
|
-
$metadata
|
|
1654
|
+
$metadata,
|
|
1635
1655
|
});
|
|
1636
1656
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1637
1657
|
}
|
|
@@ -1656,8 +1676,7 @@ const deserializeAws_queryDescribeStackInstanceCommandError = async (output, con
|
|
|
1656
1676
|
body: await parseBody(output.body, context),
|
|
1657
1677
|
};
|
|
1658
1678
|
let response;
|
|
1659
|
-
|
|
1660
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1679
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1661
1680
|
switch (errorCode) {
|
|
1662
1681
|
case "StackInstanceNotFoundException":
|
|
1663
1682
|
case "com.amazonaws.cloudformation#StackInstanceNotFoundException":
|
|
@@ -1667,10 +1686,12 @@ const deserializeAws_queryDescribeStackInstanceCommandError = async (output, con
|
|
|
1667
1686
|
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
1668
1687
|
default:
|
|
1669
1688
|
const parsedBody = parsedOutput.body;
|
|
1689
|
+
const $metadata = deserializeMetadata(output);
|
|
1690
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1670
1691
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1671
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1692
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1672
1693
|
$fault: "client",
|
|
1673
|
-
$metadata
|
|
1694
|
+
$metadata,
|
|
1674
1695
|
});
|
|
1675
1696
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1676
1697
|
}
|
|
@@ -1695,15 +1716,16 @@ const deserializeAws_queryDescribeStackResourceCommandError = async (output, con
|
|
|
1695
1716
|
body: await parseBody(output.body, context),
|
|
1696
1717
|
};
|
|
1697
1718
|
let response;
|
|
1698
|
-
|
|
1699
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1719
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1700
1720
|
switch (errorCode) {
|
|
1701
1721
|
default:
|
|
1702
1722
|
const parsedBody = parsedOutput.body;
|
|
1723
|
+
const $metadata = deserializeMetadata(output);
|
|
1724
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1703
1725
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1704
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1726
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1705
1727
|
$fault: "client",
|
|
1706
|
-
$metadata
|
|
1728
|
+
$metadata,
|
|
1707
1729
|
});
|
|
1708
1730
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1709
1731
|
}
|
|
@@ -1728,15 +1750,16 @@ const deserializeAws_queryDescribeStackResourceDriftsCommandError = async (outpu
|
|
|
1728
1750
|
body: await parseBody(output.body, context),
|
|
1729
1751
|
};
|
|
1730
1752
|
let response;
|
|
1731
|
-
|
|
1732
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1753
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1733
1754
|
switch (errorCode) {
|
|
1734
1755
|
default:
|
|
1735
1756
|
const parsedBody = parsedOutput.body;
|
|
1757
|
+
const $metadata = deserializeMetadata(output);
|
|
1758
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1736
1759
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1737
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1760
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1738
1761
|
$fault: "client",
|
|
1739
|
-
$metadata
|
|
1762
|
+
$metadata,
|
|
1740
1763
|
});
|
|
1741
1764
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1742
1765
|
}
|
|
@@ -1761,15 +1784,16 @@ const deserializeAws_queryDescribeStackResourcesCommandError = async (output, co
|
|
|
1761
1784
|
body: await parseBody(output.body, context),
|
|
1762
1785
|
};
|
|
1763
1786
|
let response;
|
|
1764
|
-
|
|
1765
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1787
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1766
1788
|
switch (errorCode) {
|
|
1767
1789
|
default:
|
|
1768
1790
|
const parsedBody = parsedOutput.body;
|
|
1791
|
+
const $metadata = deserializeMetadata(output);
|
|
1792
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1769
1793
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1770
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1794
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1771
1795
|
$fault: "client",
|
|
1772
|
-
$metadata
|
|
1796
|
+
$metadata,
|
|
1773
1797
|
});
|
|
1774
1798
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1775
1799
|
}
|
|
@@ -1794,15 +1818,16 @@ const deserializeAws_queryDescribeStacksCommandError = async (output, context) =
|
|
|
1794
1818
|
body: await parseBody(output.body, context),
|
|
1795
1819
|
};
|
|
1796
1820
|
let response;
|
|
1797
|
-
|
|
1798
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1821
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1799
1822
|
switch (errorCode) {
|
|
1800
1823
|
default:
|
|
1801
1824
|
const parsedBody = parsedOutput.body;
|
|
1825
|
+
const $metadata = deserializeMetadata(output);
|
|
1826
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1802
1827
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1803
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1828
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1804
1829
|
$fault: "client",
|
|
1805
|
-
$metadata
|
|
1830
|
+
$metadata,
|
|
1806
1831
|
});
|
|
1807
1832
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1808
1833
|
}
|
|
@@ -1827,18 +1852,19 @@ const deserializeAws_queryDescribeStackSetCommandError = async (output, context)
|
|
|
1827
1852
|
body: await parseBody(output.body, context),
|
|
1828
1853
|
};
|
|
1829
1854
|
let response;
|
|
1830
|
-
|
|
1831
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1855
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1832
1856
|
switch (errorCode) {
|
|
1833
1857
|
case "StackSetNotFoundException":
|
|
1834
1858
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
1835
1859
|
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
1836
1860
|
default:
|
|
1837
1861
|
const parsedBody = parsedOutput.body;
|
|
1862
|
+
const $metadata = deserializeMetadata(output);
|
|
1863
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1838
1864
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1839
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1865
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1840
1866
|
$fault: "client",
|
|
1841
|
-
$metadata
|
|
1867
|
+
$metadata,
|
|
1842
1868
|
});
|
|
1843
1869
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1844
1870
|
}
|
|
@@ -1863,8 +1889,7 @@ const deserializeAws_queryDescribeStackSetOperationCommandError = async (output,
|
|
|
1863
1889
|
body: await parseBody(output.body, context),
|
|
1864
1890
|
};
|
|
1865
1891
|
let response;
|
|
1866
|
-
|
|
1867
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1892
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1868
1893
|
switch (errorCode) {
|
|
1869
1894
|
case "OperationNotFoundException":
|
|
1870
1895
|
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
|
@@ -1874,10 +1899,12 @@ const deserializeAws_queryDescribeStackSetOperationCommandError = async (output,
|
|
|
1874
1899
|
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
1875
1900
|
default:
|
|
1876
1901
|
const parsedBody = parsedOutput.body;
|
|
1902
|
+
const $metadata = deserializeMetadata(output);
|
|
1903
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1877
1904
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1878
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1905
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1879
1906
|
$fault: "client",
|
|
1880
|
-
$metadata
|
|
1907
|
+
$metadata,
|
|
1881
1908
|
});
|
|
1882
1909
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1883
1910
|
}
|
|
@@ -1902,8 +1929,7 @@ const deserializeAws_queryDescribeTypeCommandError = async (output, context) =>
|
|
|
1902
1929
|
body: await parseBody(output.body, context),
|
|
1903
1930
|
};
|
|
1904
1931
|
let response;
|
|
1905
|
-
|
|
1906
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1932
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1907
1933
|
switch (errorCode) {
|
|
1908
1934
|
case "CFNRegistryException":
|
|
1909
1935
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
@@ -1913,10 +1939,12 @@ const deserializeAws_queryDescribeTypeCommandError = async (output, context) =>
|
|
|
1913
1939
|
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
1914
1940
|
default:
|
|
1915
1941
|
const parsedBody = parsedOutput.body;
|
|
1942
|
+
const $metadata = deserializeMetadata(output);
|
|
1943
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1916
1944
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1917
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1945
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1918
1946
|
$fault: "client",
|
|
1919
|
-
$metadata
|
|
1947
|
+
$metadata,
|
|
1920
1948
|
});
|
|
1921
1949
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1922
1950
|
}
|
|
@@ -1941,18 +1969,19 @@ const deserializeAws_queryDescribeTypeRegistrationCommandError = async (output,
|
|
|
1941
1969
|
body: await parseBody(output.body, context),
|
|
1942
1970
|
};
|
|
1943
1971
|
let response;
|
|
1944
|
-
|
|
1945
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1972
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1946
1973
|
switch (errorCode) {
|
|
1947
1974
|
case "CFNRegistryException":
|
|
1948
1975
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
1949
1976
|
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
1950
1977
|
default:
|
|
1951
1978
|
const parsedBody = parsedOutput.body;
|
|
1979
|
+
const $metadata = deserializeMetadata(output);
|
|
1980
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1952
1981
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1953
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1982
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1954
1983
|
$fault: "client",
|
|
1955
|
-
$metadata
|
|
1984
|
+
$metadata,
|
|
1956
1985
|
});
|
|
1957
1986
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1958
1987
|
}
|
|
@@ -1977,15 +2006,16 @@ const deserializeAws_queryDetectStackDriftCommandError = async (output, context)
|
|
|
1977
2006
|
body: await parseBody(output.body, context),
|
|
1978
2007
|
};
|
|
1979
2008
|
let response;
|
|
1980
|
-
|
|
1981
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2009
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1982
2010
|
switch (errorCode) {
|
|
1983
2011
|
default:
|
|
1984
2012
|
const parsedBody = parsedOutput.body;
|
|
2013
|
+
const $metadata = deserializeMetadata(output);
|
|
2014
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1985
2015
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
1986
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2016
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1987
2017
|
$fault: "client",
|
|
1988
|
-
$metadata
|
|
2018
|
+
$metadata,
|
|
1989
2019
|
});
|
|
1990
2020
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1991
2021
|
}
|
|
@@ -2010,15 +2040,16 @@ const deserializeAws_queryDetectStackResourceDriftCommandError = async (output,
|
|
|
2010
2040
|
body: await parseBody(output.body, context),
|
|
2011
2041
|
};
|
|
2012
2042
|
let response;
|
|
2013
|
-
|
|
2014
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2043
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2015
2044
|
switch (errorCode) {
|
|
2016
2045
|
default:
|
|
2017
2046
|
const parsedBody = parsedOutput.body;
|
|
2047
|
+
const $metadata = deserializeMetadata(output);
|
|
2048
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2018
2049
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2019
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2050
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2020
2051
|
$fault: "client",
|
|
2021
|
-
$metadata
|
|
2052
|
+
$metadata,
|
|
2022
2053
|
});
|
|
2023
2054
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2024
2055
|
}
|
|
@@ -2043,8 +2074,7 @@ const deserializeAws_queryDetectStackSetDriftCommandError = async (output, conte
|
|
|
2043
2074
|
body: await parseBody(output.body, context),
|
|
2044
2075
|
};
|
|
2045
2076
|
let response;
|
|
2046
|
-
|
|
2047
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2077
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2048
2078
|
switch (errorCode) {
|
|
2049
2079
|
case "InvalidOperationException":
|
|
2050
2080
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
@@ -2057,10 +2087,12 @@ const deserializeAws_queryDetectStackSetDriftCommandError = async (output, conte
|
|
|
2057
2087
|
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2058
2088
|
default:
|
|
2059
2089
|
const parsedBody = parsedOutput.body;
|
|
2090
|
+
const $metadata = deserializeMetadata(output);
|
|
2091
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2060
2092
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2061
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2093
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2062
2094
|
$fault: "client",
|
|
2063
|
-
$metadata
|
|
2095
|
+
$metadata,
|
|
2064
2096
|
});
|
|
2065
2097
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2066
2098
|
}
|
|
@@ -2085,15 +2117,16 @@ const deserializeAws_queryEstimateTemplateCostCommandError = async (output, cont
|
|
|
2085
2117
|
body: await parseBody(output.body, context),
|
|
2086
2118
|
};
|
|
2087
2119
|
let response;
|
|
2088
|
-
|
|
2089
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2120
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2090
2121
|
switch (errorCode) {
|
|
2091
2122
|
default:
|
|
2092
2123
|
const parsedBody = parsedOutput.body;
|
|
2124
|
+
const $metadata = deserializeMetadata(output);
|
|
2125
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2093
2126
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2094
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2127
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2095
2128
|
$fault: "client",
|
|
2096
|
-
$metadata
|
|
2129
|
+
$metadata,
|
|
2097
2130
|
});
|
|
2098
2131
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2099
2132
|
}
|
|
@@ -2118,8 +2151,7 @@ const deserializeAws_queryExecuteChangeSetCommandError = async (output, context)
|
|
|
2118
2151
|
body: await parseBody(output.body, context),
|
|
2119
2152
|
};
|
|
2120
2153
|
let response;
|
|
2121
|
-
|
|
2122
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2154
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2123
2155
|
switch (errorCode) {
|
|
2124
2156
|
case "ChangeSetNotFoundException":
|
|
2125
2157
|
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
|
|
@@ -2135,10 +2167,12 @@ const deserializeAws_queryExecuteChangeSetCommandError = async (output, context)
|
|
|
2135
2167
|
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2136
2168
|
default:
|
|
2137
2169
|
const parsedBody = parsedOutput.body;
|
|
2170
|
+
const $metadata = deserializeMetadata(output);
|
|
2171
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2138
2172
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2139
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2173
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2140
2174
|
$fault: "client",
|
|
2141
|
-
$metadata
|
|
2175
|
+
$metadata,
|
|
2142
2176
|
});
|
|
2143
2177
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2144
2178
|
}
|
|
@@ -2163,15 +2197,16 @@ const deserializeAws_queryGetStackPolicyCommandError = async (output, context) =
|
|
|
2163
2197
|
body: await parseBody(output.body, context),
|
|
2164
2198
|
};
|
|
2165
2199
|
let response;
|
|
2166
|
-
|
|
2167
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2200
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2168
2201
|
switch (errorCode) {
|
|
2169
2202
|
default:
|
|
2170
2203
|
const parsedBody = parsedOutput.body;
|
|
2204
|
+
const $metadata = deserializeMetadata(output);
|
|
2205
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2171
2206
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2172
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2207
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2173
2208
|
$fault: "client",
|
|
2174
|
-
$metadata
|
|
2209
|
+
$metadata,
|
|
2175
2210
|
});
|
|
2176
2211
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2177
2212
|
}
|
|
@@ -2196,18 +2231,19 @@ const deserializeAws_queryGetTemplateCommandError = async (output, context) => {
|
|
|
2196
2231
|
body: await parseBody(output.body, context),
|
|
2197
2232
|
};
|
|
2198
2233
|
let response;
|
|
2199
|
-
|
|
2200
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2234
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2201
2235
|
switch (errorCode) {
|
|
2202
2236
|
case "ChangeSetNotFoundException":
|
|
2203
2237
|
case "com.amazonaws.cloudformation#ChangeSetNotFoundException":
|
|
2204
2238
|
throw await deserializeAws_queryChangeSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2205
2239
|
default:
|
|
2206
2240
|
const parsedBody = parsedOutput.body;
|
|
2241
|
+
const $metadata = deserializeMetadata(output);
|
|
2242
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2207
2243
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2208
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2244
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2209
2245
|
$fault: "client",
|
|
2210
|
-
$metadata
|
|
2246
|
+
$metadata,
|
|
2211
2247
|
});
|
|
2212
2248
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2213
2249
|
}
|
|
@@ -2232,18 +2268,19 @@ const deserializeAws_queryGetTemplateSummaryCommandError = async (output, contex
|
|
|
2232
2268
|
body: await parseBody(output.body, context),
|
|
2233
2269
|
};
|
|
2234
2270
|
let response;
|
|
2235
|
-
|
|
2236
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2271
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2237
2272
|
switch (errorCode) {
|
|
2238
2273
|
case "StackSetNotFoundException":
|
|
2239
2274
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
2240
2275
|
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2241
2276
|
default:
|
|
2242
2277
|
const parsedBody = parsedOutput.body;
|
|
2278
|
+
const $metadata = deserializeMetadata(output);
|
|
2279
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2243
2280
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2244
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2281
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2245
2282
|
$fault: "client",
|
|
2246
|
-
$metadata
|
|
2283
|
+
$metadata,
|
|
2247
2284
|
});
|
|
2248
2285
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2249
2286
|
}
|
|
@@ -2268,8 +2305,7 @@ const deserializeAws_queryImportStacksToStackSetCommandError = async (output, co
|
|
|
2268
2305
|
body: await parseBody(output.body, context),
|
|
2269
2306
|
};
|
|
2270
2307
|
let response;
|
|
2271
|
-
|
|
2272
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2308
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2273
2309
|
switch (errorCode) {
|
|
2274
2310
|
case "InvalidOperationException":
|
|
2275
2311
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
@@ -2294,10 +2330,12 @@ const deserializeAws_queryImportStacksToStackSetCommandError = async (output, co
|
|
|
2294
2330
|
throw await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context);
|
|
2295
2331
|
default:
|
|
2296
2332
|
const parsedBody = parsedOutput.body;
|
|
2333
|
+
const $metadata = deserializeMetadata(output);
|
|
2334
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2297
2335
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2298
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2336
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2299
2337
|
$fault: "client",
|
|
2300
|
-
$metadata
|
|
2338
|
+
$metadata,
|
|
2301
2339
|
});
|
|
2302
2340
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2303
2341
|
}
|
|
@@ -2322,15 +2360,16 @@ const deserializeAws_queryListChangeSetsCommandError = async (output, context) =
|
|
|
2322
2360
|
body: await parseBody(output.body, context),
|
|
2323
2361
|
};
|
|
2324
2362
|
let response;
|
|
2325
|
-
|
|
2326
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2363
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2327
2364
|
switch (errorCode) {
|
|
2328
2365
|
default:
|
|
2329
2366
|
const parsedBody = parsedOutput.body;
|
|
2367
|
+
const $metadata = deserializeMetadata(output);
|
|
2368
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2330
2369
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2331
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2370
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2332
2371
|
$fault: "client",
|
|
2333
|
-
$metadata
|
|
2372
|
+
$metadata,
|
|
2334
2373
|
});
|
|
2335
2374
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2336
2375
|
}
|
|
@@ -2355,15 +2394,16 @@ const deserializeAws_queryListExportsCommandError = async (output, context) => {
|
|
|
2355
2394
|
body: await parseBody(output.body, context),
|
|
2356
2395
|
};
|
|
2357
2396
|
let response;
|
|
2358
|
-
|
|
2359
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2397
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2360
2398
|
switch (errorCode) {
|
|
2361
2399
|
default:
|
|
2362
2400
|
const parsedBody = parsedOutput.body;
|
|
2401
|
+
const $metadata = deserializeMetadata(output);
|
|
2402
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2363
2403
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2364
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2404
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2365
2405
|
$fault: "client",
|
|
2366
|
-
$metadata
|
|
2406
|
+
$metadata,
|
|
2367
2407
|
});
|
|
2368
2408
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2369
2409
|
}
|
|
@@ -2388,15 +2428,16 @@ const deserializeAws_queryListImportsCommandError = async (output, context) => {
|
|
|
2388
2428
|
body: await parseBody(output.body, context),
|
|
2389
2429
|
};
|
|
2390
2430
|
let response;
|
|
2391
|
-
|
|
2392
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2431
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2393
2432
|
switch (errorCode) {
|
|
2394
2433
|
default:
|
|
2395
2434
|
const parsedBody = parsedOutput.body;
|
|
2435
|
+
const $metadata = deserializeMetadata(output);
|
|
2436
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2396
2437
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2397
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2438
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2398
2439
|
$fault: "client",
|
|
2399
|
-
$metadata
|
|
2440
|
+
$metadata,
|
|
2400
2441
|
});
|
|
2401
2442
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2402
2443
|
}
|
|
@@ -2421,18 +2462,19 @@ const deserializeAws_queryListStackInstancesCommandError = async (output, contex
|
|
|
2421
2462
|
body: await parseBody(output.body, context),
|
|
2422
2463
|
};
|
|
2423
2464
|
let response;
|
|
2424
|
-
|
|
2425
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2465
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2426
2466
|
switch (errorCode) {
|
|
2427
2467
|
case "StackSetNotFoundException":
|
|
2428
2468
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
2429
2469
|
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2430
2470
|
default:
|
|
2431
2471
|
const parsedBody = parsedOutput.body;
|
|
2472
|
+
const $metadata = deserializeMetadata(output);
|
|
2473
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2432
2474
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2433
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2475
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2434
2476
|
$fault: "client",
|
|
2435
|
-
$metadata
|
|
2477
|
+
$metadata,
|
|
2436
2478
|
});
|
|
2437
2479
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2438
2480
|
}
|
|
@@ -2457,15 +2499,16 @@ const deserializeAws_queryListStackResourcesCommandError = async (output, contex
|
|
|
2457
2499
|
body: await parseBody(output.body, context),
|
|
2458
2500
|
};
|
|
2459
2501
|
let response;
|
|
2460
|
-
|
|
2461
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2502
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2462
2503
|
switch (errorCode) {
|
|
2463
2504
|
default:
|
|
2464
2505
|
const parsedBody = parsedOutput.body;
|
|
2506
|
+
const $metadata = deserializeMetadata(output);
|
|
2507
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2465
2508
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2466
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2509
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2467
2510
|
$fault: "client",
|
|
2468
|
-
$metadata
|
|
2511
|
+
$metadata,
|
|
2469
2512
|
});
|
|
2470
2513
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2471
2514
|
}
|
|
@@ -2490,15 +2533,16 @@ const deserializeAws_queryListStacksCommandError = async (output, context) => {
|
|
|
2490
2533
|
body: await parseBody(output.body, context),
|
|
2491
2534
|
};
|
|
2492
2535
|
let response;
|
|
2493
|
-
|
|
2494
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2536
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2495
2537
|
switch (errorCode) {
|
|
2496
2538
|
default:
|
|
2497
2539
|
const parsedBody = parsedOutput.body;
|
|
2540
|
+
const $metadata = deserializeMetadata(output);
|
|
2541
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2498
2542
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2499
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2543
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2500
2544
|
$fault: "client",
|
|
2501
|
-
$metadata
|
|
2545
|
+
$metadata,
|
|
2502
2546
|
});
|
|
2503
2547
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2504
2548
|
}
|
|
@@ -2523,8 +2567,7 @@ const deserializeAws_queryListStackSetOperationResultsCommandError = async (outp
|
|
|
2523
2567
|
body: await parseBody(output.body, context),
|
|
2524
2568
|
};
|
|
2525
2569
|
let response;
|
|
2526
|
-
|
|
2527
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2570
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2528
2571
|
switch (errorCode) {
|
|
2529
2572
|
case "OperationNotFoundException":
|
|
2530
2573
|
case "com.amazonaws.cloudformation#OperationNotFoundException":
|
|
@@ -2534,10 +2577,12 @@ const deserializeAws_queryListStackSetOperationResultsCommandError = async (outp
|
|
|
2534
2577
|
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2535
2578
|
default:
|
|
2536
2579
|
const parsedBody = parsedOutput.body;
|
|
2580
|
+
const $metadata = deserializeMetadata(output);
|
|
2581
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2537
2582
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2538
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2583
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2539
2584
|
$fault: "client",
|
|
2540
|
-
$metadata
|
|
2585
|
+
$metadata,
|
|
2541
2586
|
});
|
|
2542
2587
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2543
2588
|
}
|
|
@@ -2562,18 +2607,19 @@ const deserializeAws_queryListStackSetOperationsCommandError = async (output, co
|
|
|
2562
2607
|
body: await parseBody(output.body, context),
|
|
2563
2608
|
};
|
|
2564
2609
|
let response;
|
|
2565
|
-
|
|
2566
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2610
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2567
2611
|
switch (errorCode) {
|
|
2568
2612
|
case "StackSetNotFoundException":
|
|
2569
2613
|
case "com.amazonaws.cloudformation#StackSetNotFoundException":
|
|
2570
2614
|
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
2571
2615
|
default:
|
|
2572
2616
|
const parsedBody = parsedOutput.body;
|
|
2617
|
+
const $metadata = deserializeMetadata(output);
|
|
2618
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2573
2619
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2574
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2620
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2575
2621
|
$fault: "client",
|
|
2576
|
-
$metadata
|
|
2622
|
+
$metadata,
|
|
2577
2623
|
});
|
|
2578
2624
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2579
2625
|
}
|
|
@@ -2598,15 +2644,16 @@ const deserializeAws_queryListStackSetsCommandError = async (output, context) =>
|
|
|
2598
2644
|
body: await parseBody(output.body, context),
|
|
2599
2645
|
};
|
|
2600
2646
|
let response;
|
|
2601
|
-
|
|
2602
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2647
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2603
2648
|
switch (errorCode) {
|
|
2604
2649
|
default:
|
|
2605
2650
|
const parsedBody = parsedOutput.body;
|
|
2651
|
+
const $metadata = deserializeMetadata(output);
|
|
2652
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2606
2653
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2607
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2654
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2608
2655
|
$fault: "client",
|
|
2609
|
-
$metadata
|
|
2656
|
+
$metadata,
|
|
2610
2657
|
});
|
|
2611
2658
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2612
2659
|
}
|
|
@@ -2631,18 +2678,19 @@ const deserializeAws_queryListTypeRegistrationsCommandError = async (output, con
|
|
|
2631
2678
|
body: await parseBody(output.body, context),
|
|
2632
2679
|
};
|
|
2633
2680
|
let response;
|
|
2634
|
-
|
|
2635
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2681
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2636
2682
|
switch (errorCode) {
|
|
2637
2683
|
case "CFNRegistryException":
|
|
2638
2684
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
2639
2685
|
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
2640
2686
|
default:
|
|
2641
2687
|
const parsedBody = parsedOutput.body;
|
|
2688
|
+
const $metadata = deserializeMetadata(output);
|
|
2689
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2642
2690
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2643
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2691
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2644
2692
|
$fault: "client",
|
|
2645
|
-
$metadata
|
|
2693
|
+
$metadata,
|
|
2646
2694
|
});
|
|
2647
2695
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2648
2696
|
}
|
|
@@ -2667,18 +2715,19 @@ const deserializeAws_queryListTypesCommandError = async (output, context) => {
|
|
|
2667
2715
|
body: await parseBody(output.body, context),
|
|
2668
2716
|
};
|
|
2669
2717
|
let response;
|
|
2670
|
-
|
|
2671
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2718
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2672
2719
|
switch (errorCode) {
|
|
2673
2720
|
case "CFNRegistryException":
|
|
2674
2721
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
2675
2722
|
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
2676
2723
|
default:
|
|
2677
2724
|
const parsedBody = parsedOutput.body;
|
|
2725
|
+
const $metadata = deserializeMetadata(output);
|
|
2726
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2678
2727
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2679
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2728
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2680
2729
|
$fault: "client",
|
|
2681
|
-
$metadata
|
|
2730
|
+
$metadata,
|
|
2682
2731
|
});
|
|
2683
2732
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2684
2733
|
}
|
|
@@ -2703,18 +2752,19 @@ const deserializeAws_queryListTypeVersionsCommandError = async (output, context)
|
|
|
2703
2752
|
body: await parseBody(output.body, context),
|
|
2704
2753
|
};
|
|
2705
2754
|
let response;
|
|
2706
|
-
|
|
2707
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2755
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2708
2756
|
switch (errorCode) {
|
|
2709
2757
|
case "CFNRegistryException":
|
|
2710
2758
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
2711
2759
|
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
2712
2760
|
default:
|
|
2713
2761
|
const parsedBody = parsedOutput.body;
|
|
2762
|
+
const $metadata = deserializeMetadata(output);
|
|
2763
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2714
2764
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2715
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2765
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2716
2766
|
$fault: "client",
|
|
2717
|
-
$metadata
|
|
2767
|
+
$metadata,
|
|
2718
2768
|
});
|
|
2719
2769
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2720
2770
|
}
|
|
@@ -2739,8 +2789,7 @@ const deserializeAws_queryPublishTypeCommandError = async (output, context) => {
|
|
|
2739
2789
|
body: await parseBody(output.body, context),
|
|
2740
2790
|
};
|
|
2741
2791
|
let response;
|
|
2742
|
-
|
|
2743
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2792
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2744
2793
|
switch (errorCode) {
|
|
2745
2794
|
case "CFNRegistryException":
|
|
2746
2795
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
@@ -2750,10 +2799,12 @@ const deserializeAws_queryPublishTypeCommandError = async (output, context) => {
|
|
|
2750
2799
|
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
2751
2800
|
default:
|
|
2752
2801
|
const parsedBody = parsedOutput.body;
|
|
2802
|
+
const $metadata = deserializeMetadata(output);
|
|
2803
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2753
2804
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2754
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2805
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2755
2806
|
$fault: "client",
|
|
2756
|
-
$metadata
|
|
2807
|
+
$metadata,
|
|
2757
2808
|
});
|
|
2758
2809
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2759
2810
|
}
|
|
@@ -2778,8 +2829,7 @@ const deserializeAws_queryRecordHandlerProgressCommandError = async (output, con
|
|
|
2778
2829
|
body: await parseBody(output.body, context),
|
|
2779
2830
|
};
|
|
2780
2831
|
let response;
|
|
2781
|
-
|
|
2782
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2832
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2783
2833
|
switch (errorCode) {
|
|
2784
2834
|
case "InvalidStateTransitionException":
|
|
2785
2835
|
case "com.amazonaws.cloudformation#InvalidStateTransitionException":
|
|
@@ -2789,10 +2839,12 @@ const deserializeAws_queryRecordHandlerProgressCommandError = async (output, con
|
|
|
2789
2839
|
throw await deserializeAws_queryOperationStatusCheckFailedExceptionResponse(parsedOutput, context);
|
|
2790
2840
|
default:
|
|
2791
2841
|
const parsedBody = parsedOutput.body;
|
|
2842
|
+
const $metadata = deserializeMetadata(output);
|
|
2843
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2792
2844
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2793
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2845
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2794
2846
|
$fault: "client",
|
|
2795
|
-
$metadata
|
|
2847
|
+
$metadata,
|
|
2796
2848
|
});
|
|
2797
2849
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2798
2850
|
}
|
|
@@ -2817,18 +2869,19 @@ const deserializeAws_queryRegisterPublisherCommandError = async (output, context
|
|
|
2817
2869
|
body: await parseBody(output.body, context),
|
|
2818
2870
|
};
|
|
2819
2871
|
let response;
|
|
2820
|
-
|
|
2821
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2872
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2822
2873
|
switch (errorCode) {
|
|
2823
2874
|
case "CFNRegistryException":
|
|
2824
2875
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
2825
2876
|
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
2826
2877
|
default:
|
|
2827
2878
|
const parsedBody = parsedOutput.body;
|
|
2879
|
+
const $metadata = deserializeMetadata(output);
|
|
2880
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2828
2881
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2829
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2882
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2830
2883
|
$fault: "client",
|
|
2831
|
-
$metadata
|
|
2884
|
+
$metadata,
|
|
2832
2885
|
});
|
|
2833
2886
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2834
2887
|
}
|
|
@@ -2853,18 +2906,19 @@ const deserializeAws_queryRegisterTypeCommandError = async (output, context) =>
|
|
|
2853
2906
|
body: await parseBody(output.body, context),
|
|
2854
2907
|
};
|
|
2855
2908
|
let response;
|
|
2856
|
-
|
|
2857
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2909
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2858
2910
|
switch (errorCode) {
|
|
2859
2911
|
case "CFNRegistryException":
|
|
2860
2912
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
2861
2913
|
throw await deserializeAws_queryCFNRegistryExceptionResponse(parsedOutput, context);
|
|
2862
2914
|
default:
|
|
2863
2915
|
const parsedBody = parsedOutput.body;
|
|
2916
|
+
const $metadata = deserializeMetadata(output);
|
|
2917
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2864
2918
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2865
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2919
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2866
2920
|
$fault: "client",
|
|
2867
|
-
$metadata
|
|
2921
|
+
$metadata,
|
|
2868
2922
|
});
|
|
2869
2923
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2870
2924
|
}
|
|
@@ -2889,18 +2943,19 @@ const deserializeAws_queryRollbackStackCommandError = async (output, context) =>
|
|
|
2889
2943
|
body: await parseBody(output.body, context),
|
|
2890
2944
|
};
|
|
2891
2945
|
let response;
|
|
2892
|
-
|
|
2893
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2946
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2894
2947
|
switch (errorCode) {
|
|
2895
2948
|
case "TokenAlreadyExistsException":
|
|
2896
2949
|
case "com.amazonaws.cloudformation#TokenAlreadyExistsException":
|
|
2897
2950
|
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2898
2951
|
default:
|
|
2899
2952
|
const parsedBody = parsedOutput.body;
|
|
2953
|
+
const $metadata = deserializeMetadata(output);
|
|
2954
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2900
2955
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2901
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2956
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2902
2957
|
$fault: "client",
|
|
2903
|
-
$metadata
|
|
2958
|
+
$metadata,
|
|
2904
2959
|
});
|
|
2905
2960
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2906
2961
|
}
|
|
@@ -2922,15 +2977,16 @@ const deserializeAws_querySetStackPolicyCommandError = async (output, context) =
|
|
|
2922
2977
|
body: await parseBody(output.body, context),
|
|
2923
2978
|
};
|
|
2924
2979
|
let response;
|
|
2925
|
-
|
|
2926
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2980
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2927
2981
|
switch (errorCode) {
|
|
2928
2982
|
default:
|
|
2929
2983
|
const parsedBody = parsedOutput.body;
|
|
2984
|
+
const $metadata = deserializeMetadata(output);
|
|
2985
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2930
2986
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2931
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2987
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2932
2988
|
$fault: "client",
|
|
2933
|
-
$metadata
|
|
2989
|
+
$metadata,
|
|
2934
2990
|
});
|
|
2935
2991
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2936
2992
|
}
|
|
@@ -2955,8 +3011,7 @@ const deserializeAws_querySetTypeConfigurationCommandError = async (output, cont
|
|
|
2955
3011
|
body: await parseBody(output.body, context),
|
|
2956
3012
|
};
|
|
2957
3013
|
let response;
|
|
2958
|
-
|
|
2959
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3014
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2960
3015
|
switch (errorCode) {
|
|
2961
3016
|
case "CFNRegistryException":
|
|
2962
3017
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
@@ -2966,10 +3021,12 @@ const deserializeAws_querySetTypeConfigurationCommandError = async (output, cont
|
|
|
2966
3021
|
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
2967
3022
|
default:
|
|
2968
3023
|
const parsedBody = parsedOutput.body;
|
|
3024
|
+
const $metadata = deserializeMetadata(output);
|
|
3025
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2969
3026
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
2970
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3027
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2971
3028
|
$fault: "client",
|
|
2972
|
-
$metadata
|
|
3029
|
+
$metadata,
|
|
2973
3030
|
});
|
|
2974
3031
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2975
3032
|
}
|
|
@@ -2994,8 +3051,7 @@ const deserializeAws_querySetTypeDefaultVersionCommandError = async (output, con
|
|
|
2994
3051
|
body: await parseBody(output.body, context),
|
|
2995
3052
|
};
|
|
2996
3053
|
let response;
|
|
2997
|
-
|
|
2998
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3054
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2999
3055
|
switch (errorCode) {
|
|
3000
3056
|
case "CFNRegistryException":
|
|
3001
3057
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
@@ -3005,10 +3061,12 @@ const deserializeAws_querySetTypeDefaultVersionCommandError = async (output, con
|
|
|
3005
3061
|
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
3006
3062
|
default:
|
|
3007
3063
|
const parsedBody = parsedOutput.body;
|
|
3064
|
+
const $metadata = deserializeMetadata(output);
|
|
3065
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3008
3066
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3009
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3067
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3010
3068
|
$fault: "client",
|
|
3011
|
-
$metadata
|
|
3069
|
+
$metadata,
|
|
3012
3070
|
});
|
|
3013
3071
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3014
3072
|
}
|
|
@@ -3030,15 +3088,16 @@ const deserializeAws_querySignalResourceCommandError = async (output, context) =
|
|
|
3030
3088
|
body: await parseBody(output.body, context),
|
|
3031
3089
|
};
|
|
3032
3090
|
let response;
|
|
3033
|
-
|
|
3034
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3091
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3035
3092
|
switch (errorCode) {
|
|
3036
3093
|
default:
|
|
3037
3094
|
const parsedBody = parsedOutput.body;
|
|
3095
|
+
const $metadata = deserializeMetadata(output);
|
|
3096
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3038
3097
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3039
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3098
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3040
3099
|
$fault: "client",
|
|
3041
|
-
$metadata
|
|
3100
|
+
$metadata,
|
|
3042
3101
|
});
|
|
3043
3102
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3044
3103
|
}
|
|
@@ -3063,8 +3122,7 @@ const deserializeAws_queryStopStackSetOperationCommandError = async (output, con
|
|
|
3063
3122
|
body: await parseBody(output.body, context),
|
|
3064
3123
|
};
|
|
3065
3124
|
let response;
|
|
3066
|
-
|
|
3067
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3125
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3068
3126
|
switch (errorCode) {
|
|
3069
3127
|
case "InvalidOperationException":
|
|
3070
3128
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
@@ -3077,10 +3135,12 @@ const deserializeAws_queryStopStackSetOperationCommandError = async (output, con
|
|
|
3077
3135
|
throw await deserializeAws_queryStackSetNotFoundExceptionResponse(parsedOutput, context);
|
|
3078
3136
|
default:
|
|
3079
3137
|
const parsedBody = parsedOutput.body;
|
|
3138
|
+
const $metadata = deserializeMetadata(output);
|
|
3139
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3080
3140
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3081
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3141
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3082
3142
|
$fault: "client",
|
|
3083
|
-
$metadata
|
|
3143
|
+
$metadata,
|
|
3084
3144
|
});
|
|
3085
3145
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3086
3146
|
}
|
|
@@ -3105,8 +3165,7 @@ const deserializeAws_queryTestTypeCommandError = async (output, context) => {
|
|
|
3105
3165
|
body: await parseBody(output.body, context),
|
|
3106
3166
|
};
|
|
3107
3167
|
let response;
|
|
3108
|
-
|
|
3109
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3168
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3110
3169
|
switch (errorCode) {
|
|
3111
3170
|
case "CFNRegistryException":
|
|
3112
3171
|
case "com.amazonaws.cloudformation#CFNRegistryException":
|
|
@@ -3116,10 +3175,12 @@ const deserializeAws_queryTestTypeCommandError = async (output, context) => {
|
|
|
3116
3175
|
throw await deserializeAws_queryTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
3117
3176
|
default:
|
|
3118
3177
|
const parsedBody = parsedOutput.body;
|
|
3178
|
+
const $metadata = deserializeMetadata(output);
|
|
3179
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3119
3180
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3120
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3181
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3121
3182
|
$fault: "client",
|
|
3122
|
-
$metadata
|
|
3183
|
+
$metadata,
|
|
3123
3184
|
});
|
|
3124
3185
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3125
3186
|
}
|
|
@@ -3144,8 +3205,7 @@ const deserializeAws_queryUpdateStackCommandError = async (output, context) => {
|
|
|
3144
3205
|
body: await parseBody(output.body, context),
|
|
3145
3206
|
};
|
|
3146
3207
|
let response;
|
|
3147
|
-
|
|
3148
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3208
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3149
3209
|
switch (errorCode) {
|
|
3150
3210
|
case "InsufficientCapabilitiesException":
|
|
3151
3211
|
case "com.amazonaws.cloudformation#InsufficientCapabilitiesException":
|
|
@@ -3155,10 +3215,12 @@ const deserializeAws_queryUpdateStackCommandError = async (output, context) => {
|
|
|
3155
3215
|
throw await deserializeAws_queryTokenAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
3156
3216
|
default:
|
|
3157
3217
|
const parsedBody = parsedOutput.body;
|
|
3218
|
+
const $metadata = deserializeMetadata(output);
|
|
3219
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3158
3220
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3159
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3221
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3160
3222
|
$fault: "client",
|
|
3161
|
-
$metadata
|
|
3223
|
+
$metadata,
|
|
3162
3224
|
});
|
|
3163
3225
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3164
3226
|
}
|
|
@@ -3183,8 +3245,7 @@ const deserializeAws_queryUpdateStackInstancesCommandError = async (output, cont
|
|
|
3183
3245
|
body: await parseBody(output.body, context),
|
|
3184
3246
|
};
|
|
3185
3247
|
let response;
|
|
3186
|
-
|
|
3187
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3248
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3188
3249
|
switch (errorCode) {
|
|
3189
3250
|
case "InvalidOperationException":
|
|
3190
3251
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
@@ -3206,10 +3267,12 @@ const deserializeAws_queryUpdateStackInstancesCommandError = async (output, cont
|
|
|
3206
3267
|
throw await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context);
|
|
3207
3268
|
default:
|
|
3208
3269
|
const parsedBody = parsedOutput.body;
|
|
3270
|
+
const $metadata = deserializeMetadata(output);
|
|
3271
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3209
3272
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3210
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3273
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3211
3274
|
$fault: "client",
|
|
3212
|
-
$metadata
|
|
3275
|
+
$metadata,
|
|
3213
3276
|
});
|
|
3214
3277
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3215
3278
|
}
|
|
@@ -3234,8 +3297,7 @@ const deserializeAws_queryUpdateStackSetCommandError = async (output, context) =
|
|
|
3234
3297
|
body: await parseBody(output.body, context),
|
|
3235
3298
|
};
|
|
3236
3299
|
let response;
|
|
3237
|
-
|
|
3238
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3300
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3239
3301
|
switch (errorCode) {
|
|
3240
3302
|
case "InvalidOperationException":
|
|
3241
3303
|
case "com.amazonaws.cloudformation#InvalidOperationException":
|
|
@@ -3257,10 +3319,12 @@ const deserializeAws_queryUpdateStackSetCommandError = async (output, context) =
|
|
|
3257
3319
|
throw await deserializeAws_queryStaleRequestExceptionResponse(parsedOutput, context);
|
|
3258
3320
|
default:
|
|
3259
3321
|
const parsedBody = parsedOutput.body;
|
|
3322
|
+
const $metadata = deserializeMetadata(output);
|
|
3323
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3260
3324
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3261
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3325
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3262
3326
|
$fault: "client",
|
|
3263
|
-
$metadata
|
|
3327
|
+
$metadata,
|
|
3264
3328
|
});
|
|
3265
3329
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3266
3330
|
}
|
|
@@ -3285,15 +3349,16 @@ const deserializeAws_queryUpdateTerminationProtectionCommandError = async (outpu
|
|
|
3285
3349
|
body: await parseBody(output.body, context),
|
|
3286
3350
|
};
|
|
3287
3351
|
let response;
|
|
3288
|
-
|
|
3289
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3352
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3290
3353
|
switch (errorCode) {
|
|
3291
3354
|
default:
|
|
3292
3355
|
const parsedBody = parsedOutput.body;
|
|
3356
|
+
const $metadata = deserializeMetadata(output);
|
|
3357
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3293
3358
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3294
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3359
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3295
3360
|
$fault: "client",
|
|
3296
|
-
$metadata
|
|
3361
|
+
$metadata,
|
|
3297
3362
|
});
|
|
3298
3363
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3299
3364
|
}
|
|
@@ -3318,15 +3383,16 @@ const deserializeAws_queryValidateTemplateCommandError = async (output, context)
|
|
|
3318
3383
|
body: await parseBody(output.body, context),
|
|
3319
3384
|
};
|
|
3320
3385
|
let response;
|
|
3321
|
-
|
|
3322
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3386
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3323
3387
|
switch (errorCode) {
|
|
3324
3388
|
default:
|
|
3325
3389
|
const parsedBody = parsedOutput.body;
|
|
3390
|
+
const $metadata = deserializeMetadata(output);
|
|
3391
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3326
3392
|
response = new CloudFormationServiceException_1.CloudFormationServiceException({
|
|
3327
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3393
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3328
3394
|
$fault: "client",
|
|
3329
|
-
$metadata
|
|
3395
|
+
$metadata,
|
|
3330
3396
|
});
|
|
3331
3397
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3332
3398
|
}
|
|
@@ -4046,6 +4112,9 @@ const serializeAws_queryDeploymentTargets = (input, context) => {
|
|
|
4046
4112
|
entries[loc] = value;
|
|
4047
4113
|
});
|
|
4048
4114
|
}
|
|
4115
|
+
if (input.AccountFilterType !== undefined && input.AccountFilterType !== null) {
|
|
4116
|
+
entries["AccountFilterType"] = input.AccountFilterType;
|
|
4117
|
+
}
|
|
4049
4118
|
return entries;
|
|
4050
4119
|
};
|
|
4051
4120
|
const serializeAws_queryDeregisterTypeInput = (input, context) => {
|
|
@@ -5828,6 +5897,7 @@ const deserializeAws_queryDeploymentTargets = (output, context) => {
|
|
|
5828
5897
|
Accounts: undefined,
|
|
5829
5898
|
AccountsUrl: undefined,
|
|
5830
5899
|
OrganizationalUnitIds: undefined,
|
|
5900
|
+
AccountFilterType: undefined,
|
|
5831
5901
|
};
|
|
5832
5902
|
if (output.Accounts === "") {
|
|
5833
5903
|
contents.Accounts = [];
|
|
@@ -5844,6 +5914,9 @@ const deserializeAws_queryDeploymentTargets = (output, context) => {
|
|
|
5844
5914
|
else if (output["OrganizationalUnitIds"] !== undefined && output["OrganizationalUnitIds"]["member"] !== undefined) {
|
|
5845
5915
|
contents.OrganizationalUnitIds = deserializeAws_queryOrganizationalUnitIdList((0, smithy_client_1.getArrayIfSingleItem)(output["OrganizationalUnitIds"]["member"]), context);
|
|
5846
5916
|
}
|
|
5917
|
+
if (output["AccountFilterType"] !== undefined) {
|
|
5918
|
+
contents.AccountFilterType = (0, smithy_client_1.expectString)(output["AccountFilterType"]);
|
|
5919
|
+
}
|
|
5847
5920
|
return contents;
|
|
5848
5921
|
};
|
|
5849
5922
|
const deserializeAws_queryDeregisterTypeOutput = (output, context) => {
|
|
@@ -8754,5 +8827,4 @@ const loadQueryErrorCode = (output, data) => {
|
|
|
8754
8827
|
if (output.statusCode == 404) {
|
|
8755
8828
|
return "NotFound";
|
|
8756
8829
|
}
|
|
8757
|
-
return "";
|
|
8758
8830
|
};
|