@aws-sdk/client-sfn 3.525.0 → 3.529.1
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 +39 -79
- package/dist-es/protocols/Aws_json1_0.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -309,6 +309,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
309
309
|
var import_types = require("@smithy/types");
|
|
310
310
|
|
|
311
311
|
// src/protocols/Aws_json1_0.ts
|
|
312
|
+
var import_core2 = require("@aws-sdk/core");
|
|
312
313
|
|
|
313
314
|
|
|
314
315
|
var import_uuid = require("uuid");
|
|
@@ -1485,7 +1486,7 @@ var de_CreateActivityCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1485
1486
|
if (output.statusCode >= 300) {
|
|
1486
1487
|
return de_CommandError(output, context);
|
|
1487
1488
|
}
|
|
1488
|
-
const data = await
|
|
1489
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1489
1490
|
let contents = {};
|
|
1490
1491
|
contents = de_CreateActivityOutput(data, context);
|
|
1491
1492
|
const response = {
|
|
@@ -1498,7 +1499,7 @@ var de_CreateStateMachineCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1498
1499
|
if (output.statusCode >= 300) {
|
|
1499
1500
|
return de_CommandError(output, context);
|
|
1500
1501
|
}
|
|
1501
|
-
const data = await
|
|
1502
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1502
1503
|
let contents = {};
|
|
1503
1504
|
contents = de_CreateStateMachineOutput(data, context);
|
|
1504
1505
|
const response = {
|
|
@@ -1511,7 +1512,7 @@ var de_CreateStateMachineAliasCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1511
1512
|
if (output.statusCode >= 300) {
|
|
1512
1513
|
return de_CommandError(output, context);
|
|
1513
1514
|
}
|
|
1514
|
-
const data = await
|
|
1515
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1515
1516
|
let contents = {};
|
|
1516
1517
|
contents = de_CreateStateMachineAliasOutput(data, context);
|
|
1517
1518
|
const response = {
|
|
@@ -1524,7 +1525,7 @@ var de_DeleteActivityCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1524
1525
|
if (output.statusCode >= 300) {
|
|
1525
1526
|
return de_CommandError(output, context);
|
|
1526
1527
|
}
|
|
1527
|
-
const data = await
|
|
1528
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1528
1529
|
let contents = {};
|
|
1529
1530
|
contents = (0, import_smithy_client._json)(data);
|
|
1530
1531
|
const response = {
|
|
@@ -1537,7 +1538,7 @@ var de_DeleteStateMachineCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1537
1538
|
if (output.statusCode >= 300) {
|
|
1538
1539
|
return de_CommandError(output, context);
|
|
1539
1540
|
}
|
|
1540
|
-
const data = await
|
|
1541
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1541
1542
|
let contents = {};
|
|
1542
1543
|
contents = (0, import_smithy_client._json)(data);
|
|
1543
1544
|
const response = {
|
|
@@ -1550,7 +1551,7 @@ var de_DeleteStateMachineAliasCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1550
1551
|
if (output.statusCode >= 300) {
|
|
1551
1552
|
return de_CommandError(output, context);
|
|
1552
1553
|
}
|
|
1553
|
-
const data = await
|
|
1554
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1554
1555
|
let contents = {};
|
|
1555
1556
|
contents = (0, import_smithy_client._json)(data);
|
|
1556
1557
|
const response = {
|
|
@@ -1563,7 +1564,7 @@ var de_DeleteStateMachineVersionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1563
1564
|
if (output.statusCode >= 300) {
|
|
1564
1565
|
return de_CommandError(output, context);
|
|
1565
1566
|
}
|
|
1566
|
-
const data = await
|
|
1567
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1567
1568
|
let contents = {};
|
|
1568
1569
|
contents = (0, import_smithy_client._json)(data);
|
|
1569
1570
|
const response = {
|
|
@@ -1576,7 +1577,7 @@ var de_DescribeActivityCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1576
1577
|
if (output.statusCode >= 300) {
|
|
1577
1578
|
return de_CommandError(output, context);
|
|
1578
1579
|
}
|
|
1579
|
-
const data = await
|
|
1580
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1580
1581
|
let contents = {};
|
|
1581
1582
|
contents = de_DescribeActivityOutput(data, context);
|
|
1582
1583
|
const response = {
|
|
@@ -1589,7 +1590,7 @@ var de_DescribeExecutionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1589
1590
|
if (output.statusCode >= 300) {
|
|
1590
1591
|
return de_CommandError(output, context);
|
|
1591
1592
|
}
|
|
1592
|
-
const data = await
|
|
1593
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1593
1594
|
let contents = {};
|
|
1594
1595
|
contents = de_DescribeExecutionOutput(data, context);
|
|
1595
1596
|
const response = {
|
|
@@ -1602,7 +1603,7 @@ var de_DescribeMapRunCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1602
1603
|
if (output.statusCode >= 300) {
|
|
1603
1604
|
return de_CommandError(output, context);
|
|
1604
1605
|
}
|
|
1605
|
-
const data = await
|
|
1606
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1606
1607
|
let contents = {};
|
|
1607
1608
|
contents = de_DescribeMapRunOutput(data, context);
|
|
1608
1609
|
const response = {
|
|
@@ -1615,7 +1616,7 @@ var de_DescribeStateMachineCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1615
1616
|
if (output.statusCode >= 300) {
|
|
1616
1617
|
return de_CommandError(output, context);
|
|
1617
1618
|
}
|
|
1618
|
-
const data = await
|
|
1619
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1619
1620
|
let contents = {};
|
|
1620
1621
|
contents = de_DescribeStateMachineOutput(data, context);
|
|
1621
1622
|
const response = {
|
|
@@ -1628,7 +1629,7 @@ var de_DescribeStateMachineAliasCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1628
1629
|
if (output.statusCode >= 300) {
|
|
1629
1630
|
return de_CommandError(output, context);
|
|
1630
1631
|
}
|
|
1631
|
-
const data = await
|
|
1632
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1632
1633
|
let contents = {};
|
|
1633
1634
|
contents = de_DescribeStateMachineAliasOutput(data, context);
|
|
1634
1635
|
const response = {
|
|
@@ -1641,7 +1642,7 @@ var de_DescribeStateMachineForExecutionCommand = /* @__PURE__ */ __name(async (o
|
|
|
1641
1642
|
if (output.statusCode >= 300) {
|
|
1642
1643
|
return de_CommandError(output, context);
|
|
1643
1644
|
}
|
|
1644
|
-
const data = await
|
|
1645
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1645
1646
|
let contents = {};
|
|
1646
1647
|
contents = de_DescribeStateMachineForExecutionOutput(data, context);
|
|
1647
1648
|
const response = {
|
|
@@ -1654,7 +1655,7 @@ var de_GetActivityTaskCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1654
1655
|
if (output.statusCode >= 300) {
|
|
1655
1656
|
return de_CommandError(output, context);
|
|
1656
1657
|
}
|
|
1657
|
-
const data = await
|
|
1658
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1658
1659
|
let contents = {};
|
|
1659
1660
|
contents = (0, import_smithy_client._json)(data);
|
|
1660
1661
|
const response = {
|
|
@@ -1667,7 +1668,7 @@ var de_GetExecutionHistoryCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1667
1668
|
if (output.statusCode >= 300) {
|
|
1668
1669
|
return de_CommandError(output, context);
|
|
1669
1670
|
}
|
|
1670
|
-
const data = await
|
|
1671
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1671
1672
|
let contents = {};
|
|
1672
1673
|
contents = de_GetExecutionHistoryOutput(data, context);
|
|
1673
1674
|
const response = {
|
|
@@ -1680,7 +1681,7 @@ var de_ListActivitiesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1680
1681
|
if (output.statusCode >= 300) {
|
|
1681
1682
|
return de_CommandError(output, context);
|
|
1682
1683
|
}
|
|
1683
|
-
const data = await
|
|
1684
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1684
1685
|
let contents = {};
|
|
1685
1686
|
contents = de_ListActivitiesOutput(data, context);
|
|
1686
1687
|
const response = {
|
|
@@ -1693,7 +1694,7 @@ var de_ListExecutionsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1693
1694
|
if (output.statusCode >= 300) {
|
|
1694
1695
|
return de_CommandError(output, context);
|
|
1695
1696
|
}
|
|
1696
|
-
const data = await
|
|
1697
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1697
1698
|
let contents = {};
|
|
1698
1699
|
contents = de_ListExecutionsOutput(data, context);
|
|
1699
1700
|
const response = {
|
|
@@ -1706,7 +1707,7 @@ var de_ListMapRunsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1706
1707
|
if (output.statusCode >= 300) {
|
|
1707
1708
|
return de_CommandError(output, context);
|
|
1708
1709
|
}
|
|
1709
|
-
const data = await
|
|
1710
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1710
1711
|
let contents = {};
|
|
1711
1712
|
contents = de_ListMapRunsOutput(data, context);
|
|
1712
1713
|
const response = {
|
|
@@ -1719,7 +1720,7 @@ var de_ListStateMachineAliasesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1719
1720
|
if (output.statusCode >= 300) {
|
|
1720
1721
|
return de_CommandError(output, context);
|
|
1721
1722
|
}
|
|
1722
|
-
const data = await
|
|
1723
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1723
1724
|
let contents = {};
|
|
1724
1725
|
contents = de_ListStateMachineAliasesOutput(data, context);
|
|
1725
1726
|
const response = {
|
|
@@ -1732,7 +1733,7 @@ var de_ListStateMachinesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1732
1733
|
if (output.statusCode >= 300) {
|
|
1733
1734
|
return de_CommandError(output, context);
|
|
1734
1735
|
}
|
|
1735
|
-
const data = await
|
|
1736
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1736
1737
|
let contents = {};
|
|
1737
1738
|
contents = de_ListStateMachinesOutput(data, context);
|
|
1738
1739
|
const response = {
|
|
@@ -1745,7 +1746,7 @@ var de_ListStateMachineVersionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1745
1746
|
if (output.statusCode >= 300) {
|
|
1746
1747
|
return de_CommandError(output, context);
|
|
1747
1748
|
}
|
|
1748
|
-
const data = await
|
|
1749
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1749
1750
|
let contents = {};
|
|
1750
1751
|
contents = de_ListStateMachineVersionsOutput(data, context);
|
|
1751
1752
|
const response = {
|
|
@@ -1758,7 +1759,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1758
1759
|
if (output.statusCode >= 300) {
|
|
1759
1760
|
return de_CommandError(output, context);
|
|
1760
1761
|
}
|
|
1761
|
-
const data = await
|
|
1762
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1762
1763
|
let contents = {};
|
|
1763
1764
|
contents = (0, import_smithy_client._json)(data);
|
|
1764
1765
|
const response = {
|
|
@@ -1771,7 +1772,7 @@ var de_PublishStateMachineVersionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1771
1772
|
if (output.statusCode >= 300) {
|
|
1772
1773
|
return de_CommandError(output, context);
|
|
1773
1774
|
}
|
|
1774
|
-
const data = await
|
|
1775
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1775
1776
|
let contents = {};
|
|
1776
1777
|
contents = de_PublishStateMachineVersionOutput(data, context);
|
|
1777
1778
|
const response = {
|
|
@@ -1784,7 +1785,7 @@ var de_RedriveExecutionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1784
1785
|
if (output.statusCode >= 300) {
|
|
1785
1786
|
return de_CommandError(output, context);
|
|
1786
1787
|
}
|
|
1787
|
-
const data = await
|
|
1788
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1788
1789
|
let contents = {};
|
|
1789
1790
|
contents = de_RedriveExecutionOutput(data, context);
|
|
1790
1791
|
const response = {
|
|
@@ -1797,7 +1798,7 @@ var de_SendTaskFailureCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1797
1798
|
if (output.statusCode >= 300) {
|
|
1798
1799
|
return de_CommandError(output, context);
|
|
1799
1800
|
}
|
|
1800
|
-
const data = await
|
|
1801
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1801
1802
|
let contents = {};
|
|
1802
1803
|
contents = (0, import_smithy_client._json)(data);
|
|
1803
1804
|
const response = {
|
|
@@ -1810,7 +1811,7 @@ var de_SendTaskHeartbeatCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1810
1811
|
if (output.statusCode >= 300) {
|
|
1811
1812
|
return de_CommandError(output, context);
|
|
1812
1813
|
}
|
|
1813
|
-
const data = await
|
|
1814
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1814
1815
|
let contents = {};
|
|
1815
1816
|
contents = (0, import_smithy_client._json)(data);
|
|
1816
1817
|
const response = {
|
|
@@ -1823,7 +1824,7 @@ var de_SendTaskSuccessCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1823
1824
|
if (output.statusCode >= 300) {
|
|
1824
1825
|
return de_CommandError(output, context);
|
|
1825
1826
|
}
|
|
1826
|
-
const data = await
|
|
1827
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1827
1828
|
let contents = {};
|
|
1828
1829
|
contents = (0, import_smithy_client._json)(data);
|
|
1829
1830
|
const response = {
|
|
@@ -1836,7 +1837,7 @@ var de_StartExecutionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1836
1837
|
if (output.statusCode >= 300) {
|
|
1837
1838
|
return de_CommandError(output, context);
|
|
1838
1839
|
}
|
|
1839
|
-
const data = await
|
|
1840
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1840
1841
|
let contents = {};
|
|
1841
1842
|
contents = de_StartExecutionOutput(data, context);
|
|
1842
1843
|
const response = {
|
|
@@ -1849,7 +1850,7 @@ var de_StartSyncExecutionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1849
1850
|
if (output.statusCode >= 300) {
|
|
1850
1851
|
return de_CommandError(output, context);
|
|
1851
1852
|
}
|
|
1852
|
-
const data = await
|
|
1853
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1853
1854
|
let contents = {};
|
|
1854
1855
|
contents = de_StartSyncExecutionOutput(data, context);
|
|
1855
1856
|
const response = {
|
|
@@ -1862,7 +1863,7 @@ var de_StopExecutionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1862
1863
|
if (output.statusCode >= 300) {
|
|
1863
1864
|
return de_CommandError(output, context);
|
|
1864
1865
|
}
|
|
1865
|
-
const data = await
|
|
1866
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1866
1867
|
let contents = {};
|
|
1867
1868
|
contents = de_StopExecutionOutput(data, context);
|
|
1868
1869
|
const response = {
|
|
@@ -1875,7 +1876,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1875
1876
|
if (output.statusCode >= 300) {
|
|
1876
1877
|
return de_CommandError(output, context);
|
|
1877
1878
|
}
|
|
1878
|
-
const data = await
|
|
1879
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1879
1880
|
let contents = {};
|
|
1880
1881
|
contents = (0, import_smithy_client._json)(data);
|
|
1881
1882
|
const response = {
|
|
@@ -1888,7 +1889,7 @@ var de_TestStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1888
1889
|
if (output.statusCode >= 300) {
|
|
1889
1890
|
return de_CommandError(output, context);
|
|
1890
1891
|
}
|
|
1891
|
-
const data = await
|
|
1892
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1892
1893
|
let contents = {};
|
|
1893
1894
|
contents = (0, import_smithy_client._json)(data);
|
|
1894
1895
|
const response = {
|
|
@@ -1901,7 +1902,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1901
1902
|
if (output.statusCode >= 300) {
|
|
1902
1903
|
return de_CommandError(output, context);
|
|
1903
1904
|
}
|
|
1904
|
-
const data = await
|
|
1905
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1905
1906
|
let contents = {};
|
|
1906
1907
|
contents = (0, import_smithy_client._json)(data);
|
|
1907
1908
|
const response = {
|
|
@@ -1914,7 +1915,7 @@ var de_UpdateMapRunCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1914
1915
|
if (output.statusCode >= 300) {
|
|
1915
1916
|
return de_CommandError(output, context);
|
|
1916
1917
|
}
|
|
1917
|
-
const data = await
|
|
1918
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1918
1919
|
let contents = {};
|
|
1919
1920
|
contents = (0, import_smithy_client._json)(data);
|
|
1920
1921
|
const response = {
|
|
@@ -1927,7 +1928,7 @@ var de_UpdateStateMachineCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1927
1928
|
if (output.statusCode >= 300) {
|
|
1928
1929
|
return de_CommandError(output, context);
|
|
1929
1930
|
}
|
|
1930
|
-
const data = await
|
|
1931
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1931
1932
|
let contents = {};
|
|
1932
1933
|
contents = de_UpdateStateMachineOutput(data, context);
|
|
1933
1934
|
const response = {
|
|
@@ -1940,7 +1941,7 @@ var de_UpdateStateMachineAliasCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1940
1941
|
if (output.statusCode >= 300) {
|
|
1941
1942
|
return de_CommandError(output, context);
|
|
1942
1943
|
}
|
|
1943
|
-
const data = await
|
|
1944
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1944
1945
|
let contents = {};
|
|
1945
1946
|
contents = de_UpdateStateMachineAliasOutput(data, context);
|
|
1946
1947
|
const response = {
|
|
@@ -1952,9 +1953,9 @@ var de_UpdateStateMachineAliasCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1952
1953
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1953
1954
|
const parsedOutput = {
|
|
1954
1955
|
...output,
|
|
1955
|
-
body: await
|
|
1956
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1956
1957
|
};
|
|
1957
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1958
1959
|
switch (errorCode) {
|
|
1959
1960
|
case "ActivityLimitExceeded":
|
|
1960
1961
|
case "com.amazonaws.sfn#ActivityLimitExceeded":
|
|
@@ -2659,7 +2660,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2659
2660
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2660
2661
|
cfId: output.headers["x-amz-cf-id"]
|
|
2661
2662
|
}), "deserializeMetadata");
|
|
2662
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2663
2663
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SFNServiceException);
|
|
2664
2664
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2665
2665
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2686,46 +2686,6 @@ function sharedHeaders(operation) {
|
|
|
2686
2686
|
};
|
|
2687
2687
|
}
|
|
2688
2688
|
__name(sharedHeaders, "sharedHeaders");
|
|
2689
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2690
|
-
if (encoded.length) {
|
|
2691
|
-
return JSON.parse(encoded);
|
|
2692
|
-
}
|
|
2693
|
-
return {};
|
|
2694
|
-
}), "parseBody");
|
|
2695
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2696
|
-
const value = await parseBody(errorBody, context);
|
|
2697
|
-
value.message = value.message ?? value.Message;
|
|
2698
|
-
return value;
|
|
2699
|
-
}, "parseErrorBody");
|
|
2700
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2701
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2702
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2703
|
-
let cleanValue = rawValue;
|
|
2704
|
-
if (typeof cleanValue === "number") {
|
|
2705
|
-
cleanValue = cleanValue.toString();
|
|
2706
|
-
}
|
|
2707
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2708
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2709
|
-
}
|
|
2710
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2711
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2712
|
-
}
|
|
2713
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2714
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2715
|
-
}
|
|
2716
|
-
return cleanValue;
|
|
2717
|
-
}, "sanitizeErrorCode");
|
|
2718
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2719
|
-
if (headerKey !== void 0) {
|
|
2720
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2721
|
-
}
|
|
2722
|
-
if (data.code !== void 0) {
|
|
2723
|
-
return sanitizeErrorCode(data.code);
|
|
2724
|
-
}
|
|
2725
|
-
if (data["__type"] !== void 0) {
|
|
2726
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2727
|
-
}
|
|
2728
|
-
}, "loadRestJsonErrorCode");
|
|
2729
2689
|
|
|
2730
2690
|
// src/commands/CreateActivityCommand.ts
|
|
2731
2691
|
var _CreateActivityCommand = class _CreateActivityCommand 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, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1451,43 +1452,3 @@ function sharedHeaders(operation) {
|
|
|
1451
1452
|
"x-amz-target": `AWSStepFunctions.${operation}`,
|
|
1452
1453
|
};
|
|
1453
1454
|
}
|
|
1454
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1455
|
-
if (encoded.length) {
|
|
1456
|
-
return JSON.parse(encoded);
|
|
1457
|
-
}
|
|
1458
|
-
return {};
|
|
1459
|
-
});
|
|
1460
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1461
|
-
const value = await parseBody(errorBody, context);
|
|
1462
|
-
value.message = value.message ?? value.Message;
|
|
1463
|
-
return value;
|
|
1464
|
-
};
|
|
1465
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1466
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1467
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1468
|
-
let cleanValue = rawValue;
|
|
1469
|
-
if (typeof cleanValue === "number") {
|
|
1470
|
-
cleanValue = cleanValue.toString();
|
|
1471
|
-
}
|
|
1472
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1473
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1474
|
-
}
|
|
1475
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1476
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1477
|
-
}
|
|
1478
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1479
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1480
|
-
}
|
|
1481
|
-
return cleanValue;
|
|
1482
|
-
};
|
|
1483
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1484
|
-
if (headerKey !== undefined) {
|
|
1485
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1486
|
-
}
|
|
1487
|
-
if (data.code !== undefined) {
|
|
1488
|
-
return sanitizeErrorCode(data.code);
|
|
1489
|
-
}
|
|
1490
|
-
if (data["__type"] !== undefined) {
|
|
1491
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1492
|
-
}
|
|
1493
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sfn",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sfn Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
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-sfn",
|
|
@@ -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.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
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",
|