@aws-sdk/client-mediaconnect 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 +150 -121
- package/dist-es/protocols/Aws_restJson1.js +150 -121
- package/package.json +7 -7
|
@@ -1057,8 +1057,7 @@ const deserializeAws_restJson1AddFlowMediaStreamsCommandError = async (output, c
|
|
|
1057
1057
|
body: await parseBody(output.body, context),
|
|
1058
1058
|
};
|
|
1059
1059
|
let response;
|
|
1060
|
-
|
|
1061
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1060
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
1061
|
switch (errorCode) {
|
|
1063
1062
|
case "BadRequestException":
|
|
1064
1063
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1080,10 +1079,12 @@ const deserializeAws_restJson1AddFlowMediaStreamsCommandError = async (output, c
|
|
|
1080
1079
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1081
1080
|
default:
|
|
1082
1081
|
const parsedBody = parsedOutput.body;
|
|
1082
|
+
const $metadata = deserializeMetadata(output);
|
|
1083
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1083
1084
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1084
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1085
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1085
1086
|
$fault: "client",
|
|
1086
|
-
$metadata
|
|
1087
|
+
$metadata,
|
|
1087
1088
|
});
|
|
1088
1089
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1089
1090
|
}
|
|
@@ -1113,8 +1114,7 @@ const deserializeAws_restJson1AddFlowOutputsCommandError = async (output, contex
|
|
|
1113
1114
|
body: await parseBody(output.body, context),
|
|
1114
1115
|
};
|
|
1115
1116
|
let response;
|
|
1116
|
-
|
|
1117
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
1118
|
switch (errorCode) {
|
|
1119
1119
|
case "AddFlowOutputs420Exception":
|
|
1120
1120
|
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
|
|
@@ -1139,10 +1139,12 @@ const deserializeAws_restJson1AddFlowOutputsCommandError = async (output, contex
|
|
|
1139
1139
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1140
1140
|
default:
|
|
1141
1141
|
const parsedBody = parsedOutput.body;
|
|
1142
|
+
const $metadata = deserializeMetadata(output);
|
|
1143
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1142
1144
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1143
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1145
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1144
1146
|
$fault: "client",
|
|
1145
|
-
$metadata
|
|
1147
|
+
$metadata,
|
|
1146
1148
|
});
|
|
1147
1149
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1148
1150
|
}
|
|
@@ -1172,8 +1174,7 @@ const deserializeAws_restJson1AddFlowSourcesCommandError = async (output, contex
|
|
|
1172
1174
|
body: await parseBody(output.body, context),
|
|
1173
1175
|
};
|
|
1174
1176
|
let response;
|
|
1175
|
-
|
|
1176
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
1178
|
switch (errorCode) {
|
|
1178
1179
|
case "BadRequestException":
|
|
1179
1180
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1195,10 +1196,12 @@ const deserializeAws_restJson1AddFlowSourcesCommandError = async (output, contex
|
|
|
1195
1196
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1196
1197
|
default:
|
|
1197
1198
|
const parsedBody = parsedOutput.body;
|
|
1199
|
+
const $metadata = deserializeMetadata(output);
|
|
1200
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1198
1201
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1199
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1202
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1200
1203
|
$fault: "client",
|
|
1201
|
-
$metadata
|
|
1204
|
+
$metadata,
|
|
1202
1205
|
});
|
|
1203
1206
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1204
1207
|
}
|
|
@@ -1228,8 +1231,7 @@ const deserializeAws_restJson1AddFlowVpcInterfacesCommandError = async (output,
|
|
|
1228
1231
|
body: await parseBody(output.body, context),
|
|
1229
1232
|
};
|
|
1230
1233
|
let response;
|
|
1231
|
-
|
|
1232
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1234
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
1235
|
switch (errorCode) {
|
|
1234
1236
|
case "BadRequestException":
|
|
1235
1237
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1251,10 +1253,12 @@ const deserializeAws_restJson1AddFlowVpcInterfacesCommandError = async (output,
|
|
|
1251
1253
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1252
1254
|
default:
|
|
1253
1255
|
const parsedBody = parsedOutput.body;
|
|
1256
|
+
const $metadata = deserializeMetadata(output);
|
|
1257
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1254
1258
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1255
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1259
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1256
1260
|
$fault: "client",
|
|
1257
|
-
$metadata
|
|
1261
|
+
$metadata,
|
|
1258
1262
|
});
|
|
1259
1263
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1260
1264
|
}
|
|
@@ -1280,8 +1284,7 @@ const deserializeAws_restJson1CreateFlowCommandError = async (output, context) =
|
|
|
1280
1284
|
body: await parseBody(output.body, context),
|
|
1281
1285
|
};
|
|
1282
1286
|
let response;
|
|
1283
|
-
|
|
1284
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1287
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
1288
|
switch (errorCode) {
|
|
1286
1289
|
case "BadRequestException":
|
|
1287
1290
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1303,10 +1306,12 @@ const deserializeAws_restJson1CreateFlowCommandError = async (output, context) =
|
|
|
1303
1306
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1304
1307
|
default:
|
|
1305
1308
|
const parsedBody = parsedOutput.body;
|
|
1309
|
+
const $metadata = deserializeMetadata(output);
|
|
1310
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1306
1311
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1307
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1312
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1308
1313
|
$fault: "client",
|
|
1309
|
-
$metadata
|
|
1314
|
+
$metadata,
|
|
1310
1315
|
});
|
|
1311
1316
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1312
1317
|
}
|
|
@@ -1336,8 +1341,7 @@ const deserializeAws_restJson1DeleteFlowCommandError = async (output, context) =
|
|
|
1336
1341
|
body: await parseBody(output.body, context),
|
|
1337
1342
|
};
|
|
1338
1343
|
let response;
|
|
1339
|
-
|
|
1340
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
1345
|
switch (errorCode) {
|
|
1342
1346
|
case "BadRequestException":
|
|
1343
1347
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1359,10 +1363,12 @@ const deserializeAws_restJson1DeleteFlowCommandError = async (output, context) =
|
|
|
1359
1363
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1360
1364
|
default:
|
|
1361
1365
|
const parsedBody = parsedOutput.body;
|
|
1366
|
+
const $metadata = deserializeMetadata(output);
|
|
1367
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1362
1368
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1363
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1369
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1364
1370
|
$fault: "client",
|
|
1365
|
-
$metadata
|
|
1371
|
+
$metadata,
|
|
1366
1372
|
});
|
|
1367
1373
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1368
1374
|
}
|
|
@@ -1392,8 +1398,7 @@ const deserializeAws_restJson1DescribeFlowCommandError = async (output, context)
|
|
|
1392
1398
|
body: await parseBody(output.body, context),
|
|
1393
1399
|
};
|
|
1394
1400
|
let response;
|
|
1395
|
-
|
|
1396
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1401
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1397
1402
|
switch (errorCode) {
|
|
1398
1403
|
case "BadRequestException":
|
|
1399
1404
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1415,10 +1420,12 @@ const deserializeAws_restJson1DescribeFlowCommandError = async (output, context)
|
|
|
1415
1420
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1416
1421
|
default:
|
|
1417
1422
|
const parsedBody = parsedOutput.body;
|
|
1423
|
+
const $metadata = deserializeMetadata(output);
|
|
1424
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1418
1425
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1419
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1426
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1420
1427
|
$fault: "client",
|
|
1421
|
-
$metadata
|
|
1428
|
+
$metadata,
|
|
1422
1429
|
});
|
|
1423
1430
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1424
1431
|
}
|
|
@@ -1444,8 +1451,7 @@ const deserializeAws_restJson1DescribeOfferingCommandError = async (output, cont
|
|
|
1444
1451
|
body: await parseBody(output.body, context),
|
|
1445
1452
|
};
|
|
1446
1453
|
let response;
|
|
1447
|
-
|
|
1448
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1454
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1449
1455
|
switch (errorCode) {
|
|
1450
1456
|
case "BadRequestException":
|
|
1451
1457
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1464,10 +1470,12 @@ const deserializeAws_restJson1DescribeOfferingCommandError = async (output, cont
|
|
|
1464
1470
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1465
1471
|
default:
|
|
1466
1472
|
const parsedBody = parsedOutput.body;
|
|
1473
|
+
const $metadata = deserializeMetadata(output);
|
|
1474
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1467
1475
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1468
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1476
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1469
1477
|
$fault: "client",
|
|
1470
|
-
$metadata
|
|
1478
|
+
$metadata,
|
|
1471
1479
|
});
|
|
1472
1480
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1473
1481
|
}
|
|
@@ -1493,8 +1501,7 @@ const deserializeAws_restJson1DescribeReservationCommandError = async (output, c
|
|
|
1493
1501
|
body: await parseBody(output.body, context),
|
|
1494
1502
|
};
|
|
1495
1503
|
let response;
|
|
1496
|
-
|
|
1497
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1498
1505
|
switch (errorCode) {
|
|
1499
1506
|
case "BadRequestException":
|
|
1500
1507
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1513,10 +1520,12 @@ const deserializeAws_restJson1DescribeReservationCommandError = async (output, c
|
|
|
1513
1520
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1514
1521
|
default:
|
|
1515
1522
|
const parsedBody = parsedOutput.body;
|
|
1523
|
+
const $metadata = deserializeMetadata(output);
|
|
1524
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1516
1525
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1517
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1526
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1518
1527
|
$fault: "client",
|
|
1519
|
-
$metadata
|
|
1528
|
+
$metadata,
|
|
1520
1529
|
});
|
|
1521
1530
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1522
1531
|
}
|
|
@@ -1546,8 +1555,7 @@ const deserializeAws_restJson1GrantFlowEntitlementsCommandError = async (output,
|
|
|
1546
1555
|
body: await parseBody(output.body, context),
|
|
1547
1556
|
};
|
|
1548
1557
|
let response;
|
|
1549
|
-
|
|
1550
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1551
1559
|
switch (errorCode) {
|
|
1552
1560
|
case "BadRequestException":
|
|
1553
1561
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1572,10 +1580,12 @@ const deserializeAws_restJson1GrantFlowEntitlementsCommandError = async (output,
|
|
|
1572
1580
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1573
1581
|
default:
|
|
1574
1582
|
const parsedBody = parsedOutput.body;
|
|
1583
|
+
const $metadata = deserializeMetadata(output);
|
|
1584
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1575
1585
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1576
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1586
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1577
1587
|
$fault: "client",
|
|
1578
|
-
$metadata
|
|
1588
|
+
$metadata,
|
|
1579
1589
|
});
|
|
1580
1590
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1581
1591
|
}
|
|
@@ -1605,8 +1615,7 @@ const deserializeAws_restJson1ListEntitlementsCommandError = async (output, cont
|
|
|
1605
1615
|
body: await parseBody(output.body, context),
|
|
1606
1616
|
};
|
|
1607
1617
|
let response;
|
|
1608
|
-
|
|
1609
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
1619
|
switch (errorCode) {
|
|
1611
1620
|
case "BadRequestException":
|
|
1612
1621
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1622,10 +1631,12 @@ const deserializeAws_restJson1ListEntitlementsCommandError = async (output, cont
|
|
|
1622
1631
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1623
1632
|
default:
|
|
1624
1633
|
const parsedBody = parsedOutput.body;
|
|
1634
|
+
const $metadata = deserializeMetadata(output);
|
|
1635
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1625
1636
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1626
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1637
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1627
1638
|
$fault: "client",
|
|
1628
|
-
$metadata
|
|
1639
|
+
$metadata,
|
|
1629
1640
|
});
|
|
1630
1641
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1631
1642
|
}
|
|
@@ -1655,8 +1666,7 @@ const deserializeAws_restJson1ListFlowsCommandError = async (output, context) =>
|
|
|
1655
1666
|
body: await parseBody(output.body, context),
|
|
1656
1667
|
};
|
|
1657
1668
|
let response;
|
|
1658
|
-
|
|
1659
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1669
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
1670
|
switch (errorCode) {
|
|
1661
1671
|
case "BadRequestException":
|
|
1662
1672
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1672,10 +1682,12 @@ const deserializeAws_restJson1ListFlowsCommandError = async (output, context) =>
|
|
|
1672
1682
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1673
1683
|
default:
|
|
1674
1684
|
const parsedBody = parsedOutput.body;
|
|
1685
|
+
const $metadata = deserializeMetadata(output);
|
|
1686
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1675
1687
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1676
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1688
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1677
1689
|
$fault: "client",
|
|
1678
|
-
$metadata
|
|
1690
|
+
$metadata,
|
|
1679
1691
|
});
|
|
1680
1692
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1681
1693
|
}
|
|
@@ -1705,8 +1717,7 @@ const deserializeAws_restJson1ListOfferingsCommandError = async (output, context
|
|
|
1705
1717
|
body: await parseBody(output.body, context),
|
|
1706
1718
|
};
|
|
1707
1719
|
let response;
|
|
1708
|
-
|
|
1709
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1720
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
1721
|
switch (errorCode) {
|
|
1711
1722
|
case "BadRequestException":
|
|
1712
1723
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1722,10 +1733,12 @@ const deserializeAws_restJson1ListOfferingsCommandError = async (output, context
|
|
|
1722
1733
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1723
1734
|
default:
|
|
1724
1735
|
const parsedBody = parsedOutput.body;
|
|
1736
|
+
const $metadata = deserializeMetadata(output);
|
|
1737
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1725
1738
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1726
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1739
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1727
1740
|
$fault: "client",
|
|
1728
|
-
$metadata
|
|
1741
|
+
$metadata,
|
|
1729
1742
|
});
|
|
1730
1743
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1731
1744
|
}
|
|
@@ -1755,8 +1768,7 @@ const deserializeAws_restJson1ListReservationsCommandError = async (output, cont
|
|
|
1755
1768
|
body: await parseBody(output.body, context),
|
|
1756
1769
|
};
|
|
1757
1770
|
let response;
|
|
1758
|
-
|
|
1759
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1771
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
1772
|
switch (errorCode) {
|
|
1761
1773
|
case "BadRequestException":
|
|
1762
1774
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1772,10 +1784,12 @@ const deserializeAws_restJson1ListReservationsCommandError = async (output, cont
|
|
|
1772
1784
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1773
1785
|
default:
|
|
1774
1786
|
const parsedBody = parsedOutput.body;
|
|
1787
|
+
const $metadata = deserializeMetadata(output);
|
|
1788
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1775
1789
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1776
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1790
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1777
1791
|
$fault: "client",
|
|
1778
|
-
$metadata
|
|
1792
|
+
$metadata,
|
|
1779
1793
|
});
|
|
1780
1794
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1781
1795
|
}
|
|
@@ -1801,8 +1815,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1801
1815
|
body: await parseBody(output.body, context),
|
|
1802
1816
|
};
|
|
1803
1817
|
let response;
|
|
1804
|
-
|
|
1805
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1806
1819
|
switch (errorCode) {
|
|
1807
1820
|
case "BadRequestException":
|
|
1808
1821
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1815,10 +1828,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1815
1828
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1816
1829
|
default:
|
|
1817
1830
|
const parsedBody = parsedOutput.body;
|
|
1831
|
+
const $metadata = deserializeMetadata(output);
|
|
1832
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1818
1833
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1819
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1834
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1820
1835
|
$fault: "client",
|
|
1821
|
-
$metadata
|
|
1836
|
+
$metadata,
|
|
1822
1837
|
});
|
|
1823
1838
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1824
1839
|
}
|
|
@@ -1844,8 +1859,7 @@ const deserializeAws_restJson1PurchaseOfferingCommandError = async (output, cont
|
|
|
1844
1859
|
body: await parseBody(output.body, context),
|
|
1845
1860
|
};
|
|
1846
1861
|
let response;
|
|
1847
|
-
|
|
1848
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1862
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1849
1863
|
switch (errorCode) {
|
|
1850
1864
|
case "BadRequestException":
|
|
1851
1865
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1867,10 +1881,12 @@ const deserializeAws_restJson1PurchaseOfferingCommandError = async (output, cont
|
|
|
1867
1881
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(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 MediaConnectServiceException_1.MediaConnectServiceException({
|
|
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_restJson1RemoveFlowMediaStreamCommandError = async (output,
|
|
|
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 "BadRequestException":
|
|
1907
1922
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1923,10 +1938,12 @@ const deserializeAws_restJson1RemoveFlowMediaStreamCommandError = async (output,
|
|
|
1923
1938
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1924
1939
|
default:
|
|
1925
1940
|
const parsedBody = parsedOutput.body;
|
|
1941
|
+
const $metadata = deserializeMetadata(output);
|
|
1942
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1926
1943
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1927
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1944
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1928
1945
|
$fault: "client",
|
|
1929
|
-
$metadata
|
|
1946
|
+
$metadata,
|
|
1930
1947
|
});
|
|
1931
1948
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1932
1949
|
}
|
|
@@ -1956,8 +1973,7 @@ const deserializeAws_restJson1RemoveFlowOutputCommandError = async (output, cont
|
|
|
1956
1973
|
body: await parseBody(output.body, context),
|
|
1957
1974
|
};
|
|
1958
1975
|
let response;
|
|
1959
|
-
|
|
1960
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1976
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1961
1977
|
switch (errorCode) {
|
|
1962
1978
|
case "BadRequestException":
|
|
1963
1979
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1979,10 +1995,12 @@ const deserializeAws_restJson1RemoveFlowOutputCommandError = async (output, cont
|
|
|
1979
1995
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1980
1996
|
default:
|
|
1981
1997
|
const parsedBody = parsedOutput.body;
|
|
1998
|
+
const $metadata = deserializeMetadata(output);
|
|
1999
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1982
2000
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1983
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2001
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1984
2002
|
$fault: "client",
|
|
1985
|
-
$metadata
|
|
2003
|
+
$metadata,
|
|
1986
2004
|
});
|
|
1987
2005
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1988
2006
|
}
|
|
@@ -2012,8 +2030,7 @@ const deserializeAws_restJson1RemoveFlowSourceCommandError = async (output, cont
|
|
|
2012
2030
|
body: await parseBody(output.body, context),
|
|
2013
2031
|
};
|
|
2014
2032
|
let response;
|
|
2015
|
-
|
|
2016
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2033
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2017
2034
|
switch (errorCode) {
|
|
2018
2035
|
case "BadRequestException":
|
|
2019
2036
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2035,10 +2052,12 @@ const deserializeAws_restJson1RemoveFlowSourceCommandError = async (output, cont
|
|
|
2035
2052
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2036
2053
|
default:
|
|
2037
2054
|
const parsedBody = parsedOutput.body;
|
|
2055
|
+
const $metadata = deserializeMetadata(output);
|
|
2056
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2038
2057
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2039
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2058
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2040
2059
|
$fault: "client",
|
|
2041
|
-
$metadata
|
|
2060
|
+
$metadata,
|
|
2042
2061
|
});
|
|
2043
2062
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2044
2063
|
}
|
|
@@ -2072,8 +2091,7 @@ const deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = async (output
|
|
|
2072
2091
|
body: await parseBody(output.body, context),
|
|
2073
2092
|
};
|
|
2074
2093
|
let response;
|
|
2075
|
-
|
|
2076
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2094
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
2095
|
switch (errorCode) {
|
|
2078
2096
|
case "BadRequestException":
|
|
2079
2097
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2095,10 +2113,12 @@ const deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = async (output
|
|
|
2095
2113
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2096
2114
|
default:
|
|
2097
2115
|
const parsedBody = parsedOutput.body;
|
|
2116
|
+
const $metadata = deserializeMetadata(output);
|
|
2117
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2098
2118
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2099
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2119
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2100
2120
|
$fault: "client",
|
|
2101
|
-
$metadata
|
|
2121
|
+
$metadata,
|
|
2102
2122
|
});
|
|
2103
2123
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2104
2124
|
}
|
|
@@ -2128,8 +2148,7 @@ const deserializeAws_restJson1RevokeFlowEntitlementCommandError = async (output,
|
|
|
2128
2148
|
body: await parseBody(output.body, context),
|
|
2129
2149
|
};
|
|
2130
2150
|
let response;
|
|
2131
|
-
|
|
2132
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2133
2152
|
switch (errorCode) {
|
|
2134
2153
|
case "BadRequestException":
|
|
2135
2154
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2151,10 +2170,12 @@ const deserializeAws_restJson1RevokeFlowEntitlementCommandError = async (output,
|
|
|
2151
2170
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2152
2171
|
default:
|
|
2153
2172
|
const parsedBody = parsedOutput.body;
|
|
2173
|
+
const $metadata = deserializeMetadata(output);
|
|
2174
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2154
2175
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2155
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2176
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2156
2177
|
$fault: "client",
|
|
2157
|
-
$metadata
|
|
2178
|
+
$metadata,
|
|
2158
2179
|
});
|
|
2159
2180
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2160
2181
|
}
|
|
@@ -2184,8 +2205,7 @@ const deserializeAws_restJson1StartFlowCommandError = async (output, context) =>
|
|
|
2184
2205
|
body: await parseBody(output.body, context),
|
|
2185
2206
|
};
|
|
2186
2207
|
let response;
|
|
2187
|
-
|
|
2188
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2208
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2189
2209
|
switch (errorCode) {
|
|
2190
2210
|
case "BadRequestException":
|
|
2191
2211
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2207,10 +2227,12 @@ const deserializeAws_restJson1StartFlowCommandError = async (output, context) =>
|
|
|
2207
2227
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2208
2228
|
default:
|
|
2209
2229
|
const parsedBody = parsedOutput.body;
|
|
2230
|
+
const $metadata = deserializeMetadata(output);
|
|
2231
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2210
2232
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2211
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2233
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2212
2234
|
$fault: "client",
|
|
2213
|
-
$metadata
|
|
2235
|
+
$metadata,
|
|
2214
2236
|
});
|
|
2215
2237
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2216
2238
|
}
|
|
@@ -2240,8 +2262,7 @@ const deserializeAws_restJson1StopFlowCommandError = async (output, context) =>
|
|
|
2240
2262
|
body: await parseBody(output.body, context),
|
|
2241
2263
|
};
|
|
2242
2264
|
let response;
|
|
2243
|
-
|
|
2244
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2265
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2245
2266
|
switch (errorCode) {
|
|
2246
2267
|
case "BadRequestException":
|
|
2247
2268
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2263,10 +2284,12 @@ const deserializeAws_restJson1StopFlowCommandError = async (output, context) =>
|
|
|
2263
2284
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2264
2285
|
default:
|
|
2265
2286
|
const parsedBody = parsedOutput.body;
|
|
2287
|
+
const $metadata = deserializeMetadata(output);
|
|
2288
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2266
2289
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2267
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2290
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2268
2291
|
$fault: "client",
|
|
2269
|
-
$metadata
|
|
2292
|
+
$metadata,
|
|
2270
2293
|
});
|
|
2271
2294
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2272
2295
|
}
|
|
@@ -2288,8 +2311,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2288
2311
|
body: await parseBody(output.body, context),
|
|
2289
2312
|
};
|
|
2290
2313
|
let response;
|
|
2291
|
-
|
|
2292
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2314
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2293
2315
|
switch (errorCode) {
|
|
2294
2316
|
case "BadRequestException":
|
|
2295
2317
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2302,10 +2324,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2302
2324
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2303
2325
|
default:
|
|
2304
2326
|
const parsedBody = parsedOutput.body;
|
|
2327
|
+
const $metadata = deserializeMetadata(output);
|
|
2328
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2305
2329
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2306
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2330
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2307
2331
|
$fault: "client",
|
|
2308
|
-
$metadata
|
|
2332
|
+
$metadata,
|
|
2309
2333
|
});
|
|
2310
2334
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2311
2335
|
}
|
|
@@ -2327,8 +2351,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2327
2351
|
body: await parseBody(output.body, context),
|
|
2328
2352
|
};
|
|
2329
2353
|
let response;
|
|
2330
|
-
|
|
2331
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2332
2355
|
switch (errorCode) {
|
|
2333
2356
|
case "BadRequestException":
|
|
2334
2357
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2341,10 +2364,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2341
2364
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2342
2365
|
default:
|
|
2343
2366
|
const parsedBody = parsedOutput.body;
|
|
2367
|
+
const $metadata = deserializeMetadata(output);
|
|
2368
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2344
2369
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2345
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2370
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2346
2371
|
$fault: "client",
|
|
2347
|
-
$metadata
|
|
2372
|
+
$metadata,
|
|
2348
2373
|
});
|
|
2349
2374
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2350
2375
|
}
|
|
@@ -2370,8 +2395,7 @@ const deserializeAws_restJson1UpdateFlowCommandError = async (output, context) =
|
|
|
2370
2395
|
body: await parseBody(output.body, context),
|
|
2371
2396
|
};
|
|
2372
2397
|
let response;
|
|
2373
|
-
|
|
2374
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2398
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2375
2399
|
switch (errorCode) {
|
|
2376
2400
|
case "BadRequestException":
|
|
2377
2401
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2393,10 +2417,12 @@ const deserializeAws_restJson1UpdateFlowCommandError = async (output, context) =
|
|
|
2393
2417
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2394
2418
|
default:
|
|
2395
2419
|
const parsedBody = parsedOutput.body;
|
|
2420
|
+
const $metadata = deserializeMetadata(output);
|
|
2421
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2396
2422
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2397
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2423
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2398
2424
|
$fault: "client",
|
|
2399
|
-
$metadata
|
|
2425
|
+
$metadata,
|
|
2400
2426
|
});
|
|
2401
2427
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2402
2428
|
}
|
|
@@ -2426,8 +2452,7 @@ const deserializeAws_restJson1UpdateFlowEntitlementCommandError = async (output,
|
|
|
2426
2452
|
body: await parseBody(output.body, context),
|
|
2427
2453
|
};
|
|
2428
2454
|
let response;
|
|
2429
|
-
|
|
2430
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2455
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2431
2456
|
switch (errorCode) {
|
|
2432
2457
|
case "BadRequestException":
|
|
2433
2458
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2449,10 +2474,12 @@ const deserializeAws_restJson1UpdateFlowEntitlementCommandError = async (output,
|
|
|
2449
2474
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2450
2475
|
default:
|
|
2451
2476
|
const parsedBody = parsedOutput.body;
|
|
2477
|
+
const $metadata = deserializeMetadata(output);
|
|
2478
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2452
2479
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2453
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2480
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2454
2481
|
$fault: "client",
|
|
2455
|
-
$metadata
|
|
2482
|
+
$metadata,
|
|
2456
2483
|
});
|
|
2457
2484
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2458
2485
|
}
|
|
@@ -2482,8 +2509,7 @@ const deserializeAws_restJson1UpdateFlowMediaStreamCommandError = async (output,
|
|
|
2482
2509
|
body: await parseBody(output.body, context),
|
|
2483
2510
|
};
|
|
2484
2511
|
let response;
|
|
2485
|
-
|
|
2486
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2512
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2487
2513
|
switch (errorCode) {
|
|
2488
2514
|
case "BadRequestException":
|
|
2489
2515
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2505,10 +2531,12 @@ const deserializeAws_restJson1UpdateFlowMediaStreamCommandError = async (output,
|
|
|
2505
2531
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2506
2532
|
default:
|
|
2507
2533
|
const parsedBody = parsedOutput.body;
|
|
2534
|
+
const $metadata = deserializeMetadata(output);
|
|
2535
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2508
2536
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2509
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2537
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2510
2538
|
$fault: "client",
|
|
2511
|
-
$metadata
|
|
2539
|
+
$metadata,
|
|
2512
2540
|
});
|
|
2513
2541
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2514
2542
|
}
|
|
@@ -2538,8 +2566,7 @@ const deserializeAws_restJson1UpdateFlowOutputCommandError = async (output, cont
|
|
|
2538
2566
|
body: await parseBody(output.body, context),
|
|
2539
2567
|
};
|
|
2540
2568
|
let response;
|
|
2541
|
-
|
|
2542
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2569
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2543
2570
|
switch (errorCode) {
|
|
2544
2571
|
case "BadRequestException":
|
|
2545
2572
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2561,10 +2588,12 @@ const deserializeAws_restJson1UpdateFlowOutputCommandError = async (output, cont
|
|
|
2561
2588
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2562
2589
|
default:
|
|
2563
2590
|
const parsedBody = parsedOutput.body;
|
|
2591
|
+
const $metadata = deserializeMetadata(output);
|
|
2592
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2564
2593
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2565
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2594
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2566
2595
|
$fault: "client",
|
|
2567
|
-
$metadata
|
|
2596
|
+
$metadata,
|
|
2568
2597
|
});
|
|
2569
2598
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2570
2599
|
}
|
|
@@ -2594,8 +2623,7 @@ const deserializeAws_restJson1UpdateFlowSourceCommandError = async (output, cont
|
|
|
2594
2623
|
body: await parseBody(output.body, context),
|
|
2595
2624
|
};
|
|
2596
2625
|
let response;
|
|
2597
|
-
|
|
2598
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2626
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2599
2627
|
switch (errorCode) {
|
|
2600
2628
|
case "BadRequestException":
|
|
2601
2629
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2617,10 +2645,12 @@ const deserializeAws_restJson1UpdateFlowSourceCommandError = async (output, cont
|
|
|
2617
2645
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2618
2646
|
default:
|
|
2619
2647
|
const parsedBody = parsedOutput.body;
|
|
2648
|
+
const $metadata = deserializeMetadata(output);
|
|
2649
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2620
2650
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2621
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2651
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2622
2652
|
$fault: "client",
|
|
2623
|
-
$metadata
|
|
2653
|
+
$metadata,
|
|
2624
2654
|
});
|
|
2625
2655
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2626
2656
|
}
|
|
@@ -3643,5 +3673,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3643
3673
|
if (data["__type"] !== undefined) {
|
|
3644
3674
|
return sanitizeErrorCode(data["__type"]);
|
|
3645
3675
|
}
|
|
3646
|
-
return "";
|
|
3647
3676
|
};
|