@aws-sdk/client-iottwinmaker 3.504.0 → 3.509.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 +81 -1281
- package/dist-es/protocols/Aws_restJson1.js +72 -1272
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1593,7 +1593,7 @@ var se_UpdateWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1593
1593
|
}, "se_UpdateWorkspaceCommand");
|
|
1594
1594
|
var de_BatchPutPropertyValuesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1595
1595
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1596
|
-
return
|
|
1596
|
+
return de_CommandError(output, context);
|
|
1597
1597
|
}
|
|
1598
1598
|
const contents = (0, import_smithy_client.map)({
|
|
1599
1599
|
$metadata: deserializeMetadata(output)
|
|
@@ -1605,37 +1605,9 @@ var de_BatchPutPropertyValuesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1605
1605
|
Object.assign(contents, doc);
|
|
1606
1606
|
return contents;
|
|
1607
1607
|
}, "de_BatchPutPropertyValuesCommand");
|
|
1608
|
-
var de_BatchPutPropertyValuesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1609
|
-
const parsedOutput = {
|
|
1610
|
-
...output,
|
|
1611
|
-
body: await parseErrorBody(output.body, context)
|
|
1612
|
-
};
|
|
1613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1614
|
-
switch (errorCode) {
|
|
1615
|
-
case "InternalServerException":
|
|
1616
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1617
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1618
|
-
case "ResourceNotFoundException":
|
|
1619
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1620
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1621
|
-
case "ThrottlingException":
|
|
1622
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1623
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1624
|
-
case "ValidationException":
|
|
1625
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1626
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1627
|
-
default:
|
|
1628
|
-
const parsedBody = parsedOutput.body;
|
|
1629
|
-
return throwDefaultError({
|
|
1630
|
-
output,
|
|
1631
|
-
parsedBody,
|
|
1632
|
-
errorCode
|
|
1633
|
-
});
|
|
1634
|
-
}
|
|
1635
|
-
}, "de_BatchPutPropertyValuesCommandError");
|
|
1636
1608
|
var de_CancelMetadataTransferJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1637
1609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1638
|
-
return
|
|
1610
|
+
return de_CommandError(output, context);
|
|
1639
1611
|
}
|
|
1640
1612
|
const contents = (0, import_smithy_client.map)({
|
|
1641
1613
|
$metadata: deserializeMetadata(output)
|
|
@@ -1651,43 +1623,9 @@ var de_CancelMetadataTransferJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1651
1623
|
Object.assign(contents, doc);
|
|
1652
1624
|
return contents;
|
|
1653
1625
|
}, "de_CancelMetadataTransferJobCommand");
|
|
1654
|
-
var de_CancelMetadataTransferJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1655
|
-
const parsedOutput = {
|
|
1656
|
-
...output,
|
|
1657
|
-
body: await parseErrorBody(output.body, context)
|
|
1658
|
-
};
|
|
1659
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
|
-
switch (errorCode) {
|
|
1661
|
-
case "AccessDeniedException":
|
|
1662
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1663
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "ConflictException":
|
|
1665
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1666
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "InternalServerException":
|
|
1668
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1669
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "ResourceNotFoundException":
|
|
1671
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1672
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1673
|
-
case "ThrottlingException":
|
|
1674
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1675
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "ValidationException":
|
|
1677
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1678
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1679
|
-
default:
|
|
1680
|
-
const parsedBody = parsedOutput.body;
|
|
1681
|
-
return throwDefaultError({
|
|
1682
|
-
output,
|
|
1683
|
-
parsedBody,
|
|
1684
|
-
errorCode
|
|
1685
|
-
});
|
|
1686
|
-
}
|
|
1687
|
-
}, "de_CancelMetadataTransferJobCommandError");
|
|
1688
1626
|
var de_CreateComponentTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1689
1627
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1690
|
-
return
|
|
1628
|
+
return de_CommandError(output, context);
|
|
1691
1629
|
}
|
|
1692
1630
|
const contents = (0, import_smithy_client.map)({
|
|
1693
1631
|
$metadata: deserializeMetadata(output)
|
|
@@ -1701,43 +1639,9 @@ var de_CreateComponentTypeCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1701
1639
|
Object.assign(contents, doc);
|
|
1702
1640
|
return contents;
|
|
1703
1641
|
}, "de_CreateComponentTypeCommand");
|
|
1704
|
-
var de_CreateComponentTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1705
|
-
const parsedOutput = {
|
|
1706
|
-
...output,
|
|
1707
|
-
body: await parseErrorBody(output.body, context)
|
|
1708
|
-
};
|
|
1709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
-
switch (errorCode) {
|
|
1711
|
-
case "AccessDeniedException":
|
|
1712
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1713
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "ConflictException":
|
|
1715
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1716
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "InternalServerException":
|
|
1718
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1719
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "ServiceQuotaExceededException":
|
|
1721
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1722
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "ThrottlingException":
|
|
1724
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1725
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1726
|
-
case "ValidationException":
|
|
1727
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1728
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1729
|
-
default:
|
|
1730
|
-
const parsedBody = parsedOutput.body;
|
|
1731
|
-
return throwDefaultError({
|
|
1732
|
-
output,
|
|
1733
|
-
parsedBody,
|
|
1734
|
-
errorCode
|
|
1735
|
-
});
|
|
1736
|
-
}
|
|
1737
|
-
}, "de_CreateComponentTypeCommandError");
|
|
1738
1642
|
var de_CreateEntityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1739
1643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1740
|
-
return
|
|
1644
|
+
return de_CommandError(output, context);
|
|
1741
1645
|
}
|
|
1742
1646
|
const contents = (0, import_smithy_client.map)({
|
|
1743
1647
|
$metadata: deserializeMetadata(output)
|
|
@@ -1752,43 +1656,9 @@ var de_CreateEntityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1752
1656
|
Object.assign(contents, doc);
|
|
1753
1657
|
return contents;
|
|
1754
1658
|
}, "de_CreateEntityCommand");
|
|
1755
|
-
var de_CreateEntityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1756
|
-
const parsedOutput = {
|
|
1757
|
-
...output,
|
|
1758
|
-
body: await parseErrorBody(output.body, context)
|
|
1759
|
-
};
|
|
1760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1761
|
-
switch (errorCode) {
|
|
1762
|
-
case "AccessDeniedException":
|
|
1763
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1764
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1765
|
-
case "ConflictException":
|
|
1766
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1767
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "InternalServerException":
|
|
1769
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1770
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "ServiceQuotaExceededException":
|
|
1772
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1773
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "ThrottlingException":
|
|
1775
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1776
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1777
|
-
case "ValidationException":
|
|
1778
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1779
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1780
|
-
default:
|
|
1781
|
-
const parsedBody = parsedOutput.body;
|
|
1782
|
-
return throwDefaultError({
|
|
1783
|
-
output,
|
|
1784
|
-
parsedBody,
|
|
1785
|
-
errorCode
|
|
1786
|
-
});
|
|
1787
|
-
}
|
|
1788
|
-
}, "de_CreateEntityCommandError");
|
|
1789
1659
|
var de_CreateMetadataTransferJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1790
1660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1791
|
-
return
|
|
1661
|
+
return de_CommandError(output, context);
|
|
1792
1662
|
}
|
|
1793
1663
|
const contents = (0, import_smithy_client.map)({
|
|
1794
1664
|
$metadata: deserializeMetadata(output)
|
|
@@ -1803,46 +1673,9 @@ var de_CreateMetadataTransferJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1803
1673
|
Object.assign(contents, doc);
|
|
1804
1674
|
return contents;
|
|
1805
1675
|
}, "de_CreateMetadataTransferJobCommand");
|
|
1806
|
-
var de_CreateMetadataTransferJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1807
|
-
const parsedOutput = {
|
|
1808
|
-
...output,
|
|
1809
|
-
body: await parseErrorBody(output.body, context)
|
|
1810
|
-
};
|
|
1811
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1812
|
-
switch (errorCode) {
|
|
1813
|
-
case "AccessDeniedException":
|
|
1814
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1815
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1816
|
-
case "ConflictException":
|
|
1817
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1818
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1819
|
-
case "InternalServerException":
|
|
1820
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1821
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1822
|
-
case "ResourceNotFoundException":
|
|
1823
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1824
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "ServiceQuotaExceededException":
|
|
1826
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1827
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "ThrottlingException":
|
|
1829
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1830
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "ValidationException":
|
|
1832
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1833
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1834
|
-
default:
|
|
1835
|
-
const parsedBody = parsedOutput.body;
|
|
1836
|
-
return throwDefaultError({
|
|
1837
|
-
output,
|
|
1838
|
-
parsedBody,
|
|
1839
|
-
errorCode
|
|
1840
|
-
});
|
|
1841
|
-
}
|
|
1842
|
-
}, "de_CreateMetadataTransferJobCommandError");
|
|
1843
1676
|
var de_CreateSceneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1844
1677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1845
|
-
return
|
|
1678
|
+
return de_CommandError(output, context);
|
|
1846
1679
|
}
|
|
1847
1680
|
const contents = (0, import_smithy_client.map)({
|
|
1848
1681
|
$metadata: deserializeMetadata(output)
|
|
@@ -1855,43 +1688,9 @@ var de_CreateSceneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1855
1688
|
Object.assign(contents, doc);
|
|
1856
1689
|
return contents;
|
|
1857
1690
|
}, "de_CreateSceneCommand");
|
|
1858
|
-
var de_CreateSceneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1859
|
-
const parsedOutput = {
|
|
1860
|
-
...output,
|
|
1861
|
-
body: await parseErrorBody(output.body, context)
|
|
1862
|
-
};
|
|
1863
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1864
|
-
switch (errorCode) {
|
|
1865
|
-
case "AccessDeniedException":
|
|
1866
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1867
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1868
|
-
case "ConflictException":
|
|
1869
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1870
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1871
|
-
case "InternalServerException":
|
|
1872
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1873
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1874
|
-
case "ServiceQuotaExceededException":
|
|
1875
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1876
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1877
|
-
case "ThrottlingException":
|
|
1878
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1879
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1880
|
-
case "ValidationException":
|
|
1881
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1882
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1883
|
-
default:
|
|
1884
|
-
const parsedBody = parsedOutput.body;
|
|
1885
|
-
return throwDefaultError({
|
|
1886
|
-
output,
|
|
1887
|
-
parsedBody,
|
|
1888
|
-
errorCode
|
|
1889
|
-
});
|
|
1890
|
-
}
|
|
1891
|
-
}, "de_CreateSceneCommandError");
|
|
1892
1691
|
var de_CreateSyncJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1893
1692
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1894
|
-
return
|
|
1693
|
+
return de_CommandError(output, context);
|
|
1895
1694
|
}
|
|
1896
1695
|
const contents = (0, import_smithy_client.map)({
|
|
1897
1696
|
$metadata: deserializeMetadata(output)
|
|
@@ -1905,43 +1704,9 @@ var de_CreateSyncJobCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1905
1704
|
Object.assign(contents, doc);
|
|
1906
1705
|
return contents;
|
|
1907
1706
|
}, "de_CreateSyncJobCommand");
|
|
1908
|
-
var de_CreateSyncJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1909
|
-
const parsedOutput = {
|
|
1910
|
-
...output,
|
|
1911
|
-
body: await parseErrorBody(output.body, context)
|
|
1912
|
-
};
|
|
1913
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
|
-
switch (errorCode) {
|
|
1915
|
-
case "AccessDeniedException":
|
|
1916
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1917
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1918
|
-
case "ConflictException":
|
|
1919
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1920
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1921
|
-
case "InternalServerException":
|
|
1922
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1923
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1924
|
-
case "ServiceQuotaExceededException":
|
|
1925
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1926
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1927
|
-
case "ThrottlingException":
|
|
1928
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1929
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1930
|
-
case "ValidationException":
|
|
1931
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1932
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1933
|
-
default:
|
|
1934
|
-
const parsedBody = parsedOutput.body;
|
|
1935
|
-
return throwDefaultError({
|
|
1936
|
-
output,
|
|
1937
|
-
parsedBody,
|
|
1938
|
-
errorCode
|
|
1939
|
-
});
|
|
1940
|
-
}
|
|
1941
|
-
}, "de_CreateSyncJobCommandError");
|
|
1942
1707
|
var de_CreateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1943
1708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1944
|
-
return
|
|
1709
|
+
return de_CommandError(output, context);
|
|
1945
1710
|
}
|
|
1946
1711
|
const contents = (0, import_smithy_client.map)({
|
|
1947
1712
|
$metadata: deserializeMetadata(output)
|
|
@@ -1954,43 +1719,9 @@ var de_CreateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1954
1719
|
Object.assign(contents, doc);
|
|
1955
1720
|
return contents;
|
|
1956
1721
|
}, "de_CreateWorkspaceCommand");
|
|
1957
|
-
var de_CreateWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1958
|
-
const parsedOutput = {
|
|
1959
|
-
...output,
|
|
1960
|
-
body: await parseErrorBody(output.body, context)
|
|
1961
|
-
};
|
|
1962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1963
|
-
switch (errorCode) {
|
|
1964
|
-
case "AccessDeniedException":
|
|
1965
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1966
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "ConflictException":
|
|
1968
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1969
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "InternalServerException":
|
|
1971
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1972
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1973
|
-
case "ServiceQuotaExceededException":
|
|
1974
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1975
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1976
|
-
case "ThrottlingException":
|
|
1977
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1978
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1979
|
-
case "ValidationException":
|
|
1980
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1981
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1982
|
-
default:
|
|
1983
|
-
const parsedBody = parsedOutput.body;
|
|
1984
|
-
return throwDefaultError({
|
|
1985
|
-
output,
|
|
1986
|
-
parsedBody,
|
|
1987
|
-
errorCode
|
|
1988
|
-
});
|
|
1989
|
-
}
|
|
1990
|
-
}, "de_CreateWorkspaceCommandError");
|
|
1991
1722
|
var de_DeleteComponentTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1992
1723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1993
|
-
return
|
|
1724
|
+
return de_CommandError(output, context);
|
|
1994
1725
|
}
|
|
1995
1726
|
const contents = (0, import_smithy_client.map)({
|
|
1996
1727
|
$metadata: deserializeMetadata(output)
|
|
@@ -2002,40 +1733,9 @@ var de_DeleteComponentTypeCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2002
1733
|
Object.assign(contents, doc);
|
|
2003
1734
|
return contents;
|
|
2004
1735
|
}, "de_DeleteComponentTypeCommand");
|
|
2005
|
-
var de_DeleteComponentTypeCommandError = /* @__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 "AccessDeniedException":
|
|
2013
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2014
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "InternalServerException":
|
|
2016
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2017
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "ResourceNotFoundException":
|
|
2019
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2020
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2021
|
-
case "ThrottlingException":
|
|
2022
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2023
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2024
|
-
case "ValidationException":
|
|
2025
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2026
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2027
|
-
default:
|
|
2028
|
-
const parsedBody = parsedOutput.body;
|
|
2029
|
-
return throwDefaultError({
|
|
2030
|
-
output,
|
|
2031
|
-
parsedBody,
|
|
2032
|
-
errorCode
|
|
2033
|
-
});
|
|
2034
|
-
}
|
|
2035
|
-
}, "de_DeleteComponentTypeCommandError");
|
|
2036
1736
|
var de_DeleteEntityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2037
1737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2038
|
-
return
|
|
1738
|
+
return de_CommandError(output, context);
|
|
2039
1739
|
}
|
|
2040
1740
|
const contents = (0, import_smithy_client.map)({
|
|
2041
1741
|
$metadata: deserializeMetadata(output)
|
|
@@ -2047,40 +1747,9 @@ var de_DeleteEntityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2047
1747
|
Object.assign(contents, doc);
|
|
2048
1748
|
return contents;
|
|
2049
1749
|
}, "de_DeleteEntityCommand");
|
|
2050
|
-
var de_DeleteEntityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2051
|
-
const parsedOutput = {
|
|
2052
|
-
...output,
|
|
2053
|
-
body: await parseErrorBody(output.body, context)
|
|
2054
|
-
};
|
|
2055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2056
|
-
switch (errorCode) {
|
|
2057
|
-
case "InternalServerException":
|
|
2058
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2059
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2060
|
-
case "ResourceNotFoundException":
|
|
2061
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2062
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "ServiceQuotaExceededException":
|
|
2064
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2065
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "ThrottlingException":
|
|
2067
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2068
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "ValidationException":
|
|
2070
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2071
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2072
|
-
default:
|
|
2073
|
-
const parsedBody = parsedOutput.body;
|
|
2074
|
-
return throwDefaultError({
|
|
2075
|
-
output,
|
|
2076
|
-
parsedBody,
|
|
2077
|
-
errorCode
|
|
2078
|
-
});
|
|
2079
|
-
}
|
|
2080
|
-
}, "de_DeleteEntityCommandError");
|
|
2081
1750
|
var de_DeleteSceneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2082
1751
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2083
|
-
return
|
|
1752
|
+
return de_CommandError(output, context);
|
|
2084
1753
|
}
|
|
2085
1754
|
const contents = (0, import_smithy_client.map)({
|
|
2086
1755
|
$metadata: deserializeMetadata(output)
|
|
@@ -2088,40 +1757,9 @@ var de_DeleteSceneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2088
1757
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2089
1758
|
return contents;
|
|
2090
1759
|
}, "de_DeleteSceneCommand");
|
|
2091
|
-
var de_DeleteSceneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2092
|
-
const parsedOutput = {
|
|
2093
|
-
...output,
|
|
2094
|
-
body: await parseErrorBody(output.body, context)
|
|
2095
|
-
};
|
|
2096
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2097
|
-
switch (errorCode) {
|
|
2098
|
-
case "AccessDeniedException":
|
|
2099
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2100
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2101
|
-
case "InternalServerException":
|
|
2102
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2103
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "ResourceNotFoundException":
|
|
2105
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2106
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "ThrottlingException":
|
|
2108
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2109
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2110
|
-
case "ValidationException":
|
|
2111
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2112
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2113
|
-
default:
|
|
2114
|
-
const parsedBody = parsedOutput.body;
|
|
2115
|
-
return throwDefaultError({
|
|
2116
|
-
output,
|
|
2117
|
-
parsedBody,
|
|
2118
|
-
errorCode
|
|
2119
|
-
});
|
|
2120
|
-
}
|
|
2121
|
-
}, "de_DeleteSceneCommandError");
|
|
2122
1760
|
var de_DeleteSyncJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2123
1761
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2124
|
-
return
|
|
1762
|
+
return de_CommandError(output, context);
|
|
2125
1763
|
}
|
|
2126
1764
|
const contents = (0, import_smithy_client.map)({
|
|
2127
1765
|
$metadata: deserializeMetadata(output)
|
|
@@ -2133,43 +1771,9 @@ var de_DeleteSyncJobCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2133
1771
|
Object.assign(contents, doc);
|
|
2134
1772
|
return contents;
|
|
2135
1773
|
}, "de_DeleteSyncJobCommand");
|
|
2136
|
-
var de_DeleteSyncJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2137
|
-
const parsedOutput = {
|
|
2138
|
-
...output,
|
|
2139
|
-
body: await parseErrorBody(output.body, context)
|
|
2140
|
-
};
|
|
2141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2142
|
-
switch (errorCode) {
|
|
2143
|
-
case "AccessDeniedException":
|
|
2144
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2145
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "InternalServerException":
|
|
2147
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2148
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "ResourceNotFoundException":
|
|
2150
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2151
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "ServiceQuotaExceededException":
|
|
2153
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2154
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "ThrottlingException":
|
|
2156
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2157
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "ValidationException":
|
|
2159
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2160
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2161
|
-
default:
|
|
2162
|
-
const parsedBody = parsedOutput.body;
|
|
2163
|
-
return throwDefaultError({
|
|
2164
|
-
output,
|
|
2165
|
-
parsedBody,
|
|
2166
|
-
errorCode
|
|
2167
|
-
});
|
|
2168
|
-
}
|
|
2169
|
-
}, "de_DeleteSyncJobCommandError");
|
|
2170
1774
|
var de_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2171
1775
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2172
|
-
return
|
|
1776
|
+
return de_CommandError(output, context);
|
|
2173
1777
|
}
|
|
2174
1778
|
const contents = (0, import_smithy_client.map)({
|
|
2175
1779
|
$metadata: deserializeMetadata(output)
|
|
@@ -2181,40 +1785,9 @@ var de_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2181
1785
|
Object.assign(contents, doc);
|
|
2182
1786
|
return contents;
|
|
2183
1787
|
}, "de_DeleteWorkspaceCommand");
|
|
2184
|
-
var de_DeleteWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2185
|
-
const parsedOutput = {
|
|
2186
|
-
...output,
|
|
2187
|
-
body: await parseErrorBody(output.body, context)
|
|
2188
|
-
};
|
|
2189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2190
|
-
switch (errorCode) {
|
|
2191
|
-
case "AccessDeniedException":
|
|
2192
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2193
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "InternalServerException":
|
|
2195
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2196
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "ResourceNotFoundException":
|
|
2198
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2199
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "ThrottlingException":
|
|
2201
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2202
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2203
|
-
case "ValidationException":
|
|
2204
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2205
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2206
|
-
default:
|
|
2207
|
-
const parsedBody = parsedOutput.body;
|
|
2208
|
-
return throwDefaultError({
|
|
2209
|
-
output,
|
|
2210
|
-
parsedBody,
|
|
2211
|
-
errorCode
|
|
2212
|
-
});
|
|
2213
|
-
}
|
|
2214
|
-
}, "de_DeleteWorkspaceCommandError");
|
|
2215
1788
|
var de_ExecuteQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2216
1789
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2217
|
-
return
|
|
1790
|
+
return de_CommandError(output, context);
|
|
2218
1791
|
}
|
|
2219
1792
|
const contents = (0, import_smithy_client.map)({
|
|
2220
1793
|
$metadata: deserializeMetadata(output)
|
|
@@ -2228,43 +1801,9 @@ var de_ExecuteQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2228
1801
|
Object.assign(contents, doc);
|
|
2229
1802
|
return contents;
|
|
2230
1803
|
}, "de_ExecuteQueryCommand");
|
|
2231
|
-
var de_ExecuteQueryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2232
|
-
const parsedOutput = {
|
|
2233
|
-
...output,
|
|
2234
|
-
body: await parseErrorBody(output.body, context)
|
|
2235
|
-
};
|
|
2236
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
|
-
switch (errorCode) {
|
|
2238
|
-
case "AccessDeniedException":
|
|
2239
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2240
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "InternalServerException":
|
|
2242
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2243
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "QueryTimeoutException":
|
|
2245
|
-
case "com.amazonaws.iottwinmaker#QueryTimeoutException":
|
|
2246
|
-
throw await de_QueryTimeoutExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ServiceQuotaExceededException":
|
|
2248
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2249
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "ThrottlingException":
|
|
2251
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2252
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2253
|
-
case "ValidationException":
|
|
2254
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2255
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2256
|
-
default:
|
|
2257
|
-
const parsedBody = parsedOutput.body;
|
|
2258
|
-
return throwDefaultError({
|
|
2259
|
-
output,
|
|
2260
|
-
parsedBody,
|
|
2261
|
-
errorCode
|
|
2262
|
-
});
|
|
2263
|
-
}
|
|
2264
|
-
}, "de_ExecuteQueryCommandError");
|
|
2265
1804
|
var de_GetComponentTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2266
1805
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2267
|
-
return
|
|
1806
|
+
return de_CommandError(output, context);
|
|
2268
1807
|
}
|
|
2269
1808
|
const contents = (0, import_smithy_client.map)({
|
|
2270
1809
|
$metadata: deserializeMetadata(output)
|
|
@@ -2292,40 +1831,9 @@ var de_GetComponentTypeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2292
1831
|
Object.assign(contents, doc);
|
|
2293
1832
|
return contents;
|
|
2294
1833
|
}, "de_GetComponentTypeCommand");
|
|
2295
|
-
var de_GetComponentTypeCommandError = /* @__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 "AccessDeniedException":
|
|
2303
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2304
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2305
|
-
case "InternalServerException":
|
|
2306
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2307
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2308
|
-
case "ResourceNotFoundException":
|
|
2309
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2310
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2311
|
-
case "ThrottlingException":
|
|
2312
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2313
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2314
|
-
case "ValidationException":
|
|
2315
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2316
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2317
|
-
default:
|
|
2318
|
-
const parsedBody = parsedOutput.body;
|
|
2319
|
-
return throwDefaultError({
|
|
2320
|
-
output,
|
|
2321
|
-
parsedBody,
|
|
2322
|
-
errorCode
|
|
2323
|
-
});
|
|
2324
|
-
}
|
|
2325
|
-
}, "de_GetComponentTypeCommandError");
|
|
2326
1834
|
var de_GetEntityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2327
1835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2328
|
-
return
|
|
1836
|
+
return de_CommandError(output, context);
|
|
2329
1837
|
}
|
|
2330
1838
|
const contents = (0, import_smithy_client.map)({
|
|
2331
1839
|
$metadata: deserializeMetadata(output)
|
|
@@ -2349,40 +1857,9 @@ var de_GetEntityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2349
1857
|
Object.assign(contents, doc);
|
|
2350
1858
|
return contents;
|
|
2351
1859
|
}, "de_GetEntityCommand");
|
|
2352
|
-
var de_GetEntityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2353
|
-
const parsedOutput = {
|
|
2354
|
-
...output,
|
|
2355
|
-
body: await parseErrorBody(output.body, context)
|
|
2356
|
-
};
|
|
2357
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2358
|
-
switch (errorCode) {
|
|
2359
|
-
case "InternalServerException":
|
|
2360
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2361
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "ResourceNotFoundException":
|
|
2363
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2364
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "ServiceQuotaExceededException":
|
|
2366
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2367
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2368
|
-
case "ThrottlingException":
|
|
2369
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2370
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "ValidationException":
|
|
2372
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2373
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2374
|
-
default:
|
|
2375
|
-
const parsedBody = parsedOutput.body;
|
|
2376
|
-
return throwDefaultError({
|
|
2377
|
-
output,
|
|
2378
|
-
parsedBody,
|
|
2379
|
-
errorCode
|
|
2380
|
-
});
|
|
2381
|
-
}
|
|
2382
|
-
}, "de_GetEntityCommandError");
|
|
2383
1860
|
var de_GetMetadataTransferJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2384
1861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2385
|
-
return
|
|
1862
|
+
return de_CommandError(output, context);
|
|
2386
1863
|
}
|
|
2387
1864
|
const contents = (0, import_smithy_client.map)({
|
|
2388
1865
|
$metadata: deserializeMetadata(output)
|
|
@@ -2404,40 +1881,9 @@ var de_GetMetadataTransferJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2404
1881
|
Object.assign(contents, doc);
|
|
2405
1882
|
return contents;
|
|
2406
1883
|
}, "de_GetMetadataTransferJobCommand");
|
|
2407
|
-
var de_GetMetadataTransferJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2408
|
-
const parsedOutput = {
|
|
2409
|
-
...output,
|
|
2410
|
-
body: await parseErrorBody(output.body, context)
|
|
2411
|
-
};
|
|
2412
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2413
|
-
switch (errorCode) {
|
|
2414
|
-
case "AccessDeniedException":
|
|
2415
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2416
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2417
|
-
case "InternalServerException":
|
|
2418
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2419
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "ResourceNotFoundException":
|
|
2421
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2422
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2423
|
-
case "ThrottlingException":
|
|
2424
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2425
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2426
|
-
case "ValidationException":
|
|
2427
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2428
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2429
|
-
default:
|
|
2430
|
-
const parsedBody = parsedOutput.body;
|
|
2431
|
-
return throwDefaultError({
|
|
2432
|
-
output,
|
|
2433
|
-
parsedBody,
|
|
2434
|
-
errorCode
|
|
2435
|
-
});
|
|
2436
|
-
}
|
|
2437
|
-
}, "de_GetMetadataTransferJobCommandError");
|
|
2438
1884
|
var de_GetPricingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2439
1885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2440
|
-
return
|
|
1886
|
+
return de_CommandError(output, context);
|
|
2441
1887
|
}
|
|
2442
1888
|
const contents = (0, import_smithy_client.map)({
|
|
2443
1889
|
$metadata: deserializeMetadata(output)
|
|
@@ -2450,37 +1896,9 @@ var de_GetPricingPlanCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2450
1896
|
Object.assign(contents, doc);
|
|
2451
1897
|
return contents;
|
|
2452
1898
|
}, "de_GetPricingPlanCommand");
|
|
2453
|
-
var de_GetPricingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2454
|
-
const parsedOutput = {
|
|
2455
|
-
...output,
|
|
2456
|
-
body: await parseErrorBody(output.body, context)
|
|
2457
|
-
};
|
|
2458
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2459
|
-
switch (errorCode) {
|
|
2460
|
-
case "AccessDeniedException":
|
|
2461
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2462
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2463
|
-
case "InternalServerException":
|
|
2464
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2465
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2466
|
-
case "ThrottlingException":
|
|
2467
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2468
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2469
|
-
case "ValidationException":
|
|
2470
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2471
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2472
|
-
default:
|
|
2473
|
-
const parsedBody = parsedOutput.body;
|
|
2474
|
-
return throwDefaultError({
|
|
2475
|
-
output,
|
|
2476
|
-
parsedBody,
|
|
2477
|
-
errorCode
|
|
2478
|
-
});
|
|
2479
|
-
}
|
|
2480
|
-
}, "de_GetPricingPlanCommandError");
|
|
2481
1899
|
var de_GetPropertyValueCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2482
1900
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2483
|
-
return
|
|
1901
|
+
return de_CommandError(output, context);
|
|
2484
1902
|
}
|
|
2485
1903
|
const contents = (0, import_smithy_client.map)({
|
|
2486
1904
|
$metadata: deserializeMetadata(output)
|
|
@@ -2494,46 +1912,9 @@ var de_GetPropertyValueCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2494
1912
|
Object.assign(contents, doc);
|
|
2495
1913
|
return contents;
|
|
2496
1914
|
}, "de_GetPropertyValueCommand");
|
|
2497
|
-
var de_GetPropertyValueCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2498
|
-
const parsedOutput = {
|
|
2499
|
-
...output,
|
|
2500
|
-
body: await parseErrorBody(output.body, context)
|
|
2501
|
-
};
|
|
2502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2503
|
-
switch (errorCode) {
|
|
2504
|
-
case "AccessDeniedException":
|
|
2505
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2506
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2507
|
-
case "ConnectorFailureException":
|
|
2508
|
-
case "com.amazonaws.iottwinmaker#ConnectorFailureException":
|
|
2509
|
-
throw await de_ConnectorFailureExceptionRes(parsedOutput, context);
|
|
2510
|
-
case "ConnectorTimeoutException":
|
|
2511
|
-
case "com.amazonaws.iottwinmaker#ConnectorTimeoutException":
|
|
2512
|
-
throw await de_ConnectorTimeoutExceptionRes(parsedOutput, context);
|
|
2513
|
-
case "InternalServerException":
|
|
2514
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2515
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2516
|
-
case "ResourceNotFoundException":
|
|
2517
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2518
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2519
|
-
case "ThrottlingException":
|
|
2520
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2521
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2522
|
-
case "ValidationException":
|
|
2523
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2524
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2525
|
-
default:
|
|
2526
|
-
const parsedBody = parsedOutput.body;
|
|
2527
|
-
return throwDefaultError({
|
|
2528
|
-
output,
|
|
2529
|
-
parsedBody,
|
|
2530
|
-
errorCode
|
|
2531
|
-
});
|
|
2532
|
-
}
|
|
2533
|
-
}, "de_GetPropertyValueCommandError");
|
|
2534
1915
|
var de_GetPropertyValueHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2535
1916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2536
|
-
return
|
|
1917
|
+
return de_CommandError(output, context);
|
|
2537
1918
|
}
|
|
2538
1919
|
const contents = (0, import_smithy_client.map)({
|
|
2539
1920
|
$metadata: deserializeMetadata(output)
|
|
@@ -2546,46 +1927,9 @@ var de_GetPropertyValueHistoryCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2546
1927
|
Object.assign(contents, doc);
|
|
2547
1928
|
return contents;
|
|
2548
1929
|
}, "de_GetPropertyValueHistoryCommand");
|
|
2549
|
-
var de_GetPropertyValueHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2550
|
-
const parsedOutput = {
|
|
2551
|
-
...output,
|
|
2552
|
-
body: await parseErrorBody(output.body, context)
|
|
2553
|
-
};
|
|
2554
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2555
|
-
switch (errorCode) {
|
|
2556
|
-
case "AccessDeniedException":
|
|
2557
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2558
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2559
|
-
case "ConnectorFailureException":
|
|
2560
|
-
case "com.amazonaws.iottwinmaker#ConnectorFailureException":
|
|
2561
|
-
throw await de_ConnectorFailureExceptionRes(parsedOutput, context);
|
|
2562
|
-
case "ConnectorTimeoutException":
|
|
2563
|
-
case "com.amazonaws.iottwinmaker#ConnectorTimeoutException":
|
|
2564
|
-
throw await de_ConnectorTimeoutExceptionRes(parsedOutput, context);
|
|
2565
|
-
case "InternalServerException":
|
|
2566
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2567
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "ResourceNotFoundException":
|
|
2569
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2570
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2571
|
-
case "ThrottlingException":
|
|
2572
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2573
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2574
|
-
case "ValidationException":
|
|
2575
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2576
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2577
|
-
default:
|
|
2578
|
-
const parsedBody = parsedOutput.body;
|
|
2579
|
-
return throwDefaultError({
|
|
2580
|
-
output,
|
|
2581
|
-
parsedBody,
|
|
2582
|
-
errorCode
|
|
2583
|
-
});
|
|
2584
|
-
}
|
|
2585
|
-
}, "de_GetPropertyValueHistoryCommandError");
|
|
2586
1930
|
var de_GetSceneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2587
1931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2588
|
-
return
|
|
1932
|
+
return de_CommandError(output, context);
|
|
2589
1933
|
}
|
|
2590
1934
|
const contents = (0, import_smithy_client.map)({
|
|
2591
1935
|
$metadata: deserializeMetadata(output)
|
|
@@ -2607,40 +1951,9 @@ var de_GetSceneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2607
1951
|
Object.assign(contents, doc);
|
|
2608
1952
|
return contents;
|
|
2609
1953
|
}, "de_GetSceneCommand");
|
|
2610
|
-
var de_GetSceneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2611
|
-
const parsedOutput = {
|
|
2612
|
-
...output,
|
|
2613
|
-
body: await parseErrorBody(output.body, context)
|
|
2614
|
-
};
|
|
2615
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2616
|
-
switch (errorCode) {
|
|
2617
|
-
case "AccessDeniedException":
|
|
2618
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2619
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2620
|
-
case "InternalServerException":
|
|
2621
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2622
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2623
|
-
case "ResourceNotFoundException":
|
|
2624
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2625
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2626
|
-
case "ThrottlingException":
|
|
2627
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2628
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2629
|
-
case "ValidationException":
|
|
2630
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2631
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2632
|
-
default:
|
|
2633
|
-
const parsedBody = parsedOutput.body;
|
|
2634
|
-
return throwDefaultError({
|
|
2635
|
-
output,
|
|
2636
|
-
parsedBody,
|
|
2637
|
-
errorCode
|
|
2638
|
-
});
|
|
2639
|
-
}
|
|
2640
|
-
}, "de_GetSceneCommandError");
|
|
2641
1954
|
var de_GetSyncJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2642
1955
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2643
|
-
return
|
|
1956
|
+
return de_CommandError(output, context);
|
|
2644
1957
|
}
|
|
2645
1958
|
const contents = (0, import_smithy_client.map)({
|
|
2646
1959
|
$metadata: deserializeMetadata(output)
|
|
@@ -2658,43 +1971,9 @@ var de_GetSyncJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2658
1971
|
Object.assign(contents, doc);
|
|
2659
1972
|
return contents;
|
|
2660
1973
|
}, "de_GetSyncJobCommand");
|
|
2661
|
-
var de_GetSyncJobCommandError = /* @__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 "AccessDeniedException":
|
|
2669
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2670
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "InternalServerException":
|
|
2672
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2673
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "ResourceNotFoundException":
|
|
2675
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2676
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ServiceQuotaExceededException":
|
|
2678
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2679
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2680
|
-
case "ThrottlingException":
|
|
2681
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2682
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2683
|
-
case "ValidationException":
|
|
2684
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2685
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2686
|
-
default:
|
|
2687
|
-
const parsedBody = parsedOutput.body;
|
|
2688
|
-
return throwDefaultError({
|
|
2689
|
-
output,
|
|
2690
|
-
parsedBody,
|
|
2691
|
-
errorCode
|
|
2692
|
-
});
|
|
2693
|
-
}
|
|
2694
|
-
}, "de_GetSyncJobCommandError");
|
|
2695
1974
|
var de_GetWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2696
1975
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2697
|
-
return
|
|
1976
|
+
return de_CommandError(output, context);
|
|
2698
1977
|
}
|
|
2699
1978
|
const contents = (0, import_smithy_client.map)({
|
|
2700
1979
|
$metadata: deserializeMetadata(output)
|
|
@@ -2713,40 +1992,9 @@ var de_GetWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2713
1992
|
Object.assign(contents, doc);
|
|
2714
1993
|
return contents;
|
|
2715
1994
|
}, "de_GetWorkspaceCommand");
|
|
2716
|
-
var de_GetWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2717
|
-
const parsedOutput = {
|
|
2718
|
-
...output,
|
|
2719
|
-
body: await parseErrorBody(output.body, context)
|
|
2720
|
-
};
|
|
2721
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2722
|
-
switch (errorCode) {
|
|
2723
|
-
case "InternalServerException":
|
|
2724
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2725
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2726
|
-
case "ResourceNotFoundException":
|
|
2727
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2728
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2729
|
-
case "ServiceQuotaExceededException":
|
|
2730
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2731
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "ThrottlingException":
|
|
2733
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2734
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2735
|
-
case "ValidationException":
|
|
2736
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2737
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2738
|
-
default:
|
|
2739
|
-
const parsedBody = parsedOutput.body;
|
|
2740
|
-
return throwDefaultError({
|
|
2741
|
-
output,
|
|
2742
|
-
parsedBody,
|
|
2743
|
-
errorCode
|
|
2744
|
-
});
|
|
2745
|
-
}
|
|
2746
|
-
}, "de_GetWorkspaceCommandError");
|
|
2747
1995
|
var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2748
1996
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2749
|
-
return
|
|
1997
|
+
return de_CommandError(output, context);
|
|
2750
1998
|
}
|
|
2751
1999
|
const contents = (0, import_smithy_client.map)({
|
|
2752
2000
|
$metadata: deserializeMetadata(output)
|
|
@@ -2759,40 +2007,9 @@ var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2759
2007
|
Object.assign(contents, doc);
|
|
2760
2008
|
return contents;
|
|
2761
2009
|
}, "de_ListComponentsCommand");
|
|
2762
|
-
var de_ListComponentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2763
|
-
const parsedOutput = {
|
|
2764
|
-
...output,
|
|
2765
|
-
body: await parseErrorBody(output.body, context)
|
|
2766
|
-
};
|
|
2767
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2768
|
-
switch (errorCode) {
|
|
2769
|
-
case "AccessDeniedException":
|
|
2770
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2771
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2772
|
-
case "InternalServerException":
|
|
2773
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2774
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2775
|
-
case "ResourceNotFoundException":
|
|
2776
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2777
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "ThrottlingException":
|
|
2779
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2780
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2781
|
-
case "ValidationException":
|
|
2782
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2783
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2784
|
-
default:
|
|
2785
|
-
const parsedBody = parsedOutput.body;
|
|
2786
|
-
return throwDefaultError({
|
|
2787
|
-
output,
|
|
2788
|
-
parsedBody,
|
|
2789
|
-
errorCode
|
|
2790
|
-
});
|
|
2791
|
-
}
|
|
2792
|
-
}, "de_ListComponentsCommandError");
|
|
2793
2010
|
var de_ListComponentTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2794
2011
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2795
|
-
return
|
|
2012
|
+
return de_CommandError(output, context);
|
|
2796
2013
|
}
|
|
2797
2014
|
const contents = (0, import_smithy_client.map)({
|
|
2798
2015
|
$metadata: deserializeMetadata(output)
|
|
@@ -2807,37 +2024,9 @@ var de_ListComponentTypesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2807
2024
|
Object.assign(contents, doc);
|
|
2808
2025
|
return contents;
|
|
2809
2026
|
}, "de_ListComponentTypesCommand");
|
|
2810
|
-
var de_ListComponentTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2811
|
-
const parsedOutput = {
|
|
2812
|
-
...output,
|
|
2813
|
-
body: await parseErrorBody(output.body, context)
|
|
2814
|
-
};
|
|
2815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2816
|
-
switch (errorCode) {
|
|
2817
|
-
case "AccessDeniedException":
|
|
2818
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2819
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2820
|
-
case "InternalServerException":
|
|
2821
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2822
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2823
|
-
case "ThrottlingException":
|
|
2824
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2825
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2826
|
-
case "ValidationException":
|
|
2827
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2828
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2829
|
-
default:
|
|
2830
|
-
const parsedBody = parsedOutput.body;
|
|
2831
|
-
return throwDefaultError({
|
|
2832
|
-
output,
|
|
2833
|
-
parsedBody,
|
|
2834
|
-
errorCode
|
|
2835
|
-
});
|
|
2836
|
-
}
|
|
2837
|
-
}, "de_ListComponentTypesCommandError");
|
|
2838
2027
|
var de_ListEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2839
2028
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2840
|
-
return
|
|
2029
|
+
return de_CommandError(output, context);
|
|
2841
2030
|
}
|
|
2842
2031
|
const contents = (0, import_smithy_client.map)({
|
|
2843
2032
|
$metadata: deserializeMetadata(output)
|
|
@@ -2850,37 +2039,9 @@ var de_ListEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2850
2039
|
Object.assign(contents, doc);
|
|
2851
2040
|
return contents;
|
|
2852
2041
|
}, "de_ListEntitiesCommand");
|
|
2853
|
-
var de_ListEntitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2854
|
-
const parsedOutput = {
|
|
2855
|
-
...output,
|
|
2856
|
-
body: await parseErrorBody(output.body, context)
|
|
2857
|
-
};
|
|
2858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2859
|
-
switch (errorCode) {
|
|
2860
|
-
case "InternalServerException":
|
|
2861
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2862
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2863
|
-
case "ServiceQuotaExceededException":
|
|
2864
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2865
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2866
|
-
case "ThrottlingException":
|
|
2867
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2868
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2869
|
-
case "ValidationException":
|
|
2870
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2871
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2872
|
-
default:
|
|
2873
|
-
const parsedBody = parsedOutput.body;
|
|
2874
|
-
return throwDefaultError({
|
|
2875
|
-
output,
|
|
2876
|
-
parsedBody,
|
|
2877
|
-
errorCode
|
|
2878
|
-
});
|
|
2879
|
-
}
|
|
2880
|
-
}, "de_ListEntitiesCommandError");
|
|
2881
2042
|
var de_ListMetadataTransferJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2882
2043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2883
|
-
return
|
|
2044
|
+
return de_CommandError(output, context);
|
|
2884
2045
|
}
|
|
2885
2046
|
const contents = (0, import_smithy_client.map)({
|
|
2886
2047
|
$metadata: deserializeMetadata(output)
|
|
@@ -2893,37 +2054,9 @@ var de_ListMetadataTransferJobsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2893
2054
|
Object.assign(contents, doc);
|
|
2894
2055
|
return contents;
|
|
2895
2056
|
}, "de_ListMetadataTransferJobsCommand");
|
|
2896
|
-
var de_ListMetadataTransferJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2897
|
-
const parsedOutput = {
|
|
2898
|
-
...output,
|
|
2899
|
-
body: await parseErrorBody(output.body, context)
|
|
2900
|
-
};
|
|
2901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2902
|
-
switch (errorCode) {
|
|
2903
|
-
case "AccessDeniedException":
|
|
2904
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2905
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2906
|
-
case "InternalServerException":
|
|
2907
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2908
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2909
|
-
case "ThrottlingException":
|
|
2910
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2911
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2912
|
-
case "ValidationException":
|
|
2913
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2914
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2915
|
-
default:
|
|
2916
|
-
const parsedBody = parsedOutput.body;
|
|
2917
|
-
return throwDefaultError({
|
|
2918
|
-
output,
|
|
2919
|
-
parsedBody,
|
|
2920
|
-
errorCode
|
|
2921
|
-
});
|
|
2922
|
-
}
|
|
2923
|
-
}, "de_ListMetadataTransferJobsCommandError");
|
|
2924
2057
|
var de_ListPropertiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2925
2058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2926
|
-
return
|
|
2059
|
+
return de_CommandError(output, context);
|
|
2927
2060
|
}
|
|
2928
2061
|
const contents = (0, import_smithy_client.map)({
|
|
2929
2062
|
$metadata: deserializeMetadata(output)
|
|
@@ -2936,40 +2069,9 @@ var de_ListPropertiesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2936
2069
|
Object.assign(contents, doc);
|
|
2937
2070
|
return contents;
|
|
2938
2071
|
}, "de_ListPropertiesCommand");
|
|
2939
|
-
var de_ListPropertiesCommandError = /* @__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 "AccessDeniedException":
|
|
2947
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2948
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2949
|
-
case "InternalServerException":
|
|
2950
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2951
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2952
|
-
case "ResourceNotFoundException":
|
|
2953
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
2954
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2955
|
-
case "ThrottlingException":
|
|
2956
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
2957
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2958
|
-
case "ValidationException":
|
|
2959
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
2960
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2961
|
-
default:
|
|
2962
|
-
const parsedBody = parsedOutput.body;
|
|
2963
|
-
return throwDefaultError({
|
|
2964
|
-
output,
|
|
2965
|
-
parsedBody,
|
|
2966
|
-
errorCode
|
|
2967
|
-
});
|
|
2968
|
-
}
|
|
2969
|
-
}, "de_ListPropertiesCommandError");
|
|
2970
2072
|
var de_ListScenesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2971
2073
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2972
|
-
return
|
|
2074
|
+
return de_CommandError(output, context);
|
|
2973
2075
|
}
|
|
2974
2076
|
const contents = (0, import_smithy_client.map)({
|
|
2975
2077
|
$metadata: deserializeMetadata(output)
|
|
@@ -2982,83 +2084,9 @@ var de_ListScenesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2982
2084
|
Object.assign(contents, doc);
|
|
2983
2085
|
return contents;
|
|
2984
2086
|
}, "de_ListScenesCommand");
|
|
2985
|
-
var de_ListScenesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2986
|
-
const parsedOutput = {
|
|
2987
|
-
...output,
|
|
2988
|
-
body: await parseErrorBody(output.body, context)
|
|
2989
|
-
};
|
|
2990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2991
|
-
switch (errorCode) {
|
|
2992
|
-
case "AccessDeniedException":
|
|
2993
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2994
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2995
|
-
case "InternalServerException":
|
|
2996
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
2997
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2998
|
-
case "ThrottlingException":
|
|
2999
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
3000
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3001
|
-
case "ValidationException":
|
|
3002
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
3003
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3004
|
-
default:
|
|
3005
|
-
const parsedBody = parsedOutput.body;
|
|
3006
|
-
return throwDefaultError({
|
|
3007
|
-
output,
|
|
3008
|
-
parsedBody,
|
|
3009
|
-
errorCode
|
|
3010
|
-
});
|
|
3011
|
-
}
|
|
3012
|
-
}, "de_ListScenesCommandError");
|
|
3013
2087
|
var de_ListSyncJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3014
2088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3015
|
-
return
|
|
3016
|
-
}
|
|
3017
|
-
const contents = (0, import_smithy_client.map)({
|
|
3018
|
-
$metadata: deserializeMetadata(output)
|
|
3019
|
-
});
|
|
3020
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3021
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3022
|
-
nextToken: import_smithy_client.expectString,
|
|
3023
|
-
syncJobSummaries: (_) => de_SyncJobSummaries(_, context)
|
|
3024
|
-
});
|
|
3025
|
-
Object.assign(contents, doc);
|
|
3026
|
-
return contents;
|
|
3027
|
-
}, "de_ListSyncJobsCommand");
|
|
3028
|
-
var de_ListSyncJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3029
|
-
const parsedOutput = {
|
|
3030
|
-
...output,
|
|
3031
|
-
body: await parseErrorBody(output.body, context)
|
|
3032
|
-
};
|
|
3033
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3034
|
-
switch (errorCode) {
|
|
3035
|
-
case "AccessDeniedException":
|
|
3036
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
3037
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3038
|
-
case "InternalServerException":
|
|
3039
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
3040
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3041
|
-
case "ServiceQuotaExceededException":
|
|
3042
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
3043
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3044
|
-
case "ThrottlingException":
|
|
3045
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
3046
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3047
|
-
case "ValidationException":
|
|
3048
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
3049
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3050
|
-
default:
|
|
3051
|
-
const parsedBody = parsedOutput.body;
|
|
3052
|
-
return throwDefaultError({
|
|
3053
|
-
output,
|
|
3054
|
-
parsedBody,
|
|
3055
|
-
errorCode
|
|
3056
|
-
});
|
|
3057
|
-
}
|
|
3058
|
-
}, "de_ListSyncJobsCommandError");
|
|
3059
|
-
var de_ListSyncResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3060
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3061
|
-
return de_ListSyncResourcesCommandError(output, context);
|
|
2089
|
+
return de_CommandError(output, context);
|
|
3062
2090
|
}
|
|
3063
2091
|
const contents = (0, import_smithy_client.map)({
|
|
3064
2092
|
$metadata: deserializeMetadata(output)
|
|
@@ -3066,45 +2094,29 @@ var de_ListSyncResourcesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3066
2094
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3067
2095
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3068
2096
|
nextToken: import_smithy_client.expectString,
|
|
3069
|
-
|
|
3070
|
-
});
|
|
3071
|
-
Object.assign(contents, doc);
|
|
3072
|
-
return contents;
|
|
3073
|
-
}, "
|
|
3074
|
-
var
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
body: await parseErrorBody(output.body, context)
|
|
3078
|
-
};
|
|
3079
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3080
|
-
switch (errorCode) {
|
|
3081
|
-
case "AccessDeniedException":
|
|
3082
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
3083
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3084
|
-
case "InternalServerException":
|
|
3085
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
3086
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3087
|
-
case "ServiceQuotaExceededException":
|
|
3088
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
3089
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3090
|
-
case "ThrottlingException":
|
|
3091
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
3092
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3093
|
-
case "ValidationException":
|
|
3094
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
3095
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3096
|
-
default:
|
|
3097
|
-
const parsedBody = parsedOutput.body;
|
|
3098
|
-
return throwDefaultError({
|
|
3099
|
-
output,
|
|
3100
|
-
parsedBody,
|
|
3101
|
-
errorCode
|
|
3102
|
-
});
|
|
2097
|
+
syncJobSummaries: (_) => de_SyncJobSummaries(_, context)
|
|
2098
|
+
});
|
|
2099
|
+
Object.assign(contents, doc);
|
|
2100
|
+
return contents;
|
|
2101
|
+
}, "de_ListSyncJobsCommand");
|
|
2102
|
+
var de_ListSyncResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2103
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2104
|
+
return de_CommandError(output, context);
|
|
3103
2105
|
}
|
|
3104
|
-
|
|
2106
|
+
const contents = (0, import_smithy_client.map)({
|
|
2107
|
+
$metadata: deserializeMetadata(output)
|
|
2108
|
+
});
|
|
2109
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2110
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2111
|
+
nextToken: import_smithy_client.expectString,
|
|
2112
|
+
syncResources: (_) => de_SyncResourceSummaries(_, context)
|
|
2113
|
+
});
|
|
2114
|
+
Object.assign(contents, doc);
|
|
2115
|
+
return contents;
|
|
2116
|
+
}, "de_ListSyncResourcesCommand");
|
|
3105
2117
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3106
2118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3107
|
-
return
|
|
2119
|
+
return de_CommandError(output, context);
|
|
3108
2120
|
}
|
|
3109
2121
|
const contents = (0, import_smithy_client.map)({
|
|
3110
2122
|
$metadata: deserializeMetadata(output)
|
|
@@ -3117,31 +2129,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3117
2129
|
Object.assign(contents, doc);
|
|
3118
2130
|
return contents;
|
|
3119
2131
|
}, "de_ListTagsForResourceCommand");
|
|
3120
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3121
|
-
const parsedOutput = {
|
|
3122
|
-
...output,
|
|
3123
|
-
body: await parseErrorBody(output.body, context)
|
|
3124
|
-
};
|
|
3125
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3126
|
-
switch (errorCode) {
|
|
3127
|
-
case "AccessDeniedException":
|
|
3128
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
3129
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3130
|
-
case "ResourceNotFoundException":
|
|
3131
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
3132
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3133
|
-
default:
|
|
3134
|
-
const parsedBody = parsedOutput.body;
|
|
3135
|
-
return throwDefaultError({
|
|
3136
|
-
output,
|
|
3137
|
-
parsedBody,
|
|
3138
|
-
errorCode
|
|
3139
|
-
});
|
|
3140
|
-
}
|
|
3141
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3142
2132
|
var de_ListWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3143
2133
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3144
|
-
return
|
|
2134
|
+
return de_CommandError(output, context);
|
|
3145
2135
|
}
|
|
3146
2136
|
const contents = (0, import_smithy_client.map)({
|
|
3147
2137
|
$metadata: deserializeMetadata(output)
|
|
@@ -3154,37 +2144,9 @@ var de_ListWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3154
2144
|
Object.assign(contents, doc);
|
|
3155
2145
|
return contents;
|
|
3156
2146
|
}, "de_ListWorkspacesCommand");
|
|
3157
|
-
var de_ListWorkspacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3158
|
-
const parsedOutput = {
|
|
3159
|
-
...output,
|
|
3160
|
-
body: await parseErrorBody(output.body, context)
|
|
3161
|
-
};
|
|
3162
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3163
|
-
switch (errorCode) {
|
|
3164
|
-
case "InternalServerException":
|
|
3165
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
3166
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3167
|
-
case "ServiceQuotaExceededException":
|
|
3168
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
3169
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3170
|
-
case "ThrottlingException":
|
|
3171
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
3172
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3173
|
-
case "ValidationException":
|
|
3174
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
3175
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3176
|
-
default:
|
|
3177
|
-
const parsedBody = parsedOutput.body;
|
|
3178
|
-
return throwDefaultError({
|
|
3179
|
-
output,
|
|
3180
|
-
parsedBody,
|
|
3181
|
-
errorCode
|
|
3182
|
-
});
|
|
3183
|
-
}
|
|
3184
|
-
}, "de_ListWorkspacesCommandError");
|
|
3185
2147
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3186
2148
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3187
|
-
return
|
|
2149
|
+
return de_CommandError(output, context);
|
|
3188
2150
|
}
|
|
3189
2151
|
const contents = (0, import_smithy_client.map)({
|
|
3190
2152
|
$metadata: deserializeMetadata(output)
|
|
@@ -3192,34 +2154,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3192
2154
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3193
2155
|
return contents;
|
|
3194
2156
|
}, "de_TagResourceCommand");
|
|
3195
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3196
|
-
const parsedOutput = {
|
|
3197
|
-
...output,
|
|
3198
|
-
body: await parseErrorBody(output.body, context)
|
|
3199
|
-
};
|
|
3200
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3201
|
-
switch (errorCode) {
|
|
3202
|
-
case "AccessDeniedException":
|
|
3203
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
3204
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3205
|
-
case "ResourceNotFoundException":
|
|
3206
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
3207
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3208
|
-
case "TooManyTagsException":
|
|
3209
|
-
case "com.amazonaws.iottwinmaker#TooManyTagsException":
|
|
3210
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3211
|
-
default:
|
|
3212
|
-
const parsedBody = parsedOutput.body;
|
|
3213
|
-
return throwDefaultError({
|
|
3214
|
-
output,
|
|
3215
|
-
parsedBody,
|
|
3216
|
-
errorCode
|
|
3217
|
-
});
|
|
3218
|
-
}
|
|
3219
|
-
}, "de_TagResourceCommandError");
|
|
3220
2157
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3221
2158
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3222
|
-
return
|
|
2159
|
+
return de_CommandError(output, context);
|
|
3223
2160
|
}
|
|
3224
2161
|
const contents = (0, import_smithy_client.map)({
|
|
3225
2162
|
$metadata: deserializeMetadata(output)
|
|
@@ -3227,31 +2164,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3227
2164
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3228
2165
|
return contents;
|
|
3229
2166
|
}, "de_UntagResourceCommand");
|
|
3230
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3231
|
-
const parsedOutput = {
|
|
3232
|
-
...output,
|
|
3233
|
-
body: await parseErrorBody(output.body, context)
|
|
3234
|
-
};
|
|
3235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3236
|
-
switch (errorCode) {
|
|
3237
|
-
case "AccessDeniedException":
|
|
3238
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
3239
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3240
|
-
case "ResourceNotFoundException":
|
|
3241
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
3242
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3243
|
-
default:
|
|
3244
|
-
const parsedBody = parsedOutput.body;
|
|
3245
|
-
return throwDefaultError({
|
|
3246
|
-
output,
|
|
3247
|
-
parsedBody,
|
|
3248
|
-
errorCode
|
|
3249
|
-
});
|
|
3250
|
-
}
|
|
3251
|
-
}, "de_UntagResourceCommandError");
|
|
3252
2167
|
var de_UpdateComponentTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3253
2168
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3254
|
-
return
|
|
2169
|
+
return de_CommandError(output, context);
|
|
3255
2170
|
}
|
|
3256
2171
|
const contents = (0, import_smithy_client.map)({
|
|
3257
2172
|
$metadata: deserializeMetadata(output)
|
|
@@ -3266,43 +2181,9 @@ var de_UpdateComponentTypeCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3266
2181
|
Object.assign(contents, doc);
|
|
3267
2182
|
return contents;
|
|
3268
2183
|
}, "de_UpdateComponentTypeCommand");
|
|
3269
|
-
var de_UpdateComponentTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3270
|
-
const parsedOutput = {
|
|
3271
|
-
...output,
|
|
3272
|
-
body: await parseErrorBody(output.body, context)
|
|
3273
|
-
};
|
|
3274
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3275
|
-
switch (errorCode) {
|
|
3276
|
-
case "AccessDeniedException":
|
|
3277
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
3278
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3279
|
-
case "InternalServerException":
|
|
3280
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
3281
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3282
|
-
case "ResourceNotFoundException":
|
|
3283
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
3284
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3285
|
-
case "ServiceQuotaExceededException":
|
|
3286
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
3287
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3288
|
-
case "ThrottlingException":
|
|
3289
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
3290
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3291
|
-
case "ValidationException":
|
|
3292
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
3293
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3294
|
-
default:
|
|
3295
|
-
const parsedBody = parsedOutput.body;
|
|
3296
|
-
return throwDefaultError({
|
|
3297
|
-
output,
|
|
3298
|
-
parsedBody,
|
|
3299
|
-
errorCode
|
|
3300
|
-
});
|
|
3301
|
-
}
|
|
3302
|
-
}, "de_UpdateComponentTypeCommandError");
|
|
3303
2184
|
var de_UpdateEntityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3304
2185
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3305
|
-
return
|
|
2186
|
+
return de_CommandError(output, context);
|
|
3306
2187
|
}
|
|
3307
2188
|
const contents = (0, import_smithy_client.map)({
|
|
3308
2189
|
$metadata: deserializeMetadata(output)
|
|
@@ -3315,46 +2196,9 @@ var de_UpdateEntityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3315
2196
|
Object.assign(contents, doc);
|
|
3316
2197
|
return contents;
|
|
3317
2198
|
}, "de_UpdateEntityCommand");
|
|
3318
|
-
var de_UpdateEntityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3319
|
-
const parsedOutput = {
|
|
3320
|
-
...output,
|
|
3321
|
-
body: await parseErrorBody(output.body, context)
|
|
3322
|
-
};
|
|
3323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3324
|
-
switch (errorCode) {
|
|
3325
|
-
case "AccessDeniedException":
|
|
3326
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
3327
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3328
|
-
case "ConflictException":
|
|
3329
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
3330
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3331
|
-
case "InternalServerException":
|
|
3332
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
3333
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3334
|
-
case "ResourceNotFoundException":
|
|
3335
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
3336
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3337
|
-
case "ServiceQuotaExceededException":
|
|
3338
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
3339
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3340
|
-
case "ThrottlingException":
|
|
3341
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
3342
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3343
|
-
case "ValidationException":
|
|
3344
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
3345
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3346
|
-
default:
|
|
3347
|
-
const parsedBody = parsedOutput.body;
|
|
3348
|
-
return throwDefaultError({
|
|
3349
|
-
output,
|
|
3350
|
-
parsedBody,
|
|
3351
|
-
errorCode
|
|
3352
|
-
});
|
|
3353
|
-
}
|
|
3354
|
-
}, "de_UpdateEntityCommandError");
|
|
3355
2199
|
var de_UpdatePricingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3356
2200
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3357
|
-
return
|
|
2201
|
+
return de_CommandError(output, context);
|
|
3358
2202
|
}
|
|
3359
2203
|
const contents = (0, import_smithy_client.map)({
|
|
3360
2204
|
$metadata: deserializeMetadata(output)
|
|
@@ -3367,37 +2211,9 @@ var de_UpdatePricingPlanCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3367
2211
|
Object.assign(contents, doc);
|
|
3368
2212
|
return contents;
|
|
3369
2213
|
}, "de_UpdatePricingPlanCommand");
|
|
3370
|
-
var de_UpdatePricingPlanCommandError = /* @__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 "AccessDeniedException":
|
|
3378
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
3379
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3380
|
-
case "InternalServerException":
|
|
3381
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
3382
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3383
|
-
case "ThrottlingException":
|
|
3384
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
3385
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3386
|
-
case "ValidationException":
|
|
3387
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
3388
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3389
|
-
default:
|
|
3390
|
-
const parsedBody = parsedOutput.body;
|
|
3391
|
-
return throwDefaultError({
|
|
3392
|
-
output,
|
|
3393
|
-
parsedBody,
|
|
3394
|
-
errorCode
|
|
3395
|
-
});
|
|
3396
|
-
}
|
|
3397
|
-
}, "de_UpdatePricingPlanCommandError");
|
|
3398
2214
|
var de_UpdateSceneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3399
2215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3400
|
-
return
|
|
2216
|
+
return de_CommandError(output, context);
|
|
3401
2217
|
}
|
|
3402
2218
|
const contents = (0, import_smithy_client.map)({
|
|
3403
2219
|
$metadata: deserializeMetadata(output)
|
|
@@ -3409,40 +2225,9 @@ var de_UpdateSceneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3409
2225
|
Object.assign(contents, doc);
|
|
3410
2226
|
return contents;
|
|
3411
2227
|
}, "de_UpdateSceneCommand");
|
|
3412
|
-
var de_UpdateSceneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3413
|
-
const parsedOutput = {
|
|
3414
|
-
...output,
|
|
3415
|
-
body: await parseErrorBody(output.body, context)
|
|
3416
|
-
};
|
|
3417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3418
|
-
switch (errorCode) {
|
|
3419
|
-
case "AccessDeniedException":
|
|
3420
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
3421
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3422
|
-
case "InternalServerException":
|
|
3423
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
3424
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3425
|
-
case "ResourceNotFoundException":
|
|
3426
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
3427
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3428
|
-
case "ThrottlingException":
|
|
3429
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
3430
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3431
|
-
case "ValidationException":
|
|
3432
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
3433
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3434
|
-
default:
|
|
3435
|
-
const parsedBody = parsedOutput.body;
|
|
3436
|
-
return throwDefaultError({
|
|
3437
|
-
output,
|
|
3438
|
-
parsedBody,
|
|
3439
|
-
errorCode
|
|
3440
|
-
});
|
|
3441
|
-
}
|
|
3442
|
-
}, "de_UpdateSceneCommandError");
|
|
3443
2228
|
var de_UpdateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3444
2229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3445
|
-
return
|
|
2230
|
+
return de_CommandError(output, context);
|
|
3446
2231
|
}
|
|
3447
2232
|
const contents = (0, import_smithy_client.map)({
|
|
3448
2233
|
$metadata: deserializeMetadata(output)
|
|
@@ -3454,31 +2239,46 @@ var de_UpdateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3454
2239
|
Object.assign(contents, doc);
|
|
3455
2240
|
return contents;
|
|
3456
2241
|
}, "de_UpdateWorkspaceCommand");
|
|
3457
|
-
var
|
|
2242
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3458
2243
|
const parsedOutput = {
|
|
3459
2244
|
...output,
|
|
3460
2245
|
body: await parseErrorBody(output.body, context)
|
|
3461
2246
|
};
|
|
3462
2247
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3463
2248
|
switch (errorCode) {
|
|
3464
|
-
case "AccessDeniedException":
|
|
3465
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
3466
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3467
2249
|
case "InternalServerException":
|
|
3468
2250
|
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
3469
2251
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3470
2252
|
case "ResourceNotFoundException":
|
|
3471
2253
|
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
3472
2254
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3473
|
-
case "ServiceQuotaExceededException":
|
|
3474
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
3475
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3476
2255
|
case "ThrottlingException":
|
|
3477
2256
|
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
3478
2257
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3479
2258
|
case "ValidationException":
|
|
3480
2259
|
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
3481
2260
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2261
|
+
case "AccessDeniedException":
|
|
2262
|
+
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
2263
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2264
|
+
case "ConflictException":
|
|
2265
|
+
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
2266
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2267
|
+
case "ServiceQuotaExceededException":
|
|
2268
|
+
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
2269
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2270
|
+
case "QueryTimeoutException":
|
|
2271
|
+
case "com.amazonaws.iottwinmaker#QueryTimeoutException":
|
|
2272
|
+
throw await de_QueryTimeoutExceptionRes(parsedOutput, context);
|
|
2273
|
+
case "ConnectorFailureException":
|
|
2274
|
+
case "com.amazonaws.iottwinmaker#ConnectorFailureException":
|
|
2275
|
+
throw await de_ConnectorFailureExceptionRes(parsedOutput, context);
|
|
2276
|
+
case "ConnectorTimeoutException":
|
|
2277
|
+
case "com.amazonaws.iottwinmaker#ConnectorTimeoutException":
|
|
2278
|
+
throw await de_ConnectorTimeoutExceptionRes(parsedOutput, context);
|
|
2279
|
+
case "TooManyTagsException":
|
|
2280
|
+
case "com.amazonaws.iottwinmaker#TooManyTagsException":
|
|
2281
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3482
2282
|
default:
|
|
3483
2283
|
const parsedBody = parsedOutput.body;
|
|
3484
2284
|
return throwDefaultError({
|
|
@@ -3487,7 +2287,7 @@ var de_UpdateWorkspaceCommandError = /* @__PURE__ */ __name(async (output, conte
|
|
|
3487
2287
|
errorCode
|
|
3488
2288
|
});
|
|
3489
2289
|
}
|
|
3490
|
-
}, "
|
|
2290
|
+
}, "de_CommandError");
|
|
3491
2291
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTTwinMakerServiceException);
|
|
3492
2292
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3493
2293
|
const contents = (0, import_smithy_client.map)({});
|