@aws-sdk/client-ecs 3.504.0 → 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 +155 -1770
- package/dist-es/protocols/Aws_json1_1.js +272 -1887
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1401,7 +1401,7 @@ var se_UpdateTaskSetCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1401
1401
|
}, "se_UpdateTaskSetCommand");
|
|
1402
1402
|
var de_CreateCapacityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1403
1403
|
if (output.statusCode >= 300) {
|
|
1404
|
-
return
|
|
1404
|
+
return de_CommandError(output, context);
|
|
1405
1405
|
}
|
|
1406
1406
|
const data = await parseBody(output.body, context);
|
|
1407
1407
|
let contents = {};
|
|
@@ -1412,40 +1412,9 @@ var de_CreateCapacityProviderCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1412
1412
|
};
|
|
1413
1413
|
return response;
|
|
1414
1414
|
}, "de_CreateCapacityProviderCommand");
|
|
1415
|
-
var de_CreateCapacityProviderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1416
|
-
const parsedOutput = {
|
|
1417
|
-
...output,
|
|
1418
|
-
body: await parseErrorBody(output.body, context)
|
|
1419
|
-
};
|
|
1420
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1421
|
-
switch (errorCode) {
|
|
1422
|
-
case "ClientException":
|
|
1423
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1424
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "InvalidParameterException":
|
|
1426
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1427
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "LimitExceededException":
|
|
1429
|
-
case "com.amazonaws.ecs#LimitExceededException":
|
|
1430
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ServerException":
|
|
1432
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1433
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "UpdateInProgressException":
|
|
1435
|
-
case "com.amazonaws.ecs#UpdateInProgressException":
|
|
1436
|
-
throw await de_UpdateInProgressExceptionRes(parsedOutput, context);
|
|
1437
|
-
default:
|
|
1438
|
-
const parsedBody = parsedOutput.body;
|
|
1439
|
-
return throwDefaultError({
|
|
1440
|
-
output,
|
|
1441
|
-
parsedBody,
|
|
1442
|
-
errorCode
|
|
1443
|
-
});
|
|
1444
|
-
}
|
|
1445
|
-
}, "de_CreateCapacityProviderCommandError");
|
|
1446
1415
|
var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1447
1416
|
if (output.statusCode >= 300) {
|
|
1448
|
-
return
|
|
1417
|
+
return de_CommandError(output, context);
|
|
1449
1418
|
}
|
|
1450
1419
|
const data = await parseBody(output.body, context);
|
|
1451
1420
|
let contents = {};
|
|
@@ -1456,37 +1425,9 @@ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1456
1425
|
};
|
|
1457
1426
|
return response;
|
|
1458
1427
|
}, "de_CreateClusterCommand");
|
|
1459
|
-
var de_CreateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1460
|
-
const parsedOutput = {
|
|
1461
|
-
...output,
|
|
1462
|
-
body: await parseErrorBody(output.body, context)
|
|
1463
|
-
};
|
|
1464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
|
-
switch (errorCode) {
|
|
1466
|
-
case "ClientException":
|
|
1467
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1468
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "InvalidParameterException":
|
|
1470
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1471
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "NamespaceNotFoundException":
|
|
1473
|
-
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
1474
|
-
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "ServerException":
|
|
1476
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1477
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1478
|
-
default:
|
|
1479
|
-
const parsedBody = parsedOutput.body;
|
|
1480
|
-
return throwDefaultError({
|
|
1481
|
-
output,
|
|
1482
|
-
parsedBody,
|
|
1483
|
-
errorCode
|
|
1484
|
-
});
|
|
1485
|
-
}
|
|
1486
|
-
}, "de_CreateClusterCommandError");
|
|
1487
1428
|
var de_CreateServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1488
1429
|
if (output.statusCode >= 300) {
|
|
1489
|
-
return
|
|
1430
|
+
return de_CommandError(output, context);
|
|
1490
1431
|
}
|
|
1491
1432
|
const data = await parseBody(output.body, context);
|
|
1492
1433
|
let contents = {};
|
|
@@ -1497,52 +1438,9 @@ var de_CreateServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1497
1438
|
};
|
|
1498
1439
|
return response;
|
|
1499
1440
|
}, "de_CreateServiceCommand");
|
|
1500
|
-
var de_CreateServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1501
|
-
const parsedOutput = {
|
|
1502
|
-
...output,
|
|
1503
|
-
body: await parseErrorBody(output.body, context)
|
|
1504
|
-
};
|
|
1505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1506
|
-
switch (errorCode) {
|
|
1507
|
-
case "AccessDeniedException":
|
|
1508
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
1509
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "ClientException":
|
|
1511
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1512
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "ClusterNotFoundException":
|
|
1514
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1515
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "InvalidParameterException":
|
|
1517
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1518
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1519
|
-
case "NamespaceNotFoundException":
|
|
1520
|
-
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
1521
|
-
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "PlatformTaskDefinitionIncompatibilityException":
|
|
1523
|
-
case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
|
|
1524
|
-
throw await de_PlatformTaskDefinitionIncompatibilityExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "PlatformUnknownException":
|
|
1526
|
-
case "com.amazonaws.ecs#PlatformUnknownException":
|
|
1527
|
-
throw await de_PlatformUnknownExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "ServerException":
|
|
1529
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1530
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1531
|
-
case "UnsupportedFeatureException":
|
|
1532
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
1533
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
1534
|
-
default:
|
|
1535
|
-
const parsedBody = parsedOutput.body;
|
|
1536
|
-
return throwDefaultError({
|
|
1537
|
-
output,
|
|
1538
|
-
parsedBody,
|
|
1539
|
-
errorCode
|
|
1540
|
-
});
|
|
1541
|
-
}
|
|
1542
|
-
}, "de_CreateServiceCommandError");
|
|
1543
1441
|
var de_CreateTaskSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1544
1442
|
if (output.statusCode >= 300) {
|
|
1545
|
-
return
|
|
1443
|
+
return de_CommandError(output, context);
|
|
1546
1444
|
}
|
|
1547
1445
|
const data = await parseBody(output.body, context);
|
|
1548
1446
|
let contents = {};
|
|
@@ -1553,58 +1451,9 @@ var de_CreateTaskSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1553
1451
|
};
|
|
1554
1452
|
return response;
|
|
1555
1453
|
}, "de_CreateTaskSetCommand");
|
|
1556
|
-
var de_CreateTaskSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1557
|
-
const parsedOutput = {
|
|
1558
|
-
...output,
|
|
1559
|
-
body: await parseErrorBody(output.body, context)
|
|
1560
|
-
};
|
|
1561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1562
|
-
switch (errorCode) {
|
|
1563
|
-
case "AccessDeniedException":
|
|
1564
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
1565
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "ClientException":
|
|
1567
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1568
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1569
|
-
case "ClusterNotFoundException":
|
|
1570
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1571
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "InvalidParameterException":
|
|
1573
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1574
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "NamespaceNotFoundException":
|
|
1576
|
-
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
1577
|
-
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
1578
|
-
case "PlatformTaskDefinitionIncompatibilityException":
|
|
1579
|
-
case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
|
|
1580
|
-
throw await de_PlatformTaskDefinitionIncompatibilityExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "PlatformUnknownException":
|
|
1582
|
-
case "com.amazonaws.ecs#PlatformUnknownException":
|
|
1583
|
-
throw await de_PlatformUnknownExceptionRes(parsedOutput, context);
|
|
1584
|
-
case "ServerException":
|
|
1585
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1586
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "ServiceNotActiveException":
|
|
1588
|
-
case "com.amazonaws.ecs#ServiceNotActiveException":
|
|
1589
|
-
throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "ServiceNotFoundException":
|
|
1591
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
1592
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
1593
|
-
case "UnsupportedFeatureException":
|
|
1594
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
1595
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
1596
|
-
default:
|
|
1597
|
-
const parsedBody = parsedOutput.body;
|
|
1598
|
-
return throwDefaultError({
|
|
1599
|
-
output,
|
|
1600
|
-
parsedBody,
|
|
1601
|
-
errorCode
|
|
1602
|
-
});
|
|
1603
|
-
}
|
|
1604
|
-
}, "de_CreateTaskSetCommandError");
|
|
1605
1454
|
var de_DeleteAccountSettingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1606
1455
|
if (output.statusCode >= 300) {
|
|
1607
|
-
return
|
|
1456
|
+
return de_CommandError(output, context);
|
|
1608
1457
|
}
|
|
1609
1458
|
const data = await parseBody(output.body, context);
|
|
1610
1459
|
let contents = {};
|
|
@@ -1615,34 +1464,9 @@ var de_DeleteAccountSettingCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1615
1464
|
};
|
|
1616
1465
|
return response;
|
|
1617
1466
|
}, "de_DeleteAccountSettingCommand");
|
|
1618
|
-
var de_DeleteAccountSettingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1619
|
-
const parsedOutput = {
|
|
1620
|
-
...output,
|
|
1621
|
-
body: await parseErrorBody(output.body, context)
|
|
1622
|
-
};
|
|
1623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
|
-
switch (errorCode) {
|
|
1625
|
-
case "ClientException":
|
|
1626
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1627
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "InvalidParameterException":
|
|
1629
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1630
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "ServerException":
|
|
1632
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1633
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1634
|
-
default:
|
|
1635
|
-
const parsedBody = parsedOutput.body;
|
|
1636
|
-
return throwDefaultError({
|
|
1637
|
-
output,
|
|
1638
|
-
parsedBody,
|
|
1639
|
-
errorCode
|
|
1640
|
-
});
|
|
1641
|
-
}
|
|
1642
|
-
}, "de_DeleteAccountSettingCommandError");
|
|
1643
1467
|
var de_DeleteAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1644
1468
|
if (output.statusCode >= 300) {
|
|
1645
|
-
return
|
|
1469
|
+
return de_CommandError(output, context);
|
|
1646
1470
|
}
|
|
1647
1471
|
const data = await parseBody(output.body, context);
|
|
1648
1472
|
let contents = {};
|
|
@@ -1653,34 +1477,9 @@ var de_DeleteAttributesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1653
1477
|
};
|
|
1654
1478
|
return response;
|
|
1655
1479
|
}, "de_DeleteAttributesCommand");
|
|
1656
|
-
var de_DeleteAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1657
|
-
const parsedOutput = {
|
|
1658
|
-
...output,
|
|
1659
|
-
body: await parseErrorBody(output.body, context)
|
|
1660
|
-
};
|
|
1661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1662
|
-
switch (errorCode) {
|
|
1663
|
-
case "ClusterNotFoundException":
|
|
1664
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1665
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "InvalidParameterException":
|
|
1667
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1668
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "TargetNotFoundException":
|
|
1670
|
-
case "com.amazonaws.ecs#TargetNotFoundException":
|
|
1671
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
1672
|
-
default:
|
|
1673
|
-
const parsedBody = parsedOutput.body;
|
|
1674
|
-
return throwDefaultError({
|
|
1675
|
-
output,
|
|
1676
|
-
parsedBody,
|
|
1677
|
-
errorCode
|
|
1678
|
-
});
|
|
1679
|
-
}
|
|
1680
|
-
}, "de_DeleteAttributesCommandError");
|
|
1681
1480
|
var de_DeleteCapacityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1682
1481
|
if (output.statusCode >= 300) {
|
|
1683
|
-
return
|
|
1482
|
+
return de_CommandError(output, context);
|
|
1684
1483
|
}
|
|
1685
1484
|
const data = await parseBody(output.body, context);
|
|
1686
1485
|
let contents = {};
|
|
@@ -1691,34 +1490,9 @@ var de_DeleteCapacityProviderCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1691
1490
|
};
|
|
1692
1491
|
return response;
|
|
1693
1492
|
}, "de_DeleteCapacityProviderCommand");
|
|
1694
|
-
var de_DeleteCapacityProviderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1695
|
-
const parsedOutput = {
|
|
1696
|
-
...output,
|
|
1697
|
-
body: await parseErrorBody(output.body, context)
|
|
1698
|
-
};
|
|
1699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
|
-
switch (errorCode) {
|
|
1701
|
-
case "ClientException":
|
|
1702
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1703
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "InvalidParameterException":
|
|
1705
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1706
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "ServerException":
|
|
1708
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1709
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1710
|
-
default:
|
|
1711
|
-
const parsedBody = parsedOutput.body;
|
|
1712
|
-
return throwDefaultError({
|
|
1713
|
-
output,
|
|
1714
|
-
parsedBody,
|
|
1715
|
-
errorCode
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
}, "de_DeleteCapacityProviderCommandError");
|
|
1719
1493
|
var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1720
1494
|
if (output.statusCode >= 300) {
|
|
1721
|
-
return
|
|
1495
|
+
return de_CommandError(output, context);
|
|
1722
1496
|
}
|
|
1723
1497
|
const data = await parseBody(output.body, context);
|
|
1724
1498
|
let contents = {};
|
|
@@ -1729,49 +1503,9 @@ var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1729
1503
|
};
|
|
1730
1504
|
return response;
|
|
1731
1505
|
}, "de_DeleteClusterCommand");
|
|
1732
|
-
var de_DeleteClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1733
|
-
const parsedOutput = {
|
|
1734
|
-
...output,
|
|
1735
|
-
body: await parseErrorBody(output.body, context)
|
|
1736
|
-
};
|
|
1737
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1738
|
-
switch (errorCode) {
|
|
1739
|
-
case "ClientException":
|
|
1740
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1741
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "ClusterContainsContainerInstancesException":
|
|
1743
|
-
case "com.amazonaws.ecs#ClusterContainsContainerInstancesException":
|
|
1744
|
-
throw await de_ClusterContainsContainerInstancesExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "ClusterContainsServicesException":
|
|
1746
|
-
case "com.amazonaws.ecs#ClusterContainsServicesException":
|
|
1747
|
-
throw await de_ClusterContainsServicesExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "ClusterContainsTasksException":
|
|
1749
|
-
case "com.amazonaws.ecs#ClusterContainsTasksException":
|
|
1750
|
-
throw await de_ClusterContainsTasksExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "ClusterNotFoundException":
|
|
1752
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1753
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "InvalidParameterException":
|
|
1755
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1756
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "ServerException":
|
|
1758
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1759
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1760
|
-
case "UpdateInProgressException":
|
|
1761
|
-
case "com.amazonaws.ecs#UpdateInProgressException":
|
|
1762
|
-
throw await de_UpdateInProgressExceptionRes(parsedOutput, context);
|
|
1763
|
-
default:
|
|
1764
|
-
const parsedBody = parsedOutput.body;
|
|
1765
|
-
return throwDefaultError({
|
|
1766
|
-
output,
|
|
1767
|
-
parsedBody,
|
|
1768
|
-
errorCode
|
|
1769
|
-
});
|
|
1770
|
-
}
|
|
1771
|
-
}, "de_DeleteClusterCommandError");
|
|
1772
1506
|
var de_DeleteServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1773
1507
|
if (output.statusCode >= 300) {
|
|
1774
|
-
return
|
|
1508
|
+
return de_CommandError(output, context);
|
|
1775
1509
|
}
|
|
1776
1510
|
const data = await parseBody(output.body, context);
|
|
1777
1511
|
let contents = {};
|
|
@@ -1782,40 +1516,9 @@ var de_DeleteServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1782
1516
|
};
|
|
1783
1517
|
return response;
|
|
1784
1518
|
}, "de_DeleteServiceCommand");
|
|
1785
|
-
var de_DeleteServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1786
|
-
const parsedOutput = {
|
|
1787
|
-
...output,
|
|
1788
|
-
body: await parseErrorBody(output.body, context)
|
|
1789
|
-
};
|
|
1790
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1791
|
-
switch (errorCode) {
|
|
1792
|
-
case "ClientException":
|
|
1793
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1794
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1795
|
-
case "ClusterNotFoundException":
|
|
1796
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1797
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "InvalidParameterException":
|
|
1799
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1800
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "ServerException":
|
|
1802
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1803
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "ServiceNotFoundException":
|
|
1805
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
1806
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
1807
|
-
default:
|
|
1808
|
-
const parsedBody = parsedOutput.body;
|
|
1809
|
-
return throwDefaultError({
|
|
1810
|
-
output,
|
|
1811
|
-
parsedBody,
|
|
1812
|
-
errorCode
|
|
1813
|
-
});
|
|
1814
|
-
}
|
|
1815
|
-
}, "de_DeleteServiceCommandError");
|
|
1816
1519
|
var de_DeleteTaskDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1817
1520
|
if (output.statusCode >= 300) {
|
|
1818
|
-
return
|
|
1521
|
+
return de_CommandError(output, context);
|
|
1819
1522
|
}
|
|
1820
1523
|
const data = await parseBody(output.body, context);
|
|
1821
1524
|
let contents = {};
|
|
@@ -1826,37 +1529,9 @@ var de_DeleteTaskDefinitionsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1826
1529
|
};
|
|
1827
1530
|
return response;
|
|
1828
1531
|
}, "de_DeleteTaskDefinitionsCommand");
|
|
1829
|
-
var de_DeleteTaskDefinitionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1830
|
-
const parsedOutput = {
|
|
1831
|
-
...output,
|
|
1832
|
-
body: await parseErrorBody(output.body, context)
|
|
1833
|
-
};
|
|
1834
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1835
|
-
switch (errorCode) {
|
|
1836
|
-
case "AccessDeniedException":
|
|
1837
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
1838
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1839
|
-
case "ClientException":
|
|
1840
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1841
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1842
|
-
case "InvalidParameterException":
|
|
1843
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1844
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1845
|
-
case "ServerException":
|
|
1846
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1847
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1848
|
-
default:
|
|
1849
|
-
const parsedBody = parsedOutput.body;
|
|
1850
|
-
return throwDefaultError({
|
|
1851
|
-
output,
|
|
1852
|
-
parsedBody,
|
|
1853
|
-
errorCode
|
|
1854
|
-
});
|
|
1855
|
-
}
|
|
1856
|
-
}, "de_DeleteTaskDefinitionsCommandError");
|
|
1857
1532
|
var de_DeleteTaskSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1858
1533
|
if (output.statusCode >= 300) {
|
|
1859
|
-
return
|
|
1534
|
+
return de_CommandError(output, context);
|
|
1860
1535
|
}
|
|
1861
1536
|
const data = await parseBody(output.body, context);
|
|
1862
1537
|
let contents = {};
|
|
@@ -1867,52 +1542,9 @@ var de_DeleteTaskSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1867
1542
|
};
|
|
1868
1543
|
return response;
|
|
1869
1544
|
}, "de_DeleteTaskSetCommand");
|
|
1870
|
-
var de_DeleteTaskSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1871
|
-
const parsedOutput = {
|
|
1872
|
-
...output,
|
|
1873
|
-
body: await parseErrorBody(output.body, context)
|
|
1874
|
-
};
|
|
1875
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1876
|
-
switch (errorCode) {
|
|
1877
|
-
case "AccessDeniedException":
|
|
1878
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
1879
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1880
|
-
case "ClientException":
|
|
1881
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1882
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1883
|
-
case "ClusterNotFoundException":
|
|
1884
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1885
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1886
|
-
case "InvalidParameterException":
|
|
1887
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1888
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1889
|
-
case "ServerException":
|
|
1890
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1891
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1892
|
-
case "ServiceNotActiveException":
|
|
1893
|
-
case "com.amazonaws.ecs#ServiceNotActiveException":
|
|
1894
|
-
throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
|
|
1895
|
-
case "ServiceNotFoundException":
|
|
1896
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
1897
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
1898
|
-
case "TaskSetNotFoundException":
|
|
1899
|
-
case "com.amazonaws.ecs#TaskSetNotFoundException":
|
|
1900
|
-
throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context);
|
|
1901
|
-
case "UnsupportedFeatureException":
|
|
1902
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
1903
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
1904
|
-
default:
|
|
1905
|
-
const parsedBody = parsedOutput.body;
|
|
1906
|
-
return throwDefaultError({
|
|
1907
|
-
output,
|
|
1908
|
-
parsedBody,
|
|
1909
|
-
errorCode
|
|
1910
|
-
});
|
|
1911
|
-
}
|
|
1912
|
-
}, "de_DeleteTaskSetCommandError");
|
|
1913
1545
|
var de_DeregisterContainerInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1914
1546
|
if (output.statusCode >= 300) {
|
|
1915
|
-
return
|
|
1547
|
+
return de_CommandError(output, context);
|
|
1916
1548
|
}
|
|
1917
1549
|
const data = await parseBody(output.body, context);
|
|
1918
1550
|
let contents = {};
|
|
@@ -1923,37 +1555,9 @@ var de_DeregisterContainerInstanceCommand = /* @__PURE__ */ __name(async (output
|
|
|
1923
1555
|
};
|
|
1924
1556
|
return response;
|
|
1925
1557
|
}, "de_DeregisterContainerInstanceCommand");
|
|
1926
|
-
var de_DeregisterContainerInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1927
|
-
const parsedOutput = {
|
|
1928
|
-
...output,
|
|
1929
|
-
body: await parseErrorBody(output.body, context)
|
|
1930
|
-
};
|
|
1931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
|
-
switch (errorCode) {
|
|
1933
|
-
case "ClientException":
|
|
1934
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1935
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1936
|
-
case "ClusterNotFoundException":
|
|
1937
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
1938
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1939
|
-
case "InvalidParameterException":
|
|
1940
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1941
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1942
|
-
case "ServerException":
|
|
1943
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1944
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1945
|
-
default:
|
|
1946
|
-
const parsedBody = parsedOutput.body;
|
|
1947
|
-
return throwDefaultError({
|
|
1948
|
-
output,
|
|
1949
|
-
parsedBody,
|
|
1950
|
-
errorCode
|
|
1951
|
-
});
|
|
1952
|
-
}
|
|
1953
|
-
}, "de_DeregisterContainerInstanceCommandError");
|
|
1954
1558
|
var de_DeregisterTaskDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1955
1559
|
if (output.statusCode >= 300) {
|
|
1956
|
-
return
|
|
1560
|
+
return de_CommandError(output, context);
|
|
1957
1561
|
}
|
|
1958
1562
|
const data = await parseBody(output.body, context);
|
|
1959
1563
|
let contents = {};
|
|
@@ -1964,34 +1568,9 @@ var de_DeregisterTaskDefinitionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1964
1568
|
};
|
|
1965
1569
|
return response;
|
|
1966
1570
|
}, "de_DeregisterTaskDefinitionCommand");
|
|
1967
|
-
var de_DeregisterTaskDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1968
|
-
const parsedOutput = {
|
|
1969
|
-
...output,
|
|
1970
|
-
body: await parseErrorBody(output.body, context)
|
|
1971
|
-
};
|
|
1972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
|
-
switch (errorCode) {
|
|
1974
|
-
case "ClientException":
|
|
1975
|
-
case "com.amazonaws.ecs#ClientException":
|
|
1976
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1977
|
-
case "InvalidParameterException":
|
|
1978
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
1979
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ServerException":
|
|
1981
|
-
case "com.amazonaws.ecs#ServerException":
|
|
1982
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1983
|
-
default:
|
|
1984
|
-
const parsedBody = parsedOutput.body;
|
|
1985
|
-
return throwDefaultError({
|
|
1986
|
-
output,
|
|
1987
|
-
parsedBody,
|
|
1988
|
-
errorCode
|
|
1989
|
-
});
|
|
1990
|
-
}
|
|
1991
|
-
}, "de_DeregisterTaskDefinitionCommandError");
|
|
1992
1571
|
var de_DescribeCapacityProvidersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1993
1572
|
if (output.statusCode >= 300) {
|
|
1994
|
-
return
|
|
1573
|
+
return de_CommandError(output, context);
|
|
1995
1574
|
}
|
|
1996
1575
|
const data = await parseBody(output.body, context);
|
|
1997
1576
|
let contents = {};
|
|
@@ -2002,34 +1581,9 @@ var de_DescribeCapacityProvidersCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2002
1581
|
};
|
|
2003
1582
|
return response;
|
|
2004
1583
|
}, "de_DescribeCapacityProvidersCommand");
|
|
2005
|
-
var de_DescribeCapacityProvidersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2006
|
-
const parsedOutput = {
|
|
2007
|
-
...output,
|
|
2008
|
-
body: await parseErrorBody(output.body, context)
|
|
2009
|
-
};
|
|
2010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
|
-
switch (errorCode) {
|
|
2012
|
-
case "ClientException":
|
|
2013
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2014
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "InvalidParameterException":
|
|
2016
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2017
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "ServerException":
|
|
2019
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2020
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2021
|
-
default:
|
|
2022
|
-
const parsedBody = parsedOutput.body;
|
|
2023
|
-
return throwDefaultError({
|
|
2024
|
-
output,
|
|
2025
|
-
parsedBody,
|
|
2026
|
-
errorCode
|
|
2027
|
-
});
|
|
2028
|
-
}
|
|
2029
|
-
}, "de_DescribeCapacityProvidersCommandError");
|
|
2030
1584
|
var de_DescribeClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2031
1585
|
if (output.statusCode >= 300) {
|
|
2032
|
-
return
|
|
1586
|
+
return de_CommandError(output, context);
|
|
2033
1587
|
}
|
|
2034
1588
|
const data = await parseBody(output.body, context);
|
|
2035
1589
|
let contents = {};
|
|
@@ -2040,34 +1594,9 @@ var de_DescribeClustersCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2040
1594
|
};
|
|
2041
1595
|
return response;
|
|
2042
1596
|
}, "de_DescribeClustersCommand");
|
|
2043
|
-
var de_DescribeClustersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2044
|
-
const parsedOutput = {
|
|
2045
|
-
...output,
|
|
2046
|
-
body: await parseErrorBody(output.body, context)
|
|
2047
|
-
};
|
|
2048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2049
|
-
switch (errorCode) {
|
|
2050
|
-
case "ClientException":
|
|
2051
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2052
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2053
|
-
case "InvalidParameterException":
|
|
2054
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2055
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2056
|
-
case "ServerException":
|
|
2057
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2058
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2059
|
-
default:
|
|
2060
|
-
const parsedBody = parsedOutput.body;
|
|
2061
|
-
return throwDefaultError({
|
|
2062
|
-
output,
|
|
2063
|
-
parsedBody,
|
|
2064
|
-
errorCode
|
|
2065
|
-
});
|
|
2066
|
-
}
|
|
2067
|
-
}, "de_DescribeClustersCommandError");
|
|
2068
1597
|
var de_DescribeContainerInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2069
1598
|
if (output.statusCode >= 300) {
|
|
2070
|
-
return
|
|
1599
|
+
return de_CommandError(output, context);
|
|
2071
1600
|
}
|
|
2072
1601
|
const data = await parseBody(output.body, context);
|
|
2073
1602
|
let contents = {};
|
|
@@ -2078,37 +1607,9 @@ var de_DescribeContainerInstancesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2078
1607
|
};
|
|
2079
1608
|
return response;
|
|
2080
1609
|
}, "de_DescribeContainerInstancesCommand");
|
|
2081
|
-
var de_DescribeContainerInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2082
|
-
const parsedOutput = {
|
|
2083
|
-
...output,
|
|
2084
|
-
body: await parseErrorBody(output.body, context)
|
|
2085
|
-
};
|
|
2086
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2087
|
-
switch (errorCode) {
|
|
2088
|
-
case "ClientException":
|
|
2089
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2090
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2091
|
-
case "ClusterNotFoundException":
|
|
2092
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2093
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2094
|
-
case "InvalidParameterException":
|
|
2095
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2096
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2097
|
-
case "ServerException":
|
|
2098
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2099
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2100
|
-
default:
|
|
2101
|
-
const parsedBody = parsedOutput.body;
|
|
2102
|
-
return throwDefaultError({
|
|
2103
|
-
output,
|
|
2104
|
-
parsedBody,
|
|
2105
|
-
errorCode
|
|
2106
|
-
});
|
|
2107
|
-
}
|
|
2108
|
-
}, "de_DescribeContainerInstancesCommandError");
|
|
2109
1610
|
var de_DescribeServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2110
1611
|
if (output.statusCode >= 300) {
|
|
2111
|
-
return
|
|
1612
|
+
return de_CommandError(output, context);
|
|
2112
1613
|
}
|
|
2113
1614
|
const data = await parseBody(output.body, context);
|
|
2114
1615
|
let contents = {};
|
|
@@ -2119,37 +1620,9 @@ var de_DescribeServicesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2119
1620
|
};
|
|
2120
1621
|
return response;
|
|
2121
1622
|
}, "de_DescribeServicesCommand");
|
|
2122
|
-
var de_DescribeServicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2123
|
-
const parsedOutput = {
|
|
2124
|
-
...output,
|
|
2125
|
-
body: await parseErrorBody(output.body, context)
|
|
2126
|
-
};
|
|
2127
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2128
|
-
switch (errorCode) {
|
|
2129
|
-
case "ClientException":
|
|
2130
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2131
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2132
|
-
case "ClusterNotFoundException":
|
|
2133
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2134
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2135
|
-
case "InvalidParameterException":
|
|
2136
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2137
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2138
|
-
case "ServerException":
|
|
2139
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2140
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2141
|
-
default:
|
|
2142
|
-
const parsedBody = parsedOutput.body;
|
|
2143
|
-
return throwDefaultError({
|
|
2144
|
-
output,
|
|
2145
|
-
parsedBody,
|
|
2146
|
-
errorCode
|
|
2147
|
-
});
|
|
2148
|
-
}
|
|
2149
|
-
}, "de_DescribeServicesCommandError");
|
|
2150
1623
|
var de_DescribeTaskDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2151
1624
|
if (output.statusCode >= 300) {
|
|
2152
|
-
return
|
|
1625
|
+
return de_CommandError(output, context);
|
|
2153
1626
|
}
|
|
2154
1627
|
const data = await parseBody(output.body, context);
|
|
2155
1628
|
let contents = {};
|
|
@@ -2160,75 +1633,22 @@ var de_DescribeTaskDefinitionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2160
1633
|
};
|
|
2161
1634
|
return response;
|
|
2162
1635
|
}, "de_DescribeTaskDefinitionCommand");
|
|
2163
|
-
var
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
case "InvalidParameterException":
|
|
2174
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2175
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2176
|
-
case "ServerException":
|
|
2177
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2178
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2179
|
-
default:
|
|
2180
|
-
const parsedBody = parsedOutput.body;
|
|
2181
|
-
return throwDefaultError({
|
|
2182
|
-
output,
|
|
2183
|
-
parsedBody,
|
|
2184
|
-
errorCode
|
|
2185
|
-
});
|
|
2186
|
-
}
|
|
2187
|
-
}, "de_DescribeTaskDefinitionCommandError");
|
|
2188
|
-
var de_DescribeTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2189
|
-
if (output.statusCode >= 300) {
|
|
2190
|
-
return de_DescribeTasksCommandError(output, context);
|
|
2191
|
-
}
|
|
2192
|
-
const data = await parseBody(output.body, context);
|
|
2193
|
-
let contents = {};
|
|
2194
|
-
contents = de_DescribeTasksResponse(data, context);
|
|
2195
|
-
const response = {
|
|
2196
|
-
$metadata: deserializeMetadata(output),
|
|
2197
|
-
...contents
|
|
1636
|
+
var de_DescribeTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1637
|
+
if (output.statusCode >= 300) {
|
|
1638
|
+
return de_CommandError(output, context);
|
|
1639
|
+
}
|
|
1640
|
+
const data = await parseBody(output.body, context);
|
|
1641
|
+
let contents = {};
|
|
1642
|
+
contents = de_DescribeTasksResponse(data, context);
|
|
1643
|
+
const response = {
|
|
1644
|
+
$metadata: deserializeMetadata(output),
|
|
1645
|
+
...contents
|
|
2198
1646
|
};
|
|
2199
1647
|
return response;
|
|
2200
1648
|
}, "de_DescribeTasksCommand");
|
|
2201
|
-
var de_DescribeTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2202
|
-
const parsedOutput = {
|
|
2203
|
-
...output,
|
|
2204
|
-
body: await parseErrorBody(output.body, context)
|
|
2205
|
-
};
|
|
2206
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2207
|
-
switch (errorCode) {
|
|
2208
|
-
case "ClientException":
|
|
2209
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2210
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2211
|
-
case "ClusterNotFoundException":
|
|
2212
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2213
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "InvalidParameterException":
|
|
2215
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2216
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2217
|
-
case "ServerException":
|
|
2218
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2219
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2220
|
-
default:
|
|
2221
|
-
const parsedBody = parsedOutput.body;
|
|
2222
|
-
return throwDefaultError({
|
|
2223
|
-
output,
|
|
2224
|
-
parsedBody,
|
|
2225
|
-
errorCode
|
|
2226
|
-
});
|
|
2227
|
-
}
|
|
2228
|
-
}, "de_DescribeTasksCommandError");
|
|
2229
1649
|
var de_DescribeTaskSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2230
1650
|
if (output.statusCode >= 300) {
|
|
2231
|
-
return
|
|
1651
|
+
return de_CommandError(output, context);
|
|
2232
1652
|
}
|
|
2233
1653
|
const data = await parseBody(output.body, context);
|
|
2234
1654
|
let contents = {};
|
|
@@ -2239,49 +1659,9 @@ var de_DescribeTaskSetsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2239
1659
|
};
|
|
2240
1660
|
return response;
|
|
2241
1661
|
}, "de_DescribeTaskSetsCommand");
|
|
2242
|
-
var de_DescribeTaskSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2243
|
-
const parsedOutput = {
|
|
2244
|
-
...output,
|
|
2245
|
-
body: await parseErrorBody(output.body, context)
|
|
2246
|
-
};
|
|
2247
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2248
|
-
switch (errorCode) {
|
|
2249
|
-
case "AccessDeniedException":
|
|
2250
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
2251
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2252
|
-
case "ClientException":
|
|
2253
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2254
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2255
|
-
case "ClusterNotFoundException":
|
|
2256
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2257
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2258
|
-
case "InvalidParameterException":
|
|
2259
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2260
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2261
|
-
case "ServerException":
|
|
2262
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2263
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "ServiceNotActiveException":
|
|
2265
|
-
case "com.amazonaws.ecs#ServiceNotActiveException":
|
|
2266
|
-
throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "ServiceNotFoundException":
|
|
2268
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
2269
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "UnsupportedFeatureException":
|
|
2271
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
2272
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
2273
|
-
default:
|
|
2274
|
-
const parsedBody = parsedOutput.body;
|
|
2275
|
-
return throwDefaultError({
|
|
2276
|
-
output,
|
|
2277
|
-
parsedBody,
|
|
2278
|
-
errorCode
|
|
2279
|
-
});
|
|
2280
|
-
}
|
|
2281
|
-
}, "de_DescribeTaskSetsCommandError");
|
|
2282
1662
|
var de_DiscoverPollEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2283
1663
|
if (output.statusCode >= 300) {
|
|
2284
|
-
return
|
|
1664
|
+
return de_CommandError(output, context);
|
|
2285
1665
|
}
|
|
2286
1666
|
const data = await parseBody(output.body, context);
|
|
2287
1667
|
let contents = {};
|
|
@@ -2292,31 +1672,9 @@ var de_DiscoverPollEndpointCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2292
1672
|
};
|
|
2293
1673
|
return response;
|
|
2294
1674
|
}, "de_DiscoverPollEndpointCommand");
|
|
2295
|
-
var de_DiscoverPollEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2296
|
-
const parsedOutput = {
|
|
2297
|
-
...output,
|
|
2298
|
-
body: await parseErrorBody(output.body, context)
|
|
2299
|
-
};
|
|
2300
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2301
|
-
switch (errorCode) {
|
|
2302
|
-
case "ClientException":
|
|
2303
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2304
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2305
|
-
case "ServerException":
|
|
2306
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2307
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2308
|
-
default:
|
|
2309
|
-
const parsedBody = parsedOutput.body;
|
|
2310
|
-
return throwDefaultError({
|
|
2311
|
-
output,
|
|
2312
|
-
parsedBody,
|
|
2313
|
-
errorCode
|
|
2314
|
-
});
|
|
2315
|
-
}
|
|
2316
|
-
}, "de_DiscoverPollEndpointCommandError");
|
|
2317
1675
|
var de_ExecuteCommandCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2318
1676
|
if (output.statusCode >= 300) {
|
|
2319
|
-
return
|
|
1677
|
+
return de_CommandError(output, context);
|
|
2320
1678
|
}
|
|
2321
1679
|
const data = await parseBody(output.body, context);
|
|
2322
1680
|
let contents = {};
|
|
@@ -2327,43 +1685,9 @@ var de_ExecuteCommandCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2327
1685
|
};
|
|
2328
1686
|
return response;
|
|
2329
1687
|
}, "de_ExecuteCommandCommand");
|
|
2330
|
-
var de_ExecuteCommandCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2331
|
-
const parsedOutput = {
|
|
2332
|
-
...output,
|
|
2333
|
-
body: await parseErrorBody(output.body, context)
|
|
2334
|
-
};
|
|
2335
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2336
|
-
switch (errorCode) {
|
|
2337
|
-
case "AccessDeniedException":
|
|
2338
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
2339
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2340
|
-
case "ClientException":
|
|
2341
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2342
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2343
|
-
case "ClusterNotFoundException":
|
|
2344
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2345
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2346
|
-
case "InvalidParameterException":
|
|
2347
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2348
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2349
|
-
case "ServerException":
|
|
2350
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2351
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2352
|
-
case "TargetNotConnectedException":
|
|
2353
|
-
case "com.amazonaws.ecs#TargetNotConnectedException":
|
|
2354
|
-
throw await de_TargetNotConnectedExceptionRes(parsedOutput, context);
|
|
2355
|
-
default:
|
|
2356
|
-
const parsedBody = parsedOutput.body;
|
|
2357
|
-
return throwDefaultError({
|
|
2358
|
-
output,
|
|
2359
|
-
parsedBody,
|
|
2360
|
-
errorCode
|
|
2361
|
-
});
|
|
2362
|
-
}
|
|
2363
|
-
}, "de_ExecuteCommandCommandError");
|
|
2364
1688
|
var de_GetTaskProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2365
1689
|
if (output.statusCode >= 300) {
|
|
2366
|
-
return
|
|
1690
|
+
return de_CommandError(output, context);
|
|
2367
1691
|
}
|
|
2368
1692
|
const data = await parseBody(output.body, context);
|
|
2369
1693
|
let contents = {};
|
|
@@ -2374,46 +1698,9 @@ var de_GetTaskProtectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2374
1698
|
};
|
|
2375
1699
|
return response;
|
|
2376
1700
|
}, "de_GetTaskProtectionCommand");
|
|
2377
|
-
var de_GetTaskProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2378
|
-
const parsedOutput = {
|
|
2379
|
-
...output,
|
|
2380
|
-
body: await parseErrorBody(output.body, context)
|
|
2381
|
-
};
|
|
2382
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
|
-
switch (errorCode) {
|
|
2384
|
-
case "AccessDeniedException":
|
|
2385
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
2386
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2387
|
-
case "ClientException":
|
|
2388
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2389
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2390
|
-
case "ClusterNotFoundException":
|
|
2391
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2392
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2393
|
-
case "InvalidParameterException":
|
|
2394
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2395
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2396
|
-
case "ResourceNotFoundException":
|
|
2397
|
-
case "com.amazonaws.ecs#ResourceNotFoundException":
|
|
2398
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2399
|
-
case "ServerException":
|
|
2400
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2401
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2402
|
-
case "UnsupportedFeatureException":
|
|
2403
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
2404
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
2405
|
-
default:
|
|
2406
|
-
const parsedBody = parsedOutput.body;
|
|
2407
|
-
return throwDefaultError({
|
|
2408
|
-
output,
|
|
2409
|
-
parsedBody,
|
|
2410
|
-
errorCode
|
|
2411
|
-
});
|
|
2412
|
-
}
|
|
2413
|
-
}, "de_GetTaskProtectionCommandError");
|
|
2414
1701
|
var de_ListAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2415
1702
|
if (output.statusCode >= 300) {
|
|
2416
|
-
return
|
|
1703
|
+
return de_CommandError(output, context);
|
|
2417
1704
|
}
|
|
2418
1705
|
const data = await parseBody(output.body, context);
|
|
2419
1706
|
let contents = {};
|
|
@@ -2424,34 +1711,9 @@ var de_ListAccountSettingsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2424
1711
|
};
|
|
2425
1712
|
return response;
|
|
2426
1713
|
}, "de_ListAccountSettingsCommand");
|
|
2427
|
-
var de_ListAccountSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2428
|
-
const parsedOutput = {
|
|
2429
|
-
...output,
|
|
2430
|
-
body: await parseErrorBody(output.body, context)
|
|
2431
|
-
};
|
|
2432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2433
|
-
switch (errorCode) {
|
|
2434
|
-
case "ClientException":
|
|
2435
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2436
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2437
|
-
case "InvalidParameterException":
|
|
2438
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2439
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2440
|
-
case "ServerException":
|
|
2441
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2442
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2443
|
-
default:
|
|
2444
|
-
const parsedBody = parsedOutput.body;
|
|
2445
|
-
return throwDefaultError({
|
|
2446
|
-
output,
|
|
2447
|
-
parsedBody,
|
|
2448
|
-
errorCode
|
|
2449
|
-
});
|
|
2450
|
-
}
|
|
2451
|
-
}, "de_ListAccountSettingsCommandError");
|
|
2452
1714
|
var de_ListAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2453
1715
|
if (output.statusCode >= 300) {
|
|
2454
|
-
return
|
|
1716
|
+
return de_CommandError(output, context);
|
|
2455
1717
|
}
|
|
2456
1718
|
const data = await parseBody(output.body, context);
|
|
2457
1719
|
let contents = {};
|
|
@@ -2462,31 +1724,9 @@ var de_ListAttributesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2462
1724
|
};
|
|
2463
1725
|
return response;
|
|
2464
1726
|
}, "de_ListAttributesCommand");
|
|
2465
|
-
var de_ListAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2466
|
-
const parsedOutput = {
|
|
2467
|
-
...output,
|
|
2468
|
-
body: await parseErrorBody(output.body, context)
|
|
2469
|
-
};
|
|
2470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2471
|
-
switch (errorCode) {
|
|
2472
|
-
case "ClusterNotFoundException":
|
|
2473
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2474
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2475
|
-
case "InvalidParameterException":
|
|
2476
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2477
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2478
|
-
default:
|
|
2479
|
-
const parsedBody = parsedOutput.body;
|
|
2480
|
-
return throwDefaultError({
|
|
2481
|
-
output,
|
|
2482
|
-
parsedBody,
|
|
2483
|
-
errorCode
|
|
2484
|
-
});
|
|
2485
|
-
}
|
|
2486
|
-
}, "de_ListAttributesCommandError");
|
|
2487
1727
|
var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2488
1728
|
if (output.statusCode >= 300) {
|
|
2489
|
-
return
|
|
1729
|
+
return de_CommandError(output, context);
|
|
2490
1730
|
}
|
|
2491
1731
|
const data = await parseBody(output.body, context);
|
|
2492
1732
|
let contents = {};
|
|
@@ -2497,34 +1737,9 @@ var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2497
1737
|
};
|
|
2498
1738
|
return response;
|
|
2499
1739
|
}, "de_ListClustersCommand");
|
|
2500
|
-
var de_ListClustersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2501
|
-
const parsedOutput = {
|
|
2502
|
-
...output,
|
|
2503
|
-
body: await parseErrorBody(output.body, context)
|
|
2504
|
-
};
|
|
2505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2506
|
-
switch (errorCode) {
|
|
2507
|
-
case "ClientException":
|
|
2508
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2509
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2510
|
-
case "InvalidParameterException":
|
|
2511
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2512
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2513
|
-
case "ServerException":
|
|
2514
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2515
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2516
|
-
default:
|
|
2517
|
-
const parsedBody = parsedOutput.body;
|
|
2518
|
-
return throwDefaultError({
|
|
2519
|
-
output,
|
|
2520
|
-
parsedBody,
|
|
2521
|
-
errorCode
|
|
2522
|
-
});
|
|
2523
|
-
}
|
|
2524
|
-
}, "de_ListClustersCommandError");
|
|
2525
1740
|
var de_ListContainerInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2526
1741
|
if (output.statusCode >= 300) {
|
|
2527
|
-
return
|
|
1742
|
+
return de_CommandError(output, context);
|
|
2528
1743
|
}
|
|
2529
1744
|
const data = await parseBody(output.body, context);
|
|
2530
1745
|
let contents = {};
|
|
@@ -2535,78 +1750,22 @@ var de_ListContainerInstancesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2535
1750
|
};
|
|
2536
1751
|
return response;
|
|
2537
1752
|
}, "de_ListContainerInstancesCommand");
|
|
2538
|
-
var
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
case "ClusterNotFoundException":
|
|
2549
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2550
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2551
|
-
case "InvalidParameterException":
|
|
2552
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2553
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2554
|
-
case "ServerException":
|
|
2555
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2556
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2557
|
-
default:
|
|
2558
|
-
const parsedBody = parsedOutput.body;
|
|
2559
|
-
return throwDefaultError({
|
|
2560
|
-
output,
|
|
2561
|
-
parsedBody,
|
|
2562
|
-
errorCode
|
|
2563
|
-
});
|
|
2564
|
-
}
|
|
2565
|
-
}, "de_ListContainerInstancesCommandError");
|
|
2566
|
-
var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2567
|
-
if (output.statusCode >= 300) {
|
|
2568
|
-
return de_ListServicesCommandError(output, context);
|
|
2569
|
-
}
|
|
2570
|
-
const data = await parseBody(output.body, context);
|
|
2571
|
-
let contents = {};
|
|
2572
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2573
|
-
const response = {
|
|
2574
|
-
$metadata: deserializeMetadata(output),
|
|
2575
|
-
...contents
|
|
1753
|
+
var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1754
|
+
if (output.statusCode >= 300) {
|
|
1755
|
+
return de_CommandError(output, context);
|
|
1756
|
+
}
|
|
1757
|
+
const data = await parseBody(output.body, context);
|
|
1758
|
+
let contents = {};
|
|
1759
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1760
|
+
const response = {
|
|
1761
|
+
$metadata: deserializeMetadata(output),
|
|
1762
|
+
...contents
|
|
2576
1763
|
};
|
|
2577
1764
|
return response;
|
|
2578
1765
|
}, "de_ListServicesCommand");
|
|
2579
|
-
var de_ListServicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2580
|
-
const parsedOutput = {
|
|
2581
|
-
...output,
|
|
2582
|
-
body: await parseErrorBody(output.body, context)
|
|
2583
|
-
};
|
|
2584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2585
|
-
switch (errorCode) {
|
|
2586
|
-
case "ClientException":
|
|
2587
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2588
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2589
|
-
case "ClusterNotFoundException":
|
|
2590
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2591
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2592
|
-
case "InvalidParameterException":
|
|
2593
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2594
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2595
|
-
case "ServerException":
|
|
2596
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2597
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2598
|
-
default:
|
|
2599
|
-
const parsedBody = parsedOutput.body;
|
|
2600
|
-
return throwDefaultError({
|
|
2601
|
-
output,
|
|
2602
|
-
parsedBody,
|
|
2603
|
-
errorCode
|
|
2604
|
-
});
|
|
2605
|
-
}
|
|
2606
|
-
}, "de_ListServicesCommandError");
|
|
2607
1766
|
var de_ListServicesByNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2608
1767
|
if (output.statusCode >= 300) {
|
|
2609
|
-
return
|
|
1768
|
+
return de_CommandError(output, context);
|
|
2610
1769
|
}
|
|
2611
1770
|
const data = await parseBody(output.body, context);
|
|
2612
1771
|
let contents = {};
|
|
@@ -2617,37 +1776,9 @@ var de_ListServicesByNamespaceCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2617
1776
|
};
|
|
2618
1777
|
return response;
|
|
2619
1778
|
}, "de_ListServicesByNamespaceCommand");
|
|
2620
|
-
var de_ListServicesByNamespaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2621
|
-
const parsedOutput = {
|
|
2622
|
-
...output,
|
|
2623
|
-
body: await parseErrorBody(output.body, context)
|
|
2624
|
-
};
|
|
2625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2626
|
-
switch (errorCode) {
|
|
2627
|
-
case "ClientException":
|
|
2628
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2629
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "InvalidParameterException":
|
|
2631
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2632
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2633
|
-
case "NamespaceNotFoundException":
|
|
2634
|
-
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
2635
|
-
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
2636
|
-
case "ServerException":
|
|
2637
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2638
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2639
|
-
default:
|
|
2640
|
-
const parsedBody = parsedOutput.body;
|
|
2641
|
-
return throwDefaultError({
|
|
2642
|
-
output,
|
|
2643
|
-
parsedBody,
|
|
2644
|
-
errorCode
|
|
2645
|
-
});
|
|
2646
|
-
}
|
|
2647
|
-
}, "de_ListServicesByNamespaceCommandError");
|
|
2648
1779
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2649
1780
|
if (output.statusCode >= 300) {
|
|
2650
|
-
return
|
|
1781
|
+
return de_CommandError(output, context);
|
|
2651
1782
|
}
|
|
2652
1783
|
const data = await parseBody(output.body, context);
|
|
2653
1784
|
let contents = {};
|
|
@@ -2658,37 +1789,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2658
1789
|
};
|
|
2659
1790
|
return response;
|
|
2660
1791
|
}, "de_ListTagsForResourceCommand");
|
|
2661
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2662
|
-
const parsedOutput = {
|
|
2663
|
-
...output,
|
|
2664
|
-
body: await parseErrorBody(output.body, context)
|
|
2665
|
-
};
|
|
2666
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2667
|
-
switch (errorCode) {
|
|
2668
|
-
case "ClientException":
|
|
2669
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2670
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "ClusterNotFoundException":
|
|
2672
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2673
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "InvalidParameterException":
|
|
2675
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2676
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ServerException":
|
|
2678
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2679
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2680
|
-
default:
|
|
2681
|
-
const parsedBody = parsedOutput.body;
|
|
2682
|
-
return throwDefaultError({
|
|
2683
|
-
output,
|
|
2684
|
-
parsedBody,
|
|
2685
|
-
errorCode
|
|
2686
|
-
});
|
|
2687
|
-
}
|
|
2688
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2689
1792
|
var de_ListTaskDefinitionFamiliesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2690
1793
|
if (output.statusCode >= 300) {
|
|
2691
|
-
return
|
|
1794
|
+
return de_CommandError(output, context);
|
|
2692
1795
|
}
|
|
2693
1796
|
const data = await parseBody(output.body, context);
|
|
2694
1797
|
let contents = {};
|
|
@@ -2699,34 +1802,9 @@ var de_ListTaskDefinitionFamiliesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2699
1802
|
};
|
|
2700
1803
|
return response;
|
|
2701
1804
|
}, "de_ListTaskDefinitionFamiliesCommand");
|
|
2702
|
-
var de_ListTaskDefinitionFamiliesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2703
|
-
const parsedOutput = {
|
|
2704
|
-
...output,
|
|
2705
|
-
body: await parseErrorBody(output.body, context)
|
|
2706
|
-
};
|
|
2707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2708
|
-
switch (errorCode) {
|
|
2709
|
-
case "ClientException":
|
|
2710
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2711
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "InvalidParameterException":
|
|
2713
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2714
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "ServerException":
|
|
2716
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2717
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2718
|
-
default:
|
|
2719
|
-
const parsedBody = parsedOutput.body;
|
|
2720
|
-
return throwDefaultError({
|
|
2721
|
-
output,
|
|
2722
|
-
parsedBody,
|
|
2723
|
-
errorCode
|
|
2724
|
-
});
|
|
2725
|
-
}
|
|
2726
|
-
}, "de_ListTaskDefinitionFamiliesCommandError");
|
|
2727
1805
|
var de_ListTaskDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2728
1806
|
if (output.statusCode >= 300) {
|
|
2729
|
-
return
|
|
1807
|
+
return de_CommandError(output, context);
|
|
2730
1808
|
}
|
|
2731
1809
|
const data = await parseBody(output.body, context);
|
|
2732
1810
|
let contents = {};
|
|
@@ -2737,34 +1815,9 @@ var de_ListTaskDefinitionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2737
1815
|
};
|
|
2738
1816
|
return response;
|
|
2739
1817
|
}, "de_ListTaskDefinitionsCommand");
|
|
2740
|
-
var de_ListTaskDefinitionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2741
|
-
const parsedOutput = {
|
|
2742
|
-
...output,
|
|
2743
|
-
body: await parseErrorBody(output.body, context)
|
|
2744
|
-
};
|
|
2745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2746
|
-
switch (errorCode) {
|
|
2747
|
-
case "ClientException":
|
|
2748
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2749
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2750
|
-
case "InvalidParameterException":
|
|
2751
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2752
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2753
|
-
case "ServerException":
|
|
2754
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2755
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2756
|
-
default:
|
|
2757
|
-
const parsedBody = parsedOutput.body;
|
|
2758
|
-
return throwDefaultError({
|
|
2759
|
-
output,
|
|
2760
|
-
parsedBody,
|
|
2761
|
-
errorCode
|
|
2762
|
-
});
|
|
2763
|
-
}
|
|
2764
|
-
}, "de_ListTaskDefinitionsCommandError");
|
|
2765
1818
|
var de_ListTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2766
1819
|
if (output.statusCode >= 300) {
|
|
2767
|
-
return
|
|
1820
|
+
return de_CommandError(output, context);
|
|
2768
1821
|
}
|
|
2769
1822
|
const data = await parseBody(output.body, context);
|
|
2770
1823
|
let contents = {};
|
|
@@ -2775,40 +1828,9 @@ var de_ListTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2775
1828
|
};
|
|
2776
1829
|
return response;
|
|
2777
1830
|
}, "de_ListTasksCommand");
|
|
2778
|
-
var de_ListTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2779
|
-
const parsedOutput = {
|
|
2780
|
-
...output,
|
|
2781
|
-
body: await parseErrorBody(output.body, context)
|
|
2782
|
-
};
|
|
2783
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2784
|
-
switch (errorCode) {
|
|
2785
|
-
case "ClientException":
|
|
2786
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2787
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2788
|
-
case "ClusterNotFoundException":
|
|
2789
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2790
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2791
|
-
case "InvalidParameterException":
|
|
2792
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2793
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2794
|
-
case "ServerException":
|
|
2795
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2796
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2797
|
-
case "ServiceNotFoundException":
|
|
2798
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
2799
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
2800
|
-
default:
|
|
2801
|
-
const parsedBody = parsedOutput.body;
|
|
2802
|
-
return throwDefaultError({
|
|
2803
|
-
output,
|
|
2804
|
-
parsedBody,
|
|
2805
|
-
errorCode
|
|
2806
|
-
});
|
|
2807
|
-
}
|
|
2808
|
-
}, "de_ListTasksCommandError");
|
|
2809
1831
|
var de_PutAccountSettingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2810
1832
|
if (output.statusCode >= 300) {
|
|
2811
|
-
return
|
|
1833
|
+
return de_CommandError(output, context);
|
|
2812
1834
|
}
|
|
2813
1835
|
const data = await parseBody(output.body, context);
|
|
2814
1836
|
let contents = {};
|
|
@@ -2819,34 +1841,9 @@ var de_PutAccountSettingCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2819
1841
|
};
|
|
2820
1842
|
return response;
|
|
2821
1843
|
}, "de_PutAccountSettingCommand");
|
|
2822
|
-
var de_PutAccountSettingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2823
|
-
const parsedOutput = {
|
|
2824
|
-
...output,
|
|
2825
|
-
body: await parseErrorBody(output.body, context)
|
|
2826
|
-
};
|
|
2827
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2828
|
-
switch (errorCode) {
|
|
2829
|
-
case "ClientException":
|
|
2830
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2831
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2832
|
-
case "InvalidParameterException":
|
|
2833
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2834
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2835
|
-
case "ServerException":
|
|
2836
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2837
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2838
|
-
default:
|
|
2839
|
-
const parsedBody = parsedOutput.body;
|
|
2840
|
-
return throwDefaultError({
|
|
2841
|
-
output,
|
|
2842
|
-
parsedBody,
|
|
2843
|
-
errorCode
|
|
2844
|
-
});
|
|
2845
|
-
}
|
|
2846
|
-
}, "de_PutAccountSettingCommandError");
|
|
2847
1844
|
var de_PutAccountSettingDefaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2848
1845
|
if (output.statusCode >= 300) {
|
|
2849
|
-
return
|
|
1846
|
+
return de_CommandError(output, context);
|
|
2850
1847
|
}
|
|
2851
1848
|
const data = await parseBody(output.body, context);
|
|
2852
1849
|
let contents = {};
|
|
@@ -2857,34 +1854,9 @@ var de_PutAccountSettingDefaultCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2857
1854
|
};
|
|
2858
1855
|
return response;
|
|
2859
1856
|
}, "de_PutAccountSettingDefaultCommand");
|
|
2860
|
-
var de_PutAccountSettingDefaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2861
|
-
const parsedOutput = {
|
|
2862
|
-
...output,
|
|
2863
|
-
body: await parseErrorBody(output.body, context)
|
|
2864
|
-
};
|
|
2865
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2866
|
-
switch (errorCode) {
|
|
2867
|
-
case "ClientException":
|
|
2868
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2869
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2870
|
-
case "InvalidParameterException":
|
|
2871
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2872
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2873
|
-
case "ServerException":
|
|
2874
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2875
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2876
|
-
default:
|
|
2877
|
-
const parsedBody = parsedOutput.body;
|
|
2878
|
-
return throwDefaultError({
|
|
2879
|
-
output,
|
|
2880
|
-
parsedBody,
|
|
2881
|
-
errorCode
|
|
2882
|
-
});
|
|
2883
|
-
}
|
|
2884
|
-
}, "de_PutAccountSettingDefaultCommandError");
|
|
2885
1857
|
var de_PutAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2886
1858
|
if (output.statusCode >= 300) {
|
|
2887
|
-
return
|
|
1859
|
+
return de_CommandError(output, context);
|
|
2888
1860
|
}
|
|
2889
1861
|
const data = await parseBody(output.body, context);
|
|
2890
1862
|
let contents = {};
|
|
@@ -2895,37 +1867,9 @@ var de_PutAttributesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2895
1867
|
};
|
|
2896
1868
|
return response;
|
|
2897
1869
|
}, "de_PutAttributesCommand");
|
|
2898
|
-
var de_PutAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2899
|
-
const parsedOutput = {
|
|
2900
|
-
...output,
|
|
2901
|
-
body: await parseErrorBody(output.body, context)
|
|
2902
|
-
};
|
|
2903
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2904
|
-
switch (errorCode) {
|
|
2905
|
-
case "AttributeLimitExceededException":
|
|
2906
|
-
case "com.amazonaws.ecs#AttributeLimitExceededException":
|
|
2907
|
-
throw await de_AttributeLimitExceededExceptionRes(parsedOutput, context);
|
|
2908
|
-
case "ClusterNotFoundException":
|
|
2909
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2910
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2911
|
-
case "InvalidParameterException":
|
|
2912
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2913
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2914
|
-
case "TargetNotFoundException":
|
|
2915
|
-
case "com.amazonaws.ecs#TargetNotFoundException":
|
|
2916
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
2917
|
-
default:
|
|
2918
|
-
const parsedBody = parsedOutput.body;
|
|
2919
|
-
return throwDefaultError({
|
|
2920
|
-
output,
|
|
2921
|
-
parsedBody,
|
|
2922
|
-
errorCode
|
|
2923
|
-
});
|
|
2924
|
-
}
|
|
2925
|
-
}, "de_PutAttributesCommandError");
|
|
2926
1870
|
var de_PutClusterCapacityProvidersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2927
1871
|
if (output.statusCode >= 300) {
|
|
2928
|
-
return
|
|
1872
|
+
return de_CommandError(output, context);
|
|
2929
1873
|
}
|
|
2930
1874
|
const data = await parseBody(output.body, context);
|
|
2931
1875
|
let contents = {};
|
|
@@ -2936,43 +1880,9 @@ var de_PutClusterCapacityProvidersCommand = /* @__PURE__ */ __name(async (output
|
|
|
2936
1880
|
};
|
|
2937
1881
|
return response;
|
|
2938
1882
|
}, "de_PutClusterCapacityProvidersCommand");
|
|
2939
|
-
var de_PutClusterCapacityProvidersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2940
|
-
const parsedOutput = {
|
|
2941
|
-
...output,
|
|
2942
|
-
body: await parseErrorBody(output.body, context)
|
|
2943
|
-
};
|
|
2944
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2945
|
-
switch (errorCode) {
|
|
2946
|
-
case "ClientException":
|
|
2947
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2948
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2949
|
-
case "ClusterNotFoundException":
|
|
2950
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2951
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2952
|
-
case "InvalidParameterException":
|
|
2953
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2954
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2955
|
-
case "ResourceInUseException":
|
|
2956
|
-
case "com.amazonaws.ecs#ResourceInUseException":
|
|
2957
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2958
|
-
case "ServerException":
|
|
2959
|
-
case "com.amazonaws.ecs#ServerException":
|
|
2960
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2961
|
-
case "UpdateInProgressException":
|
|
2962
|
-
case "com.amazonaws.ecs#UpdateInProgressException":
|
|
2963
|
-
throw await de_UpdateInProgressExceptionRes(parsedOutput, context);
|
|
2964
|
-
default:
|
|
2965
|
-
const parsedBody = parsedOutput.body;
|
|
2966
|
-
return throwDefaultError({
|
|
2967
|
-
output,
|
|
2968
|
-
parsedBody,
|
|
2969
|
-
errorCode
|
|
2970
|
-
});
|
|
2971
|
-
}
|
|
2972
|
-
}, "de_PutClusterCapacityProvidersCommandError");
|
|
2973
1883
|
var de_RegisterContainerInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2974
1884
|
if (output.statusCode >= 300) {
|
|
2975
|
-
return
|
|
1885
|
+
return de_CommandError(output, context);
|
|
2976
1886
|
}
|
|
2977
1887
|
const data = await parseBody(output.body, context);
|
|
2978
1888
|
let contents = {};
|
|
@@ -2983,34 +1893,9 @@ var de_RegisterContainerInstanceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2983
1893
|
};
|
|
2984
1894
|
return response;
|
|
2985
1895
|
}, "de_RegisterContainerInstanceCommand");
|
|
2986
|
-
var de_RegisterContainerInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2987
|
-
const parsedOutput = {
|
|
2988
|
-
...output,
|
|
2989
|
-
body: await parseErrorBody(output.body, context)
|
|
2990
|
-
};
|
|
2991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2992
|
-
switch (errorCode) {
|
|
2993
|
-
case "ClientException":
|
|
2994
|
-
case "com.amazonaws.ecs#ClientException":
|
|
2995
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2996
|
-
case "InvalidParameterException":
|
|
2997
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
2998
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2999
|
-
case "ServerException":
|
|
3000
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3001
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3002
|
-
default:
|
|
3003
|
-
const parsedBody = parsedOutput.body;
|
|
3004
|
-
return throwDefaultError({
|
|
3005
|
-
output,
|
|
3006
|
-
parsedBody,
|
|
3007
|
-
errorCode
|
|
3008
|
-
});
|
|
3009
|
-
}
|
|
3010
|
-
}, "de_RegisterContainerInstanceCommandError");
|
|
3011
1896
|
var de_RegisterTaskDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3012
1897
|
if (output.statusCode >= 300) {
|
|
3013
|
-
return
|
|
1898
|
+
return de_CommandError(output, context);
|
|
3014
1899
|
}
|
|
3015
1900
|
const data = await parseBody(output.body, context);
|
|
3016
1901
|
let contents = {};
|
|
@@ -3021,137 +1906,35 @@ var de_RegisterTaskDefinitionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3021
1906
|
};
|
|
3022
1907
|
return response;
|
|
3023
1908
|
}, "de_RegisterTaskDefinitionCommand");
|
|
3024
|
-
var de_RegisterTaskDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3025
|
-
const parsedOutput = {
|
|
3026
|
-
...output,
|
|
3027
|
-
body: await parseErrorBody(output.body, context)
|
|
3028
|
-
};
|
|
3029
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3030
|
-
switch (errorCode) {
|
|
3031
|
-
case "ClientException":
|
|
3032
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3033
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3034
|
-
case "InvalidParameterException":
|
|
3035
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3036
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3037
|
-
case "ServerException":
|
|
3038
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3039
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3040
|
-
default:
|
|
3041
|
-
const parsedBody = parsedOutput.body;
|
|
3042
|
-
return throwDefaultError({
|
|
3043
|
-
output,
|
|
3044
|
-
parsedBody,
|
|
3045
|
-
errorCode
|
|
3046
|
-
});
|
|
3047
|
-
}
|
|
3048
|
-
}, "de_RegisterTaskDefinitionCommandError");
|
|
3049
1909
|
var de_RunTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3050
1910
|
if (output.statusCode >= 300) {
|
|
3051
|
-
return
|
|
1911
|
+
return de_CommandError(output, context);
|
|
3052
1912
|
}
|
|
3053
1913
|
const data = await parseBody(output.body, context);
|
|
3054
1914
|
let contents = {};
|
|
3055
1915
|
contents = de_RunTaskResponse(data, context);
|
|
3056
1916
|
const response = {
|
|
3057
|
-
$metadata: deserializeMetadata(output),
|
|
3058
|
-
...contents
|
|
3059
|
-
};
|
|
3060
|
-
return response;
|
|
3061
|
-
}, "de_RunTaskCommand");
|
|
3062
|
-
var
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
body: await parseErrorBody(output.body, context)
|
|
3066
|
-
};
|
|
3067
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3068
|
-
switch (errorCode) {
|
|
3069
|
-
case "AccessDeniedException":
|
|
3070
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
3071
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3072
|
-
case "BlockedException":
|
|
3073
|
-
case "com.amazonaws.ecs#BlockedException":
|
|
3074
|
-
throw await de_BlockedExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "ClientException":
|
|
3076
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3077
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "ClusterNotFoundException":
|
|
3079
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
3080
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3081
|
-
case "ConflictException":
|
|
3082
|
-
case "com.amazonaws.ecs#ConflictException":
|
|
3083
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3084
|
-
case "InvalidParameterException":
|
|
3085
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3086
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3087
|
-
case "PlatformTaskDefinitionIncompatibilityException":
|
|
3088
|
-
case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
|
|
3089
|
-
throw await de_PlatformTaskDefinitionIncompatibilityExceptionRes(parsedOutput, context);
|
|
3090
|
-
case "PlatformUnknownException":
|
|
3091
|
-
case "com.amazonaws.ecs#PlatformUnknownException":
|
|
3092
|
-
throw await de_PlatformUnknownExceptionRes(parsedOutput, context);
|
|
3093
|
-
case "ServerException":
|
|
3094
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3095
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3096
|
-
case "UnsupportedFeatureException":
|
|
3097
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
3098
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
3099
|
-
default:
|
|
3100
|
-
const parsedBody = parsedOutput.body;
|
|
3101
|
-
return throwDefaultError({
|
|
3102
|
-
output,
|
|
3103
|
-
parsedBody,
|
|
3104
|
-
errorCode
|
|
3105
|
-
});
|
|
3106
|
-
}
|
|
3107
|
-
}, "de_RunTaskCommandError");
|
|
3108
|
-
var de_StartTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3109
|
-
if (output.statusCode >= 300) {
|
|
3110
|
-
return de_StartTaskCommandError(output, context);
|
|
3111
|
-
}
|
|
3112
|
-
const data = await parseBody(output.body, context);
|
|
3113
|
-
let contents = {};
|
|
3114
|
-
contents = de_StartTaskResponse(data, context);
|
|
3115
|
-
const response = {
|
|
3116
|
-
$metadata: deserializeMetadata(output),
|
|
3117
|
-
...contents
|
|
3118
|
-
};
|
|
3119
|
-
return response;
|
|
3120
|
-
}, "de_StartTaskCommand");
|
|
3121
|
-
var de_StartTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3122
|
-
const parsedOutput = {
|
|
3123
|
-
...output,
|
|
3124
|
-
body: await parseErrorBody(output.body, context)
|
|
3125
|
-
};
|
|
3126
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3127
|
-
switch (errorCode) {
|
|
3128
|
-
case "ClientException":
|
|
3129
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3130
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3131
|
-
case "ClusterNotFoundException":
|
|
3132
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
3133
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3134
|
-
case "InvalidParameterException":
|
|
3135
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3136
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3137
|
-
case "ServerException":
|
|
3138
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3139
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3140
|
-
case "UnsupportedFeatureException":
|
|
3141
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
3142
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
3143
|
-
default:
|
|
3144
|
-
const parsedBody = parsedOutput.body;
|
|
3145
|
-
return throwDefaultError({
|
|
3146
|
-
output,
|
|
3147
|
-
parsedBody,
|
|
3148
|
-
errorCode
|
|
3149
|
-
});
|
|
1917
|
+
$metadata: deserializeMetadata(output),
|
|
1918
|
+
...contents
|
|
1919
|
+
};
|
|
1920
|
+
return response;
|
|
1921
|
+
}, "de_RunTaskCommand");
|
|
1922
|
+
var de_StartTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1923
|
+
if (output.statusCode >= 300) {
|
|
1924
|
+
return de_CommandError(output, context);
|
|
3150
1925
|
}
|
|
3151
|
-
|
|
1926
|
+
const data = await parseBody(output.body, context);
|
|
1927
|
+
let contents = {};
|
|
1928
|
+
contents = de_StartTaskResponse(data, context);
|
|
1929
|
+
const response = {
|
|
1930
|
+
$metadata: deserializeMetadata(output),
|
|
1931
|
+
...contents
|
|
1932
|
+
};
|
|
1933
|
+
return response;
|
|
1934
|
+
}, "de_StartTaskCommand");
|
|
3152
1935
|
var de_StopTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3153
1936
|
if (output.statusCode >= 300) {
|
|
3154
|
-
return
|
|
1937
|
+
return de_CommandError(output, context);
|
|
3155
1938
|
}
|
|
3156
1939
|
const data = await parseBody(output.body, context);
|
|
3157
1940
|
let contents = {};
|
|
@@ -3162,37 +1945,9 @@ var de_StopTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3162
1945
|
};
|
|
3163
1946
|
return response;
|
|
3164
1947
|
}, "de_StopTaskCommand");
|
|
3165
|
-
var de_StopTaskCommandError = /* @__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 "ClientException":
|
|
3173
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3174
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3175
|
-
case "ClusterNotFoundException":
|
|
3176
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
3177
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3178
|
-
case "InvalidParameterException":
|
|
3179
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3180
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3181
|
-
case "ServerException":
|
|
3182
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3183
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3184
|
-
default:
|
|
3185
|
-
const parsedBody = parsedOutput.body;
|
|
3186
|
-
return throwDefaultError({
|
|
3187
|
-
output,
|
|
3188
|
-
parsedBody,
|
|
3189
|
-
errorCode
|
|
3190
|
-
});
|
|
3191
|
-
}
|
|
3192
|
-
}, "de_StopTaskCommandError");
|
|
3193
1948
|
var de_SubmitAttachmentStateChangesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3194
1949
|
if (output.statusCode >= 300) {
|
|
3195
|
-
return
|
|
1950
|
+
return de_CommandError(output, context);
|
|
3196
1951
|
}
|
|
3197
1952
|
const data = await parseBody(output.body, context);
|
|
3198
1953
|
let contents = {};
|
|
@@ -3203,37 +1958,9 @@ var de_SubmitAttachmentStateChangesCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3203
1958
|
};
|
|
3204
1959
|
return response;
|
|
3205
1960
|
}, "de_SubmitAttachmentStateChangesCommand");
|
|
3206
|
-
var de_SubmitAttachmentStateChangesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3207
|
-
const parsedOutput = {
|
|
3208
|
-
...output,
|
|
3209
|
-
body: await parseErrorBody(output.body, context)
|
|
3210
|
-
};
|
|
3211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3212
|
-
switch (errorCode) {
|
|
3213
|
-
case "AccessDeniedException":
|
|
3214
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
3215
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3216
|
-
case "ClientException":
|
|
3217
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3218
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3219
|
-
case "InvalidParameterException":
|
|
3220
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3221
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3222
|
-
case "ServerException":
|
|
3223
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3224
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3225
|
-
default:
|
|
3226
|
-
const parsedBody = parsedOutput.body;
|
|
3227
|
-
return throwDefaultError({
|
|
3228
|
-
output,
|
|
3229
|
-
parsedBody,
|
|
3230
|
-
errorCode
|
|
3231
|
-
});
|
|
3232
|
-
}
|
|
3233
|
-
}, "de_SubmitAttachmentStateChangesCommandError");
|
|
3234
1961
|
var de_SubmitContainerStateChangeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3235
1962
|
if (output.statusCode >= 300) {
|
|
3236
|
-
return
|
|
1963
|
+
return de_CommandError(output, context);
|
|
3237
1964
|
}
|
|
3238
1965
|
const data = await parseBody(output.body, context);
|
|
3239
1966
|
let contents = {};
|
|
@@ -3244,34 +1971,9 @@ var de_SubmitContainerStateChangeCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3244
1971
|
};
|
|
3245
1972
|
return response;
|
|
3246
1973
|
}, "de_SubmitContainerStateChangeCommand");
|
|
3247
|
-
var de_SubmitContainerStateChangeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3248
|
-
const parsedOutput = {
|
|
3249
|
-
...output,
|
|
3250
|
-
body: await parseErrorBody(output.body, context)
|
|
3251
|
-
};
|
|
3252
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3253
|
-
switch (errorCode) {
|
|
3254
|
-
case "AccessDeniedException":
|
|
3255
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
3256
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3257
|
-
case "ClientException":
|
|
3258
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3259
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3260
|
-
case "ServerException":
|
|
3261
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3262
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3263
|
-
default:
|
|
3264
|
-
const parsedBody = parsedOutput.body;
|
|
3265
|
-
return throwDefaultError({
|
|
3266
|
-
output,
|
|
3267
|
-
parsedBody,
|
|
3268
|
-
errorCode
|
|
3269
|
-
});
|
|
3270
|
-
}
|
|
3271
|
-
}, "de_SubmitContainerStateChangeCommandError");
|
|
3272
1974
|
var de_SubmitTaskStateChangeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3273
1975
|
if (output.statusCode >= 300) {
|
|
3274
|
-
return
|
|
1976
|
+
return de_CommandError(output, context);
|
|
3275
1977
|
}
|
|
3276
1978
|
const data = await parseBody(output.body, context);
|
|
3277
1979
|
let contents = {};
|
|
@@ -3282,37 +1984,9 @@ var de_SubmitTaskStateChangeCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3282
1984
|
};
|
|
3283
1985
|
return response;
|
|
3284
1986
|
}, "de_SubmitTaskStateChangeCommand");
|
|
3285
|
-
var de_SubmitTaskStateChangeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3286
|
-
const parsedOutput = {
|
|
3287
|
-
...output,
|
|
3288
|
-
body: await parseErrorBody(output.body, context)
|
|
3289
|
-
};
|
|
3290
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3291
|
-
switch (errorCode) {
|
|
3292
|
-
case "AccessDeniedException":
|
|
3293
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
3294
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3295
|
-
case "ClientException":
|
|
3296
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3297
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3298
|
-
case "InvalidParameterException":
|
|
3299
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3300
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3301
|
-
case "ServerException":
|
|
3302
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3303
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3304
|
-
default:
|
|
3305
|
-
const parsedBody = parsedOutput.body;
|
|
3306
|
-
return throwDefaultError({
|
|
3307
|
-
output,
|
|
3308
|
-
parsedBody,
|
|
3309
|
-
errorCode
|
|
3310
|
-
});
|
|
3311
|
-
}
|
|
3312
|
-
}, "de_SubmitTaskStateChangeCommandError");
|
|
3313
1987
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3314
1988
|
if (output.statusCode >= 300) {
|
|
3315
|
-
return
|
|
1989
|
+
return de_CommandError(output, context);
|
|
3316
1990
|
}
|
|
3317
1991
|
const data = await parseBody(output.body, context);
|
|
3318
1992
|
let contents = {};
|
|
@@ -3323,40 +1997,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3323
1997
|
};
|
|
3324
1998
|
return response;
|
|
3325
1999
|
}, "de_TagResourceCommand");
|
|
3326
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3327
|
-
const parsedOutput = {
|
|
3328
|
-
...output,
|
|
3329
|
-
body: await parseErrorBody(output.body, context)
|
|
3330
|
-
};
|
|
3331
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3332
|
-
switch (errorCode) {
|
|
3333
|
-
case "ClientException":
|
|
3334
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3335
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3336
|
-
case "ClusterNotFoundException":
|
|
3337
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
3338
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3339
|
-
case "InvalidParameterException":
|
|
3340
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3341
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3342
|
-
case "ResourceNotFoundException":
|
|
3343
|
-
case "com.amazonaws.ecs#ResourceNotFoundException":
|
|
3344
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3345
|
-
case "ServerException":
|
|
3346
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3347
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3348
|
-
default:
|
|
3349
|
-
const parsedBody = parsedOutput.body;
|
|
3350
|
-
return throwDefaultError({
|
|
3351
|
-
output,
|
|
3352
|
-
parsedBody,
|
|
3353
|
-
errorCode
|
|
3354
|
-
});
|
|
3355
|
-
}
|
|
3356
|
-
}, "de_TagResourceCommandError");
|
|
3357
2000
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3358
2001
|
if (output.statusCode >= 300) {
|
|
3359
|
-
return
|
|
2002
|
+
return de_CommandError(output, context);
|
|
3360
2003
|
}
|
|
3361
2004
|
const data = await parseBody(output.body, context);
|
|
3362
2005
|
let contents = {};
|
|
@@ -3367,40 +2010,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3367
2010
|
};
|
|
3368
2011
|
return response;
|
|
3369
2012
|
}, "de_UntagResourceCommand");
|
|
3370
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3371
|
-
const parsedOutput = {
|
|
3372
|
-
...output,
|
|
3373
|
-
body: await parseErrorBody(output.body, context)
|
|
3374
|
-
};
|
|
3375
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3376
|
-
switch (errorCode) {
|
|
3377
|
-
case "ClientException":
|
|
3378
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3379
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3380
|
-
case "ClusterNotFoundException":
|
|
3381
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
3382
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3383
|
-
case "InvalidParameterException":
|
|
3384
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3385
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3386
|
-
case "ResourceNotFoundException":
|
|
3387
|
-
case "com.amazonaws.ecs#ResourceNotFoundException":
|
|
3388
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3389
|
-
case "ServerException":
|
|
3390
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3391
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3392
|
-
default:
|
|
3393
|
-
const parsedBody = parsedOutput.body;
|
|
3394
|
-
return throwDefaultError({
|
|
3395
|
-
output,
|
|
3396
|
-
parsedBody,
|
|
3397
|
-
errorCode
|
|
3398
|
-
});
|
|
3399
|
-
}
|
|
3400
|
-
}, "de_UntagResourceCommandError");
|
|
3401
2013
|
var de_UpdateCapacityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3402
2014
|
if (output.statusCode >= 300) {
|
|
3403
|
-
return
|
|
2015
|
+
return de_CommandError(output, context);
|
|
3404
2016
|
}
|
|
3405
2017
|
const data = await parseBody(output.body, context);
|
|
3406
2018
|
let contents = {};
|
|
@@ -3411,34 +2023,9 @@ var de_UpdateCapacityProviderCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3411
2023
|
};
|
|
3412
2024
|
return response;
|
|
3413
2025
|
}, "de_UpdateCapacityProviderCommand");
|
|
3414
|
-
var de_UpdateCapacityProviderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3415
|
-
const parsedOutput = {
|
|
3416
|
-
...output,
|
|
3417
|
-
body: await parseErrorBody(output.body, context)
|
|
3418
|
-
};
|
|
3419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3420
|
-
switch (errorCode) {
|
|
3421
|
-
case "ClientException":
|
|
3422
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3423
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3424
|
-
case "InvalidParameterException":
|
|
3425
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3426
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3427
|
-
case "ServerException":
|
|
3428
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3429
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3430
|
-
default:
|
|
3431
|
-
const parsedBody = parsedOutput.body;
|
|
3432
|
-
return throwDefaultError({
|
|
3433
|
-
output,
|
|
3434
|
-
parsedBody,
|
|
3435
|
-
errorCode
|
|
3436
|
-
});
|
|
3437
|
-
}
|
|
3438
|
-
}, "de_UpdateCapacityProviderCommandError");
|
|
3439
2026
|
var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3440
2027
|
if (output.statusCode >= 300) {
|
|
3441
|
-
return
|
|
2028
|
+
return de_CommandError(output, context);
|
|
3442
2029
|
}
|
|
3443
2030
|
const data = await parseBody(output.body, context);
|
|
3444
2031
|
let contents = {};
|
|
@@ -3449,40 +2036,9 @@ var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3449
2036
|
};
|
|
3450
2037
|
return response;
|
|
3451
2038
|
}, "de_UpdateClusterCommand");
|
|
3452
|
-
var de_UpdateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3453
|
-
const parsedOutput = {
|
|
3454
|
-
...output,
|
|
3455
|
-
body: await parseErrorBody(output.body, context)
|
|
3456
|
-
};
|
|
3457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3458
|
-
switch (errorCode) {
|
|
3459
|
-
case "ClientException":
|
|
3460
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3461
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3462
|
-
case "ClusterNotFoundException":
|
|
3463
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
3464
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3465
|
-
case "InvalidParameterException":
|
|
3466
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3467
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3468
|
-
case "NamespaceNotFoundException":
|
|
3469
|
-
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
3470
|
-
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
3471
|
-
case "ServerException":
|
|
3472
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3473
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3474
|
-
default:
|
|
3475
|
-
const parsedBody = parsedOutput.body;
|
|
3476
|
-
return throwDefaultError({
|
|
3477
|
-
output,
|
|
3478
|
-
parsedBody,
|
|
3479
|
-
errorCode
|
|
3480
|
-
});
|
|
3481
|
-
}
|
|
3482
|
-
}, "de_UpdateClusterCommandError");
|
|
3483
2039
|
var de_UpdateClusterSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3484
2040
|
if (output.statusCode >= 300) {
|
|
3485
|
-
return
|
|
2041
|
+
return de_CommandError(output, context);
|
|
3486
2042
|
}
|
|
3487
2043
|
const data = await parseBody(output.body, context);
|
|
3488
2044
|
let contents = {};
|
|
@@ -3490,40 +2046,12 @@ var de_UpdateClusterSettingsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3490
2046
|
const response = {
|
|
3491
2047
|
$metadata: deserializeMetadata(output),
|
|
3492
2048
|
...contents
|
|
3493
|
-
};
|
|
3494
|
-
return response;
|
|
3495
|
-
}, "de_UpdateClusterSettingsCommand");
|
|
3496
|
-
var de_UpdateClusterSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3497
|
-
const parsedOutput = {
|
|
3498
|
-
...output,
|
|
3499
|
-
body: await parseErrorBody(output.body, context)
|
|
3500
|
-
};
|
|
3501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3502
|
-
switch (errorCode) {
|
|
3503
|
-
case "ClientException":
|
|
3504
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3505
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3506
|
-
case "ClusterNotFoundException":
|
|
3507
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
3508
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3509
|
-
case "InvalidParameterException":
|
|
3510
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3511
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3512
|
-
case "ServerException":
|
|
3513
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3514
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3515
|
-
default:
|
|
3516
|
-
const parsedBody = parsedOutput.body;
|
|
3517
|
-
return throwDefaultError({
|
|
3518
|
-
output,
|
|
3519
|
-
parsedBody,
|
|
3520
|
-
errorCode
|
|
3521
|
-
});
|
|
3522
|
-
}
|
|
3523
|
-
}, "de_UpdateClusterSettingsCommandError");
|
|
2049
|
+
};
|
|
2050
|
+
return response;
|
|
2051
|
+
}, "de_UpdateClusterSettingsCommand");
|
|
3524
2052
|
var de_UpdateContainerAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3525
2053
|
if (output.statusCode >= 300) {
|
|
3526
|
-
return
|
|
2054
|
+
return de_CommandError(output, context);
|
|
3527
2055
|
}
|
|
3528
2056
|
const data = await parseBody(output.body, context);
|
|
3529
2057
|
let contents = {};
|
|
@@ -3534,46 +2062,9 @@ var de_UpdateContainerAgentCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3534
2062
|
};
|
|
3535
2063
|
return response;
|
|
3536
2064
|
}, "de_UpdateContainerAgentCommand");
|
|
3537
|
-
var de_UpdateContainerAgentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3538
|
-
const parsedOutput = {
|
|
3539
|
-
...output,
|
|
3540
|
-
body: await parseErrorBody(output.body, context)
|
|
3541
|
-
};
|
|
3542
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3543
|
-
switch (errorCode) {
|
|
3544
|
-
case "ClientException":
|
|
3545
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3546
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3547
|
-
case "ClusterNotFoundException":
|
|
3548
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
3549
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3550
|
-
case "InvalidParameterException":
|
|
3551
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3552
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3553
|
-
case "MissingVersionException":
|
|
3554
|
-
case "com.amazonaws.ecs#MissingVersionException":
|
|
3555
|
-
throw await de_MissingVersionExceptionRes(parsedOutput, context);
|
|
3556
|
-
case "NoUpdateAvailableException":
|
|
3557
|
-
case "com.amazonaws.ecs#NoUpdateAvailableException":
|
|
3558
|
-
throw await de_NoUpdateAvailableExceptionRes(parsedOutput, context);
|
|
3559
|
-
case "ServerException":
|
|
3560
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3561
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3562
|
-
case "UpdateInProgressException":
|
|
3563
|
-
case "com.amazonaws.ecs#UpdateInProgressException":
|
|
3564
|
-
throw await de_UpdateInProgressExceptionRes(parsedOutput, context);
|
|
3565
|
-
default:
|
|
3566
|
-
const parsedBody = parsedOutput.body;
|
|
3567
|
-
return throwDefaultError({
|
|
3568
|
-
output,
|
|
3569
|
-
parsedBody,
|
|
3570
|
-
errorCode
|
|
3571
|
-
});
|
|
3572
|
-
}
|
|
3573
|
-
}, "de_UpdateContainerAgentCommandError");
|
|
3574
2065
|
var de_UpdateContainerInstancesStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3575
2066
|
if (output.statusCode >= 300) {
|
|
3576
|
-
return
|
|
2067
|
+
return de_CommandError(output, context);
|
|
3577
2068
|
}
|
|
3578
2069
|
const data = await parseBody(output.body, context);
|
|
3579
2070
|
let contents = {};
|
|
@@ -3584,37 +2075,9 @@ var de_UpdateContainerInstancesStateCommand = /* @__PURE__ */ __name(async (outp
|
|
|
3584
2075
|
};
|
|
3585
2076
|
return response;
|
|
3586
2077
|
}, "de_UpdateContainerInstancesStateCommand");
|
|
3587
|
-
var de_UpdateContainerInstancesStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3588
|
-
const parsedOutput = {
|
|
3589
|
-
...output,
|
|
3590
|
-
body: await parseErrorBody(output.body, context)
|
|
3591
|
-
};
|
|
3592
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3593
|
-
switch (errorCode) {
|
|
3594
|
-
case "ClientException":
|
|
3595
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3596
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3597
|
-
case "ClusterNotFoundException":
|
|
3598
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
3599
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3600
|
-
case "InvalidParameterException":
|
|
3601
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3602
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3603
|
-
case "ServerException":
|
|
3604
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3605
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3606
|
-
default:
|
|
3607
|
-
const parsedBody = parsedOutput.body;
|
|
3608
|
-
return throwDefaultError({
|
|
3609
|
-
output,
|
|
3610
|
-
parsedBody,
|
|
3611
|
-
errorCode
|
|
3612
|
-
});
|
|
3613
|
-
}
|
|
3614
|
-
}, "de_UpdateContainerInstancesStateCommandError");
|
|
3615
2078
|
var de_UpdateServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3616
2079
|
if (output.statusCode >= 300) {
|
|
3617
|
-
return
|
|
2080
|
+
return de_CommandError(output, context);
|
|
3618
2081
|
}
|
|
3619
2082
|
const data = await parseBody(output.body, context);
|
|
3620
2083
|
let contents = {};
|
|
@@ -3625,58 +2088,9 @@ var de_UpdateServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3625
2088
|
};
|
|
3626
2089
|
return response;
|
|
3627
2090
|
}, "de_UpdateServiceCommand");
|
|
3628
|
-
var de_UpdateServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3629
|
-
const parsedOutput = {
|
|
3630
|
-
...output,
|
|
3631
|
-
body: await parseErrorBody(output.body, context)
|
|
3632
|
-
};
|
|
3633
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3634
|
-
switch (errorCode) {
|
|
3635
|
-
case "AccessDeniedException":
|
|
3636
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
3637
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3638
|
-
case "ClientException":
|
|
3639
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3640
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3641
|
-
case "ClusterNotFoundException":
|
|
3642
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
3643
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3644
|
-
case "InvalidParameterException":
|
|
3645
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3646
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3647
|
-
case "NamespaceNotFoundException":
|
|
3648
|
-
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
3649
|
-
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
3650
|
-
case "PlatformTaskDefinitionIncompatibilityException":
|
|
3651
|
-
case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
|
|
3652
|
-
throw await de_PlatformTaskDefinitionIncompatibilityExceptionRes(parsedOutput, context);
|
|
3653
|
-
case "PlatformUnknownException":
|
|
3654
|
-
case "com.amazonaws.ecs#PlatformUnknownException":
|
|
3655
|
-
throw await de_PlatformUnknownExceptionRes(parsedOutput, context);
|
|
3656
|
-
case "ServerException":
|
|
3657
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3658
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3659
|
-
case "ServiceNotActiveException":
|
|
3660
|
-
case "com.amazonaws.ecs#ServiceNotActiveException":
|
|
3661
|
-
throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
|
|
3662
|
-
case "ServiceNotFoundException":
|
|
3663
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
3664
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
3665
|
-
case "UnsupportedFeatureException":
|
|
3666
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
3667
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
3668
|
-
default:
|
|
3669
|
-
const parsedBody = parsedOutput.body;
|
|
3670
|
-
return throwDefaultError({
|
|
3671
|
-
output,
|
|
3672
|
-
parsedBody,
|
|
3673
|
-
errorCode
|
|
3674
|
-
});
|
|
3675
|
-
}
|
|
3676
|
-
}, "de_UpdateServiceCommandError");
|
|
3677
2091
|
var de_UpdateServicePrimaryTaskSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3678
2092
|
if (output.statusCode >= 300) {
|
|
3679
|
-
return
|
|
2093
|
+
return de_CommandError(output, context);
|
|
3680
2094
|
}
|
|
3681
2095
|
const data = await parseBody(output.body, context);
|
|
3682
2096
|
let contents = {};
|
|
@@ -3687,52 +2101,9 @@ var de_UpdateServicePrimaryTaskSetCommand = /* @__PURE__ */ __name(async (output
|
|
|
3687
2101
|
};
|
|
3688
2102
|
return response;
|
|
3689
2103
|
}, "de_UpdateServicePrimaryTaskSetCommand");
|
|
3690
|
-
var de_UpdateServicePrimaryTaskSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3691
|
-
const parsedOutput = {
|
|
3692
|
-
...output,
|
|
3693
|
-
body: await parseErrorBody(output.body, context)
|
|
3694
|
-
};
|
|
3695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3696
|
-
switch (errorCode) {
|
|
3697
|
-
case "AccessDeniedException":
|
|
3698
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
3699
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3700
|
-
case "ClientException":
|
|
3701
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3702
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3703
|
-
case "ClusterNotFoundException":
|
|
3704
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
3705
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3706
|
-
case "InvalidParameterException":
|
|
3707
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3708
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3709
|
-
case "ServerException":
|
|
3710
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3711
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3712
|
-
case "ServiceNotActiveException":
|
|
3713
|
-
case "com.amazonaws.ecs#ServiceNotActiveException":
|
|
3714
|
-
throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
|
|
3715
|
-
case "ServiceNotFoundException":
|
|
3716
|
-
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
3717
|
-
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
3718
|
-
case "TaskSetNotFoundException":
|
|
3719
|
-
case "com.amazonaws.ecs#TaskSetNotFoundException":
|
|
3720
|
-
throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context);
|
|
3721
|
-
case "UnsupportedFeatureException":
|
|
3722
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
3723
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
3724
|
-
default:
|
|
3725
|
-
const parsedBody = parsedOutput.body;
|
|
3726
|
-
return throwDefaultError({
|
|
3727
|
-
output,
|
|
3728
|
-
parsedBody,
|
|
3729
|
-
errorCode
|
|
3730
|
-
});
|
|
3731
|
-
}
|
|
3732
|
-
}, "de_UpdateServicePrimaryTaskSetCommandError");
|
|
3733
2104
|
var de_UpdateTaskProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3734
2105
|
if (output.statusCode >= 300) {
|
|
3735
|
-
return
|
|
2106
|
+
return de_CommandError(output, context);
|
|
3736
2107
|
}
|
|
3737
2108
|
const data = await parseBody(output.body, context);
|
|
3738
2109
|
let contents = {};
|
|
@@ -3743,46 +2114,9 @@ var de_UpdateTaskProtectionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3743
2114
|
};
|
|
3744
2115
|
return response;
|
|
3745
2116
|
}, "de_UpdateTaskProtectionCommand");
|
|
3746
|
-
var de_UpdateTaskProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3747
|
-
const parsedOutput = {
|
|
3748
|
-
...output,
|
|
3749
|
-
body: await parseErrorBody(output.body, context)
|
|
3750
|
-
};
|
|
3751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3752
|
-
switch (errorCode) {
|
|
3753
|
-
case "AccessDeniedException":
|
|
3754
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
3755
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3756
|
-
case "ClientException":
|
|
3757
|
-
case "com.amazonaws.ecs#ClientException":
|
|
3758
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3759
|
-
case "ClusterNotFoundException":
|
|
3760
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
3761
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3762
|
-
case "InvalidParameterException":
|
|
3763
|
-
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3764
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3765
|
-
case "ResourceNotFoundException":
|
|
3766
|
-
case "com.amazonaws.ecs#ResourceNotFoundException":
|
|
3767
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3768
|
-
case "ServerException":
|
|
3769
|
-
case "com.amazonaws.ecs#ServerException":
|
|
3770
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3771
|
-
case "UnsupportedFeatureException":
|
|
3772
|
-
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
3773
|
-
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
3774
|
-
default:
|
|
3775
|
-
const parsedBody = parsedOutput.body;
|
|
3776
|
-
return throwDefaultError({
|
|
3777
|
-
output,
|
|
3778
|
-
parsedBody,
|
|
3779
|
-
errorCode
|
|
3780
|
-
});
|
|
3781
|
-
}
|
|
3782
|
-
}, "de_UpdateTaskProtectionCommandError");
|
|
3783
2117
|
var de_UpdateTaskSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3784
2118
|
if (output.statusCode >= 300) {
|
|
3785
|
-
return
|
|
2119
|
+
return de_CommandError(output, context);
|
|
3786
2120
|
}
|
|
3787
2121
|
const data = await parseBody(output.body, context);
|
|
3788
2122
|
let contents = {};
|
|
@@ -3793,40 +2127,91 @@ var de_UpdateTaskSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3793
2127
|
};
|
|
3794
2128
|
return response;
|
|
3795
2129
|
}, "de_UpdateTaskSetCommand");
|
|
3796
|
-
var
|
|
2130
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3797
2131
|
const parsedOutput = {
|
|
3798
2132
|
...output,
|
|
3799
2133
|
body: await parseErrorBody(output.body, context)
|
|
3800
2134
|
};
|
|
3801
2135
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3802
2136
|
switch (errorCode) {
|
|
3803
|
-
case "AccessDeniedException":
|
|
3804
|
-
case "com.amazonaws.ecs#AccessDeniedException":
|
|
3805
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3806
2137
|
case "ClientException":
|
|
3807
2138
|
case "com.amazonaws.ecs#ClientException":
|
|
3808
2139
|
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3809
|
-
case "ClusterNotFoundException":
|
|
3810
|
-
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
3811
|
-
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3812
2140
|
case "InvalidParameterException":
|
|
3813
2141
|
case "com.amazonaws.ecs#InvalidParameterException":
|
|
3814
2142
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2143
|
+
case "LimitExceededException":
|
|
2144
|
+
case "com.amazonaws.ecs#LimitExceededException":
|
|
2145
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3815
2146
|
case "ServerException":
|
|
3816
2147
|
case "com.amazonaws.ecs#ServerException":
|
|
3817
2148
|
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2149
|
+
case "UpdateInProgressException":
|
|
2150
|
+
case "com.amazonaws.ecs#UpdateInProgressException":
|
|
2151
|
+
throw await de_UpdateInProgressExceptionRes(parsedOutput, context);
|
|
2152
|
+
case "NamespaceNotFoundException":
|
|
2153
|
+
case "com.amazonaws.ecs#NamespaceNotFoundException":
|
|
2154
|
+
throw await de_NamespaceNotFoundExceptionRes(parsedOutput, context);
|
|
2155
|
+
case "AccessDeniedException":
|
|
2156
|
+
case "com.amazonaws.ecs#AccessDeniedException":
|
|
2157
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2158
|
+
case "ClusterNotFoundException":
|
|
2159
|
+
case "com.amazonaws.ecs#ClusterNotFoundException":
|
|
2160
|
+
throw await de_ClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2161
|
+
case "PlatformTaskDefinitionIncompatibilityException":
|
|
2162
|
+
case "com.amazonaws.ecs#PlatformTaskDefinitionIncompatibilityException":
|
|
2163
|
+
throw await de_PlatformTaskDefinitionIncompatibilityExceptionRes(parsedOutput, context);
|
|
2164
|
+
case "PlatformUnknownException":
|
|
2165
|
+
case "com.amazonaws.ecs#PlatformUnknownException":
|
|
2166
|
+
throw await de_PlatformUnknownExceptionRes(parsedOutput, context);
|
|
2167
|
+
case "UnsupportedFeatureException":
|
|
2168
|
+
case "com.amazonaws.ecs#UnsupportedFeatureException":
|
|
2169
|
+
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
3818
2170
|
case "ServiceNotActiveException":
|
|
3819
2171
|
case "com.amazonaws.ecs#ServiceNotActiveException":
|
|
3820
2172
|
throw await de_ServiceNotActiveExceptionRes(parsedOutput, context);
|
|
3821
2173
|
case "ServiceNotFoundException":
|
|
3822
2174
|
case "com.amazonaws.ecs#ServiceNotFoundException":
|
|
3823
2175
|
throw await de_ServiceNotFoundExceptionRes(parsedOutput, context);
|
|
2176
|
+
case "TargetNotFoundException":
|
|
2177
|
+
case "com.amazonaws.ecs#TargetNotFoundException":
|
|
2178
|
+
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
2179
|
+
case "ClusterContainsContainerInstancesException":
|
|
2180
|
+
case "com.amazonaws.ecs#ClusterContainsContainerInstancesException":
|
|
2181
|
+
throw await de_ClusterContainsContainerInstancesExceptionRes(parsedOutput, context);
|
|
2182
|
+
case "ClusterContainsServicesException":
|
|
2183
|
+
case "com.amazonaws.ecs#ClusterContainsServicesException":
|
|
2184
|
+
throw await de_ClusterContainsServicesExceptionRes(parsedOutput, context);
|
|
2185
|
+
case "ClusterContainsTasksException":
|
|
2186
|
+
case "com.amazonaws.ecs#ClusterContainsTasksException":
|
|
2187
|
+
throw await de_ClusterContainsTasksExceptionRes(parsedOutput, context);
|
|
3824
2188
|
case "TaskSetNotFoundException":
|
|
3825
2189
|
case "com.amazonaws.ecs#TaskSetNotFoundException":
|
|
3826
2190
|
throw await de_TaskSetNotFoundExceptionRes(parsedOutput, context);
|
|
3827
|
-
case "
|
|
3828
|
-
case "com.amazonaws.ecs#
|
|
3829
|
-
throw await
|
|
2191
|
+
case "TargetNotConnectedException":
|
|
2192
|
+
case "com.amazonaws.ecs#TargetNotConnectedException":
|
|
2193
|
+
throw await de_TargetNotConnectedExceptionRes(parsedOutput, context);
|
|
2194
|
+
case "ResourceNotFoundException":
|
|
2195
|
+
case "com.amazonaws.ecs#ResourceNotFoundException":
|
|
2196
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2197
|
+
case "AttributeLimitExceededException":
|
|
2198
|
+
case "com.amazonaws.ecs#AttributeLimitExceededException":
|
|
2199
|
+
throw await de_AttributeLimitExceededExceptionRes(parsedOutput, context);
|
|
2200
|
+
case "ResourceInUseException":
|
|
2201
|
+
case "com.amazonaws.ecs#ResourceInUseException":
|
|
2202
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2203
|
+
case "BlockedException":
|
|
2204
|
+
case "com.amazonaws.ecs#BlockedException":
|
|
2205
|
+
throw await de_BlockedExceptionRes(parsedOutput, context);
|
|
2206
|
+
case "ConflictException":
|
|
2207
|
+
case "com.amazonaws.ecs#ConflictException":
|
|
2208
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2209
|
+
case "MissingVersionException":
|
|
2210
|
+
case "com.amazonaws.ecs#MissingVersionException":
|
|
2211
|
+
throw await de_MissingVersionExceptionRes(parsedOutput, context);
|
|
2212
|
+
case "NoUpdateAvailableException":
|
|
2213
|
+
case "com.amazonaws.ecs#NoUpdateAvailableException":
|
|
2214
|
+
throw await de_NoUpdateAvailableExceptionRes(parsedOutput, context);
|
|
3830
2215
|
default:
|
|
3831
2216
|
const parsedBody = parsedOutput.body;
|
|
3832
2217
|
return throwDefaultError({
|
|
@@ -3835,7 +2220,7 @@ var de_UpdateTaskSetCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
3835
2220
|
errorCode
|
|
3836
2221
|
});
|
|
3837
2222
|
}
|
|
3838
|
-
}, "
|
|
2223
|
+
}, "de_CommandError");
|
|
3839
2224
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3840
2225
|
const body = parsedOutput.body;
|
|
3841
2226
|
const deserialized = (0, import_smithy_client._json)(body);
|