@aws-sdk/client-ecs 3.525.0 → 3.529.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 +59 -99
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -344,6 +344,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
344
344
|
var import_types = require("@smithy/types");
|
|
345
345
|
|
|
346
346
|
// src/protocols/Aws_json1_1.ts
|
|
347
|
+
var import_core2 = require("@aws-sdk/core");
|
|
347
348
|
|
|
348
349
|
|
|
349
350
|
var import_uuid = require("uuid");
|
|
@@ -1461,7 +1462,7 @@ var de_CreateCapacityProviderCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1461
1462
|
if (output.statusCode >= 300) {
|
|
1462
1463
|
return de_CommandError(output, context);
|
|
1463
1464
|
}
|
|
1464
|
-
const data = await
|
|
1465
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1465
1466
|
let contents = {};
|
|
1466
1467
|
contents = (0, import_smithy_client._json)(data);
|
|
1467
1468
|
const response = {
|
|
@@ -1474,7 +1475,7 @@ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1474
1475
|
if (output.statusCode >= 300) {
|
|
1475
1476
|
return de_CommandError(output, context);
|
|
1476
1477
|
}
|
|
1477
|
-
const data = await
|
|
1478
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1478
1479
|
let contents = {};
|
|
1479
1480
|
contents = (0, import_smithy_client._json)(data);
|
|
1480
1481
|
const response = {
|
|
@@ -1487,7 +1488,7 @@ var de_CreateServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1487
1488
|
if (output.statusCode >= 300) {
|
|
1488
1489
|
return de_CommandError(output, context);
|
|
1489
1490
|
}
|
|
1490
|
-
const data = await
|
|
1491
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1491
1492
|
let contents = {};
|
|
1492
1493
|
contents = de_CreateServiceResponse(data, context);
|
|
1493
1494
|
const response = {
|
|
@@ -1500,7 +1501,7 @@ var de_CreateTaskSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1500
1501
|
if (output.statusCode >= 300) {
|
|
1501
1502
|
return de_CommandError(output, context);
|
|
1502
1503
|
}
|
|
1503
|
-
const data = await
|
|
1504
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1504
1505
|
let contents = {};
|
|
1505
1506
|
contents = de_CreateTaskSetResponse(data, context);
|
|
1506
1507
|
const response = {
|
|
@@ -1513,7 +1514,7 @@ var de_DeleteAccountSettingCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1513
1514
|
if (output.statusCode >= 300) {
|
|
1514
1515
|
return de_CommandError(output, context);
|
|
1515
1516
|
}
|
|
1516
|
-
const data = await
|
|
1517
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1517
1518
|
let contents = {};
|
|
1518
1519
|
contents = (0, import_smithy_client._json)(data);
|
|
1519
1520
|
const response = {
|
|
@@ -1526,7 +1527,7 @@ var de_DeleteAttributesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1526
1527
|
if (output.statusCode >= 300) {
|
|
1527
1528
|
return de_CommandError(output, context);
|
|
1528
1529
|
}
|
|
1529
|
-
const data = await
|
|
1530
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1530
1531
|
let contents = {};
|
|
1531
1532
|
contents = (0, import_smithy_client._json)(data);
|
|
1532
1533
|
const response = {
|
|
@@ -1539,7 +1540,7 @@ var de_DeleteCapacityProviderCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1539
1540
|
if (output.statusCode >= 300) {
|
|
1540
1541
|
return de_CommandError(output, context);
|
|
1541
1542
|
}
|
|
1542
|
-
const data = await
|
|
1543
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1543
1544
|
let contents = {};
|
|
1544
1545
|
contents = (0, import_smithy_client._json)(data);
|
|
1545
1546
|
const response = {
|
|
@@ -1552,7 +1553,7 @@ var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1552
1553
|
if (output.statusCode >= 300) {
|
|
1553
1554
|
return de_CommandError(output, context);
|
|
1554
1555
|
}
|
|
1555
|
-
const data = await
|
|
1556
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1556
1557
|
let contents = {};
|
|
1557
1558
|
contents = (0, import_smithy_client._json)(data);
|
|
1558
1559
|
const response = {
|
|
@@ -1565,7 +1566,7 @@ var de_DeleteServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1565
1566
|
if (output.statusCode >= 300) {
|
|
1566
1567
|
return de_CommandError(output, context);
|
|
1567
1568
|
}
|
|
1568
|
-
const data = await
|
|
1569
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1569
1570
|
let contents = {};
|
|
1570
1571
|
contents = de_DeleteServiceResponse(data, context);
|
|
1571
1572
|
const response = {
|
|
@@ -1578,7 +1579,7 @@ var de_DeleteTaskDefinitionsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1578
1579
|
if (output.statusCode >= 300) {
|
|
1579
1580
|
return de_CommandError(output, context);
|
|
1580
1581
|
}
|
|
1581
|
-
const data = await
|
|
1582
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1582
1583
|
let contents = {};
|
|
1583
1584
|
contents = de_DeleteTaskDefinitionsResponse(data, context);
|
|
1584
1585
|
const response = {
|
|
@@ -1591,7 +1592,7 @@ var de_DeleteTaskSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1591
1592
|
if (output.statusCode >= 300) {
|
|
1592
1593
|
return de_CommandError(output, context);
|
|
1593
1594
|
}
|
|
1594
|
-
const data = await
|
|
1595
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1595
1596
|
let contents = {};
|
|
1596
1597
|
contents = de_DeleteTaskSetResponse(data, context);
|
|
1597
1598
|
const response = {
|
|
@@ -1604,7 +1605,7 @@ var de_DeregisterContainerInstanceCommand = /* @__PURE__ */ __name(async (output
|
|
|
1604
1605
|
if (output.statusCode >= 300) {
|
|
1605
1606
|
return de_CommandError(output, context);
|
|
1606
1607
|
}
|
|
1607
|
-
const data = await
|
|
1608
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1608
1609
|
let contents = {};
|
|
1609
1610
|
contents = de_DeregisterContainerInstanceResponse(data, context);
|
|
1610
1611
|
const response = {
|
|
@@ -1617,7 +1618,7 @@ var de_DeregisterTaskDefinitionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1617
1618
|
if (output.statusCode >= 300) {
|
|
1618
1619
|
return de_CommandError(output, context);
|
|
1619
1620
|
}
|
|
1620
|
-
const data = await
|
|
1621
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1621
1622
|
let contents = {};
|
|
1622
1623
|
contents = de_DeregisterTaskDefinitionResponse(data, context);
|
|
1623
1624
|
const response = {
|
|
@@ -1630,7 +1631,7 @@ var de_DescribeCapacityProvidersCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1630
1631
|
if (output.statusCode >= 300) {
|
|
1631
1632
|
return de_CommandError(output, context);
|
|
1632
1633
|
}
|
|
1633
|
-
const data = await
|
|
1634
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1634
1635
|
let contents = {};
|
|
1635
1636
|
contents = (0, import_smithy_client._json)(data);
|
|
1636
1637
|
const response = {
|
|
@@ -1643,7 +1644,7 @@ var de_DescribeClustersCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1643
1644
|
if (output.statusCode >= 300) {
|
|
1644
1645
|
return de_CommandError(output, context);
|
|
1645
1646
|
}
|
|
1646
|
-
const data = await
|
|
1647
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1647
1648
|
let contents = {};
|
|
1648
1649
|
contents = (0, import_smithy_client._json)(data);
|
|
1649
1650
|
const response = {
|
|
@@ -1656,7 +1657,7 @@ var de_DescribeContainerInstancesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1656
1657
|
if (output.statusCode >= 300) {
|
|
1657
1658
|
return de_CommandError(output, context);
|
|
1658
1659
|
}
|
|
1659
|
-
const data = await
|
|
1660
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1660
1661
|
let contents = {};
|
|
1661
1662
|
contents = de_DescribeContainerInstancesResponse(data, context);
|
|
1662
1663
|
const response = {
|
|
@@ -1669,7 +1670,7 @@ var de_DescribeServicesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1669
1670
|
if (output.statusCode >= 300) {
|
|
1670
1671
|
return de_CommandError(output, context);
|
|
1671
1672
|
}
|
|
1672
|
-
const data = await
|
|
1673
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1673
1674
|
let contents = {};
|
|
1674
1675
|
contents = de_DescribeServicesResponse(data, context);
|
|
1675
1676
|
const response = {
|
|
@@ -1682,7 +1683,7 @@ var de_DescribeTaskDefinitionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1682
1683
|
if (output.statusCode >= 300) {
|
|
1683
1684
|
return de_CommandError(output, context);
|
|
1684
1685
|
}
|
|
1685
|
-
const data = await
|
|
1686
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1686
1687
|
let contents = {};
|
|
1687
1688
|
contents = de_DescribeTaskDefinitionResponse(data, context);
|
|
1688
1689
|
const response = {
|
|
@@ -1695,7 +1696,7 @@ var de_DescribeTasksCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1695
1696
|
if (output.statusCode >= 300) {
|
|
1696
1697
|
return de_CommandError(output, context);
|
|
1697
1698
|
}
|
|
1698
|
-
const data = await
|
|
1699
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1699
1700
|
let contents = {};
|
|
1700
1701
|
contents = de_DescribeTasksResponse(data, context);
|
|
1701
1702
|
const response = {
|
|
@@ -1708,7 +1709,7 @@ var de_DescribeTaskSetsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1708
1709
|
if (output.statusCode >= 300) {
|
|
1709
1710
|
return de_CommandError(output, context);
|
|
1710
1711
|
}
|
|
1711
|
-
const data = await
|
|
1712
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1712
1713
|
let contents = {};
|
|
1713
1714
|
contents = de_DescribeTaskSetsResponse(data, context);
|
|
1714
1715
|
const response = {
|
|
@@ -1721,7 +1722,7 @@ var de_DiscoverPollEndpointCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1721
1722
|
if (output.statusCode >= 300) {
|
|
1722
1723
|
return de_CommandError(output, context);
|
|
1723
1724
|
}
|
|
1724
|
-
const data = await
|
|
1725
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1725
1726
|
let contents = {};
|
|
1726
1727
|
contents = (0, import_smithy_client._json)(data);
|
|
1727
1728
|
const response = {
|
|
@@ -1734,7 +1735,7 @@ var de_ExecuteCommandCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1734
1735
|
if (output.statusCode >= 300) {
|
|
1735
1736
|
return de_CommandError(output, context);
|
|
1736
1737
|
}
|
|
1737
|
-
const data = await
|
|
1738
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1738
1739
|
let contents = {};
|
|
1739
1740
|
contents = (0, import_smithy_client._json)(data);
|
|
1740
1741
|
const response = {
|
|
@@ -1747,7 +1748,7 @@ var de_GetTaskProtectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1747
1748
|
if (output.statusCode >= 300) {
|
|
1748
1749
|
return de_CommandError(output, context);
|
|
1749
1750
|
}
|
|
1750
|
-
const data = await
|
|
1751
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1751
1752
|
let contents = {};
|
|
1752
1753
|
contents = de_GetTaskProtectionResponse(data, context);
|
|
1753
1754
|
const response = {
|
|
@@ -1760,7 +1761,7 @@ var de_ListAccountSettingsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1760
1761
|
if (output.statusCode >= 300) {
|
|
1761
1762
|
return de_CommandError(output, context);
|
|
1762
1763
|
}
|
|
1763
|
-
const data = await
|
|
1764
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1764
1765
|
let contents = {};
|
|
1765
1766
|
contents = (0, import_smithy_client._json)(data);
|
|
1766
1767
|
const response = {
|
|
@@ -1773,7 +1774,7 @@ var de_ListAttributesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1773
1774
|
if (output.statusCode >= 300) {
|
|
1774
1775
|
return de_CommandError(output, context);
|
|
1775
1776
|
}
|
|
1776
|
-
const data = await
|
|
1777
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1777
1778
|
let contents = {};
|
|
1778
1779
|
contents = (0, import_smithy_client._json)(data);
|
|
1779
1780
|
const response = {
|
|
@@ -1786,7 +1787,7 @@ var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1786
1787
|
if (output.statusCode >= 300) {
|
|
1787
1788
|
return de_CommandError(output, context);
|
|
1788
1789
|
}
|
|
1789
|
-
const data = await
|
|
1790
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1790
1791
|
let contents = {};
|
|
1791
1792
|
contents = (0, import_smithy_client._json)(data);
|
|
1792
1793
|
const response = {
|
|
@@ -1799,7 +1800,7 @@ var de_ListContainerInstancesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1799
1800
|
if (output.statusCode >= 300) {
|
|
1800
1801
|
return de_CommandError(output, context);
|
|
1801
1802
|
}
|
|
1802
|
-
const data = await
|
|
1803
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1803
1804
|
let contents = {};
|
|
1804
1805
|
contents = (0, import_smithy_client._json)(data);
|
|
1805
1806
|
const response = {
|
|
@@ -1812,7 +1813,7 @@ var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1812
1813
|
if (output.statusCode >= 300) {
|
|
1813
1814
|
return de_CommandError(output, context);
|
|
1814
1815
|
}
|
|
1815
|
-
const data = await
|
|
1816
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1816
1817
|
let contents = {};
|
|
1817
1818
|
contents = (0, import_smithy_client._json)(data);
|
|
1818
1819
|
const response = {
|
|
@@ -1825,7 +1826,7 @@ var de_ListServicesByNamespaceCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1825
1826
|
if (output.statusCode >= 300) {
|
|
1826
1827
|
return de_CommandError(output, context);
|
|
1827
1828
|
}
|
|
1828
|
-
const data = await
|
|
1829
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1829
1830
|
let contents = {};
|
|
1830
1831
|
contents = (0, import_smithy_client._json)(data);
|
|
1831
1832
|
const response = {
|
|
@@ -1838,7 +1839,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1838
1839
|
if (output.statusCode >= 300) {
|
|
1839
1840
|
return de_CommandError(output, context);
|
|
1840
1841
|
}
|
|
1841
|
-
const data = await
|
|
1842
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1842
1843
|
let contents = {};
|
|
1843
1844
|
contents = (0, import_smithy_client._json)(data);
|
|
1844
1845
|
const response = {
|
|
@@ -1851,7 +1852,7 @@ var de_ListTaskDefinitionFamiliesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1851
1852
|
if (output.statusCode >= 300) {
|
|
1852
1853
|
return de_CommandError(output, context);
|
|
1853
1854
|
}
|
|
1854
|
-
const data = await
|
|
1855
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1855
1856
|
let contents = {};
|
|
1856
1857
|
contents = (0, import_smithy_client._json)(data);
|
|
1857
1858
|
const response = {
|
|
@@ -1864,7 +1865,7 @@ var de_ListTaskDefinitionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1864
1865
|
if (output.statusCode >= 300) {
|
|
1865
1866
|
return de_CommandError(output, context);
|
|
1866
1867
|
}
|
|
1867
|
-
const data = await
|
|
1868
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1868
1869
|
let contents = {};
|
|
1869
1870
|
contents = (0, import_smithy_client._json)(data);
|
|
1870
1871
|
const response = {
|
|
@@ -1877,7 +1878,7 @@ var de_ListTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1877
1878
|
if (output.statusCode >= 300) {
|
|
1878
1879
|
return de_CommandError(output, context);
|
|
1879
1880
|
}
|
|
1880
|
-
const data = await
|
|
1881
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1881
1882
|
let contents = {};
|
|
1882
1883
|
contents = (0, import_smithy_client._json)(data);
|
|
1883
1884
|
const response = {
|
|
@@ -1890,7 +1891,7 @@ var de_PutAccountSettingCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1890
1891
|
if (output.statusCode >= 300) {
|
|
1891
1892
|
return de_CommandError(output, context);
|
|
1892
1893
|
}
|
|
1893
|
-
const data = await
|
|
1894
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1894
1895
|
let contents = {};
|
|
1895
1896
|
contents = (0, import_smithy_client._json)(data);
|
|
1896
1897
|
const response = {
|
|
@@ -1903,7 +1904,7 @@ var de_PutAccountSettingDefaultCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1903
1904
|
if (output.statusCode >= 300) {
|
|
1904
1905
|
return de_CommandError(output, context);
|
|
1905
1906
|
}
|
|
1906
|
-
const data = await
|
|
1907
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1907
1908
|
let contents = {};
|
|
1908
1909
|
contents = (0, import_smithy_client._json)(data);
|
|
1909
1910
|
const response = {
|
|
@@ -1916,7 +1917,7 @@ var de_PutAttributesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1916
1917
|
if (output.statusCode >= 300) {
|
|
1917
1918
|
return de_CommandError(output, context);
|
|
1918
1919
|
}
|
|
1919
|
-
const data = await
|
|
1920
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1920
1921
|
let contents = {};
|
|
1921
1922
|
contents = (0, import_smithy_client._json)(data);
|
|
1922
1923
|
const response = {
|
|
@@ -1929,7 +1930,7 @@ var de_PutClusterCapacityProvidersCommand = /* @__PURE__ */ __name(async (output
|
|
|
1929
1930
|
if (output.statusCode >= 300) {
|
|
1930
1931
|
return de_CommandError(output, context);
|
|
1931
1932
|
}
|
|
1932
|
-
const data = await
|
|
1933
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1933
1934
|
let contents = {};
|
|
1934
1935
|
contents = (0, import_smithy_client._json)(data);
|
|
1935
1936
|
const response = {
|
|
@@ -1942,7 +1943,7 @@ var de_RegisterContainerInstanceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1942
1943
|
if (output.statusCode >= 300) {
|
|
1943
1944
|
return de_CommandError(output, context);
|
|
1944
1945
|
}
|
|
1945
|
-
const data = await
|
|
1946
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1946
1947
|
let contents = {};
|
|
1947
1948
|
contents = de_RegisterContainerInstanceResponse(data, context);
|
|
1948
1949
|
const response = {
|
|
@@ -1955,7 +1956,7 @@ var de_RegisterTaskDefinitionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1955
1956
|
if (output.statusCode >= 300) {
|
|
1956
1957
|
return de_CommandError(output, context);
|
|
1957
1958
|
}
|
|
1958
|
-
const data = await
|
|
1959
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1959
1960
|
let contents = {};
|
|
1960
1961
|
contents = de_RegisterTaskDefinitionResponse(data, context);
|
|
1961
1962
|
const response = {
|
|
@@ -1968,7 +1969,7 @@ var de_RunTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1968
1969
|
if (output.statusCode >= 300) {
|
|
1969
1970
|
return de_CommandError(output, context);
|
|
1970
1971
|
}
|
|
1971
|
-
const data = await
|
|
1972
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1972
1973
|
let contents = {};
|
|
1973
1974
|
contents = de_RunTaskResponse(data, context);
|
|
1974
1975
|
const response = {
|
|
@@ -1981,7 +1982,7 @@ var de_StartTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1981
1982
|
if (output.statusCode >= 300) {
|
|
1982
1983
|
return de_CommandError(output, context);
|
|
1983
1984
|
}
|
|
1984
|
-
const data = await
|
|
1985
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1985
1986
|
let contents = {};
|
|
1986
1987
|
contents = de_StartTaskResponse(data, context);
|
|
1987
1988
|
const response = {
|
|
@@ -1994,7 +1995,7 @@ var de_StopTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1994
1995
|
if (output.statusCode >= 300) {
|
|
1995
1996
|
return de_CommandError(output, context);
|
|
1996
1997
|
}
|
|
1997
|
-
const data = await
|
|
1998
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1998
1999
|
let contents = {};
|
|
1999
2000
|
contents = de_StopTaskResponse(data, context);
|
|
2000
2001
|
const response = {
|
|
@@ -2007,7 +2008,7 @@ var de_SubmitAttachmentStateChangesCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2007
2008
|
if (output.statusCode >= 300) {
|
|
2008
2009
|
return de_CommandError(output, context);
|
|
2009
2010
|
}
|
|
2010
|
-
const data = await
|
|
2011
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2011
2012
|
let contents = {};
|
|
2012
2013
|
contents = (0, import_smithy_client._json)(data);
|
|
2013
2014
|
const response = {
|
|
@@ -2020,7 +2021,7 @@ var de_SubmitContainerStateChangeCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2020
2021
|
if (output.statusCode >= 300) {
|
|
2021
2022
|
return de_CommandError(output, context);
|
|
2022
2023
|
}
|
|
2023
|
-
const data = await
|
|
2024
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2024
2025
|
let contents = {};
|
|
2025
2026
|
contents = (0, import_smithy_client._json)(data);
|
|
2026
2027
|
const response = {
|
|
@@ -2033,7 +2034,7 @@ var de_SubmitTaskStateChangeCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2033
2034
|
if (output.statusCode >= 300) {
|
|
2034
2035
|
return de_CommandError(output, context);
|
|
2035
2036
|
}
|
|
2036
|
-
const data = await
|
|
2037
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2037
2038
|
let contents = {};
|
|
2038
2039
|
contents = (0, import_smithy_client._json)(data);
|
|
2039
2040
|
const response = {
|
|
@@ -2046,7 +2047,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2046
2047
|
if (output.statusCode >= 300) {
|
|
2047
2048
|
return de_CommandError(output, context);
|
|
2048
2049
|
}
|
|
2049
|
-
const data = await
|
|
2050
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2050
2051
|
let contents = {};
|
|
2051
2052
|
contents = (0, import_smithy_client._json)(data);
|
|
2052
2053
|
const response = {
|
|
@@ -2059,7 +2060,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2059
2060
|
if (output.statusCode >= 300) {
|
|
2060
2061
|
return de_CommandError(output, context);
|
|
2061
2062
|
}
|
|
2062
|
-
const data = await
|
|
2063
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2063
2064
|
let contents = {};
|
|
2064
2065
|
contents = (0, import_smithy_client._json)(data);
|
|
2065
2066
|
const response = {
|
|
@@ -2072,7 +2073,7 @@ var de_UpdateCapacityProviderCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2072
2073
|
if (output.statusCode >= 300) {
|
|
2073
2074
|
return de_CommandError(output, context);
|
|
2074
2075
|
}
|
|
2075
|
-
const data = await
|
|
2076
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2076
2077
|
let contents = {};
|
|
2077
2078
|
contents = (0, import_smithy_client._json)(data);
|
|
2078
2079
|
const response = {
|
|
@@ -2085,7 +2086,7 @@ var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2085
2086
|
if (output.statusCode >= 300) {
|
|
2086
2087
|
return de_CommandError(output, context);
|
|
2087
2088
|
}
|
|
2088
|
-
const data = await
|
|
2089
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2089
2090
|
let contents = {};
|
|
2090
2091
|
contents = (0, import_smithy_client._json)(data);
|
|
2091
2092
|
const response = {
|
|
@@ -2098,7 +2099,7 @@ var de_UpdateClusterSettingsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2098
2099
|
if (output.statusCode >= 300) {
|
|
2099
2100
|
return de_CommandError(output, context);
|
|
2100
2101
|
}
|
|
2101
|
-
const data = await
|
|
2102
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2102
2103
|
let contents = {};
|
|
2103
2104
|
contents = (0, import_smithy_client._json)(data);
|
|
2104
2105
|
const response = {
|
|
@@ -2111,7 +2112,7 @@ var de_UpdateContainerAgentCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2111
2112
|
if (output.statusCode >= 300) {
|
|
2112
2113
|
return de_CommandError(output, context);
|
|
2113
2114
|
}
|
|
2114
|
-
const data = await
|
|
2115
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2115
2116
|
let contents = {};
|
|
2116
2117
|
contents = de_UpdateContainerAgentResponse(data, context);
|
|
2117
2118
|
const response = {
|
|
@@ -2124,7 +2125,7 @@ var de_UpdateContainerInstancesStateCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2124
2125
|
if (output.statusCode >= 300) {
|
|
2125
2126
|
return de_CommandError(output, context);
|
|
2126
2127
|
}
|
|
2127
|
-
const data = await
|
|
2128
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2128
2129
|
let contents = {};
|
|
2129
2130
|
contents = de_UpdateContainerInstancesStateResponse(data, context);
|
|
2130
2131
|
const response = {
|
|
@@ -2137,7 +2138,7 @@ var de_UpdateServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2137
2138
|
if (output.statusCode >= 300) {
|
|
2138
2139
|
return de_CommandError(output, context);
|
|
2139
2140
|
}
|
|
2140
|
-
const data = await
|
|
2141
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2141
2142
|
let contents = {};
|
|
2142
2143
|
contents = de_UpdateServiceResponse(data, context);
|
|
2143
2144
|
const response = {
|
|
@@ -2150,7 +2151,7 @@ var de_UpdateServicePrimaryTaskSetCommand = /* @__PURE__ */ __name(async (output
|
|
|
2150
2151
|
if (output.statusCode >= 300) {
|
|
2151
2152
|
return de_CommandError(output, context);
|
|
2152
2153
|
}
|
|
2153
|
-
const data = await
|
|
2154
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2154
2155
|
let contents = {};
|
|
2155
2156
|
contents = de_UpdateServicePrimaryTaskSetResponse(data, context);
|
|
2156
2157
|
const response = {
|
|
@@ -2163,7 +2164,7 @@ var de_UpdateTaskProtectionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2163
2164
|
if (output.statusCode >= 300) {
|
|
2164
2165
|
return de_CommandError(output, context);
|
|
2165
2166
|
}
|
|
2166
|
-
const data = await
|
|
2167
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2167
2168
|
let contents = {};
|
|
2168
2169
|
contents = de_UpdateTaskProtectionResponse(data, context);
|
|
2169
2170
|
const response = {
|
|
@@ -2176,7 +2177,7 @@ var de_UpdateTaskSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2176
2177
|
if (output.statusCode >= 300) {
|
|
2177
2178
|
return de_CommandError(output, context);
|
|
2178
2179
|
}
|
|
2179
|
-
const data = await
|
|
2180
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2180
2181
|
let contents = {};
|
|
2181
2182
|
contents = de_UpdateTaskSetResponse(data, context);
|
|
2182
2183
|
const response = {
|
|
@@ -2188,9 +2189,9 @@ var de_UpdateTaskSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2188
2189
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2189
2190
|
const parsedOutput = {
|
|
2190
2191
|
...output,
|
|
2191
|
-
body: await
|
|
2192
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
2192
2193
|
};
|
|
2193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
2194
2195
|
switch (errorCode) {
|
|
2195
2196
|
case "ClientException":
|
|
2196
2197
|
case "com.amazonaws.ecs#ClientException":
|
|
@@ -3068,7 +3069,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
3068
3069
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3069
3070
|
cfId: output.headers["x-amz-cf-id"]
|
|
3070
3071
|
}), "deserializeMetadata");
|
|
3071
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
3072
3072
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ECSServiceException);
|
|
3073
3073
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
3074
3074
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -3095,46 +3095,6 @@ function sharedHeaders(operation) {
|
|
|
3095
3095
|
};
|
|
3096
3096
|
}
|
|
3097
3097
|
__name(sharedHeaders, "sharedHeaders");
|
|
3098
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3099
|
-
if (encoded.length) {
|
|
3100
|
-
return JSON.parse(encoded);
|
|
3101
|
-
}
|
|
3102
|
-
return {};
|
|
3103
|
-
}), "parseBody");
|
|
3104
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
3105
|
-
const value = await parseBody(errorBody, context);
|
|
3106
|
-
value.message = value.message ?? value.Message;
|
|
3107
|
-
return value;
|
|
3108
|
-
}, "parseErrorBody");
|
|
3109
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
3110
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
3111
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
3112
|
-
let cleanValue = rawValue;
|
|
3113
|
-
if (typeof cleanValue === "number") {
|
|
3114
|
-
cleanValue = cleanValue.toString();
|
|
3115
|
-
}
|
|
3116
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3117
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3118
|
-
}
|
|
3119
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3120
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3121
|
-
}
|
|
3122
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3123
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3124
|
-
}
|
|
3125
|
-
return cleanValue;
|
|
3126
|
-
}, "sanitizeErrorCode");
|
|
3127
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3128
|
-
if (headerKey !== void 0) {
|
|
3129
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3130
|
-
}
|
|
3131
|
-
if (data.code !== void 0) {
|
|
3132
|
-
return sanitizeErrorCode(data.code);
|
|
3133
|
-
}
|
|
3134
|
-
if (data["__type"] !== void 0) {
|
|
3135
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3136
|
-
}
|
|
3137
|
-
}, "loadRestJsonErrorCode");
|
|
3138
3098
|
|
|
3139
3099
|
// src/commands/CreateCapacityProviderCommand.ts
|
|
3140
3100
|
var _CreateCapacityProviderCommand = class _CreateCapacityProviderCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -2002,43 +2003,3 @@ function sharedHeaders(operation) {
|
|
|
2002
2003
|
"x-amz-target": `AmazonEC2ContainerServiceV20141113.${operation}`,
|
|
2003
2004
|
};
|
|
2004
2005
|
}
|
|
2005
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2006
|
-
if (encoded.length) {
|
|
2007
|
-
return JSON.parse(encoded);
|
|
2008
|
-
}
|
|
2009
|
-
return {};
|
|
2010
|
-
});
|
|
2011
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2012
|
-
const value = await parseBody(errorBody, context);
|
|
2013
|
-
value.message = value.message ?? value.Message;
|
|
2014
|
-
return value;
|
|
2015
|
-
};
|
|
2016
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2017
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2018
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2019
|
-
let cleanValue = rawValue;
|
|
2020
|
-
if (typeof cleanValue === "number") {
|
|
2021
|
-
cleanValue = cleanValue.toString();
|
|
2022
|
-
}
|
|
2023
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2024
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2025
|
-
}
|
|
2026
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2027
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2028
|
-
}
|
|
2029
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2030
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2031
|
-
}
|
|
2032
|
-
return cleanValue;
|
|
2033
|
-
};
|
|
2034
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2035
|
-
if (headerKey !== undefined) {
|
|
2036
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2037
|
-
}
|
|
2038
|
-
if (data.code !== undefined) {
|
|
2039
|
-
return sanitizeErrorCode(data.code);
|
|
2040
|
-
}
|
|
2041
|
-
if (data["__type"] !== undefined) {
|
|
2042
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2043
|
-
}
|
|
2044
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ecs",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|