@aws-sdk/client-mediaconnect 3.503.1 → 3.507.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/dist-cjs/index.js +79 -1752
- package/dist-es/protocols/Aws_restJson1.js +90 -1763
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1351,7 +1351,7 @@ var se_UpdateGatewayInstanceCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
1351
1351
|
}, "se_UpdateGatewayInstanceCommand");
|
|
1352
1352
|
var de_AddBridgeOutputsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1353
1353
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1354
|
-
return
|
|
1354
|
+
return de_CommandError(output, context);
|
|
1355
1355
|
}
|
|
1356
1356
|
const contents = (0, import_smithy_client.map)({
|
|
1357
1357
|
$metadata: deserializeMetadata(output)
|
|
@@ -1364,46 +1364,9 @@ var de_AddBridgeOutputsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1364
1364
|
Object.assign(contents, doc);
|
|
1365
1365
|
return contents;
|
|
1366
1366
|
}, "de_AddBridgeOutputsCommand");
|
|
1367
|
-
var de_AddBridgeOutputsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1368
|
-
const parsedOutput = {
|
|
1369
|
-
...output,
|
|
1370
|
-
body: await parseErrorBody(output.body, context)
|
|
1371
|
-
};
|
|
1372
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1373
|
-
switch (errorCode) {
|
|
1374
|
-
case "BadRequestException":
|
|
1375
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1376
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "ConflictException":
|
|
1378
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1379
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ForbiddenException":
|
|
1381
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1382
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "InternalServerErrorException":
|
|
1384
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1385
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "NotFoundException":
|
|
1387
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1388
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "ServiceUnavailableException":
|
|
1390
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1391
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "TooManyRequestsException":
|
|
1393
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1394
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1395
|
-
default:
|
|
1396
|
-
const parsedBody = parsedOutput.body;
|
|
1397
|
-
return throwDefaultError({
|
|
1398
|
-
output,
|
|
1399
|
-
parsedBody,
|
|
1400
|
-
errorCode
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
}, "de_AddBridgeOutputsCommandError");
|
|
1404
1367
|
var de_AddBridgeSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1405
1368
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1406
|
-
return
|
|
1369
|
+
return de_CommandError(output, context);
|
|
1407
1370
|
}
|
|
1408
1371
|
const contents = (0, import_smithy_client.map)({
|
|
1409
1372
|
$metadata: deserializeMetadata(output)
|
|
@@ -1416,46 +1379,9 @@ var de_AddBridgeSourcesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1416
1379
|
Object.assign(contents, doc);
|
|
1417
1380
|
return contents;
|
|
1418
1381
|
}, "de_AddBridgeSourcesCommand");
|
|
1419
|
-
var de_AddBridgeSourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1420
|
-
const parsedOutput = {
|
|
1421
|
-
...output,
|
|
1422
|
-
body: await parseErrorBody(output.body, context)
|
|
1423
|
-
};
|
|
1424
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1425
|
-
switch (errorCode) {
|
|
1426
|
-
case "BadRequestException":
|
|
1427
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1428
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1429
|
-
case "ConflictException":
|
|
1430
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1431
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1432
|
-
case "ForbiddenException":
|
|
1433
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1434
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1435
|
-
case "InternalServerErrorException":
|
|
1436
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1437
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "NotFoundException":
|
|
1439
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1440
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "ServiceUnavailableException":
|
|
1442
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1443
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1444
|
-
case "TooManyRequestsException":
|
|
1445
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1446
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1447
|
-
default:
|
|
1448
|
-
const parsedBody = parsedOutput.body;
|
|
1449
|
-
return throwDefaultError({
|
|
1450
|
-
output,
|
|
1451
|
-
parsedBody,
|
|
1452
|
-
errorCode
|
|
1453
|
-
});
|
|
1454
|
-
}
|
|
1455
|
-
}, "de_AddBridgeSourcesCommandError");
|
|
1456
1382
|
var de_AddFlowMediaStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1457
1383
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1458
|
-
return
|
|
1384
|
+
return de_CommandError(output, context);
|
|
1459
1385
|
}
|
|
1460
1386
|
const contents = (0, import_smithy_client.map)({
|
|
1461
1387
|
$metadata: deserializeMetadata(output)
|
|
@@ -1468,43 +1394,9 @@ var de_AddFlowMediaStreamsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1468
1394
|
Object.assign(contents, doc);
|
|
1469
1395
|
return contents;
|
|
1470
1396
|
}, "de_AddFlowMediaStreamsCommand");
|
|
1471
|
-
var de_AddFlowMediaStreamsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1472
|
-
const parsedOutput = {
|
|
1473
|
-
...output,
|
|
1474
|
-
body: await parseErrorBody(output.body, context)
|
|
1475
|
-
};
|
|
1476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1477
|
-
switch (errorCode) {
|
|
1478
|
-
case "BadRequestException":
|
|
1479
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1480
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ForbiddenException":
|
|
1482
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1483
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "InternalServerErrorException":
|
|
1485
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1486
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "NotFoundException":
|
|
1488
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1489
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "ServiceUnavailableException":
|
|
1491
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1492
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "TooManyRequestsException":
|
|
1494
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1495
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1496
|
-
default:
|
|
1497
|
-
const parsedBody = parsedOutput.body;
|
|
1498
|
-
return throwDefaultError({
|
|
1499
|
-
output,
|
|
1500
|
-
parsedBody,
|
|
1501
|
-
errorCode
|
|
1502
|
-
});
|
|
1503
|
-
}
|
|
1504
|
-
}, "de_AddFlowMediaStreamsCommandError");
|
|
1505
1397
|
var de_AddFlowOutputsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1506
1398
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1507
|
-
return
|
|
1399
|
+
return de_CommandError(output, context);
|
|
1508
1400
|
}
|
|
1509
1401
|
const contents = (0, import_smithy_client.map)({
|
|
1510
1402
|
$metadata: deserializeMetadata(output)
|
|
@@ -1517,46 +1409,9 @@ var de_AddFlowOutputsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1517
1409
|
Object.assign(contents, doc);
|
|
1518
1410
|
return contents;
|
|
1519
1411
|
}, "de_AddFlowOutputsCommand");
|
|
1520
|
-
var de_AddFlowOutputsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1521
|
-
const parsedOutput = {
|
|
1522
|
-
...output,
|
|
1523
|
-
body: await parseErrorBody(output.body, context)
|
|
1524
|
-
};
|
|
1525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
|
-
switch (errorCode) {
|
|
1527
|
-
case "AddFlowOutputs420Exception":
|
|
1528
|
-
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
|
|
1529
|
-
throw await de_AddFlowOutputs420ExceptionRes(parsedOutput, context);
|
|
1530
|
-
case "BadRequestException":
|
|
1531
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1532
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1533
|
-
case "ForbiddenException":
|
|
1534
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1535
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "InternalServerErrorException":
|
|
1537
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1538
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "NotFoundException":
|
|
1540
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1541
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1542
|
-
case "ServiceUnavailableException":
|
|
1543
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1544
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "TooManyRequestsException":
|
|
1546
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1547
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1548
|
-
default:
|
|
1549
|
-
const parsedBody = parsedOutput.body;
|
|
1550
|
-
return throwDefaultError({
|
|
1551
|
-
output,
|
|
1552
|
-
parsedBody,
|
|
1553
|
-
errorCode
|
|
1554
|
-
});
|
|
1555
|
-
}
|
|
1556
|
-
}, "de_AddFlowOutputsCommandError");
|
|
1557
1412
|
var de_AddFlowSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1558
1413
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1559
|
-
return
|
|
1414
|
+
return de_CommandError(output, context);
|
|
1560
1415
|
}
|
|
1561
1416
|
const contents = (0, import_smithy_client.map)({
|
|
1562
1417
|
$metadata: deserializeMetadata(output)
|
|
@@ -1569,43 +1424,9 @@ var de_AddFlowSourcesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1569
1424
|
Object.assign(contents, doc);
|
|
1570
1425
|
return contents;
|
|
1571
1426
|
}, "de_AddFlowSourcesCommand");
|
|
1572
|
-
var de_AddFlowSourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1573
|
-
const parsedOutput = {
|
|
1574
|
-
...output,
|
|
1575
|
-
body: await parseErrorBody(output.body, context)
|
|
1576
|
-
};
|
|
1577
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1578
|
-
switch (errorCode) {
|
|
1579
|
-
case "BadRequestException":
|
|
1580
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1581
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "ForbiddenException":
|
|
1583
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1584
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "InternalServerErrorException":
|
|
1586
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1587
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "NotFoundException":
|
|
1589
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1590
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "ServiceUnavailableException":
|
|
1592
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1593
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "TooManyRequestsException":
|
|
1595
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1596
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1597
|
-
default:
|
|
1598
|
-
const parsedBody = parsedOutput.body;
|
|
1599
|
-
return throwDefaultError({
|
|
1600
|
-
output,
|
|
1601
|
-
parsedBody,
|
|
1602
|
-
errorCode
|
|
1603
|
-
});
|
|
1604
|
-
}
|
|
1605
|
-
}, "de_AddFlowSourcesCommandError");
|
|
1606
1427
|
var de_AddFlowVpcInterfacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1607
1428
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1608
|
-
return
|
|
1429
|
+
return de_CommandError(output, context);
|
|
1609
1430
|
}
|
|
1610
1431
|
const contents = (0, import_smithy_client.map)({
|
|
1611
1432
|
$metadata: deserializeMetadata(output)
|
|
@@ -1618,43 +1439,9 @@ var de_AddFlowVpcInterfacesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1618
1439
|
Object.assign(contents, doc);
|
|
1619
1440
|
return contents;
|
|
1620
1441
|
}, "de_AddFlowVpcInterfacesCommand");
|
|
1621
|
-
var de_AddFlowVpcInterfacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1622
|
-
const parsedOutput = {
|
|
1623
|
-
...output,
|
|
1624
|
-
body: await parseErrorBody(output.body, context)
|
|
1625
|
-
};
|
|
1626
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
|
-
switch (errorCode) {
|
|
1628
|
-
case "BadRequestException":
|
|
1629
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1630
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "ForbiddenException":
|
|
1632
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1633
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "InternalServerErrorException":
|
|
1635
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1636
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "NotFoundException":
|
|
1638
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1639
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ServiceUnavailableException":
|
|
1641
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1642
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1643
|
-
case "TooManyRequestsException":
|
|
1644
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1645
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1646
|
-
default:
|
|
1647
|
-
const parsedBody = parsedOutput.body;
|
|
1648
|
-
return throwDefaultError({
|
|
1649
|
-
output,
|
|
1650
|
-
parsedBody,
|
|
1651
|
-
errorCode
|
|
1652
|
-
});
|
|
1653
|
-
}
|
|
1654
|
-
}, "de_AddFlowVpcInterfacesCommandError");
|
|
1655
1442
|
var de_CreateBridgeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1656
1443
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1657
|
-
return
|
|
1444
|
+
return de_CommandError(output, context);
|
|
1658
1445
|
}
|
|
1659
1446
|
const contents = (0, import_smithy_client.map)({
|
|
1660
1447
|
$metadata: deserializeMetadata(output)
|
|
@@ -1666,46 +1453,9 @@ var de_CreateBridgeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1666
1453
|
Object.assign(contents, doc);
|
|
1667
1454
|
return contents;
|
|
1668
1455
|
}, "de_CreateBridgeCommand");
|
|
1669
|
-
var de_CreateBridgeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1670
|
-
const parsedOutput = {
|
|
1671
|
-
...output,
|
|
1672
|
-
body: await parseErrorBody(output.body, context)
|
|
1673
|
-
};
|
|
1674
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
|
-
switch (errorCode) {
|
|
1676
|
-
case "BadRequestException":
|
|
1677
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1678
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "ConflictException":
|
|
1680
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1681
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "CreateBridge420Exception":
|
|
1683
|
-
case "com.amazonaws.mediaconnect#CreateBridge420Exception":
|
|
1684
|
-
throw await de_CreateBridge420ExceptionRes(parsedOutput, context);
|
|
1685
|
-
case "ForbiddenException":
|
|
1686
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1687
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1688
|
-
case "InternalServerErrorException":
|
|
1689
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1690
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1691
|
-
case "ServiceUnavailableException":
|
|
1692
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1693
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1694
|
-
case "TooManyRequestsException":
|
|
1695
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1696
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1697
|
-
default:
|
|
1698
|
-
const parsedBody = parsedOutput.body;
|
|
1699
|
-
return throwDefaultError({
|
|
1700
|
-
output,
|
|
1701
|
-
parsedBody,
|
|
1702
|
-
errorCode
|
|
1703
|
-
});
|
|
1704
|
-
}
|
|
1705
|
-
}, "de_CreateBridgeCommandError");
|
|
1706
1456
|
var de_CreateFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1707
1457
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1708
|
-
return
|
|
1458
|
+
return de_CommandError(output, context);
|
|
1709
1459
|
}
|
|
1710
1460
|
const contents = (0, import_smithy_client.map)({
|
|
1711
1461
|
$metadata: deserializeMetadata(output)
|
|
@@ -1717,43 +1467,9 @@ var de_CreateFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1717
1467
|
Object.assign(contents, doc);
|
|
1718
1468
|
return contents;
|
|
1719
1469
|
}, "de_CreateFlowCommand");
|
|
1720
|
-
var de_CreateFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1721
|
-
const parsedOutput = {
|
|
1722
|
-
...output,
|
|
1723
|
-
body: await parseErrorBody(output.body, context)
|
|
1724
|
-
};
|
|
1725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1726
|
-
switch (errorCode) {
|
|
1727
|
-
case "BadRequestException":
|
|
1728
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1729
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "CreateFlow420Exception":
|
|
1731
|
-
case "com.amazonaws.mediaconnect#CreateFlow420Exception":
|
|
1732
|
-
throw await de_CreateFlow420ExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "ForbiddenException":
|
|
1734
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1735
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "InternalServerErrorException":
|
|
1737
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1738
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "ServiceUnavailableException":
|
|
1740
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1741
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "TooManyRequestsException":
|
|
1743
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1744
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1745
|
-
default:
|
|
1746
|
-
const parsedBody = parsedOutput.body;
|
|
1747
|
-
return throwDefaultError({
|
|
1748
|
-
output,
|
|
1749
|
-
parsedBody,
|
|
1750
|
-
errorCode
|
|
1751
|
-
});
|
|
1752
|
-
}
|
|
1753
|
-
}, "de_CreateFlowCommandError");
|
|
1754
1470
|
var de_CreateGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1755
1471
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1756
|
-
return
|
|
1472
|
+
return de_CommandError(output, context);
|
|
1757
1473
|
}
|
|
1758
1474
|
const contents = (0, import_smithy_client.map)({
|
|
1759
1475
|
$metadata: deserializeMetadata(output)
|
|
@@ -1765,46 +1481,9 @@ var de_CreateGatewayCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1765
1481
|
Object.assign(contents, doc);
|
|
1766
1482
|
return contents;
|
|
1767
1483
|
}, "de_CreateGatewayCommand");
|
|
1768
|
-
var de_CreateGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1769
|
-
const parsedOutput = {
|
|
1770
|
-
...output,
|
|
1771
|
-
body: await parseErrorBody(output.body, context)
|
|
1772
|
-
};
|
|
1773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
|
-
switch (errorCode) {
|
|
1775
|
-
case "BadRequestException":
|
|
1776
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1777
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "ConflictException":
|
|
1779
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1780
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1781
|
-
case "CreateGateway420Exception":
|
|
1782
|
-
case "com.amazonaws.mediaconnect#CreateGateway420Exception":
|
|
1783
|
-
throw await de_CreateGateway420ExceptionRes(parsedOutput, context);
|
|
1784
|
-
case "ForbiddenException":
|
|
1785
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1786
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1787
|
-
case "InternalServerErrorException":
|
|
1788
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1789
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1790
|
-
case "ServiceUnavailableException":
|
|
1791
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1792
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1793
|
-
case "TooManyRequestsException":
|
|
1794
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1795
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1796
|
-
default:
|
|
1797
|
-
const parsedBody = parsedOutput.body;
|
|
1798
|
-
return throwDefaultError({
|
|
1799
|
-
output,
|
|
1800
|
-
parsedBody,
|
|
1801
|
-
errorCode
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
}, "de_CreateGatewayCommandError");
|
|
1805
1484
|
var de_DeleteBridgeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1806
1485
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1807
|
-
return
|
|
1486
|
+
return de_CommandError(output, context);
|
|
1808
1487
|
}
|
|
1809
1488
|
const contents = (0, import_smithy_client.map)({
|
|
1810
1489
|
$metadata: deserializeMetadata(output)
|
|
@@ -1816,46 +1495,9 @@ var de_DeleteBridgeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1816
1495
|
Object.assign(contents, doc);
|
|
1817
1496
|
return contents;
|
|
1818
1497
|
}, "de_DeleteBridgeCommand");
|
|
1819
|
-
var de_DeleteBridgeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1820
|
-
const parsedOutput = {
|
|
1821
|
-
...output,
|
|
1822
|
-
body: await parseErrorBody(output.body, context)
|
|
1823
|
-
};
|
|
1824
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1825
|
-
switch (errorCode) {
|
|
1826
|
-
case "BadRequestException":
|
|
1827
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1828
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "ConflictException":
|
|
1830
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1831
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "ForbiddenException":
|
|
1833
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1834
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "InternalServerErrorException":
|
|
1836
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1837
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1838
|
-
case "NotFoundException":
|
|
1839
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1840
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1841
|
-
case "ServiceUnavailableException":
|
|
1842
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1843
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1844
|
-
case "TooManyRequestsException":
|
|
1845
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1846
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1847
|
-
default:
|
|
1848
|
-
const parsedBody = parsedOutput.body;
|
|
1849
|
-
return throwDefaultError({
|
|
1850
|
-
output,
|
|
1851
|
-
parsedBody,
|
|
1852
|
-
errorCode
|
|
1853
|
-
});
|
|
1854
|
-
}
|
|
1855
|
-
}, "de_DeleteBridgeCommandError");
|
|
1856
1498
|
var de_DeleteFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1857
1499
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1858
|
-
return
|
|
1500
|
+
return de_CommandError(output, context);
|
|
1859
1501
|
}
|
|
1860
1502
|
const contents = (0, import_smithy_client.map)({
|
|
1861
1503
|
$metadata: deserializeMetadata(output)
|
|
@@ -1868,43 +1510,9 @@ var de_DeleteFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1868
1510
|
Object.assign(contents, doc);
|
|
1869
1511
|
return contents;
|
|
1870
1512
|
}, "de_DeleteFlowCommand");
|
|
1871
|
-
var de_DeleteFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1872
|
-
const parsedOutput = {
|
|
1873
|
-
...output,
|
|
1874
|
-
body: await parseErrorBody(output.body, context)
|
|
1875
|
-
};
|
|
1876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1877
|
-
switch (errorCode) {
|
|
1878
|
-
case "BadRequestException":
|
|
1879
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1880
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "ForbiddenException":
|
|
1882
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1883
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "InternalServerErrorException":
|
|
1885
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1886
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "NotFoundException":
|
|
1888
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1889
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "ServiceUnavailableException":
|
|
1891
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1892
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "TooManyRequestsException":
|
|
1894
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1895
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1896
|
-
default:
|
|
1897
|
-
const parsedBody = parsedOutput.body;
|
|
1898
|
-
return throwDefaultError({
|
|
1899
|
-
output,
|
|
1900
|
-
parsedBody,
|
|
1901
|
-
errorCode
|
|
1902
|
-
});
|
|
1903
|
-
}
|
|
1904
|
-
}, "de_DeleteFlowCommandError");
|
|
1905
1513
|
var de_DeleteGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1906
1514
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1907
|
-
return
|
|
1515
|
+
return de_CommandError(output, context);
|
|
1908
1516
|
}
|
|
1909
1517
|
const contents = (0, import_smithy_client.map)({
|
|
1910
1518
|
$metadata: deserializeMetadata(output)
|
|
@@ -1916,46 +1524,9 @@ var de_DeleteGatewayCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1916
1524
|
Object.assign(contents, doc);
|
|
1917
1525
|
return contents;
|
|
1918
1526
|
}, "de_DeleteGatewayCommand");
|
|
1919
|
-
var de_DeleteGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1920
|
-
const parsedOutput = {
|
|
1921
|
-
...output,
|
|
1922
|
-
body: await parseErrorBody(output.body, context)
|
|
1923
|
-
};
|
|
1924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
|
-
switch (errorCode) {
|
|
1926
|
-
case "BadRequestException":
|
|
1927
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1928
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "ConflictException":
|
|
1930
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1931
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1932
|
-
case "ForbiddenException":
|
|
1933
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1934
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1935
|
-
case "InternalServerErrorException":
|
|
1936
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1937
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1938
|
-
case "NotFoundException":
|
|
1939
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1940
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1941
|
-
case "ServiceUnavailableException":
|
|
1942
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1943
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1944
|
-
case "TooManyRequestsException":
|
|
1945
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1946
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1947
|
-
default:
|
|
1948
|
-
const parsedBody = parsedOutput.body;
|
|
1949
|
-
return throwDefaultError({
|
|
1950
|
-
output,
|
|
1951
|
-
parsedBody,
|
|
1952
|
-
errorCode
|
|
1953
|
-
});
|
|
1954
|
-
}
|
|
1955
|
-
}, "de_DeleteGatewayCommandError");
|
|
1956
1527
|
var de_DeregisterGatewayInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1957
1528
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1958
|
-
return
|
|
1529
|
+
return de_CommandError(output, context);
|
|
1959
1530
|
}
|
|
1960
1531
|
const contents = (0, import_smithy_client.map)({
|
|
1961
1532
|
$metadata: deserializeMetadata(output)
|
|
@@ -1968,46 +1539,9 @@ var de_DeregisterGatewayInstanceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1968
1539
|
Object.assign(contents, doc);
|
|
1969
1540
|
return contents;
|
|
1970
1541
|
}, "de_DeregisterGatewayInstanceCommand");
|
|
1971
|
-
var de_DeregisterGatewayInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1972
|
-
const parsedOutput = {
|
|
1973
|
-
...output,
|
|
1974
|
-
body: await parseErrorBody(output.body, context)
|
|
1975
|
-
};
|
|
1976
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1977
|
-
switch (errorCode) {
|
|
1978
|
-
case "BadRequestException":
|
|
1979
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1980
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1981
|
-
case "ConflictException":
|
|
1982
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1983
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "ForbiddenException":
|
|
1985
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1986
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "InternalServerErrorException":
|
|
1988
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1989
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1990
|
-
case "NotFoundException":
|
|
1991
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1992
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1993
|
-
case "ServiceUnavailableException":
|
|
1994
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1995
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1996
|
-
case "TooManyRequestsException":
|
|
1997
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1998
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1999
|
-
default:
|
|
2000
|
-
const parsedBody = parsedOutput.body;
|
|
2001
|
-
return throwDefaultError({
|
|
2002
|
-
output,
|
|
2003
|
-
parsedBody,
|
|
2004
|
-
errorCode
|
|
2005
|
-
});
|
|
2006
|
-
}
|
|
2007
|
-
}, "de_DeregisterGatewayInstanceCommandError");
|
|
2008
1542
|
var de_DescribeBridgeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2009
1543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2010
|
-
return
|
|
1544
|
+
return de_CommandError(output, context);
|
|
2011
1545
|
}
|
|
2012
1546
|
const contents = (0, import_smithy_client.map)({
|
|
2013
1547
|
$metadata: deserializeMetadata(output)
|
|
@@ -2019,46 +1553,9 @@ var de_DescribeBridgeCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2019
1553
|
Object.assign(contents, doc);
|
|
2020
1554
|
return contents;
|
|
2021
1555
|
}, "de_DescribeBridgeCommand");
|
|
2022
|
-
var de_DescribeBridgeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2023
|
-
const parsedOutput = {
|
|
2024
|
-
...output,
|
|
2025
|
-
body: await parseErrorBody(output.body, context)
|
|
2026
|
-
};
|
|
2027
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2028
|
-
switch (errorCode) {
|
|
2029
|
-
case "BadRequestException":
|
|
2030
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2031
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2032
|
-
case "ConflictException":
|
|
2033
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2034
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2035
|
-
case "ForbiddenException":
|
|
2036
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2037
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2038
|
-
case "InternalServerErrorException":
|
|
2039
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2040
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2041
|
-
case "NotFoundException":
|
|
2042
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2043
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2044
|
-
case "ServiceUnavailableException":
|
|
2045
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2046
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2047
|
-
case "TooManyRequestsException":
|
|
2048
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2049
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2050
|
-
default:
|
|
2051
|
-
const parsedBody = parsedOutput.body;
|
|
2052
|
-
return throwDefaultError({
|
|
2053
|
-
output,
|
|
2054
|
-
parsedBody,
|
|
2055
|
-
errorCode
|
|
2056
|
-
});
|
|
2057
|
-
}
|
|
2058
|
-
}, "de_DescribeBridgeCommandError");
|
|
2059
1556
|
var de_DescribeFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2060
1557
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2061
|
-
return
|
|
1558
|
+
return de_CommandError(output, context);
|
|
2062
1559
|
}
|
|
2063
1560
|
const contents = (0, import_smithy_client.map)({
|
|
2064
1561
|
$metadata: deserializeMetadata(output)
|
|
@@ -2071,43 +1568,9 @@ var de_DescribeFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2071
1568
|
Object.assign(contents, doc);
|
|
2072
1569
|
return contents;
|
|
2073
1570
|
}, "de_DescribeFlowCommand");
|
|
2074
|
-
var de_DescribeFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2075
|
-
const parsedOutput = {
|
|
2076
|
-
...output,
|
|
2077
|
-
body: await parseErrorBody(output.body, context)
|
|
2078
|
-
};
|
|
2079
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2080
|
-
switch (errorCode) {
|
|
2081
|
-
case "BadRequestException":
|
|
2082
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2083
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2084
|
-
case "ForbiddenException":
|
|
2085
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2086
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2087
|
-
case "InternalServerErrorException":
|
|
2088
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2089
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "NotFoundException":
|
|
2091
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2092
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "ServiceUnavailableException":
|
|
2094
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2095
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "TooManyRequestsException":
|
|
2097
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2098
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2099
|
-
default:
|
|
2100
|
-
const parsedBody = parsedOutput.body;
|
|
2101
|
-
return throwDefaultError({
|
|
2102
|
-
output,
|
|
2103
|
-
parsedBody,
|
|
2104
|
-
errorCode
|
|
2105
|
-
});
|
|
2106
|
-
}
|
|
2107
|
-
}, "de_DescribeFlowCommandError");
|
|
2108
1571
|
var de_DescribeFlowSourceMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2109
1572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2110
|
-
return
|
|
1573
|
+
return de_CommandError(output, context);
|
|
2111
1574
|
}
|
|
2112
1575
|
const contents = (0, import_smithy_client.map)({
|
|
2113
1576
|
$metadata: deserializeMetadata(output)
|
|
@@ -2122,43 +1585,9 @@ var de_DescribeFlowSourceMetadataCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2122
1585
|
Object.assign(contents, doc);
|
|
2123
1586
|
return contents;
|
|
2124
1587
|
}, "de_DescribeFlowSourceMetadataCommand");
|
|
2125
|
-
var de_DescribeFlowSourceMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2126
|
-
const parsedOutput = {
|
|
2127
|
-
...output,
|
|
2128
|
-
body: await parseErrorBody(output.body, context)
|
|
2129
|
-
};
|
|
2130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2131
|
-
switch (errorCode) {
|
|
2132
|
-
case "BadRequestException":
|
|
2133
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2134
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2135
|
-
case "ForbiddenException":
|
|
2136
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2137
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2138
|
-
case "InternalServerErrorException":
|
|
2139
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2140
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2141
|
-
case "NotFoundException":
|
|
2142
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2143
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2144
|
-
case "ServiceUnavailableException":
|
|
2145
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2146
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "TooManyRequestsException":
|
|
2148
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2149
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2150
|
-
default:
|
|
2151
|
-
const parsedBody = parsedOutput.body;
|
|
2152
|
-
return throwDefaultError({
|
|
2153
|
-
output,
|
|
2154
|
-
parsedBody,
|
|
2155
|
-
errorCode
|
|
2156
|
-
});
|
|
2157
|
-
}
|
|
2158
|
-
}, "de_DescribeFlowSourceMetadataCommandError");
|
|
2159
1588
|
var de_DescribeGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2160
1589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2161
|
-
return
|
|
1590
|
+
return de_CommandError(output, context);
|
|
2162
1591
|
}
|
|
2163
1592
|
const contents = (0, import_smithy_client.map)({
|
|
2164
1593
|
$metadata: deserializeMetadata(output)
|
|
@@ -2170,46 +1599,9 @@ var de_DescribeGatewayCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2170
1599
|
Object.assign(contents, doc);
|
|
2171
1600
|
return contents;
|
|
2172
1601
|
}, "de_DescribeGatewayCommand");
|
|
2173
|
-
var de_DescribeGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2174
|
-
const parsedOutput = {
|
|
2175
|
-
...output,
|
|
2176
|
-
body: await parseErrorBody(output.body, context)
|
|
2177
|
-
};
|
|
2178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2179
|
-
switch (errorCode) {
|
|
2180
|
-
case "BadRequestException":
|
|
2181
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2182
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2183
|
-
case "ConflictException":
|
|
2184
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2185
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2186
|
-
case "ForbiddenException":
|
|
2187
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2188
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2189
|
-
case "InternalServerErrorException":
|
|
2190
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2191
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "NotFoundException":
|
|
2193
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2194
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "ServiceUnavailableException":
|
|
2196
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2197
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2198
|
-
case "TooManyRequestsException":
|
|
2199
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2200
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2201
|
-
default:
|
|
2202
|
-
const parsedBody = parsedOutput.body;
|
|
2203
|
-
return throwDefaultError({
|
|
2204
|
-
output,
|
|
2205
|
-
parsedBody,
|
|
2206
|
-
errorCode
|
|
2207
|
-
});
|
|
2208
|
-
}
|
|
2209
|
-
}, "de_DescribeGatewayCommandError");
|
|
2210
1602
|
var de_DescribeGatewayInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2211
1603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2212
|
-
return
|
|
1604
|
+
return de_CommandError(output, context);
|
|
2213
1605
|
}
|
|
2214
1606
|
const contents = (0, import_smithy_client.map)({
|
|
2215
1607
|
$metadata: deserializeMetadata(output)
|
|
@@ -2221,46 +1613,9 @@ var de_DescribeGatewayInstanceCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2221
1613
|
Object.assign(contents, doc);
|
|
2222
1614
|
return contents;
|
|
2223
1615
|
}, "de_DescribeGatewayInstanceCommand");
|
|
2224
|
-
var de_DescribeGatewayInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2225
|
-
const parsedOutput = {
|
|
2226
|
-
...output,
|
|
2227
|
-
body: await parseErrorBody(output.body, context)
|
|
2228
|
-
};
|
|
2229
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2230
|
-
switch (errorCode) {
|
|
2231
|
-
case "BadRequestException":
|
|
2232
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2233
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2234
|
-
case "ConflictException":
|
|
2235
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2236
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2237
|
-
case "ForbiddenException":
|
|
2238
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2239
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2240
|
-
case "InternalServerErrorException":
|
|
2241
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2242
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2243
|
-
case "NotFoundException":
|
|
2244
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2245
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2246
|
-
case "ServiceUnavailableException":
|
|
2247
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2248
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2249
|
-
case "TooManyRequestsException":
|
|
2250
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2251
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2252
|
-
default:
|
|
2253
|
-
const parsedBody = parsedOutput.body;
|
|
2254
|
-
return throwDefaultError({
|
|
2255
|
-
output,
|
|
2256
|
-
parsedBody,
|
|
2257
|
-
errorCode
|
|
2258
|
-
});
|
|
2259
|
-
}
|
|
2260
|
-
}, "de_DescribeGatewayInstanceCommandError");
|
|
2261
1616
|
var de_DescribeOfferingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2262
1617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2263
|
-
return
|
|
1618
|
+
return de_CommandError(output, context);
|
|
2264
1619
|
}
|
|
2265
1620
|
const contents = (0, import_smithy_client.map)({
|
|
2266
1621
|
$metadata: deserializeMetadata(output)
|
|
@@ -2272,40 +1627,9 @@ var de_DescribeOfferingCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2272
1627
|
Object.assign(contents, doc);
|
|
2273
1628
|
return contents;
|
|
2274
1629
|
}, "de_DescribeOfferingCommand");
|
|
2275
|
-
var de_DescribeOfferingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2276
|
-
const parsedOutput = {
|
|
2277
|
-
...output,
|
|
2278
|
-
body: await parseErrorBody(output.body, context)
|
|
2279
|
-
};
|
|
2280
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2281
|
-
switch (errorCode) {
|
|
2282
|
-
case "BadRequestException":
|
|
2283
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2284
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "InternalServerErrorException":
|
|
2286
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2287
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "NotFoundException":
|
|
2289
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2290
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "ServiceUnavailableException":
|
|
2292
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2293
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2294
|
-
case "TooManyRequestsException":
|
|
2295
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2296
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2297
|
-
default:
|
|
2298
|
-
const parsedBody = parsedOutput.body;
|
|
2299
|
-
return throwDefaultError({
|
|
2300
|
-
output,
|
|
2301
|
-
parsedBody,
|
|
2302
|
-
errorCode
|
|
2303
|
-
});
|
|
2304
|
-
}
|
|
2305
|
-
}, "de_DescribeOfferingCommandError");
|
|
2306
1630
|
var de_DescribeReservationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2307
1631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2308
|
-
return
|
|
1632
|
+
return de_CommandError(output, context);
|
|
2309
1633
|
}
|
|
2310
1634
|
const contents = (0, import_smithy_client.map)({
|
|
2311
1635
|
$metadata: deserializeMetadata(output)
|
|
@@ -2317,40 +1641,9 @@ var de_DescribeReservationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2317
1641
|
Object.assign(contents, doc);
|
|
2318
1642
|
return contents;
|
|
2319
1643
|
}, "de_DescribeReservationCommand");
|
|
2320
|
-
var de_DescribeReservationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2321
|
-
const parsedOutput = {
|
|
2322
|
-
...output,
|
|
2323
|
-
body: await parseErrorBody(output.body, context)
|
|
2324
|
-
};
|
|
2325
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2326
|
-
switch (errorCode) {
|
|
2327
|
-
case "BadRequestException":
|
|
2328
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2329
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "InternalServerErrorException":
|
|
2331
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2332
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2333
|
-
case "NotFoundException":
|
|
2334
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2335
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2336
|
-
case "ServiceUnavailableException":
|
|
2337
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2338
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "TooManyRequestsException":
|
|
2340
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2341
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2342
|
-
default:
|
|
2343
|
-
const parsedBody = parsedOutput.body;
|
|
2344
|
-
return throwDefaultError({
|
|
2345
|
-
output,
|
|
2346
|
-
parsedBody,
|
|
2347
|
-
errorCode
|
|
2348
|
-
});
|
|
2349
|
-
}
|
|
2350
|
-
}, "de_DescribeReservationCommandError");
|
|
2351
1644
|
var de_GrantFlowEntitlementsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2352
1645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2353
|
-
return
|
|
1646
|
+
return de_CommandError(output, context);
|
|
2354
1647
|
}
|
|
2355
1648
|
const contents = (0, import_smithy_client.map)({
|
|
2356
1649
|
$metadata: deserializeMetadata(output)
|
|
@@ -2363,46 +1656,9 @@ var de_GrantFlowEntitlementsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2363
1656
|
Object.assign(contents, doc);
|
|
2364
1657
|
return contents;
|
|
2365
1658
|
}, "de_GrantFlowEntitlementsCommand");
|
|
2366
|
-
var de_GrantFlowEntitlementsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2367
|
-
const parsedOutput = {
|
|
2368
|
-
...output,
|
|
2369
|
-
body: await parseErrorBody(output.body, context)
|
|
2370
|
-
};
|
|
2371
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2372
|
-
switch (errorCode) {
|
|
2373
|
-
case "BadRequestException":
|
|
2374
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2375
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "ForbiddenException":
|
|
2377
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2378
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "GrantFlowEntitlements420Exception":
|
|
2380
|
-
case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception":
|
|
2381
|
-
throw await de_GrantFlowEntitlements420ExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "InternalServerErrorException":
|
|
2383
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2384
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "NotFoundException":
|
|
2386
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2387
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2388
|
-
case "ServiceUnavailableException":
|
|
2389
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2390
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "TooManyRequestsException":
|
|
2392
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2393
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2394
|
-
default:
|
|
2395
|
-
const parsedBody = parsedOutput.body;
|
|
2396
|
-
return throwDefaultError({
|
|
2397
|
-
output,
|
|
2398
|
-
parsedBody,
|
|
2399
|
-
errorCode
|
|
2400
|
-
});
|
|
2401
|
-
}
|
|
2402
|
-
}, "de_GrantFlowEntitlementsCommandError");
|
|
2403
1659
|
var de_ListBridgesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2404
1660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2405
|
-
return
|
|
1661
|
+
return de_CommandError(output, context);
|
|
2406
1662
|
}
|
|
2407
1663
|
const contents = (0, import_smithy_client.map)({
|
|
2408
1664
|
$metadata: deserializeMetadata(output)
|
|
@@ -2415,40 +1671,9 @@ var de_ListBridgesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2415
1671
|
Object.assign(contents, doc);
|
|
2416
1672
|
return contents;
|
|
2417
1673
|
}, "de_ListBridgesCommand");
|
|
2418
|
-
var de_ListBridgesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2419
|
-
const parsedOutput = {
|
|
2420
|
-
...output,
|
|
2421
|
-
body: await parseErrorBody(output.body, context)
|
|
2422
|
-
};
|
|
2423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2424
|
-
switch (errorCode) {
|
|
2425
|
-
case "BadRequestException":
|
|
2426
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2427
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2428
|
-
case "ConflictException":
|
|
2429
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2430
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2431
|
-
case "InternalServerErrorException":
|
|
2432
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2433
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2434
|
-
case "ServiceUnavailableException":
|
|
2435
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2436
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2437
|
-
case "TooManyRequestsException":
|
|
2438
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2439
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2440
|
-
default:
|
|
2441
|
-
const parsedBody = parsedOutput.body;
|
|
2442
|
-
return throwDefaultError({
|
|
2443
|
-
output,
|
|
2444
|
-
parsedBody,
|
|
2445
|
-
errorCode
|
|
2446
|
-
});
|
|
2447
|
-
}
|
|
2448
|
-
}, "de_ListBridgesCommandError");
|
|
2449
1674
|
var de_ListEntitlementsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2450
1675
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2451
|
-
return
|
|
1676
|
+
return de_CommandError(output, context);
|
|
2452
1677
|
}
|
|
2453
1678
|
const contents = (0, import_smithy_client.map)({
|
|
2454
1679
|
$metadata: deserializeMetadata(output)
|
|
@@ -2461,37 +1686,9 @@ var de_ListEntitlementsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2461
1686
|
Object.assign(contents, doc);
|
|
2462
1687
|
return contents;
|
|
2463
1688
|
}, "de_ListEntitlementsCommand");
|
|
2464
|
-
var de_ListEntitlementsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2465
|
-
const parsedOutput = {
|
|
2466
|
-
...output,
|
|
2467
|
-
body: await parseErrorBody(output.body, context)
|
|
2468
|
-
};
|
|
2469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
|
-
switch (errorCode) {
|
|
2471
|
-
case "BadRequestException":
|
|
2472
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2473
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2474
|
-
case "InternalServerErrorException":
|
|
2475
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2476
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "ServiceUnavailableException":
|
|
2478
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2479
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "TooManyRequestsException":
|
|
2481
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2482
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2483
|
-
default:
|
|
2484
|
-
const parsedBody = parsedOutput.body;
|
|
2485
|
-
return throwDefaultError({
|
|
2486
|
-
output,
|
|
2487
|
-
parsedBody,
|
|
2488
|
-
errorCode
|
|
2489
|
-
});
|
|
2490
|
-
}
|
|
2491
|
-
}, "de_ListEntitlementsCommandError");
|
|
2492
1689
|
var de_ListFlowsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2493
1690
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2494
|
-
return
|
|
1691
|
+
return de_CommandError(output, context);
|
|
2495
1692
|
}
|
|
2496
1693
|
const contents = (0, import_smithy_client.map)({
|
|
2497
1694
|
$metadata: deserializeMetadata(output)
|
|
@@ -2504,37 +1701,9 @@ var de_ListFlowsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2504
1701
|
Object.assign(contents, doc);
|
|
2505
1702
|
return contents;
|
|
2506
1703
|
}, "de_ListFlowsCommand");
|
|
2507
|
-
var de_ListFlowsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2508
|
-
const parsedOutput = {
|
|
2509
|
-
...output,
|
|
2510
|
-
body: await parseErrorBody(output.body, context)
|
|
2511
|
-
};
|
|
2512
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2513
|
-
switch (errorCode) {
|
|
2514
|
-
case "BadRequestException":
|
|
2515
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2516
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2517
|
-
case "InternalServerErrorException":
|
|
2518
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2519
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2520
|
-
case "ServiceUnavailableException":
|
|
2521
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2522
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2523
|
-
case "TooManyRequestsException":
|
|
2524
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2525
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2526
|
-
default:
|
|
2527
|
-
const parsedBody = parsedOutput.body;
|
|
2528
|
-
return throwDefaultError({
|
|
2529
|
-
output,
|
|
2530
|
-
parsedBody,
|
|
2531
|
-
errorCode
|
|
2532
|
-
});
|
|
2533
|
-
}
|
|
2534
|
-
}, "de_ListFlowsCommandError");
|
|
2535
1704
|
var de_ListGatewayInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2536
1705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2537
|
-
return
|
|
1706
|
+
return de_CommandError(output, context);
|
|
2538
1707
|
}
|
|
2539
1708
|
const contents = (0, import_smithy_client.map)({
|
|
2540
1709
|
$metadata: deserializeMetadata(output)
|
|
@@ -2547,40 +1716,9 @@ var de_ListGatewayInstancesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2547
1716
|
Object.assign(contents, doc);
|
|
2548
1717
|
return contents;
|
|
2549
1718
|
}, "de_ListGatewayInstancesCommand");
|
|
2550
|
-
var de_ListGatewayInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2551
|
-
const parsedOutput = {
|
|
2552
|
-
...output,
|
|
2553
|
-
body: await parseErrorBody(output.body, context)
|
|
2554
|
-
};
|
|
2555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2556
|
-
switch (errorCode) {
|
|
2557
|
-
case "BadRequestException":
|
|
2558
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2559
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2560
|
-
case "ConflictException":
|
|
2561
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2562
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2563
|
-
case "InternalServerErrorException":
|
|
2564
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2565
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2566
|
-
case "ServiceUnavailableException":
|
|
2567
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2568
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2569
|
-
case "TooManyRequestsException":
|
|
2570
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2571
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2572
|
-
default:
|
|
2573
|
-
const parsedBody = parsedOutput.body;
|
|
2574
|
-
return throwDefaultError({
|
|
2575
|
-
output,
|
|
2576
|
-
parsedBody,
|
|
2577
|
-
errorCode
|
|
2578
|
-
});
|
|
2579
|
-
}
|
|
2580
|
-
}, "de_ListGatewayInstancesCommandError");
|
|
2581
1719
|
var de_ListGatewaysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2582
1720
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2583
|
-
return
|
|
1721
|
+
return de_CommandError(output, context);
|
|
2584
1722
|
}
|
|
2585
1723
|
const contents = (0, import_smithy_client.map)({
|
|
2586
1724
|
$metadata: deserializeMetadata(output)
|
|
@@ -2593,40 +1731,9 @@ var de_ListGatewaysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2593
1731
|
Object.assign(contents, doc);
|
|
2594
1732
|
return contents;
|
|
2595
1733
|
}, "de_ListGatewaysCommand");
|
|
2596
|
-
var de_ListGatewaysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2597
|
-
const parsedOutput = {
|
|
2598
|
-
...output,
|
|
2599
|
-
body: await parseErrorBody(output.body, context)
|
|
2600
|
-
};
|
|
2601
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2602
|
-
switch (errorCode) {
|
|
2603
|
-
case "BadRequestException":
|
|
2604
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2605
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2606
|
-
case "ConflictException":
|
|
2607
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2608
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2609
|
-
case "InternalServerErrorException":
|
|
2610
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2611
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2612
|
-
case "ServiceUnavailableException":
|
|
2613
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2614
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2615
|
-
case "TooManyRequestsException":
|
|
2616
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2617
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2618
|
-
default:
|
|
2619
|
-
const parsedBody = parsedOutput.body;
|
|
2620
|
-
return throwDefaultError({
|
|
2621
|
-
output,
|
|
2622
|
-
parsedBody,
|
|
2623
|
-
errorCode
|
|
2624
|
-
});
|
|
2625
|
-
}
|
|
2626
|
-
}, "de_ListGatewaysCommandError");
|
|
2627
1734
|
var de_ListOfferingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2628
1735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2629
|
-
return
|
|
1736
|
+
return de_CommandError(output, context);
|
|
2630
1737
|
}
|
|
2631
1738
|
const contents = (0, import_smithy_client.map)({
|
|
2632
1739
|
$metadata: deserializeMetadata(output)
|
|
@@ -2639,37 +1746,9 @@ var de_ListOfferingsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2639
1746
|
Object.assign(contents, doc);
|
|
2640
1747
|
return contents;
|
|
2641
1748
|
}, "de_ListOfferingsCommand");
|
|
2642
|
-
var de_ListOfferingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2643
|
-
const parsedOutput = {
|
|
2644
|
-
...output,
|
|
2645
|
-
body: await parseErrorBody(output.body, context)
|
|
2646
|
-
};
|
|
2647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2648
|
-
switch (errorCode) {
|
|
2649
|
-
case "BadRequestException":
|
|
2650
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2651
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2652
|
-
case "InternalServerErrorException":
|
|
2653
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2654
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2655
|
-
case "ServiceUnavailableException":
|
|
2656
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2657
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2658
|
-
case "TooManyRequestsException":
|
|
2659
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2660
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2661
|
-
default:
|
|
2662
|
-
const parsedBody = parsedOutput.body;
|
|
2663
|
-
return throwDefaultError({
|
|
2664
|
-
output,
|
|
2665
|
-
parsedBody,
|
|
2666
|
-
errorCode
|
|
2667
|
-
});
|
|
2668
|
-
}
|
|
2669
|
-
}, "de_ListOfferingsCommandError");
|
|
2670
1749
|
var de_ListReservationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2671
1750
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2672
|
-
return
|
|
1751
|
+
return de_CommandError(output, context);
|
|
2673
1752
|
}
|
|
2674
1753
|
const contents = (0, import_smithy_client.map)({
|
|
2675
1754
|
$metadata: deserializeMetadata(output)
|
|
@@ -2682,37 +1761,9 @@ var de_ListReservationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2682
1761
|
Object.assign(contents, doc);
|
|
2683
1762
|
return contents;
|
|
2684
1763
|
}, "de_ListReservationsCommand");
|
|
2685
|
-
var de_ListReservationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2686
|
-
const parsedOutput = {
|
|
2687
|
-
...output,
|
|
2688
|
-
body: await parseErrorBody(output.body, context)
|
|
2689
|
-
};
|
|
2690
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2691
|
-
switch (errorCode) {
|
|
2692
|
-
case "BadRequestException":
|
|
2693
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2694
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2695
|
-
case "InternalServerErrorException":
|
|
2696
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2697
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2698
|
-
case "ServiceUnavailableException":
|
|
2699
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2700
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2701
|
-
case "TooManyRequestsException":
|
|
2702
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2703
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2704
|
-
default:
|
|
2705
|
-
const parsedBody = parsedOutput.body;
|
|
2706
|
-
return throwDefaultError({
|
|
2707
|
-
output,
|
|
2708
|
-
parsedBody,
|
|
2709
|
-
errorCode
|
|
2710
|
-
});
|
|
2711
|
-
}
|
|
2712
|
-
}, "de_ListReservationsCommandError");
|
|
2713
1764
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2714
1765
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2715
|
-
return
|
|
1766
|
+
return de_CommandError(output, context);
|
|
2716
1767
|
}
|
|
2717
1768
|
const contents = (0, import_smithy_client.map)({
|
|
2718
1769
|
$metadata: deserializeMetadata(output)
|
|
@@ -2724,34 +1775,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2724
1775
|
Object.assign(contents, doc);
|
|
2725
1776
|
return contents;
|
|
2726
1777
|
}, "de_ListTagsForResourceCommand");
|
|
2727
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2728
|
-
const parsedOutput = {
|
|
2729
|
-
...output,
|
|
2730
|
-
body: await parseErrorBody(output.body, context)
|
|
2731
|
-
};
|
|
2732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2733
|
-
switch (errorCode) {
|
|
2734
|
-
case "BadRequestException":
|
|
2735
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2736
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2737
|
-
case "InternalServerErrorException":
|
|
2738
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2739
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2740
|
-
case "NotFoundException":
|
|
2741
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2742
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2743
|
-
default:
|
|
2744
|
-
const parsedBody = parsedOutput.body;
|
|
2745
|
-
return throwDefaultError({
|
|
2746
|
-
output,
|
|
2747
|
-
parsedBody,
|
|
2748
|
-
errorCode
|
|
2749
|
-
});
|
|
2750
|
-
}
|
|
2751
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2752
1778
|
var de_PurchaseOfferingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2753
1779
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2754
|
-
return
|
|
1780
|
+
return de_CommandError(output, context);
|
|
2755
1781
|
}
|
|
2756
1782
|
const contents = (0, import_smithy_client.map)({
|
|
2757
1783
|
$metadata: deserializeMetadata(output)
|
|
@@ -2763,43 +1789,9 @@ var de_PurchaseOfferingCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2763
1789
|
Object.assign(contents, doc);
|
|
2764
1790
|
return contents;
|
|
2765
1791
|
}, "de_PurchaseOfferingCommand");
|
|
2766
|
-
var de_PurchaseOfferingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2767
|
-
const parsedOutput = {
|
|
2768
|
-
...output,
|
|
2769
|
-
body: await parseErrorBody(output.body, context)
|
|
2770
|
-
};
|
|
2771
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2772
|
-
switch (errorCode) {
|
|
2773
|
-
case "BadRequestException":
|
|
2774
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2775
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2776
|
-
case "ForbiddenException":
|
|
2777
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2778
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2779
|
-
case "InternalServerErrorException":
|
|
2780
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2781
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2782
|
-
case "NotFoundException":
|
|
2783
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2784
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2785
|
-
case "ServiceUnavailableException":
|
|
2786
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2787
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2788
|
-
case "TooManyRequestsException":
|
|
2789
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2790
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2791
|
-
default:
|
|
2792
|
-
const parsedBody = parsedOutput.body;
|
|
2793
|
-
return throwDefaultError({
|
|
2794
|
-
output,
|
|
2795
|
-
parsedBody,
|
|
2796
|
-
errorCode
|
|
2797
|
-
});
|
|
2798
|
-
}
|
|
2799
|
-
}, "de_PurchaseOfferingCommandError");
|
|
2800
1792
|
var de_RemoveBridgeOutputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2801
1793
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2802
|
-
return
|
|
1794
|
+
return de_CommandError(output, context);
|
|
2803
1795
|
}
|
|
2804
1796
|
const contents = (0, import_smithy_client.map)({
|
|
2805
1797
|
$metadata: deserializeMetadata(output)
|
|
@@ -2812,46 +1804,9 @@ var de_RemoveBridgeOutputCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2812
1804
|
Object.assign(contents, doc);
|
|
2813
1805
|
return contents;
|
|
2814
1806
|
}, "de_RemoveBridgeOutputCommand");
|
|
2815
|
-
var de_RemoveBridgeOutputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2816
|
-
const parsedOutput = {
|
|
2817
|
-
...output,
|
|
2818
|
-
body: await parseErrorBody(output.body, context)
|
|
2819
|
-
};
|
|
2820
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2821
|
-
switch (errorCode) {
|
|
2822
|
-
case "BadRequestException":
|
|
2823
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2824
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2825
|
-
case "ConflictException":
|
|
2826
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2827
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "ForbiddenException":
|
|
2829
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2830
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "InternalServerErrorException":
|
|
2832
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2833
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2834
|
-
case "NotFoundException":
|
|
2835
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2836
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "ServiceUnavailableException":
|
|
2838
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2839
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "TooManyRequestsException":
|
|
2841
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2842
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2843
|
-
default:
|
|
2844
|
-
const parsedBody = parsedOutput.body;
|
|
2845
|
-
return throwDefaultError({
|
|
2846
|
-
output,
|
|
2847
|
-
parsedBody,
|
|
2848
|
-
errorCode
|
|
2849
|
-
});
|
|
2850
|
-
}
|
|
2851
|
-
}, "de_RemoveBridgeOutputCommandError");
|
|
2852
1807
|
var de_RemoveBridgeSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2853
1808
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2854
|
-
return
|
|
1809
|
+
return de_CommandError(output, context);
|
|
2855
1810
|
}
|
|
2856
1811
|
const contents = (0, import_smithy_client.map)({
|
|
2857
1812
|
$metadata: deserializeMetadata(output)
|
|
@@ -2864,46 +1819,9 @@ var de_RemoveBridgeSourceCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2864
1819
|
Object.assign(contents, doc);
|
|
2865
1820
|
return contents;
|
|
2866
1821
|
}, "de_RemoveBridgeSourceCommand");
|
|
2867
|
-
var de_RemoveBridgeSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2868
|
-
const parsedOutput = {
|
|
2869
|
-
...output,
|
|
2870
|
-
body: await parseErrorBody(output.body, context)
|
|
2871
|
-
};
|
|
2872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2873
|
-
switch (errorCode) {
|
|
2874
|
-
case "BadRequestException":
|
|
2875
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2876
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2877
|
-
case "ConflictException":
|
|
2878
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2879
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2880
|
-
case "ForbiddenException":
|
|
2881
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2882
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2883
|
-
case "InternalServerErrorException":
|
|
2884
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2885
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2886
|
-
case "NotFoundException":
|
|
2887
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2888
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2889
|
-
case "ServiceUnavailableException":
|
|
2890
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2891
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2892
|
-
case "TooManyRequestsException":
|
|
2893
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2894
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2895
|
-
default:
|
|
2896
|
-
const parsedBody = parsedOutput.body;
|
|
2897
|
-
return throwDefaultError({
|
|
2898
|
-
output,
|
|
2899
|
-
parsedBody,
|
|
2900
|
-
errorCode
|
|
2901
|
-
});
|
|
2902
|
-
}
|
|
2903
|
-
}, "de_RemoveBridgeSourceCommandError");
|
|
2904
1822
|
var de_RemoveFlowMediaStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2905
1823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2906
|
-
return
|
|
1824
|
+
return de_CommandError(output, context);
|
|
2907
1825
|
}
|
|
2908
1826
|
const contents = (0, import_smithy_client.map)({
|
|
2909
1827
|
$metadata: deserializeMetadata(output)
|
|
@@ -2916,43 +1834,9 @@ var de_RemoveFlowMediaStreamCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2916
1834
|
Object.assign(contents, doc);
|
|
2917
1835
|
return contents;
|
|
2918
1836
|
}, "de_RemoveFlowMediaStreamCommand");
|
|
2919
|
-
var de_RemoveFlowMediaStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2920
|
-
const parsedOutput = {
|
|
2921
|
-
...output,
|
|
2922
|
-
body: await parseErrorBody(output.body, context)
|
|
2923
|
-
};
|
|
2924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2925
|
-
switch (errorCode) {
|
|
2926
|
-
case "BadRequestException":
|
|
2927
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2928
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2929
|
-
case "ForbiddenException":
|
|
2930
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2931
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2932
|
-
case "InternalServerErrorException":
|
|
2933
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2934
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2935
|
-
case "NotFoundException":
|
|
2936
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2937
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2938
|
-
case "ServiceUnavailableException":
|
|
2939
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2940
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2941
|
-
case "TooManyRequestsException":
|
|
2942
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2943
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2944
|
-
default:
|
|
2945
|
-
const parsedBody = parsedOutput.body;
|
|
2946
|
-
return throwDefaultError({
|
|
2947
|
-
output,
|
|
2948
|
-
parsedBody,
|
|
2949
|
-
errorCode
|
|
2950
|
-
});
|
|
2951
|
-
}
|
|
2952
|
-
}, "de_RemoveFlowMediaStreamCommandError");
|
|
2953
1837
|
var de_RemoveFlowOutputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2954
1838
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2955
|
-
return
|
|
1839
|
+
return de_CommandError(output, context);
|
|
2956
1840
|
}
|
|
2957
1841
|
const contents = (0, import_smithy_client.map)({
|
|
2958
1842
|
$metadata: deserializeMetadata(output)
|
|
@@ -2965,43 +1849,9 @@ var de_RemoveFlowOutputCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2965
1849
|
Object.assign(contents, doc);
|
|
2966
1850
|
return contents;
|
|
2967
1851
|
}, "de_RemoveFlowOutputCommand");
|
|
2968
|
-
var de_RemoveFlowOutputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2969
|
-
const parsedOutput = {
|
|
2970
|
-
...output,
|
|
2971
|
-
body: await parseErrorBody(output.body, context)
|
|
2972
|
-
};
|
|
2973
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2974
|
-
switch (errorCode) {
|
|
2975
|
-
case "BadRequestException":
|
|
2976
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2977
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2978
|
-
case "ForbiddenException":
|
|
2979
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2980
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2981
|
-
case "InternalServerErrorException":
|
|
2982
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2983
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2984
|
-
case "NotFoundException":
|
|
2985
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2986
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2987
|
-
case "ServiceUnavailableException":
|
|
2988
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2989
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2990
|
-
case "TooManyRequestsException":
|
|
2991
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2992
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2993
|
-
default:
|
|
2994
|
-
const parsedBody = parsedOutput.body;
|
|
2995
|
-
return throwDefaultError({
|
|
2996
|
-
output,
|
|
2997
|
-
parsedBody,
|
|
2998
|
-
errorCode
|
|
2999
|
-
});
|
|
3000
|
-
}
|
|
3001
|
-
}, "de_RemoveFlowOutputCommandError");
|
|
3002
1852
|
var de_RemoveFlowSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3003
1853
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3004
|
-
return
|
|
1854
|
+
return de_CommandError(output, context);
|
|
3005
1855
|
}
|
|
3006
1856
|
const contents = (0, import_smithy_client.map)({
|
|
3007
1857
|
$metadata: deserializeMetadata(output)
|
|
@@ -3014,43 +1864,9 @@ var de_RemoveFlowSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3014
1864
|
Object.assign(contents, doc);
|
|
3015
1865
|
return contents;
|
|
3016
1866
|
}, "de_RemoveFlowSourceCommand");
|
|
3017
|
-
var de_RemoveFlowSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3018
|
-
const parsedOutput = {
|
|
3019
|
-
...output,
|
|
3020
|
-
body: await parseErrorBody(output.body, context)
|
|
3021
|
-
};
|
|
3022
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3023
|
-
switch (errorCode) {
|
|
3024
|
-
case "BadRequestException":
|
|
3025
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3026
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3027
|
-
case "ForbiddenException":
|
|
3028
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3029
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3030
|
-
case "InternalServerErrorException":
|
|
3031
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3032
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3033
|
-
case "NotFoundException":
|
|
3034
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3035
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3036
|
-
case "ServiceUnavailableException":
|
|
3037
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3038
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3039
|
-
case "TooManyRequestsException":
|
|
3040
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3041
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3042
|
-
default:
|
|
3043
|
-
const parsedBody = parsedOutput.body;
|
|
3044
|
-
return throwDefaultError({
|
|
3045
|
-
output,
|
|
3046
|
-
parsedBody,
|
|
3047
|
-
errorCode
|
|
3048
|
-
});
|
|
3049
|
-
}
|
|
3050
|
-
}, "de_RemoveFlowSourceCommandError");
|
|
3051
1867
|
var de_RemoveFlowVpcInterfaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3052
1868
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3053
|
-
return
|
|
1869
|
+
return de_CommandError(output, context);
|
|
3054
1870
|
}
|
|
3055
1871
|
const contents = (0, import_smithy_client.map)({
|
|
3056
1872
|
$metadata: deserializeMetadata(output)
|
|
@@ -3064,43 +1880,9 @@ var de_RemoveFlowVpcInterfaceCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3064
1880
|
Object.assign(contents, doc);
|
|
3065
1881
|
return contents;
|
|
3066
1882
|
}, "de_RemoveFlowVpcInterfaceCommand");
|
|
3067
|
-
var de_RemoveFlowVpcInterfaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3068
|
-
const parsedOutput = {
|
|
3069
|
-
...output,
|
|
3070
|
-
body: await parseErrorBody(output.body, context)
|
|
3071
|
-
};
|
|
3072
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3073
|
-
switch (errorCode) {
|
|
3074
|
-
case "BadRequestException":
|
|
3075
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3076
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3077
|
-
case "ForbiddenException":
|
|
3078
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3079
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3080
|
-
case "InternalServerErrorException":
|
|
3081
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3082
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3083
|
-
case "NotFoundException":
|
|
3084
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3085
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3086
|
-
case "ServiceUnavailableException":
|
|
3087
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3088
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3089
|
-
case "TooManyRequestsException":
|
|
3090
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3091
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3092
|
-
default:
|
|
3093
|
-
const parsedBody = parsedOutput.body;
|
|
3094
|
-
return throwDefaultError({
|
|
3095
|
-
output,
|
|
3096
|
-
parsedBody,
|
|
3097
|
-
errorCode
|
|
3098
|
-
});
|
|
3099
|
-
}
|
|
3100
|
-
}, "de_RemoveFlowVpcInterfaceCommandError");
|
|
3101
1883
|
var de_RevokeFlowEntitlementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3102
1884
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3103
|
-
return
|
|
1885
|
+
return de_CommandError(output, context);
|
|
3104
1886
|
}
|
|
3105
1887
|
const contents = (0, import_smithy_client.map)({
|
|
3106
1888
|
$metadata: deserializeMetadata(output)
|
|
@@ -3113,43 +1895,9 @@ var de_RevokeFlowEntitlementCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3113
1895
|
Object.assign(contents, doc);
|
|
3114
1896
|
return contents;
|
|
3115
1897
|
}, "de_RevokeFlowEntitlementCommand");
|
|
3116
|
-
var de_RevokeFlowEntitlementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3117
|
-
const parsedOutput = {
|
|
3118
|
-
...output,
|
|
3119
|
-
body: await parseErrorBody(output.body, context)
|
|
3120
|
-
};
|
|
3121
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3122
|
-
switch (errorCode) {
|
|
3123
|
-
case "BadRequestException":
|
|
3124
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3125
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "ForbiddenException":
|
|
3127
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3128
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3129
|
-
case "InternalServerErrorException":
|
|
3130
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3131
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3132
|
-
case "NotFoundException":
|
|
3133
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3134
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3135
|
-
case "ServiceUnavailableException":
|
|
3136
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3137
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3138
|
-
case "TooManyRequestsException":
|
|
3139
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3140
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3141
|
-
default:
|
|
3142
|
-
const parsedBody = parsedOutput.body;
|
|
3143
|
-
return throwDefaultError({
|
|
3144
|
-
output,
|
|
3145
|
-
parsedBody,
|
|
3146
|
-
errorCode
|
|
3147
|
-
});
|
|
3148
|
-
}
|
|
3149
|
-
}, "de_RevokeFlowEntitlementCommandError");
|
|
3150
1898
|
var de_StartFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3151
1899
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3152
|
-
return
|
|
1900
|
+
return de_CommandError(output, context);
|
|
3153
1901
|
}
|
|
3154
1902
|
const contents = (0, import_smithy_client.map)({
|
|
3155
1903
|
$metadata: deserializeMetadata(output)
|
|
@@ -3162,43 +1910,9 @@ var de_StartFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3162
1910
|
Object.assign(contents, doc);
|
|
3163
1911
|
return contents;
|
|
3164
1912
|
}, "de_StartFlowCommand");
|
|
3165
|
-
var de_StartFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3166
|
-
const parsedOutput = {
|
|
3167
|
-
...output,
|
|
3168
|
-
body: await parseErrorBody(output.body, context)
|
|
3169
|
-
};
|
|
3170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3171
|
-
switch (errorCode) {
|
|
3172
|
-
case "BadRequestException":
|
|
3173
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3174
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3175
|
-
case "ForbiddenException":
|
|
3176
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3177
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3178
|
-
case "InternalServerErrorException":
|
|
3179
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3180
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3181
|
-
case "NotFoundException":
|
|
3182
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3183
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3184
|
-
case "ServiceUnavailableException":
|
|
3185
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3186
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3187
|
-
case "TooManyRequestsException":
|
|
3188
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3189
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3190
|
-
default:
|
|
3191
|
-
const parsedBody = parsedOutput.body;
|
|
3192
|
-
return throwDefaultError({
|
|
3193
|
-
output,
|
|
3194
|
-
parsedBody,
|
|
3195
|
-
errorCode
|
|
3196
|
-
});
|
|
3197
|
-
}
|
|
3198
|
-
}, "de_StartFlowCommandError");
|
|
3199
1913
|
var de_StopFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3200
1914
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3201
|
-
return
|
|
1915
|
+
return de_CommandError(output, context);
|
|
3202
1916
|
}
|
|
3203
1917
|
const contents = (0, import_smithy_client.map)({
|
|
3204
1918
|
$metadata: deserializeMetadata(output)
|
|
@@ -3211,43 +1925,9 @@ var de_StopFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3211
1925
|
Object.assign(contents, doc);
|
|
3212
1926
|
return contents;
|
|
3213
1927
|
}, "de_StopFlowCommand");
|
|
3214
|
-
var de_StopFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3215
|
-
const parsedOutput = {
|
|
3216
|
-
...output,
|
|
3217
|
-
body: await parseErrorBody(output.body, context)
|
|
3218
|
-
};
|
|
3219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3220
|
-
switch (errorCode) {
|
|
3221
|
-
case "BadRequestException":
|
|
3222
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3223
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3224
|
-
case "ForbiddenException":
|
|
3225
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3226
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3227
|
-
case "InternalServerErrorException":
|
|
3228
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3229
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3230
|
-
case "NotFoundException":
|
|
3231
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3232
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3233
|
-
case "ServiceUnavailableException":
|
|
3234
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3235
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3236
|
-
case "TooManyRequestsException":
|
|
3237
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3238
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3239
|
-
default:
|
|
3240
|
-
const parsedBody = parsedOutput.body;
|
|
3241
|
-
return throwDefaultError({
|
|
3242
|
-
output,
|
|
3243
|
-
parsedBody,
|
|
3244
|
-
errorCode
|
|
3245
|
-
});
|
|
3246
|
-
}
|
|
3247
|
-
}, "de_StopFlowCommandError");
|
|
3248
1928
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3249
1929
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3250
|
-
return
|
|
1930
|
+
return de_CommandError(output, context);
|
|
3251
1931
|
}
|
|
3252
1932
|
const contents = (0, import_smithy_client.map)({
|
|
3253
1933
|
$metadata: deserializeMetadata(output)
|
|
@@ -3255,34 +1935,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3255
1935
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3256
1936
|
return contents;
|
|
3257
1937
|
}, "de_TagResourceCommand");
|
|
3258
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3259
|
-
const parsedOutput = {
|
|
3260
|
-
...output,
|
|
3261
|
-
body: await parseErrorBody(output.body, context)
|
|
3262
|
-
};
|
|
3263
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3264
|
-
switch (errorCode) {
|
|
3265
|
-
case "BadRequestException":
|
|
3266
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3267
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3268
|
-
case "InternalServerErrorException":
|
|
3269
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3270
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3271
|
-
case "NotFoundException":
|
|
3272
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3273
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3274
|
-
default:
|
|
3275
|
-
const parsedBody = parsedOutput.body;
|
|
3276
|
-
return throwDefaultError({
|
|
3277
|
-
output,
|
|
3278
|
-
parsedBody,
|
|
3279
|
-
errorCode
|
|
3280
|
-
});
|
|
3281
|
-
}
|
|
3282
|
-
}, "de_TagResourceCommandError");
|
|
3283
1938
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3284
1939
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3285
|
-
return
|
|
1940
|
+
return de_CommandError(output, context);
|
|
3286
1941
|
}
|
|
3287
1942
|
const contents = (0, import_smithy_client.map)({
|
|
3288
1943
|
$metadata: deserializeMetadata(output)
|
|
@@ -3290,34 +1945,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3290
1945
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3291
1946
|
return contents;
|
|
3292
1947
|
}, "de_UntagResourceCommand");
|
|
3293
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3294
|
-
const parsedOutput = {
|
|
3295
|
-
...output,
|
|
3296
|
-
body: await parseErrorBody(output.body, context)
|
|
3297
|
-
};
|
|
3298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3299
|
-
switch (errorCode) {
|
|
3300
|
-
case "BadRequestException":
|
|
3301
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3302
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3303
|
-
case "InternalServerErrorException":
|
|
3304
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3305
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3306
|
-
case "NotFoundException":
|
|
3307
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3308
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3309
|
-
default:
|
|
3310
|
-
const parsedBody = parsedOutput.body;
|
|
3311
|
-
return throwDefaultError({
|
|
3312
|
-
output,
|
|
3313
|
-
parsedBody,
|
|
3314
|
-
errorCode
|
|
3315
|
-
});
|
|
3316
|
-
}
|
|
3317
|
-
}, "de_UntagResourceCommandError");
|
|
3318
1948
|
var de_UpdateBridgeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3319
1949
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3320
|
-
return
|
|
1950
|
+
return de_CommandError(output, context);
|
|
3321
1951
|
}
|
|
3322
1952
|
const contents = (0, import_smithy_client.map)({
|
|
3323
1953
|
$metadata: deserializeMetadata(output)
|
|
@@ -3329,98 +1959,24 @@ var de_UpdateBridgeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3329
1959
|
Object.assign(contents, doc);
|
|
3330
1960
|
return contents;
|
|
3331
1961
|
}, "de_UpdateBridgeCommand");
|
|
3332
|
-
var de_UpdateBridgeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3333
|
-
const parsedOutput = {
|
|
3334
|
-
...output,
|
|
3335
|
-
body: await parseErrorBody(output.body, context)
|
|
3336
|
-
};
|
|
3337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3338
|
-
switch (errorCode) {
|
|
3339
|
-
case "BadRequestException":
|
|
3340
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3341
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3342
|
-
case "ConflictException":
|
|
3343
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3344
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3345
|
-
case "ForbiddenException":
|
|
3346
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3347
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3348
|
-
case "InternalServerErrorException":
|
|
3349
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3350
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3351
|
-
case "NotFoundException":
|
|
3352
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3353
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3354
|
-
case "ServiceUnavailableException":
|
|
3355
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3356
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3357
|
-
case "TooManyRequestsException":
|
|
3358
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3359
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3360
|
-
default:
|
|
3361
|
-
const parsedBody = parsedOutput.body;
|
|
3362
|
-
return throwDefaultError({
|
|
3363
|
-
output,
|
|
3364
|
-
parsedBody,
|
|
3365
|
-
errorCode
|
|
3366
|
-
});
|
|
3367
|
-
}
|
|
3368
|
-
}, "de_UpdateBridgeCommandError");
|
|
3369
1962
|
var de_UpdateBridgeOutputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3370
1963
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3371
|
-
return
|
|
3372
|
-
}
|
|
3373
|
-
const contents = (0, import_smithy_client.map)({
|
|
3374
|
-
$metadata: deserializeMetadata(output)
|
|
3375
|
-
});
|
|
3376
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3377
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3378
|
-
BridgeArn: [, import_smithy_client.expectString, `bridgeArn`],
|
|
3379
|
-
Output: [, (_) => de_BridgeOutput(_, context), `output`]
|
|
3380
|
-
});
|
|
3381
|
-
Object.assign(contents, doc);
|
|
3382
|
-
return contents;
|
|
3383
|
-
}, "de_UpdateBridgeOutputCommand");
|
|
3384
|
-
var de_UpdateBridgeOutputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3385
|
-
const parsedOutput = {
|
|
3386
|
-
...output,
|
|
3387
|
-
body: await parseErrorBody(output.body, context)
|
|
3388
|
-
};
|
|
3389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3390
|
-
switch (errorCode) {
|
|
3391
|
-
case "BadRequestException":
|
|
3392
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3393
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3394
|
-
case "ConflictException":
|
|
3395
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3396
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3397
|
-
case "ForbiddenException":
|
|
3398
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3399
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3400
|
-
case "InternalServerErrorException":
|
|
3401
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3402
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3403
|
-
case "NotFoundException":
|
|
3404
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3405
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3406
|
-
case "ServiceUnavailableException":
|
|
3407
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3408
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3409
|
-
case "TooManyRequestsException":
|
|
3410
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3411
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3412
|
-
default:
|
|
3413
|
-
const parsedBody = parsedOutput.body;
|
|
3414
|
-
return throwDefaultError({
|
|
3415
|
-
output,
|
|
3416
|
-
parsedBody,
|
|
3417
|
-
errorCode
|
|
3418
|
-
});
|
|
1964
|
+
return de_CommandError(output, context);
|
|
3419
1965
|
}
|
|
3420
|
-
|
|
1966
|
+
const contents = (0, import_smithy_client.map)({
|
|
1967
|
+
$metadata: deserializeMetadata(output)
|
|
1968
|
+
});
|
|
1969
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1970
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1971
|
+
BridgeArn: [, import_smithy_client.expectString, `bridgeArn`],
|
|
1972
|
+
Output: [, (_) => de_BridgeOutput(_, context), `output`]
|
|
1973
|
+
});
|
|
1974
|
+
Object.assign(contents, doc);
|
|
1975
|
+
return contents;
|
|
1976
|
+
}, "de_UpdateBridgeOutputCommand");
|
|
3421
1977
|
var de_UpdateBridgeSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3422
1978
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3423
|
-
return
|
|
1979
|
+
return de_CommandError(output, context);
|
|
3424
1980
|
}
|
|
3425
1981
|
const contents = (0, import_smithy_client.map)({
|
|
3426
1982
|
$metadata: deserializeMetadata(output)
|
|
@@ -3433,46 +1989,9 @@ var de_UpdateBridgeSourceCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3433
1989
|
Object.assign(contents, doc);
|
|
3434
1990
|
return contents;
|
|
3435
1991
|
}, "de_UpdateBridgeSourceCommand");
|
|
3436
|
-
var de_UpdateBridgeSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3437
|
-
const parsedOutput = {
|
|
3438
|
-
...output,
|
|
3439
|
-
body: await parseErrorBody(output.body, context)
|
|
3440
|
-
};
|
|
3441
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3442
|
-
switch (errorCode) {
|
|
3443
|
-
case "BadRequestException":
|
|
3444
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3445
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3446
|
-
case "ConflictException":
|
|
3447
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3448
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3449
|
-
case "ForbiddenException":
|
|
3450
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3451
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3452
|
-
case "InternalServerErrorException":
|
|
3453
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3454
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3455
|
-
case "NotFoundException":
|
|
3456
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3457
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3458
|
-
case "ServiceUnavailableException":
|
|
3459
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3460
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3461
|
-
case "TooManyRequestsException":
|
|
3462
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3463
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3464
|
-
default:
|
|
3465
|
-
const parsedBody = parsedOutput.body;
|
|
3466
|
-
return throwDefaultError({
|
|
3467
|
-
output,
|
|
3468
|
-
parsedBody,
|
|
3469
|
-
errorCode
|
|
3470
|
-
});
|
|
3471
|
-
}
|
|
3472
|
-
}, "de_UpdateBridgeSourceCommandError");
|
|
3473
1992
|
var de_UpdateBridgeStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3474
1993
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3475
|
-
return
|
|
1994
|
+
return de_CommandError(output, context);
|
|
3476
1995
|
}
|
|
3477
1996
|
const contents = (0, import_smithy_client.map)({
|
|
3478
1997
|
$metadata: deserializeMetadata(output)
|
|
@@ -3485,46 +2004,9 @@ var de_UpdateBridgeStateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3485
2004
|
Object.assign(contents, doc);
|
|
3486
2005
|
return contents;
|
|
3487
2006
|
}, "de_UpdateBridgeStateCommand");
|
|
3488
|
-
var de_UpdateBridgeStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3489
|
-
const parsedOutput = {
|
|
3490
|
-
...output,
|
|
3491
|
-
body: await parseErrorBody(output.body, context)
|
|
3492
|
-
};
|
|
3493
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3494
|
-
switch (errorCode) {
|
|
3495
|
-
case "BadRequestException":
|
|
3496
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3497
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3498
|
-
case "ConflictException":
|
|
3499
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3500
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3501
|
-
case "ForbiddenException":
|
|
3502
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3503
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3504
|
-
case "InternalServerErrorException":
|
|
3505
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3506
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3507
|
-
case "NotFoundException":
|
|
3508
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3509
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3510
|
-
case "ServiceUnavailableException":
|
|
3511
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3512
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3513
|
-
case "TooManyRequestsException":
|
|
3514
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3515
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3516
|
-
default:
|
|
3517
|
-
const parsedBody = parsedOutput.body;
|
|
3518
|
-
return throwDefaultError({
|
|
3519
|
-
output,
|
|
3520
|
-
parsedBody,
|
|
3521
|
-
errorCode
|
|
3522
|
-
});
|
|
3523
|
-
}
|
|
3524
|
-
}, "de_UpdateBridgeStateCommandError");
|
|
3525
2007
|
var de_UpdateFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3526
2008
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3527
|
-
return
|
|
2009
|
+
return de_CommandError(output, context);
|
|
3528
2010
|
}
|
|
3529
2011
|
const contents = (0, import_smithy_client.map)({
|
|
3530
2012
|
$metadata: deserializeMetadata(output)
|
|
@@ -3536,43 +2018,9 @@ var de_UpdateFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3536
2018
|
Object.assign(contents, doc);
|
|
3537
2019
|
return contents;
|
|
3538
2020
|
}, "de_UpdateFlowCommand");
|
|
3539
|
-
var de_UpdateFlowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3540
|
-
const parsedOutput = {
|
|
3541
|
-
...output,
|
|
3542
|
-
body: await parseErrorBody(output.body, context)
|
|
3543
|
-
};
|
|
3544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3545
|
-
switch (errorCode) {
|
|
3546
|
-
case "BadRequestException":
|
|
3547
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3548
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3549
|
-
case "ForbiddenException":
|
|
3550
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3551
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3552
|
-
case "InternalServerErrorException":
|
|
3553
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3554
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3555
|
-
case "NotFoundException":
|
|
3556
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3557
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3558
|
-
case "ServiceUnavailableException":
|
|
3559
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3560
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3561
|
-
case "TooManyRequestsException":
|
|
3562
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3563
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3564
|
-
default:
|
|
3565
|
-
const parsedBody = parsedOutput.body;
|
|
3566
|
-
return throwDefaultError({
|
|
3567
|
-
output,
|
|
3568
|
-
parsedBody,
|
|
3569
|
-
errorCode
|
|
3570
|
-
});
|
|
3571
|
-
}
|
|
3572
|
-
}, "de_UpdateFlowCommandError");
|
|
3573
2021
|
var de_UpdateFlowEntitlementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3574
2022
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3575
|
-
return
|
|
2023
|
+
return de_CommandError(output, context);
|
|
3576
2024
|
}
|
|
3577
2025
|
const contents = (0, import_smithy_client.map)({
|
|
3578
2026
|
$metadata: deserializeMetadata(output)
|
|
@@ -3585,43 +2033,9 @@ var de_UpdateFlowEntitlementCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3585
2033
|
Object.assign(contents, doc);
|
|
3586
2034
|
return contents;
|
|
3587
2035
|
}, "de_UpdateFlowEntitlementCommand");
|
|
3588
|
-
var de_UpdateFlowEntitlementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3589
|
-
const parsedOutput = {
|
|
3590
|
-
...output,
|
|
3591
|
-
body: await parseErrorBody(output.body, context)
|
|
3592
|
-
};
|
|
3593
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3594
|
-
switch (errorCode) {
|
|
3595
|
-
case "BadRequestException":
|
|
3596
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3597
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3598
|
-
case "ForbiddenException":
|
|
3599
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3600
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3601
|
-
case "InternalServerErrorException":
|
|
3602
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3603
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3604
|
-
case "NotFoundException":
|
|
3605
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3606
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3607
|
-
case "ServiceUnavailableException":
|
|
3608
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3609
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3610
|
-
case "TooManyRequestsException":
|
|
3611
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3612
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3613
|
-
default:
|
|
3614
|
-
const parsedBody = parsedOutput.body;
|
|
3615
|
-
return throwDefaultError({
|
|
3616
|
-
output,
|
|
3617
|
-
parsedBody,
|
|
3618
|
-
errorCode
|
|
3619
|
-
});
|
|
3620
|
-
}
|
|
3621
|
-
}, "de_UpdateFlowEntitlementCommandError");
|
|
3622
2036
|
var de_UpdateFlowMediaStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3623
2037
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3624
|
-
return
|
|
2038
|
+
return de_CommandError(output, context);
|
|
3625
2039
|
}
|
|
3626
2040
|
const contents = (0, import_smithy_client.map)({
|
|
3627
2041
|
$metadata: deserializeMetadata(output)
|
|
@@ -3634,43 +2048,9 @@ var de_UpdateFlowMediaStreamCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3634
2048
|
Object.assign(contents, doc);
|
|
3635
2049
|
return contents;
|
|
3636
2050
|
}, "de_UpdateFlowMediaStreamCommand");
|
|
3637
|
-
var de_UpdateFlowMediaStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3638
|
-
const parsedOutput = {
|
|
3639
|
-
...output,
|
|
3640
|
-
body: await parseErrorBody(output.body, context)
|
|
3641
|
-
};
|
|
3642
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3643
|
-
switch (errorCode) {
|
|
3644
|
-
case "BadRequestException":
|
|
3645
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3646
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3647
|
-
case "ForbiddenException":
|
|
3648
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3649
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3650
|
-
case "InternalServerErrorException":
|
|
3651
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3652
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3653
|
-
case "NotFoundException":
|
|
3654
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3655
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3656
|
-
case "ServiceUnavailableException":
|
|
3657
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3658
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3659
|
-
case "TooManyRequestsException":
|
|
3660
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3661
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3662
|
-
default:
|
|
3663
|
-
const parsedBody = parsedOutput.body;
|
|
3664
|
-
return throwDefaultError({
|
|
3665
|
-
output,
|
|
3666
|
-
parsedBody,
|
|
3667
|
-
errorCode
|
|
3668
|
-
});
|
|
3669
|
-
}
|
|
3670
|
-
}, "de_UpdateFlowMediaStreamCommandError");
|
|
3671
2051
|
var de_UpdateFlowOutputCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3672
2052
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3673
|
-
return
|
|
2053
|
+
return de_CommandError(output, context);
|
|
3674
2054
|
}
|
|
3675
2055
|
const contents = (0, import_smithy_client.map)({
|
|
3676
2056
|
$metadata: deserializeMetadata(output)
|
|
@@ -3683,43 +2063,9 @@ var de_UpdateFlowOutputCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3683
2063
|
Object.assign(contents, doc);
|
|
3684
2064
|
return contents;
|
|
3685
2065
|
}, "de_UpdateFlowOutputCommand");
|
|
3686
|
-
var de_UpdateFlowOutputCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3687
|
-
const parsedOutput = {
|
|
3688
|
-
...output,
|
|
3689
|
-
body: await parseErrorBody(output.body, context)
|
|
3690
|
-
};
|
|
3691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3692
|
-
switch (errorCode) {
|
|
3693
|
-
case "BadRequestException":
|
|
3694
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3695
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3696
|
-
case "ForbiddenException":
|
|
3697
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3698
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3699
|
-
case "InternalServerErrorException":
|
|
3700
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3701
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3702
|
-
case "NotFoundException":
|
|
3703
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3704
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3705
|
-
case "ServiceUnavailableException":
|
|
3706
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3707
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3708
|
-
case "TooManyRequestsException":
|
|
3709
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3710
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3711
|
-
default:
|
|
3712
|
-
const parsedBody = parsedOutput.body;
|
|
3713
|
-
return throwDefaultError({
|
|
3714
|
-
output,
|
|
3715
|
-
parsedBody,
|
|
3716
|
-
errorCode
|
|
3717
|
-
});
|
|
3718
|
-
}
|
|
3719
|
-
}, "de_UpdateFlowOutputCommandError");
|
|
3720
2066
|
var de_UpdateFlowSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3721
2067
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3722
|
-
return
|
|
2068
|
+
return de_CommandError(output, context);
|
|
3723
2069
|
}
|
|
3724
2070
|
const contents = (0, import_smithy_client.map)({
|
|
3725
2071
|
$metadata: deserializeMetadata(output)
|
|
@@ -3732,43 +2078,9 @@ var de_UpdateFlowSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3732
2078
|
Object.assign(contents, doc);
|
|
3733
2079
|
return contents;
|
|
3734
2080
|
}, "de_UpdateFlowSourceCommand");
|
|
3735
|
-
var de_UpdateFlowSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3736
|
-
const parsedOutput = {
|
|
3737
|
-
...output,
|
|
3738
|
-
body: await parseErrorBody(output.body, context)
|
|
3739
|
-
};
|
|
3740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3741
|
-
switch (errorCode) {
|
|
3742
|
-
case "BadRequestException":
|
|
3743
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3744
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3745
|
-
case "ForbiddenException":
|
|
3746
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3747
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3748
|
-
case "InternalServerErrorException":
|
|
3749
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3750
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3751
|
-
case "NotFoundException":
|
|
3752
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3753
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3754
|
-
case "ServiceUnavailableException":
|
|
3755
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3756
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3757
|
-
case "TooManyRequestsException":
|
|
3758
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3759
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3760
|
-
default:
|
|
3761
|
-
const parsedBody = parsedOutput.body;
|
|
3762
|
-
return throwDefaultError({
|
|
3763
|
-
output,
|
|
3764
|
-
parsedBody,
|
|
3765
|
-
errorCode
|
|
3766
|
-
});
|
|
3767
|
-
}
|
|
3768
|
-
}, "de_UpdateFlowSourceCommandError");
|
|
3769
2081
|
var de_UpdateGatewayInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3770
2082
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3771
|
-
return
|
|
2083
|
+
return de_CommandError(output, context);
|
|
3772
2084
|
}
|
|
3773
2085
|
const contents = (0, import_smithy_client.map)({
|
|
3774
2086
|
$metadata: deserializeMetadata(output)
|
|
@@ -3781,7 +2093,7 @@ var de_UpdateGatewayInstanceCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3781
2093
|
Object.assign(contents, doc);
|
|
3782
2094
|
return contents;
|
|
3783
2095
|
}, "de_UpdateGatewayInstanceCommand");
|
|
3784
|
-
var
|
|
2096
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3785
2097
|
const parsedOutput = {
|
|
3786
2098
|
...output,
|
|
3787
2099
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3809,6 +2121,21 @@ var de_UpdateGatewayInstanceCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
3809
2121
|
case "TooManyRequestsException":
|
|
3810
2122
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3811
2123
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2124
|
+
case "AddFlowOutputs420Exception":
|
|
2125
|
+
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
|
|
2126
|
+
throw await de_AddFlowOutputs420ExceptionRes(parsedOutput, context);
|
|
2127
|
+
case "CreateBridge420Exception":
|
|
2128
|
+
case "com.amazonaws.mediaconnect#CreateBridge420Exception":
|
|
2129
|
+
throw await de_CreateBridge420ExceptionRes(parsedOutput, context);
|
|
2130
|
+
case "CreateFlow420Exception":
|
|
2131
|
+
case "com.amazonaws.mediaconnect#CreateFlow420Exception":
|
|
2132
|
+
throw await de_CreateFlow420ExceptionRes(parsedOutput, context);
|
|
2133
|
+
case "CreateGateway420Exception":
|
|
2134
|
+
case "com.amazonaws.mediaconnect#CreateGateway420Exception":
|
|
2135
|
+
throw await de_CreateGateway420ExceptionRes(parsedOutput, context);
|
|
2136
|
+
case "GrantFlowEntitlements420Exception":
|
|
2137
|
+
case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception":
|
|
2138
|
+
throw await de_GrantFlowEntitlements420ExceptionRes(parsedOutput, context);
|
|
3812
2139
|
default:
|
|
3813
2140
|
const parsedBody = parsedOutput.body;
|
|
3814
2141
|
return throwDefaultError({
|
|
@@ -3817,7 +2144,7 @@ var de_UpdateGatewayInstanceCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
3817
2144
|
errorCode
|
|
3818
2145
|
});
|
|
3819
2146
|
}
|
|
3820
|
-
}, "
|
|
2147
|
+
}, "de_CommandError");
|
|
3821
2148
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(MediaConnectServiceException);
|
|
3822
2149
|
var de_AddFlowOutputs420ExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3823
2150
|
const contents = (0, import_smithy_client.map)({});
|