@aws-sdk/client-route53-recovery-readiness 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 +160 -129
- package/dist-es/protocols/Aws_restJson1.js +160 -129
- package/package.json +6 -6
|
@@ -914,8 +914,7 @@ const deserializeAws_restJson1CreateCellCommandError = async (output, context) =
|
|
|
914
914
|
body: await parseBody(output.body, context),
|
|
915
915
|
};
|
|
916
916
|
let response;
|
|
917
|
-
|
|
918
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
918
|
switch (errorCode) {
|
|
920
919
|
case "AccessDeniedException":
|
|
921
920
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -934,10 +933,12 @@ const deserializeAws_restJson1CreateCellCommandError = async (output, context) =
|
|
|
934
933
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
935
934
|
default:
|
|
936
935
|
const parsedBody = parsedOutput.body;
|
|
936
|
+
const $metadata = deserializeMetadata(output);
|
|
937
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
937
938
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
938
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
939
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
939
940
|
$fault: "client",
|
|
940
|
-
$metadata
|
|
941
|
+
$metadata,
|
|
941
942
|
});
|
|
942
943
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
943
944
|
}
|
|
@@ -963,8 +964,7 @@ const deserializeAws_restJson1CreateCrossAccountAuthorizationCommandError = asyn
|
|
|
963
964
|
body: await parseBody(output.body, context),
|
|
964
965
|
};
|
|
965
966
|
let response;
|
|
966
|
-
|
|
967
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
967
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
968
|
switch (errorCode) {
|
|
969
969
|
case "AccessDeniedException":
|
|
970
970
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -983,10 +983,12 @@ const deserializeAws_restJson1CreateCrossAccountAuthorizationCommandError = asyn
|
|
|
983
983
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
984
984
|
default:
|
|
985
985
|
const parsedBody = parsedOutput.body;
|
|
986
|
+
const $metadata = deserializeMetadata(output);
|
|
987
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
986
988
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
987
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
989
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
988
990
|
$fault: "client",
|
|
989
|
-
$metadata
|
|
991
|
+
$metadata,
|
|
990
992
|
});
|
|
991
993
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
992
994
|
}
|
|
@@ -1024,8 +1026,7 @@ const deserializeAws_restJson1CreateReadinessCheckCommandError = async (output,
|
|
|
1024
1026
|
body: await parseBody(output.body, context),
|
|
1025
1027
|
};
|
|
1026
1028
|
let response;
|
|
1027
|
-
|
|
1028
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
1030
|
switch (errorCode) {
|
|
1030
1031
|
case "AccessDeniedException":
|
|
1031
1032
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1044,10 +1045,12 @@ const deserializeAws_restJson1CreateReadinessCheckCommandError = async (output,
|
|
|
1044
1045
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1045
1046
|
default:
|
|
1046
1047
|
const parsedBody = parsedOutput.body;
|
|
1048
|
+
const $metadata = deserializeMetadata(output);
|
|
1049
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1047
1050
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1048
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1051
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1049
1052
|
$fault: "client",
|
|
1050
|
-
$metadata
|
|
1053
|
+
$metadata,
|
|
1051
1054
|
});
|
|
1052
1055
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1053
1056
|
}
|
|
@@ -1085,8 +1088,7 @@ const deserializeAws_restJson1CreateRecoveryGroupCommandError = async (output, c
|
|
|
1085
1088
|
body: await parseBody(output.body, context),
|
|
1086
1089
|
};
|
|
1087
1090
|
let response;
|
|
1088
|
-
|
|
1089
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1090
1092
|
switch (errorCode) {
|
|
1091
1093
|
case "AccessDeniedException":
|
|
1092
1094
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1105,10 +1107,12 @@ const deserializeAws_restJson1CreateRecoveryGroupCommandError = async (output, c
|
|
|
1105
1107
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1106
1108
|
default:
|
|
1107
1109
|
const parsedBody = parsedOutput.body;
|
|
1110
|
+
const $metadata = deserializeMetadata(output);
|
|
1111
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1108
1112
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1109
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1113
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1110
1114
|
$fault: "client",
|
|
1111
|
-
$metadata
|
|
1115
|
+
$metadata,
|
|
1112
1116
|
});
|
|
1113
1117
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1114
1118
|
}
|
|
@@ -1150,8 +1154,7 @@ const deserializeAws_restJson1CreateResourceSetCommandError = async (output, con
|
|
|
1150
1154
|
body: await parseBody(output.body, context),
|
|
1151
1155
|
};
|
|
1152
1156
|
let response;
|
|
1153
|
-
|
|
1154
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1155
1158
|
switch (errorCode) {
|
|
1156
1159
|
case "AccessDeniedException":
|
|
1157
1160
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1170,10 +1173,12 @@ const deserializeAws_restJson1CreateResourceSetCommandError = async (output, con
|
|
|
1170
1173
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1171
1174
|
default:
|
|
1172
1175
|
const parsedBody = parsedOutput.body;
|
|
1176
|
+
const $metadata = deserializeMetadata(output);
|
|
1177
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1173
1178
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1174
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1179
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1175
1180
|
$fault: "client",
|
|
1176
|
-
$metadata
|
|
1181
|
+
$metadata,
|
|
1177
1182
|
});
|
|
1178
1183
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1179
1184
|
}
|
|
@@ -1195,8 +1200,7 @@ const deserializeAws_restJson1DeleteCellCommandError = async (output, context) =
|
|
|
1195
1200
|
body: await parseBody(output.body, context),
|
|
1196
1201
|
};
|
|
1197
1202
|
let response;
|
|
1198
|
-
|
|
1199
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1203
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
1204
|
switch (errorCode) {
|
|
1201
1205
|
case "AccessDeniedException":
|
|
1202
1206
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1215,10 +1219,12 @@ const deserializeAws_restJson1DeleteCellCommandError = async (output, context) =
|
|
|
1215
1219
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1216
1220
|
default:
|
|
1217
1221
|
const parsedBody = parsedOutput.body;
|
|
1222
|
+
const $metadata = deserializeMetadata(output);
|
|
1223
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1218
1224
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1225
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1220
1226
|
$fault: "client",
|
|
1221
|
-
$metadata
|
|
1227
|
+
$metadata,
|
|
1222
1228
|
});
|
|
1223
1229
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1224
1230
|
}
|
|
@@ -1240,8 +1246,7 @@ const deserializeAws_restJson1DeleteCrossAccountAuthorizationCommandError = asyn
|
|
|
1240
1246
|
body: await parseBody(output.body, context),
|
|
1241
1247
|
};
|
|
1242
1248
|
let response;
|
|
1243
|
-
|
|
1244
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1245
1250
|
switch (errorCode) {
|
|
1246
1251
|
case "AccessDeniedException":
|
|
1247
1252
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1257,10 +1262,12 @@ const deserializeAws_restJson1DeleteCrossAccountAuthorizationCommandError = asyn
|
|
|
1257
1262
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1258
1263
|
default:
|
|
1259
1264
|
const parsedBody = parsedOutput.body;
|
|
1265
|
+
const $metadata = deserializeMetadata(output);
|
|
1266
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1260
1267
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1261
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1268
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1262
1269
|
$fault: "client",
|
|
1263
|
-
$metadata
|
|
1270
|
+
$metadata,
|
|
1264
1271
|
});
|
|
1265
1272
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1266
1273
|
}
|
|
@@ -1282,8 +1289,7 @@ const deserializeAws_restJson1DeleteReadinessCheckCommandError = async (output,
|
|
|
1282
1289
|
body: await parseBody(output.body, context),
|
|
1283
1290
|
};
|
|
1284
1291
|
let response;
|
|
1285
|
-
|
|
1286
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1287
1293
|
switch (errorCode) {
|
|
1288
1294
|
case "AccessDeniedException":
|
|
1289
1295
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1302,10 +1308,12 @@ const deserializeAws_restJson1DeleteReadinessCheckCommandError = async (output,
|
|
|
1302
1308
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1303
1309
|
default:
|
|
1304
1310
|
const parsedBody = parsedOutput.body;
|
|
1311
|
+
const $metadata = deserializeMetadata(output);
|
|
1312
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1305
1313
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1306
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1314
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1307
1315
|
$fault: "client",
|
|
1308
|
-
$metadata
|
|
1316
|
+
$metadata,
|
|
1309
1317
|
});
|
|
1310
1318
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1311
1319
|
}
|
|
@@ -1327,8 +1335,7 @@ const deserializeAws_restJson1DeleteRecoveryGroupCommandError = async (output, c
|
|
|
1327
1335
|
body: await parseBody(output.body, context),
|
|
1328
1336
|
};
|
|
1329
1337
|
let response;
|
|
1330
|
-
|
|
1331
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1338
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
1339
|
switch (errorCode) {
|
|
1333
1340
|
case "AccessDeniedException":
|
|
1334
1341
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1347,10 +1354,12 @@ const deserializeAws_restJson1DeleteRecoveryGroupCommandError = async (output, c
|
|
|
1347
1354
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1348
1355
|
default:
|
|
1349
1356
|
const parsedBody = parsedOutput.body;
|
|
1357
|
+
const $metadata = deserializeMetadata(output);
|
|
1358
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1350
1359
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1351
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1360
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1352
1361
|
$fault: "client",
|
|
1353
|
-
$metadata
|
|
1362
|
+
$metadata,
|
|
1354
1363
|
});
|
|
1355
1364
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1356
1365
|
}
|
|
@@ -1372,8 +1381,7 @@ const deserializeAws_restJson1DeleteResourceSetCommandError = async (output, con
|
|
|
1372
1381
|
body: await parseBody(output.body, context),
|
|
1373
1382
|
};
|
|
1374
1383
|
let response;
|
|
1375
|
-
|
|
1376
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1384
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
1385
|
switch (errorCode) {
|
|
1378
1386
|
case "AccessDeniedException":
|
|
1379
1387
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1392,10 +1400,12 @@ const deserializeAws_restJson1DeleteResourceSetCommandError = async (output, con
|
|
|
1392
1400
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1393
1401
|
default:
|
|
1394
1402
|
const parsedBody = parsedOutput.body;
|
|
1403
|
+
const $metadata = deserializeMetadata(output);
|
|
1404
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1395
1405
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1396
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1406
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1397
1407
|
$fault: "client",
|
|
1398
|
-
$metadata
|
|
1408
|
+
$metadata,
|
|
1399
1409
|
});
|
|
1400
1410
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1401
1411
|
}
|
|
@@ -1429,8 +1439,7 @@ const deserializeAws_restJson1GetArchitectureRecommendationsCommandError = async
|
|
|
1429
1439
|
body: await parseBody(output.body, context),
|
|
1430
1440
|
};
|
|
1431
1441
|
let response;
|
|
1432
|
-
|
|
1433
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
1443
|
switch (errorCode) {
|
|
1435
1444
|
case "AccessDeniedException":
|
|
1436
1445
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1449,10 +1458,12 @@ const deserializeAws_restJson1GetArchitectureRecommendationsCommandError = async
|
|
|
1449
1458
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1450
1459
|
default:
|
|
1451
1460
|
const parsedBody = parsedOutput.body;
|
|
1461
|
+
const $metadata = deserializeMetadata(output);
|
|
1462
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1452
1463
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1453
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1464
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1454
1465
|
$fault: "client",
|
|
1455
|
-
$metadata
|
|
1466
|
+
$metadata,
|
|
1456
1467
|
});
|
|
1457
1468
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1458
1469
|
}
|
|
@@ -1494,8 +1505,7 @@ const deserializeAws_restJson1GetCellCommandError = async (output, context) => {
|
|
|
1494
1505
|
body: await parseBody(output.body, context),
|
|
1495
1506
|
};
|
|
1496
1507
|
let response;
|
|
1497
|
-
|
|
1498
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1508
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1499
1509
|
switch (errorCode) {
|
|
1500
1510
|
case "AccessDeniedException":
|
|
1501
1511
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1514,10 +1524,12 @@ const deserializeAws_restJson1GetCellCommandError = async (output, context) => {
|
|
|
1514
1524
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1515
1525
|
default:
|
|
1516
1526
|
const parsedBody = parsedOutput.body;
|
|
1527
|
+
const $metadata = deserializeMetadata(output);
|
|
1528
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1517
1529
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1518
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1530
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1519
1531
|
$fault: "client",
|
|
1520
|
-
$metadata
|
|
1532
|
+
$metadata,
|
|
1521
1533
|
});
|
|
1522
1534
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1523
1535
|
}
|
|
@@ -1551,8 +1563,7 @@ const deserializeAws_restJson1GetCellReadinessSummaryCommandError = async (outpu
|
|
|
1551
1563
|
body: await parseBody(output.body, context),
|
|
1552
1564
|
};
|
|
1553
1565
|
let response;
|
|
1554
|
-
|
|
1555
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
1567
|
switch (errorCode) {
|
|
1557
1568
|
case "AccessDeniedException":
|
|
1558
1569
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1571,10 +1582,12 @@ const deserializeAws_restJson1GetCellReadinessSummaryCommandError = async (outpu
|
|
|
1571
1582
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1572
1583
|
default:
|
|
1573
1584
|
const parsedBody = parsedOutput.body;
|
|
1585
|
+
const $metadata = deserializeMetadata(output);
|
|
1586
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1574
1587
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1575
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1588
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1576
1589
|
$fault: "client",
|
|
1577
|
-
$metadata
|
|
1590
|
+
$metadata,
|
|
1578
1591
|
});
|
|
1579
1592
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1580
1593
|
}
|
|
@@ -1612,8 +1625,7 @@ const deserializeAws_restJson1GetReadinessCheckCommandError = async (output, con
|
|
|
1612
1625
|
body: await parseBody(output.body, context),
|
|
1613
1626
|
};
|
|
1614
1627
|
let response;
|
|
1615
|
-
|
|
1616
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1617
1629
|
switch (errorCode) {
|
|
1618
1630
|
case "AccessDeniedException":
|
|
1619
1631
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1632,10 +1644,12 @@ const deserializeAws_restJson1GetReadinessCheckCommandError = async (output, con
|
|
|
1632
1644
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1633
1645
|
default:
|
|
1634
1646
|
const parsedBody = parsedOutput.body;
|
|
1647
|
+
const $metadata = deserializeMetadata(output);
|
|
1648
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1635
1649
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1636
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1650
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1637
1651
|
$fault: "client",
|
|
1638
|
-
$metadata
|
|
1652
|
+
$metadata,
|
|
1639
1653
|
});
|
|
1640
1654
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1641
1655
|
}
|
|
@@ -1669,8 +1683,7 @@ const deserializeAws_restJson1GetReadinessCheckResourceStatusCommandError = asyn
|
|
|
1669
1683
|
body: await parseBody(output.body, context),
|
|
1670
1684
|
};
|
|
1671
1685
|
let response;
|
|
1672
|
-
|
|
1673
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
1687
|
switch (errorCode) {
|
|
1675
1688
|
case "AccessDeniedException":
|
|
1676
1689
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1689,10 +1702,12 @@ const deserializeAws_restJson1GetReadinessCheckResourceStatusCommandError = asyn
|
|
|
1689
1702
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1690
1703
|
default:
|
|
1691
1704
|
const parsedBody = parsedOutput.body;
|
|
1705
|
+
const $metadata = deserializeMetadata(output);
|
|
1706
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1692
1707
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1693
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1708
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1694
1709
|
$fault: "client",
|
|
1695
|
-
$metadata
|
|
1710
|
+
$metadata,
|
|
1696
1711
|
});
|
|
1697
1712
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1698
1713
|
}
|
|
@@ -1730,8 +1745,7 @@ const deserializeAws_restJson1GetReadinessCheckStatusCommandError = async (outpu
|
|
|
1730
1745
|
body: await parseBody(output.body, context),
|
|
1731
1746
|
};
|
|
1732
1747
|
let response;
|
|
1733
|
-
|
|
1734
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
1749
|
switch (errorCode) {
|
|
1736
1750
|
case "AccessDeniedException":
|
|
1737
1751
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1750,10 +1764,12 @@ const deserializeAws_restJson1GetReadinessCheckStatusCommandError = async (outpu
|
|
|
1750
1764
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1751
1765
|
default:
|
|
1752
1766
|
const parsedBody = parsedOutput.body;
|
|
1767
|
+
const $metadata = deserializeMetadata(output);
|
|
1768
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1753
1769
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1754
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1770
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1755
1771
|
$fault: "client",
|
|
1756
|
-
$metadata
|
|
1772
|
+
$metadata,
|
|
1757
1773
|
});
|
|
1758
1774
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1759
1775
|
}
|
|
@@ -1791,8 +1807,7 @@ const deserializeAws_restJson1GetRecoveryGroupCommandError = async (output, cont
|
|
|
1791
1807
|
body: await parseBody(output.body, context),
|
|
1792
1808
|
};
|
|
1793
1809
|
let response;
|
|
1794
|
-
|
|
1795
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1810
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1796
1811
|
switch (errorCode) {
|
|
1797
1812
|
case "AccessDeniedException":
|
|
1798
1813
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1811,10 +1826,12 @@ const deserializeAws_restJson1GetRecoveryGroupCommandError = async (output, cont
|
|
|
1811
1826
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1812
1827
|
default:
|
|
1813
1828
|
const parsedBody = parsedOutput.body;
|
|
1829
|
+
const $metadata = deserializeMetadata(output);
|
|
1830
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1814
1831
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1815
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1832
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1816
1833
|
$fault: "client",
|
|
1817
|
-
$metadata
|
|
1834
|
+
$metadata,
|
|
1818
1835
|
});
|
|
1819
1836
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1820
1837
|
}
|
|
@@ -1848,8 +1865,7 @@ const deserializeAws_restJson1GetRecoveryGroupReadinessSummaryCommandError = asy
|
|
|
1848
1865
|
body: await parseBody(output.body, context),
|
|
1849
1866
|
};
|
|
1850
1867
|
let response;
|
|
1851
|
-
|
|
1852
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1853
1869
|
switch (errorCode) {
|
|
1854
1870
|
case "AccessDeniedException":
|
|
1855
1871
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1868,10 +1884,12 @@ const deserializeAws_restJson1GetRecoveryGroupReadinessSummaryCommandError = asy
|
|
|
1868
1884
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1869
1885
|
default:
|
|
1870
1886
|
const parsedBody = parsedOutput.body;
|
|
1887
|
+
const $metadata = deserializeMetadata(output);
|
|
1888
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1871
1889
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1872
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1890
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1873
1891
|
$fault: "client",
|
|
1874
|
-
$metadata
|
|
1892
|
+
$metadata,
|
|
1875
1893
|
});
|
|
1876
1894
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1877
1895
|
}
|
|
@@ -1913,8 +1931,7 @@ const deserializeAws_restJson1GetResourceSetCommandError = async (output, contex
|
|
|
1913
1931
|
body: await parseBody(output.body, context),
|
|
1914
1932
|
};
|
|
1915
1933
|
let response;
|
|
1916
|
-
|
|
1917
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1934
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1918
1935
|
switch (errorCode) {
|
|
1919
1936
|
case "AccessDeniedException":
|
|
1920
1937
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1933,10 +1950,12 @@ const deserializeAws_restJson1GetResourceSetCommandError = async (output, contex
|
|
|
1933
1950
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1934
1951
|
default:
|
|
1935
1952
|
const parsedBody = parsedOutput.body;
|
|
1953
|
+
const $metadata = deserializeMetadata(output);
|
|
1954
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1936
1955
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1937
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1956
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1938
1957
|
$fault: "client",
|
|
1939
|
-
$metadata
|
|
1958
|
+
$metadata,
|
|
1940
1959
|
});
|
|
1941
1960
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1942
1961
|
}
|
|
@@ -1966,8 +1985,7 @@ const deserializeAws_restJson1ListCellsCommandError = async (output, context) =>
|
|
|
1966
1985
|
body: await parseBody(output.body, context),
|
|
1967
1986
|
};
|
|
1968
1987
|
let response;
|
|
1969
|
-
|
|
1970
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1971
1989
|
switch (errorCode) {
|
|
1972
1990
|
case "AccessDeniedException":
|
|
1973
1991
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -1983,10 +2001,12 @@ const deserializeAws_restJson1ListCellsCommandError = async (output, context) =>
|
|
|
1983
2001
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1984
2002
|
default:
|
|
1985
2003
|
const parsedBody = parsedOutput.body;
|
|
2004
|
+
const $metadata = deserializeMetadata(output);
|
|
2005
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1986
2006
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
1987
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2007
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1988
2008
|
$fault: "client",
|
|
1989
|
-
$metadata
|
|
2009
|
+
$metadata,
|
|
1990
2010
|
});
|
|
1991
2011
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1992
2012
|
}
|
|
@@ -2016,8 +2036,7 @@ const deserializeAws_restJson1ListCrossAccountAuthorizationsCommandError = async
|
|
|
2016
2036
|
body: await parseBody(output.body, context),
|
|
2017
2037
|
};
|
|
2018
2038
|
let response;
|
|
2019
|
-
|
|
2020
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2039
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2021
2040
|
switch (errorCode) {
|
|
2022
2041
|
case "AccessDeniedException":
|
|
2023
2042
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -2033,10 +2052,12 @@ const deserializeAws_restJson1ListCrossAccountAuthorizationsCommandError = async
|
|
|
2033
2052
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2034
2053
|
default:
|
|
2035
2054
|
const parsedBody = parsedOutput.body;
|
|
2055
|
+
const $metadata = deserializeMetadata(output);
|
|
2056
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2036
2057
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2037
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2058
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2038
2059
|
$fault: "client",
|
|
2039
|
-
$metadata
|
|
2060
|
+
$metadata,
|
|
2040
2061
|
});
|
|
2041
2062
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2042
2063
|
}
|
|
@@ -2066,8 +2087,7 @@ const deserializeAws_restJson1ListReadinessChecksCommandError = async (output, c
|
|
|
2066
2087
|
body: await parseBody(output.body, context),
|
|
2067
2088
|
};
|
|
2068
2089
|
let response;
|
|
2069
|
-
|
|
2070
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2090
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
2091
|
switch (errorCode) {
|
|
2072
2092
|
case "AccessDeniedException":
|
|
2073
2093
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -2083,10 +2103,12 @@ const deserializeAws_restJson1ListReadinessChecksCommandError = async (output, c
|
|
|
2083
2103
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2084
2104
|
default:
|
|
2085
2105
|
const parsedBody = parsedOutput.body;
|
|
2106
|
+
const $metadata = deserializeMetadata(output);
|
|
2107
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2086
2108
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2087
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2109
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2088
2110
|
$fault: "client",
|
|
2089
|
-
$metadata
|
|
2111
|
+
$metadata,
|
|
2090
2112
|
});
|
|
2091
2113
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2092
2114
|
}
|
|
@@ -2116,8 +2138,7 @@ const deserializeAws_restJson1ListRecoveryGroupsCommandError = async (output, co
|
|
|
2116
2138
|
body: await parseBody(output.body, context),
|
|
2117
2139
|
};
|
|
2118
2140
|
let response;
|
|
2119
|
-
|
|
2120
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2141
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2121
2142
|
switch (errorCode) {
|
|
2122
2143
|
case "AccessDeniedException":
|
|
2123
2144
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -2133,10 +2154,12 @@ const deserializeAws_restJson1ListRecoveryGroupsCommandError = async (output, co
|
|
|
2133
2154
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2134
2155
|
default:
|
|
2135
2156
|
const parsedBody = parsedOutput.body;
|
|
2157
|
+
const $metadata = deserializeMetadata(output);
|
|
2158
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2136
2159
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2137
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2160
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2138
2161
|
$fault: "client",
|
|
2139
|
-
$metadata
|
|
2162
|
+
$metadata,
|
|
2140
2163
|
});
|
|
2141
2164
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2142
2165
|
}
|
|
@@ -2166,8 +2189,7 @@ const deserializeAws_restJson1ListResourceSetsCommandError = async (output, cont
|
|
|
2166
2189
|
body: await parseBody(output.body, context),
|
|
2167
2190
|
};
|
|
2168
2191
|
let response;
|
|
2169
|
-
|
|
2170
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2192
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2171
2193
|
switch (errorCode) {
|
|
2172
2194
|
case "AccessDeniedException":
|
|
2173
2195
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -2183,10 +2205,12 @@ const deserializeAws_restJson1ListResourceSetsCommandError = async (output, cont
|
|
|
2183
2205
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2184
2206
|
default:
|
|
2185
2207
|
const parsedBody = parsedOutput.body;
|
|
2208
|
+
const $metadata = deserializeMetadata(output);
|
|
2209
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2186
2210
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2187
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2211
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2188
2212
|
$fault: "client",
|
|
2189
|
-
$metadata
|
|
2213
|
+
$metadata,
|
|
2190
2214
|
});
|
|
2191
2215
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2192
2216
|
}
|
|
@@ -2216,8 +2240,7 @@ const deserializeAws_restJson1ListRulesCommandError = async (output, context) =>
|
|
|
2216
2240
|
body: await parseBody(output.body, context),
|
|
2217
2241
|
};
|
|
2218
2242
|
let response;
|
|
2219
|
-
|
|
2220
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2243
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2221
2244
|
switch (errorCode) {
|
|
2222
2245
|
case "AccessDeniedException":
|
|
2223
2246
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -2233,10 +2256,12 @@ const deserializeAws_restJson1ListRulesCommandError = async (output, context) =>
|
|
|
2233
2256
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2234
2257
|
default:
|
|
2235
2258
|
const parsedBody = parsedOutput.body;
|
|
2259
|
+
const $metadata = deserializeMetadata(output);
|
|
2260
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2236
2261
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2237
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2262
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2238
2263
|
$fault: "client",
|
|
2239
|
-
$metadata
|
|
2264
|
+
$metadata,
|
|
2240
2265
|
});
|
|
2241
2266
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2242
2267
|
}
|
|
@@ -2262,8 +2287,7 @@ const deserializeAws_restJson1ListTagsForResourcesCommandError = async (output,
|
|
|
2262
2287
|
body: await parseBody(output.body, context),
|
|
2263
2288
|
};
|
|
2264
2289
|
let response;
|
|
2265
|
-
|
|
2266
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2290
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2267
2291
|
switch (errorCode) {
|
|
2268
2292
|
case "InternalServerException":
|
|
2269
2293
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
@@ -2276,10 +2300,12 @@ const deserializeAws_restJson1ListTagsForResourcesCommandError = async (output,
|
|
|
2276
2300
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2277
2301
|
default:
|
|
2278
2302
|
const parsedBody = parsedOutput.body;
|
|
2303
|
+
const $metadata = deserializeMetadata(output);
|
|
2304
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2279
2305
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2280
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2306
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2281
2307
|
$fault: "client",
|
|
2282
|
-
$metadata
|
|
2308
|
+
$metadata,
|
|
2283
2309
|
});
|
|
2284
2310
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2285
2311
|
}
|
|
@@ -2301,8 +2327,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2301
2327
|
body: await parseBody(output.body, context),
|
|
2302
2328
|
};
|
|
2303
2329
|
let response;
|
|
2304
|
-
|
|
2305
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2330
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2306
2331
|
switch (errorCode) {
|
|
2307
2332
|
case "InternalServerException":
|
|
2308
2333
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
@@ -2315,10 +2340,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2315
2340
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2316
2341
|
default:
|
|
2317
2342
|
const parsedBody = parsedOutput.body;
|
|
2343
|
+
const $metadata = deserializeMetadata(output);
|
|
2344
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2318
2345
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2319
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2346
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2320
2347
|
$fault: "client",
|
|
2321
|
-
$metadata
|
|
2348
|
+
$metadata,
|
|
2322
2349
|
});
|
|
2323
2350
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2324
2351
|
}
|
|
@@ -2340,8 +2367,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2340
2367
|
body: await parseBody(output.body, context),
|
|
2341
2368
|
};
|
|
2342
2369
|
let response;
|
|
2343
|
-
|
|
2344
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2370
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2345
2371
|
switch (errorCode) {
|
|
2346
2372
|
case "InternalServerException":
|
|
2347
2373
|
case "com.amazonaws.route53recoveryreadiness#InternalServerException":
|
|
@@ -2354,10 +2380,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2354
2380
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2355
2381
|
default:
|
|
2356
2382
|
const parsedBody = parsedOutput.body;
|
|
2383
|
+
const $metadata = deserializeMetadata(output);
|
|
2384
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2357
2385
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2386
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2359
2387
|
$fault: "client",
|
|
2360
|
-
$metadata
|
|
2388
|
+
$metadata,
|
|
2361
2389
|
});
|
|
2362
2390
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2363
2391
|
}
|
|
@@ -2399,8 +2427,7 @@ const deserializeAws_restJson1UpdateCellCommandError = async (output, context) =
|
|
|
2399
2427
|
body: await parseBody(output.body, context),
|
|
2400
2428
|
};
|
|
2401
2429
|
let response;
|
|
2402
|
-
|
|
2403
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2430
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2404
2431
|
switch (errorCode) {
|
|
2405
2432
|
case "AccessDeniedException":
|
|
2406
2433
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -2419,10 +2446,12 @@ const deserializeAws_restJson1UpdateCellCommandError = async (output, context) =
|
|
|
2419
2446
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2420
2447
|
default:
|
|
2421
2448
|
const parsedBody = parsedOutput.body;
|
|
2449
|
+
const $metadata = deserializeMetadata(output);
|
|
2450
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2422
2451
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2423
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2452
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2424
2453
|
$fault: "client",
|
|
2425
|
-
$metadata
|
|
2454
|
+
$metadata,
|
|
2426
2455
|
});
|
|
2427
2456
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2428
2457
|
}
|
|
@@ -2460,8 +2489,7 @@ const deserializeAws_restJson1UpdateReadinessCheckCommandError = async (output,
|
|
|
2460
2489
|
body: await parseBody(output.body, context),
|
|
2461
2490
|
};
|
|
2462
2491
|
let response;
|
|
2463
|
-
|
|
2464
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2492
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
2493
|
switch (errorCode) {
|
|
2466
2494
|
case "AccessDeniedException":
|
|
2467
2495
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -2480,10 +2508,12 @@ const deserializeAws_restJson1UpdateReadinessCheckCommandError = async (output,
|
|
|
2480
2508
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2481
2509
|
default:
|
|
2482
2510
|
const parsedBody = parsedOutput.body;
|
|
2511
|
+
const $metadata = deserializeMetadata(output);
|
|
2512
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2483
2513
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2484
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2514
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2485
2515
|
$fault: "client",
|
|
2486
|
-
$metadata
|
|
2516
|
+
$metadata,
|
|
2487
2517
|
});
|
|
2488
2518
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2489
2519
|
}
|
|
@@ -2521,8 +2551,7 @@ const deserializeAws_restJson1UpdateRecoveryGroupCommandError = async (output, c
|
|
|
2521
2551
|
body: await parseBody(output.body, context),
|
|
2522
2552
|
};
|
|
2523
2553
|
let response;
|
|
2524
|
-
|
|
2525
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2554
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
2555
|
switch (errorCode) {
|
|
2527
2556
|
case "AccessDeniedException":
|
|
2528
2557
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -2541,10 +2570,12 @@ const deserializeAws_restJson1UpdateRecoveryGroupCommandError = async (output, c
|
|
|
2541
2570
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2542
2571
|
default:
|
|
2543
2572
|
const parsedBody = parsedOutput.body;
|
|
2573
|
+
const $metadata = deserializeMetadata(output);
|
|
2574
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2544
2575
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2545
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2576
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2546
2577
|
$fault: "client",
|
|
2547
|
-
$metadata
|
|
2578
|
+
$metadata,
|
|
2548
2579
|
});
|
|
2549
2580
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2550
2581
|
}
|
|
@@ -2586,8 +2617,7 @@ const deserializeAws_restJson1UpdateResourceSetCommandError = async (output, con
|
|
|
2586
2617
|
body: await parseBody(output.body, context),
|
|
2587
2618
|
};
|
|
2588
2619
|
let response;
|
|
2589
|
-
|
|
2590
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2620
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2591
2621
|
switch (errorCode) {
|
|
2592
2622
|
case "AccessDeniedException":
|
|
2593
2623
|
case "com.amazonaws.route53recoveryreadiness#AccessDeniedException":
|
|
@@ -2606,10 +2636,12 @@ const deserializeAws_restJson1UpdateResourceSetCommandError = async (output, con
|
|
|
2606
2636
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2607
2637
|
default:
|
|
2608
2638
|
const parsedBody = parsedOutput.body;
|
|
2639
|
+
const $metadata = deserializeMetadata(output);
|
|
2640
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2609
2641
|
response = new Route53RecoveryReadinessServiceException_1.Route53RecoveryReadinessServiceException({
|
|
2610
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2642
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2611
2643
|
$fault: "client",
|
|
2612
|
-
$metadata
|
|
2644
|
+
$metadata,
|
|
2613
2645
|
});
|
|
2614
2646
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2615
2647
|
}
|
|
@@ -3106,5 +3138,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3106
3138
|
if (data["__type"] !== undefined) {
|
|
3107
3139
|
return sanitizeErrorCode(data["__type"]);
|
|
3108
3140
|
}
|
|
3109
|
-
return "";
|
|
3110
3141
|
};
|