@aws-sdk/client-resiliencehub 3.112.0 → 3.121.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +195 -157
- package/dist-es/protocols/Aws_restJson1.js +195 -157
- package/package.json +6 -6
|
@@ -1020,8 +1020,7 @@ const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = a
|
|
|
1020
1020
|
body: await parseBody(output.body, context),
|
|
1021
1021
|
};
|
|
1022
1022
|
let response;
|
|
1023
|
-
|
|
1024
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1023
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
1024
|
switch (errorCode) {
|
|
1026
1025
|
case "AccessDeniedException":
|
|
1027
1026
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1043,10 +1042,12 @@ const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = a
|
|
|
1043
1042
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1044
1043
|
default:
|
|
1045
1044
|
const parsedBody = parsedOutput.body;
|
|
1045
|
+
const $metadata = deserializeMetadata(output);
|
|
1046
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1046
1047
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1047
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1048
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1048
1049
|
$fault: "client",
|
|
1049
|
-
$metadata
|
|
1050
|
+
$metadata,
|
|
1050
1051
|
});
|
|
1051
1052
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1052
1053
|
}
|
|
@@ -1072,8 +1073,7 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
|
|
|
1072
1073
|
body: await parseBody(output.body, context),
|
|
1073
1074
|
};
|
|
1074
1075
|
let response;
|
|
1075
|
-
|
|
1076
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1076
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
1077
|
switch (errorCode) {
|
|
1078
1078
|
case "AccessDeniedException":
|
|
1079
1079
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1098,10 +1098,12 @@ const deserializeAws_restJson1CreateAppCommandError = async (output, context) =>
|
|
|
1098
1098
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1099
1099
|
default:
|
|
1100
1100
|
const parsedBody = parsedOutput.body;
|
|
1101
|
+
const $metadata = deserializeMetadata(output);
|
|
1102
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1101
1103
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1102
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1104
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1103
1105
|
$fault: "client",
|
|
1104
|
-
$metadata
|
|
1106
|
+
$metadata,
|
|
1105
1107
|
});
|
|
1106
1108
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1107
1109
|
}
|
|
@@ -1127,8 +1129,7 @@ const deserializeAws_restJson1CreateRecommendationTemplateCommandError = async (
|
|
|
1127
1129
|
body: await parseBody(output.body, context),
|
|
1128
1130
|
};
|
|
1129
1131
|
let response;
|
|
1130
|
-
|
|
1131
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1132
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1132
1133
|
switch (errorCode) {
|
|
1133
1134
|
case "AccessDeniedException":
|
|
1134
1135
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1150,10 +1151,12 @@ const deserializeAws_restJson1CreateRecommendationTemplateCommandError = async (
|
|
|
1150
1151
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1151
1152
|
default:
|
|
1152
1153
|
const parsedBody = parsedOutput.body;
|
|
1154
|
+
const $metadata = deserializeMetadata(output);
|
|
1155
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1153
1156
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1154
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1157
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1155
1158
|
$fault: "client",
|
|
1156
|
-
$metadata
|
|
1159
|
+
$metadata,
|
|
1157
1160
|
});
|
|
1158
1161
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1159
1162
|
}
|
|
@@ -1179,8 +1182,7 @@ const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output
|
|
|
1179
1182
|
body: await parseBody(output.body, context),
|
|
1180
1183
|
};
|
|
1181
1184
|
let response;
|
|
1182
|
-
|
|
1183
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1185
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
1186
|
switch (errorCode) {
|
|
1185
1187
|
case "AccessDeniedException":
|
|
1186
1188
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1202,10 +1204,12 @@ const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output
|
|
|
1202
1204
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1203
1205
|
default:
|
|
1204
1206
|
const parsedBody = parsedOutput.body;
|
|
1207
|
+
const $metadata = deserializeMetadata(output);
|
|
1208
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1205
1209
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1206
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1210
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1207
1211
|
$fault: "client",
|
|
1208
|
-
$metadata
|
|
1212
|
+
$metadata,
|
|
1209
1213
|
});
|
|
1210
1214
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1211
1215
|
}
|
|
@@ -1231,8 +1235,7 @@ const deserializeAws_restJson1DeleteAppCommandError = async (output, context) =>
|
|
|
1231
1235
|
body: await parseBody(output.body, context),
|
|
1232
1236
|
};
|
|
1233
1237
|
let response;
|
|
1234
|
-
|
|
1235
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
1239
|
switch (errorCode) {
|
|
1237
1240
|
case "ConflictException":
|
|
1238
1241
|
case "com.amazonaws.resiliencehub#ConflictException":
|
|
@@ -1251,10 +1254,12 @@ const deserializeAws_restJson1DeleteAppCommandError = async (output, context) =>
|
|
|
1251
1254
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1252
1255
|
default:
|
|
1253
1256
|
const parsedBody = parsedOutput.body;
|
|
1257
|
+
const $metadata = deserializeMetadata(output);
|
|
1258
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1254
1259
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1255
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1260
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1256
1261
|
$fault: "client",
|
|
1257
|
-
$metadata
|
|
1262
|
+
$metadata,
|
|
1258
1263
|
});
|
|
1259
1264
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1260
1265
|
}
|
|
@@ -1284,8 +1289,7 @@ const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, c
|
|
|
1284
1289
|
body: await parseBody(output.body, context),
|
|
1285
1290
|
};
|
|
1286
1291
|
let response;
|
|
1287
|
-
|
|
1288
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1289
1293
|
switch (errorCode) {
|
|
1290
1294
|
case "AccessDeniedException":
|
|
1291
1295
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1307,10 +1311,12 @@ const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, c
|
|
|
1307
1311
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1308
1312
|
default:
|
|
1309
1313
|
const parsedBody = parsedOutput.body;
|
|
1314
|
+
const $metadata = deserializeMetadata(output);
|
|
1315
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1310
1316
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1311
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1317
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1312
1318
|
$fault: "client",
|
|
1313
|
-
$metadata
|
|
1319
|
+
$metadata,
|
|
1314
1320
|
});
|
|
1315
1321
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1316
1322
|
}
|
|
@@ -1340,8 +1346,7 @@ const deserializeAws_restJson1DeleteRecommendationTemplateCommandError = async (
|
|
|
1340
1346
|
body: await parseBody(output.body, context),
|
|
1341
1347
|
};
|
|
1342
1348
|
let response;
|
|
1343
|
-
|
|
1344
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1349
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
1350
|
switch (errorCode) {
|
|
1346
1351
|
case "AccessDeniedException":
|
|
1347
1352
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1360,10 +1365,12 @@ const deserializeAws_restJson1DeleteRecommendationTemplateCommandError = async (
|
|
|
1360
1365
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1361
1366
|
default:
|
|
1362
1367
|
const parsedBody = parsedOutput.body;
|
|
1368
|
+
const $metadata = deserializeMetadata(output);
|
|
1369
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1363
1370
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1364
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1371
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1365
1372
|
$fault: "client",
|
|
1366
|
-
$metadata
|
|
1373
|
+
$metadata,
|
|
1367
1374
|
});
|
|
1368
1375
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1369
1376
|
}
|
|
@@ -1389,8 +1396,7 @@ const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output
|
|
|
1389
1396
|
body: await parseBody(output.body, context),
|
|
1390
1397
|
};
|
|
1391
1398
|
let response;
|
|
1392
|
-
|
|
1393
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1394
1400
|
switch (errorCode) {
|
|
1395
1401
|
case "AccessDeniedException":
|
|
1396
1402
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1412,10 +1418,12 @@ const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output
|
|
|
1412
1418
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1413
1419
|
default:
|
|
1414
1420
|
const parsedBody = parsedOutput.body;
|
|
1421
|
+
const $metadata = deserializeMetadata(output);
|
|
1422
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1415
1423
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1416
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1424
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1417
1425
|
$fault: "client",
|
|
1418
|
-
$metadata
|
|
1426
|
+
$metadata,
|
|
1419
1427
|
});
|
|
1420
1428
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1421
1429
|
}
|
|
@@ -1441,8 +1449,7 @@ const deserializeAws_restJson1DescribeAppCommandError = async (output, context)
|
|
|
1441
1449
|
body: await parseBody(output.body, context),
|
|
1442
1450
|
};
|
|
1443
1451
|
let response;
|
|
1444
|
-
|
|
1445
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
1453
|
switch (errorCode) {
|
|
1447
1454
|
case "AccessDeniedException":
|
|
1448
1455
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1461,10 +1468,12 @@ const deserializeAws_restJson1DescribeAppCommandError = async (output, context)
|
|
|
1461
1468
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1462
1469
|
default:
|
|
1463
1470
|
const parsedBody = parsedOutput.body;
|
|
1471
|
+
const $metadata = deserializeMetadata(output);
|
|
1472
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1464
1473
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1465
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1474
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1466
1475
|
$fault: "client",
|
|
1467
|
-
$metadata
|
|
1476
|
+
$metadata,
|
|
1468
1477
|
});
|
|
1469
1478
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1470
1479
|
}
|
|
@@ -1490,8 +1499,7 @@ const deserializeAws_restJson1DescribeAppAssessmentCommandError = async (output,
|
|
|
1490
1499
|
body: await parseBody(output.body, context),
|
|
1491
1500
|
};
|
|
1492
1501
|
let response;
|
|
1493
|
-
|
|
1494
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
1503
|
switch (errorCode) {
|
|
1496
1504
|
case "AccessDeniedException":
|
|
1497
1505
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1510,10 +1518,12 @@ const deserializeAws_restJson1DescribeAppAssessmentCommandError = async (output,
|
|
|
1510
1518
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1511
1519
|
default:
|
|
1512
1520
|
const parsedBody = parsedOutput.body;
|
|
1521
|
+
const $metadata = deserializeMetadata(output);
|
|
1522
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1513
1523
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1514
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1524
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1515
1525
|
$fault: "client",
|
|
1516
|
-
$metadata
|
|
1526
|
+
$metadata,
|
|
1517
1527
|
});
|
|
1518
1528
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1519
1529
|
}
|
|
@@ -1555,8 +1565,7 @@ const deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand
|
|
|
1555
1565
|
body: await parseBody(output.body, context),
|
|
1556
1566
|
};
|
|
1557
1567
|
let response;
|
|
1558
|
-
|
|
1559
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1568
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
1569
|
switch (errorCode) {
|
|
1561
1570
|
case "AccessDeniedException":
|
|
1562
1571
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1575,10 +1584,12 @@ const deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommand
|
|
|
1575
1584
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1576
1585
|
default:
|
|
1577
1586
|
const parsedBody = parsedOutput.body;
|
|
1587
|
+
const $metadata = deserializeMetadata(output);
|
|
1588
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1578
1589
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1579
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1590
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1580
1591
|
$fault: "client",
|
|
1581
|
-
$metadata
|
|
1592
|
+
$metadata,
|
|
1582
1593
|
});
|
|
1583
1594
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1584
1595
|
}
|
|
@@ -1612,8 +1623,7 @@ const deserializeAws_restJson1DescribeAppVersionTemplateCommandError = async (ou
|
|
|
1612
1623
|
body: await parseBody(output.body, context),
|
|
1613
1624
|
};
|
|
1614
1625
|
let response;
|
|
1615
|
-
|
|
1616
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1617
1627
|
switch (errorCode) {
|
|
1618
1628
|
case "AccessDeniedException":
|
|
1619
1629
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1632,10 +1642,12 @@ const deserializeAws_restJson1DescribeAppVersionTemplateCommandError = async (ou
|
|
|
1632
1642
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1633
1643
|
default:
|
|
1634
1644
|
const parsedBody = parsedOutput.body;
|
|
1645
|
+
const $metadata = deserializeMetadata(output);
|
|
1646
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1635
1647
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1636
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1648
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1637
1649
|
$fault: "client",
|
|
1638
|
-
$metadata
|
|
1650
|
+
$metadata,
|
|
1639
1651
|
});
|
|
1640
1652
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1641
1653
|
}
|
|
@@ -1677,8 +1689,7 @@ const deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusComman
|
|
|
1677
1689
|
body: await parseBody(output.body, context),
|
|
1678
1690
|
};
|
|
1679
1691
|
let response;
|
|
1680
|
-
|
|
1681
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1682
1693
|
switch (errorCode) {
|
|
1683
1694
|
case "AccessDeniedException":
|
|
1684
1695
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1697,10 +1708,12 @@ const deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusComman
|
|
|
1697
1708
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1698
1709
|
default:
|
|
1699
1710
|
const parsedBody = parsedOutput.body;
|
|
1711
|
+
const $metadata = deserializeMetadata(output);
|
|
1712
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1700
1713
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1701
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1714
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1702
1715
|
$fault: "client",
|
|
1703
|
-
$metadata
|
|
1716
|
+
$metadata,
|
|
1704
1717
|
});
|
|
1705
1718
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1706
1719
|
}
|
|
@@ -1726,8 +1739,7 @@ const deserializeAws_restJson1DescribeResiliencyPolicyCommandError = async (outp
|
|
|
1726
1739
|
body: await parseBody(output.body, context),
|
|
1727
1740
|
};
|
|
1728
1741
|
let response;
|
|
1729
|
-
|
|
1730
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1731
1743
|
switch (errorCode) {
|
|
1732
1744
|
case "AccessDeniedException":
|
|
1733
1745
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1746,10 +1758,12 @@ const deserializeAws_restJson1DescribeResiliencyPolicyCommandError = async (outp
|
|
|
1746
1758
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1747
1759
|
default:
|
|
1748
1760
|
const parsedBody = parsedOutput.body;
|
|
1761
|
+
const $metadata = deserializeMetadata(output);
|
|
1762
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1749
1763
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1750
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1764
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1751
1765
|
$fault: "client",
|
|
1752
|
-
$metadata
|
|
1766
|
+
$metadata,
|
|
1753
1767
|
});
|
|
1754
1768
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1755
1769
|
}
|
|
@@ -1791,8 +1805,7 @@ const deserializeAws_restJson1ImportResourcesToDraftAppVersionCommandError = asy
|
|
|
1791
1805
|
body: await parseBody(output.body, context),
|
|
1792
1806
|
};
|
|
1793
1807
|
let response;
|
|
1794
|
-
|
|
1795
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1808
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1796
1809
|
switch (errorCode) {
|
|
1797
1810
|
case "AccessDeniedException":
|
|
1798
1811
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1814,10 +1827,12 @@ const deserializeAws_restJson1ImportResourcesToDraftAppVersionCommandError = asy
|
|
|
1814
1827
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1815
1828
|
default:
|
|
1816
1829
|
const parsedBody = parsedOutput.body;
|
|
1830
|
+
const $metadata = deserializeMetadata(output);
|
|
1831
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1817
1832
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1818
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1833
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1819
1834
|
$fault: "client",
|
|
1820
|
-
$metadata
|
|
1835
|
+
$metadata,
|
|
1821
1836
|
});
|
|
1822
1837
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1823
1838
|
}
|
|
@@ -1847,8 +1862,7 @@ const deserializeAws_restJson1ListAlarmRecommendationsCommandError = async (outp
|
|
|
1847
1862
|
body: await parseBody(output.body, context),
|
|
1848
1863
|
};
|
|
1849
1864
|
let response;
|
|
1850
|
-
|
|
1851
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
1866
|
switch (errorCode) {
|
|
1853
1867
|
case "AccessDeniedException":
|
|
1854
1868
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1867,10 +1881,12 @@ const deserializeAws_restJson1ListAlarmRecommendationsCommandError = async (outp
|
|
|
1867
1881
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1868
1882
|
default:
|
|
1869
1883
|
const parsedBody = parsedOutput.body;
|
|
1884
|
+
const $metadata = deserializeMetadata(output);
|
|
1885
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1870
1886
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1871
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1887
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1872
1888
|
$fault: "client",
|
|
1873
|
-
$metadata
|
|
1889
|
+
$metadata,
|
|
1874
1890
|
});
|
|
1875
1891
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1876
1892
|
}
|
|
@@ -1900,8 +1916,7 @@ const deserializeAws_restJson1ListAppAssessmentsCommandError = async (output, co
|
|
|
1900
1916
|
body: await parseBody(output.body, context),
|
|
1901
1917
|
};
|
|
1902
1918
|
let response;
|
|
1903
|
-
|
|
1904
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1905
1920
|
switch (errorCode) {
|
|
1906
1921
|
case "AccessDeniedException":
|
|
1907
1922
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1920,10 +1935,12 @@ const deserializeAws_restJson1ListAppAssessmentsCommandError = async (output, co
|
|
|
1920
1935
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1921
1936
|
default:
|
|
1922
1937
|
const parsedBody = parsedOutput.body;
|
|
1938
|
+
const $metadata = deserializeMetadata(output);
|
|
1939
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1923
1940
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1924
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1941
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1925
1942
|
$fault: "client",
|
|
1926
|
-
$metadata
|
|
1943
|
+
$metadata,
|
|
1927
1944
|
});
|
|
1928
1945
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1929
1946
|
}
|
|
@@ -1953,8 +1970,7 @@ const deserializeAws_restJson1ListAppComponentCompliancesCommandError = async (o
|
|
|
1953
1970
|
body: await parseBody(output.body, context),
|
|
1954
1971
|
};
|
|
1955
1972
|
let response;
|
|
1956
|
-
|
|
1957
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
1974
|
switch (errorCode) {
|
|
1959
1975
|
case "AccessDeniedException":
|
|
1960
1976
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -1973,10 +1989,12 @@ const deserializeAws_restJson1ListAppComponentCompliancesCommandError = async (o
|
|
|
1973
1989
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1974
1990
|
default:
|
|
1975
1991
|
const parsedBody = parsedOutput.body;
|
|
1992
|
+
const $metadata = deserializeMetadata(output);
|
|
1993
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1976
1994
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
1977
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1995
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1978
1996
|
$fault: "client",
|
|
1979
|
-
$metadata
|
|
1997
|
+
$metadata,
|
|
1980
1998
|
});
|
|
1981
1999
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1982
2000
|
}
|
|
@@ -2006,8 +2024,7 @@ const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = asyn
|
|
|
2006
2024
|
body: await parseBody(output.body, context),
|
|
2007
2025
|
};
|
|
2008
2026
|
let response;
|
|
2009
|
-
|
|
2010
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2027
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
2028
|
switch (errorCode) {
|
|
2012
2029
|
case "AccessDeniedException":
|
|
2013
2030
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2026,10 +2043,12 @@ const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = asyn
|
|
|
2026
2043
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2027
2044
|
default:
|
|
2028
2045
|
const parsedBody = parsedOutput.body;
|
|
2046
|
+
const $metadata = deserializeMetadata(output);
|
|
2047
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2029
2048
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2030
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2049
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2031
2050
|
$fault: "client",
|
|
2032
|
-
$metadata
|
|
2051
|
+
$metadata,
|
|
2033
2052
|
});
|
|
2034
2053
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2035
2054
|
}
|
|
@@ -2059,8 +2078,7 @@ const deserializeAws_restJson1ListAppsCommandError = async (output, context) =>
|
|
|
2059
2078
|
body: await parseBody(output.body, context),
|
|
2060
2079
|
};
|
|
2061
2080
|
let response;
|
|
2062
|
-
|
|
2063
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2081
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2064
2082
|
switch (errorCode) {
|
|
2065
2083
|
case "AccessDeniedException":
|
|
2066
2084
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2076,10 +2094,12 @@ const deserializeAws_restJson1ListAppsCommandError = async (output, context) =>
|
|
|
2076
2094
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2077
2095
|
default:
|
|
2078
2096
|
const parsedBody = parsedOutput.body;
|
|
2097
|
+
const $metadata = deserializeMetadata(output);
|
|
2098
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2079
2099
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2080
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2100
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2081
2101
|
$fault: "client",
|
|
2082
|
-
$metadata
|
|
2102
|
+
$metadata,
|
|
2083
2103
|
});
|
|
2084
2104
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2085
2105
|
}
|
|
@@ -2109,8 +2129,7 @@ const deserializeAws_restJson1ListAppVersionResourceMappingsCommandError = async
|
|
|
2109
2129
|
body: await parseBody(output.body, context),
|
|
2110
2130
|
};
|
|
2111
2131
|
let response;
|
|
2112
|
-
|
|
2113
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2132
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2114
2133
|
switch (errorCode) {
|
|
2115
2134
|
case "AccessDeniedException":
|
|
2116
2135
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2129,10 +2148,12 @@ const deserializeAws_restJson1ListAppVersionResourceMappingsCommandError = async
|
|
|
2129
2148
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2130
2149
|
default:
|
|
2131
2150
|
const parsedBody = parsedOutput.body;
|
|
2151
|
+
const $metadata = deserializeMetadata(output);
|
|
2152
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2132
2153
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2133
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2154
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2134
2155
|
$fault: "client",
|
|
2135
|
-
$metadata
|
|
2156
|
+
$metadata,
|
|
2136
2157
|
});
|
|
2137
2158
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2138
2159
|
}
|
|
@@ -2166,8 +2187,7 @@ const deserializeAws_restJson1ListAppVersionResourcesCommandError = async (outpu
|
|
|
2166
2187
|
body: await parseBody(output.body, context),
|
|
2167
2188
|
};
|
|
2168
2189
|
let response;
|
|
2169
|
-
|
|
2170
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2190
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2171
2191
|
switch (errorCode) {
|
|
2172
2192
|
case "AccessDeniedException":
|
|
2173
2193
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2189,10 +2209,12 @@ const deserializeAws_restJson1ListAppVersionResourcesCommandError = async (outpu
|
|
|
2189
2209
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2190
2210
|
default:
|
|
2191
2211
|
const parsedBody = parsedOutput.body;
|
|
2212
|
+
const $metadata = deserializeMetadata(output);
|
|
2213
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2192
2214
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2193
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2215
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2194
2216
|
$fault: "client",
|
|
2195
|
-
$metadata
|
|
2217
|
+
$metadata,
|
|
2196
2218
|
});
|
|
2197
2219
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2198
2220
|
}
|
|
@@ -2222,8 +2244,7 @@ const deserializeAws_restJson1ListAppVersionsCommandError = async (output, conte
|
|
|
2222
2244
|
body: await parseBody(output.body, context),
|
|
2223
2245
|
};
|
|
2224
2246
|
let response;
|
|
2225
|
-
|
|
2226
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2247
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2227
2248
|
switch (errorCode) {
|
|
2228
2249
|
case "AccessDeniedException":
|
|
2229
2250
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2239,10 +2260,12 @@ const deserializeAws_restJson1ListAppVersionsCommandError = async (output, conte
|
|
|
2239
2260
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2240
2261
|
default:
|
|
2241
2262
|
const parsedBody = parsedOutput.body;
|
|
2263
|
+
const $metadata = deserializeMetadata(output);
|
|
2264
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2242
2265
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2243
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2266
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2244
2267
|
$fault: "client",
|
|
2245
|
-
$metadata
|
|
2268
|
+
$metadata,
|
|
2246
2269
|
});
|
|
2247
2270
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2248
2271
|
}
|
|
@@ -2272,8 +2295,7 @@ const deserializeAws_restJson1ListRecommendationTemplatesCommandError = async (o
|
|
|
2272
2295
|
body: await parseBody(output.body, context),
|
|
2273
2296
|
};
|
|
2274
2297
|
let response;
|
|
2275
|
-
|
|
2276
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2298
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
2299
|
switch (errorCode) {
|
|
2278
2300
|
case "AccessDeniedException":
|
|
2279
2301
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2289,10 +2311,12 @@ const deserializeAws_restJson1ListRecommendationTemplatesCommandError = async (o
|
|
|
2289
2311
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2290
2312
|
default:
|
|
2291
2313
|
const parsedBody = parsedOutput.body;
|
|
2314
|
+
const $metadata = deserializeMetadata(output);
|
|
2315
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2292
2316
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2293
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2317
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2294
2318
|
$fault: "client",
|
|
2295
|
-
$metadata
|
|
2319
|
+
$metadata,
|
|
2296
2320
|
});
|
|
2297
2321
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2298
2322
|
}
|
|
@@ -2322,8 +2346,7 @@ const deserializeAws_restJson1ListResiliencyPoliciesCommandError = async (output
|
|
|
2322
2346
|
body: await parseBody(output.body, context),
|
|
2323
2347
|
};
|
|
2324
2348
|
let response;
|
|
2325
|
-
|
|
2326
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2349
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2327
2350
|
switch (errorCode) {
|
|
2328
2351
|
case "AccessDeniedException":
|
|
2329
2352
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2342,10 +2365,12 @@ const deserializeAws_restJson1ListResiliencyPoliciesCommandError = async (output
|
|
|
2342
2365
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2343
2366
|
default:
|
|
2344
2367
|
const parsedBody = parsedOutput.body;
|
|
2368
|
+
const $metadata = deserializeMetadata(output);
|
|
2369
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2345
2370
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2346
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2371
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2347
2372
|
$fault: "client",
|
|
2348
|
-
$metadata
|
|
2373
|
+
$metadata,
|
|
2349
2374
|
});
|
|
2350
2375
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2351
2376
|
}
|
|
@@ -2375,8 +2400,7 @@ const deserializeAws_restJson1ListSopRecommendationsCommandError = async (output
|
|
|
2375
2400
|
body: await parseBody(output.body, context),
|
|
2376
2401
|
};
|
|
2377
2402
|
let response;
|
|
2378
|
-
|
|
2379
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2403
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2380
2404
|
switch (errorCode) {
|
|
2381
2405
|
case "AccessDeniedException":
|
|
2382
2406
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2398,10 +2422,12 @@ const deserializeAws_restJson1ListSopRecommendationsCommandError = async (output
|
|
|
2398
2422
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2399
2423
|
default:
|
|
2400
2424
|
const parsedBody = parsedOutput.body;
|
|
2425
|
+
const $metadata = deserializeMetadata(output);
|
|
2426
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2401
2427
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2402
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2428
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2403
2429
|
$fault: "client",
|
|
2404
|
-
$metadata
|
|
2430
|
+
$metadata,
|
|
2405
2431
|
});
|
|
2406
2432
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2407
2433
|
}
|
|
@@ -2431,8 +2457,7 @@ const deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommandError = asyn
|
|
|
2431
2457
|
body: await parseBody(output.body, context),
|
|
2432
2458
|
};
|
|
2433
2459
|
let response;
|
|
2434
|
-
|
|
2435
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2460
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2436
2461
|
switch (errorCode) {
|
|
2437
2462
|
case "AccessDeniedException":
|
|
2438
2463
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2451,10 +2476,12 @@ const deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommandError = asyn
|
|
|
2451
2476
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2452
2477
|
default:
|
|
2453
2478
|
const parsedBody = parsedOutput.body;
|
|
2479
|
+
const $metadata = deserializeMetadata(output);
|
|
2480
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2454
2481
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2455
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2482
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2456
2483
|
$fault: "client",
|
|
2457
|
-
$metadata
|
|
2484
|
+
$metadata,
|
|
2458
2485
|
});
|
|
2459
2486
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2460
2487
|
}
|
|
@@ -2480,8 +2507,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2480
2507
|
body: await parseBody(output.body, context),
|
|
2481
2508
|
};
|
|
2482
2509
|
let response;
|
|
2483
|
-
|
|
2484
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2510
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2485
2511
|
switch (errorCode) {
|
|
2486
2512
|
case "AccessDeniedException":
|
|
2487
2513
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2500,10 +2526,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2500
2526
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2501
2527
|
default:
|
|
2502
2528
|
const parsedBody = parsedOutput.body;
|
|
2529
|
+
const $metadata = deserializeMetadata(output);
|
|
2530
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2503
2531
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2504
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2532
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2505
2533
|
$fault: "client",
|
|
2506
|
-
$metadata
|
|
2534
|
+
$metadata,
|
|
2507
2535
|
});
|
|
2508
2536
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2509
2537
|
}
|
|
@@ -2533,8 +2561,7 @@ const deserializeAws_restJson1ListTestRecommendationsCommandError = async (outpu
|
|
|
2533
2561
|
body: await parseBody(output.body, context),
|
|
2534
2562
|
};
|
|
2535
2563
|
let response;
|
|
2536
|
-
|
|
2537
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2538
2565
|
switch (errorCode) {
|
|
2539
2566
|
case "AccessDeniedException":
|
|
2540
2567
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2556,10 +2583,12 @@ const deserializeAws_restJson1ListTestRecommendationsCommandError = async (outpu
|
|
|
2556
2583
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2557
2584
|
default:
|
|
2558
2585
|
const parsedBody = parsedOutput.body;
|
|
2586
|
+
const $metadata = deserializeMetadata(output);
|
|
2587
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2559
2588
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2560
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2589
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2561
2590
|
$fault: "client",
|
|
2562
|
-
$metadata
|
|
2591
|
+
$metadata,
|
|
2563
2592
|
});
|
|
2564
2593
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2565
2594
|
}
|
|
@@ -2593,8 +2622,7 @@ const deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommandError = a
|
|
|
2593
2622
|
body: await parseBody(output.body, context),
|
|
2594
2623
|
};
|
|
2595
2624
|
let response;
|
|
2596
|
-
|
|
2597
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2598
2626
|
switch (errorCode) {
|
|
2599
2627
|
case "AccessDeniedException":
|
|
2600
2628
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2616,10 +2644,12 @@ const deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommandError = a
|
|
|
2616
2644
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2617
2645
|
default:
|
|
2618
2646
|
const parsedBody = parsedOutput.body;
|
|
2647
|
+
const $metadata = deserializeMetadata(output);
|
|
2648
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2619
2649
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2620
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2650
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2621
2651
|
$fault: "client",
|
|
2622
|
-
$metadata
|
|
2652
|
+
$metadata,
|
|
2623
2653
|
});
|
|
2624
2654
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2625
2655
|
}
|
|
@@ -2649,8 +2679,7 @@ const deserializeAws_restJson1PublishAppVersionCommandError = async (output, con
|
|
|
2649
2679
|
body: await parseBody(output.body, context),
|
|
2650
2680
|
};
|
|
2651
2681
|
let response;
|
|
2652
|
-
|
|
2653
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2682
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2654
2683
|
switch (errorCode) {
|
|
2655
2684
|
case "AccessDeniedException":
|
|
2656
2685
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2672,10 +2701,12 @@ const deserializeAws_restJson1PublishAppVersionCommandError = async (output, con
|
|
|
2672
2701
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2673
2702
|
default:
|
|
2674
2703
|
const parsedBody = parsedOutput.body;
|
|
2704
|
+
const $metadata = deserializeMetadata(output);
|
|
2705
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2675
2706
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2676
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2707
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2677
2708
|
$fault: "client",
|
|
2678
|
-
$metadata
|
|
2709
|
+
$metadata,
|
|
2679
2710
|
});
|
|
2680
2711
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2681
2712
|
}
|
|
@@ -2705,8 +2736,7 @@ const deserializeAws_restJson1PutDraftAppVersionTemplateCommandError = async (ou
|
|
|
2705
2736
|
body: await parseBody(output.body, context),
|
|
2706
2737
|
};
|
|
2707
2738
|
let response;
|
|
2708
|
-
|
|
2709
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2739
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2710
2740
|
switch (errorCode) {
|
|
2711
2741
|
case "AccessDeniedException":
|
|
2712
2742
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2728,10 +2758,12 @@ const deserializeAws_restJson1PutDraftAppVersionTemplateCommandError = async (ou
|
|
|
2728
2758
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2729
2759
|
default:
|
|
2730
2760
|
const parsedBody = parsedOutput.body;
|
|
2761
|
+
const $metadata = deserializeMetadata(output);
|
|
2762
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2731
2763
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2732
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2764
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2733
2765
|
$fault: "client",
|
|
2734
|
-
$metadata
|
|
2766
|
+
$metadata,
|
|
2735
2767
|
});
|
|
2736
2768
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2737
2769
|
}
|
|
@@ -2761,8 +2793,7 @@ const deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommandError
|
|
|
2761
2793
|
body: await parseBody(output.body, context),
|
|
2762
2794
|
};
|
|
2763
2795
|
let response;
|
|
2764
|
-
|
|
2765
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2796
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2766
2797
|
switch (errorCode) {
|
|
2767
2798
|
case "AccessDeniedException":
|
|
2768
2799
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2784,10 +2815,12 @@ const deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommandError
|
|
|
2784
2815
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2785
2816
|
default:
|
|
2786
2817
|
const parsedBody = parsedOutput.body;
|
|
2818
|
+
const $metadata = deserializeMetadata(output);
|
|
2819
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2787
2820
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2788
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2789
2822
|
$fault: "client",
|
|
2790
|
-
$metadata
|
|
2823
|
+
$metadata,
|
|
2791
2824
|
});
|
|
2792
2825
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2793
2826
|
}
|
|
@@ -2825,8 +2858,7 @@ const deserializeAws_restJson1ResolveAppVersionResourcesCommandError = async (ou
|
|
|
2825
2858
|
body: await parseBody(output.body, context),
|
|
2826
2859
|
};
|
|
2827
2860
|
let response;
|
|
2828
|
-
|
|
2829
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2861
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2830
2862
|
switch (errorCode) {
|
|
2831
2863
|
case "AccessDeniedException":
|
|
2832
2864
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2848,10 +2880,12 @@ const deserializeAws_restJson1ResolveAppVersionResourcesCommandError = async (ou
|
|
|
2848
2880
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2849
2881
|
default:
|
|
2850
2882
|
const parsedBody = parsedOutput.body;
|
|
2883
|
+
const $metadata = deserializeMetadata(output);
|
|
2884
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2851
2885
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2852
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2886
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2853
2887
|
$fault: "client",
|
|
2854
|
-
$metadata
|
|
2888
|
+
$metadata,
|
|
2855
2889
|
});
|
|
2856
2890
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2857
2891
|
}
|
|
@@ -2877,8 +2911,7 @@ const deserializeAws_restJson1StartAppAssessmentCommandError = async (output, co
|
|
|
2877
2911
|
body: await parseBody(output.body, context),
|
|
2878
2912
|
};
|
|
2879
2913
|
let response;
|
|
2880
|
-
|
|
2881
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2914
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2882
2915
|
switch (errorCode) {
|
|
2883
2916
|
case "AccessDeniedException":
|
|
2884
2917
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2903,10 +2936,12 @@ const deserializeAws_restJson1StartAppAssessmentCommandError = async (output, co
|
|
|
2903
2936
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2904
2937
|
default:
|
|
2905
2938
|
const parsedBody = parsedOutput.body;
|
|
2939
|
+
const $metadata = deserializeMetadata(output);
|
|
2940
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2906
2941
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2907
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2942
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2908
2943
|
$fault: "client",
|
|
2909
|
-
$metadata
|
|
2944
|
+
$metadata,
|
|
2910
2945
|
});
|
|
2911
2946
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2912
2947
|
}
|
|
@@ -2928,8 +2963,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2928
2963
|
body: await parseBody(output.body, context),
|
|
2929
2964
|
};
|
|
2930
2965
|
let response;
|
|
2931
|
-
|
|
2932
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2966
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2933
2967
|
switch (errorCode) {
|
|
2934
2968
|
case "AccessDeniedException":
|
|
2935
2969
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2948,10 +2982,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2948
2982
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2949
2983
|
default:
|
|
2950
2984
|
const parsedBody = parsedOutput.body;
|
|
2985
|
+
const $metadata = deserializeMetadata(output);
|
|
2986
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2951
2987
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2952
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2988
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2953
2989
|
$fault: "client",
|
|
2954
|
-
$metadata
|
|
2990
|
+
$metadata,
|
|
2955
2991
|
});
|
|
2956
2992
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2957
2993
|
}
|
|
@@ -2973,8 +3009,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2973
3009
|
body: await parseBody(output.body, context),
|
|
2974
3010
|
};
|
|
2975
3011
|
let response;
|
|
2976
|
-
|
|
2977
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3012
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2978
3013
|
switch (errorCode) {
|
|
2979
3014
|
case "AccessDeniedException":
|
|
2980
3015
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2993,10 +3028,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2993
3028
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2994
3029
|
default:
|
|
2995
3030
|
const parsedBody = parsedOutput.body;
|
|
3031
|
+
const $metadata = deserializeMetadata(output);
|
|
3032
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2996
3033
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
2997
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2998
3035
|
$fault: "client",
|
|
2999
|
-
$metadata
|
|
3036
|
+
$metadata,
|
|
3000
3037
|
});
|
|
3001
3038
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3002
3039
|
}
|
|
@@ -3022,8 +3059,7 @@ const deserializeAws_restJson1UpdateAppCommandError = async (output, context) =>
|
|
|
3022
3059
|
body: await parseBody(output.body, context),
|
|
3023
3060
|
};
|
|
3024
3061
|
let response;
|
|
3025
|
-
|
|
3026
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3062
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3027
3063
|
switch (errorCode) {
|
|
3028
3064
|
case "AccessDeniedException":
|
|
3029
3065
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -3045,10 +3081,12 @@ const deserializeAws_restJson1UpdateAppCommandError = async (output, context) =>
|
|
|
3045
3081
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3046
3082
|
default:
|
|
3047
3083
|
const parsedBody = parsedOutput.body;
|
|
3084
|
+
const $metadata = deserializeMetadata(output);
|
|
3085
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3048
3086
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
3049
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3087
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3050
3088
|
$fault: "client",
|
|
3051
|
-
$metadata
|
|
3089
|
+
$metadata,
|
|
3052
3090
|
});
|
|
3053
3091
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3054
3092
|
}
|
|
@@ -3074,8 +3112,7 @@ const deserializeAws_restJson1UpdateResiliencyPolicyCommandError = async (output
|
|
|
3074
3112
|
body: await parseBody(output.body, context),
|
|
3075
3113
|
};
|
|
3076
3114
|
let response;
|
|
3077
|
-
|
|
3078
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3115
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3079
3116
|
switch (errorCode) {
|
|
3080
3117
|
case "AccessDeniedException":
|
|
3081
3118
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -3097,10 +3134,12 @@ const deserializeAws_restJson1UpdateResiliencyPolicyCommandError = async (output
|
|
|
3097
3134
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3098
3135
|
default:
|
|
3099
3136
|
const parsedBody = parsedOutput.body;
|
|
3137
|
+
const $metadata = deserializeMetadata(output);
|
|
3138
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3100
3139
|
response = new ResiliencehubServiceException_1.ResiliencehubServiceException({
|
|
3101
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3140
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3102
3141
|
$fault: "client",
|
|
3103
|
-
$metadata
|
|
3142
|
+
$metadata,
|
|
3104
3143
|
});
|
|
3105
3144
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3106
3145
|
}
|
|
@@ -4073,5 +4112,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4073
4112
|
if (data["__type"] !== undefined) {
|
|
4074
4113
|
return sanitizeErrorCode(data["__type"]);
|
|
4075
4114
|
}
|
|
4076
|
-
return "";
|
|
4077
4115
|
};
|