@aws-sdk/client-comprehend 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +208 -2689
- package/dist-es/protocols/Aws_json1_1.js +410 -2891
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1549,7 +1549,7 @@ var se_UpdateFlywheelCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1549
1549
|
}, "se_UpdateFlywheelCommand");
|
|
1550
1550
|
var de_BatchDetectDominantLanguageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1551
1551
|
if (output.statusCode >= 300) {
|
|
1552
|
-
return
|
|
1552
|
+
return de_CommandError(output, context);
|
|
1553
1553
|
}
|
|
1554
1554
|
const data = await parseBody(output.body, context);
|
|
1555
1555
|
let contents = {};
|
|
@@ -1560,37 +1560,9 @@ var de_BatchDetectDominantLanguageCommand = /* @__PURE__ */ __name(async (output
|
|
|
1560
1560
|
};
|
|
1561
1561
|
return response;
|
|
1562
1562
|
}, "de_BatchDetectDominantLanguageCommand");
|
|
1563
|
-
var de_BatchDetectDominantLanguageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1564
|
-
const parsedOutput = {
|
|
1565
|
-
...output,
|
|
1566
|
-
body: await parseErrorBody(output.body, context)
|
|
1567
|
-
};
|
|
1568
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1569
|
-
switch (errorCode) {
|
|
1570
|
-
case "BatchSizeLimitExceededException":
|
|
1571
|
-
case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
|
|
1572
|
-
throw await de_BatchSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1573
|
-
case "InternalServerException":
|
|
1574
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
1575
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1576
|
-
case "InvalidRequestException":
|
|
1577
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1578
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "TextSizeLimitExceededException":
|
|
1580
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
1581
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1582
|
-
default:
|
|
1583
|
-
const parsedBody = parsedOutput.body;
|
|
1584
|
-
return throwDefaultError({
|
|
1585
|
-
output,
|
|
1586
|
-
parsedBody,
|
|
1587
|
-
errorCode
|
|
1588
|
-
});
|
|
1589
|
-
}
|
|
1590
|
-
}, "de_BatchDetectDominantLanguageCommandError");
|
|
1591
1563
|
var de_BatchDetectEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1592
1564
|
if (output.statusCode >= 300) {
|
|
1593
|
-
return
|
|
1565
|
+
return de_CommandError(output, context);
|
|
1594
1566
|
}
|
|
1595
1567
|
const data = await parseBody(output.body, context);
|
|
1596
1568
|
let contents = {};
|
|
@@ -1601,40 +1573,9 @@ var de_BatchDetectEntitiesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1601
1573
|
};
|
|
1602
1574
|
return response;
|
|
1603
1575
|
}, "de_BatchDetectEntitiesCommand");
|
|
1604
|
-
var de_BatchDetectEntitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1605
|
-
const parsedOutput = {
|
|
1606
|
-
...output,
|
|
1607
|
-
body: await parseErrorBody(output.body, context)
|
|
1608
|
-
};
|
|
1609
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
|
-
switch (errorCode) {
|
|
1611
|
-
case "BatchSizeLimitExceededException":
|
|
1612
|
-
case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
|
|
1613
|
-
throw await de_BatchSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "InternalServerException":
|
|
1615
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
1616
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "InvalidRequestException":
|
|
1618
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1619
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "TextSizeLimitExceededException":
|
|
1621
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
1622
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "UnsupportedLanguageException":
|
|
1624
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
1625
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
1626
|
-
default:
|
|
1627
|
-
const parsedBody = parsedOutput.body;
|
|
1628
|
-
return throwDefaultError({
|
|
1629
|
-
output,
|
|
1630
|
-
parsedBody,
|
|
1631
|
-
errorCode
|
|
1632
|
-
});
|
|
1633
|
-
}
|
|
1634
|
-
}, "de_BatchDetectEntitiesCommandError");
|
|
1635
1576
|
var de_BatchDetectKeyPhrasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1636
1577
|
if (output.statusCode >= 300) {
|
|
1637
|
-
return
|
|
1578
|
+
return de_CommandError(output, context);
|
|
1638
1579
|
}
|
|
1639
1580
|
const data = await parseBody(output.body, context);
|
|
1640
1581
|
let contents = {};
|
|
@@ -1645,40 +1586,9 @@ var de_BatchDetectKeyPhrasesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1645
1586
|
};
|
|
1646
1587
|
return response;
|
|
1647
1588
|
}, "de_BatchDetectKeyPhrasesCommand");
|
|
1648
|
-
var de_BatchDetectKeyPhrasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1649
|
-
const parsedOutput = {
|
|
1650
|
-
...output,
|
|
1651
|
-
body: await parseErrorBody(output.body, context)
|
|
1652
|
-
};
|
|
1653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1654
|
-
switch (errorCode) {
|
|
1655
|
-
case "BatchSizeLimitExceededException":
|
|
1656
|
-
case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
|
|
1657
|
-
throw await de_BatchSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1658
|
-
case "InternalServerException":
|
|
1659
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
1660
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1661
|
-
case "InvalidRequestException":
|
|
1662
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1663
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "TextSizeLimitExceededException":
|
|
1665
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
1666
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "UnsupportedLanguageException":
|
|
1668
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
1669
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
1670
|
-
default:
|
|
1671
|
-
const parsedBody = parsedOutput.body;
|
|
1672
|
-
return throwDefaultError({
|
|
1673
|
-
output,
|
|
1674
|
-
parsedBody,
|
|
1675
|
-
errorCode
|
|
1676
|
-
});
|
|
1677
|
-
}
|
|
1678
|
-
}, "de_BatchDetectKeyPhrasesCommandError");
|
|
1679
1589
|
var de_BatchDetectSentimentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1680
1590
|
if (output.statusCode >= 300) {
|
|
1681
|
-
return
|
|
1591
|
+
return de_CommandError(output, context);
|
|
1682
1592
|
}
|
|
1683
1593
|
const data = await parseBody(output.body, context);
|
|
1684
1594
|
let contents = {};
|
|
@@ -1689,40 +1599,9 @@ var de_BatchDetectSentimentCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1689
1599
|
};
|
|
1690
1600
|
return response;
|
|
1691
1601
|
}, "de_BatchDetectSentimentCommand");
|
|
1692
|
-
var de_BatchDetectSentimentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1693
|
-
const parsedOutput = {
|
|
1694
|
-
...output,
|
|
1695
|
-
body: await parseErrorBody(output.body, context)
|
|
1696
|
-
};
|
|
1697
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1698
|
-
switch (errorCode) {
|
|
1699
|
-
case "BatchSizeLimitExceededException":
|
|
1700
|
-
case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
|
|
1701
|
-
throw await de_BatchSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "InternalServerException":
|
|
1703
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
1704
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "InvalidRequestException":
|
|
1706
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1707
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "TextSizeLimitExceededException":
|
|
1709
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
1710
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "UnsupportedLanguageException":
|
|
1712
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
1713
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
1714
|
-
default:
|
|
1715
|
-
const parsedBody = parsedOutput.body;
|
|
1716
|
-
return throwDefaultError({
|
|
1717
|
-
output,
|
|
1718
|
-
parsedBody,
|
|
1719
|
-
errorCode
|
|
1720
|
-
});
|
|
1721
|
-
}
|
|
1722
|
-
}, "de_BatchDetectSentimentCommandError");
|
|
1723
1602
|
var de_BatchDetectSyntaxCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1724
1603
|
if (output.statusCode >= 300) {
|
|
1725
|
-
return
|
|
1604
|
+
return de_CommandError(output, context);
|
|
1726
1605
|
}
|
|
1727
1606
|
const data = await parseBody(output.body, context);
|
|
1728
1607
|
let contents = {};
|
|
@@ -1733,40 +1612,9 @@ var de_BatchDetectSyntaxCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1733
1612
|
};
|
|
1734
1613
|
return response;
|
|
1735
1614
|
}, "de_BatchDetectSyntaxCommand");
|
|
1736
|
-
var de_BatchDetectSyntaxCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1737
|
-
const parsedOutput = {
|
|
1738
|
-
...output,
|
|
1739
|
-
body: await parseErrorBody(output.body, context)
|
|
1740
|
-
};
|
|
1741
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
|
-
switch (errorCode) {
|
|
1743
|
-
case "BatchSizeLimitExceededException":
|
|
1744
|
-
case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
|
|
1745
|
-
throw await de_BatchSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1746
|
-
case "InternalServerException":
|
|
1747
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
1748
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1749
|
-
case "InvalidRequestException":
|
|
1750
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1751
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1752
|
-
case "TextSizeLimitExceededException":
|
|
1753
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
1754
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1755
|
-
case "UnsupportedLanguageException":
|
|
1756
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
1757
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
1758
|
-
default:
|
|
1759
|
-
const parsedBody = parsedOutput.body;
|
|
1760
|
-
return throwDefaultError({
|
|
1761
|
-
output,
|
|
1762
|
-
parsedBody,
|
|
1763
|
-
errorCode
|
|
1764
|
-
});
|
|
1765
|
-
}
|
|
1766
|
-
}, "de_BatchDetectSyntaxCommandError");
|
|
1767
1615
|
var de_BatchDetectTargetedSentimentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1768
1616
|
if (output.statusCode >= 300) {
|
|
1769
|
-
return
|
|
1617
|
+
return de_CommandError(output, context);
|
|
1770
1618
|
}
|
|
1771
1619
|
const data = await parseBody(output.body, context);
|
|
1772
1620
|
let contents = {};
|
|
@@ -1777,40 +1625,9 @@ var de_BatchDetectTargetedSentimentCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1777
1625
|
};
|
|
1778
1626
|
return response;
|
|
1779
1627
|
}, "de_BatchDetectTargetedSentimentCommand");
|
|
1780
|
-
var de_BatchDetectTargetedSentimentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1781
|
-
const parsedOutput = {
|
|
1782
|
-
...output,
|
|
1783
|
-
body: await parseErrorBody(output.body, context)
|
|
1784
|
-
};
|
|
1785
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1786
|
-
switch (errorCode) {
|
|
1787
|
-
case "BatchSizeLimitExceededException":
|
|
1788
|
-
case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
|
|
1789
|
-
throw await de_BatchSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1790
|
-
case "InternalServerException":
|
|
1791
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
1792
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1793
|
-
case "InvalidRequestException":
|
|
1794
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1795
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1796
|
-
case "TextSizeLimitExceededException":
|
|
1797
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
1798
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "UnsupportedLanguageException":
|
|
1800
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
1801
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
1802
|
-
default:
|
|
1803
|
-
const parsedBody = parsedOutput.body;
|
|
1804
|
-
return throwDefaultError({
|
|
1805
|
-
output,
|
|
1806
|
-
parsedBody,
|
|
1807
|
-
errorCode
|
|
1808
|
-
});
|
|
1809
|
-
}
|
|
1810
|
-
}, "de_BatchDetectTargetedSentimentCommandError");
|
|
1811
1628
|
var de_ClassifyDocumentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1812
1629
|
if (output.statusCode >= 300) {
|
|
1813
|
-
return
|
|
1630
|
+
return de_CommandError(output, context);
|
|
1814
1631
|
}
|
|
1815
1632
|
const data = await parseBody(output.body, context);
|
|
1816
1633
|
let contents = {};
|
|
@@ -1821,37 +1638,9 @@ var de_ClassifyDocumentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1821
1638
|
};
|
|
1822
1639
|
return response;
|
|
1823
1640
|
}, "de_ClassifyDocumentCommand");
|
|
1824
|
-
var de_ClassifyDocumentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1825
|
-
const parsedOutput = {
|
|
1826
|
-
...output,
|
|
1827
|
-
body: await parseErrorBody(output.body, context)
|
|
1828
|
-
};
|
|
1829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1830
|
-
switch (errorCode) {
|
|
1831
|
-
case "InternalServerException":
|
|
1832
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
1833
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "InvalidRequestException":
|
|
1835
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1836
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "ResourceUnavailableException":
|
|
1838
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
1839
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "TextSizeLimitExceededException":
|
|
1841
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
1842
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1843
|
-
default:
|
|
1844
|
-
const parsedBody = parsedOutput.body;
|
|
1845
|
-
return throwDefaultError({
|
|
1846
|
-
output,
|
|
1847
|
-
parsedBody,
|
|
1848
|
-
errorCode
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
}, "de_ClassifyDocumentCommandError");
|
|
1852
1641
|
var de_ContainsPiiEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1853
1642
|
if (output.statusCode >= 300) {
|
|
1854
|
-
return
|
|
1643
|
+
return de_CommandError(output, context);
|
|
1855
1644
|
}
|
|
1856
1645
|
const data = await parseBody(output.body, context);
|
|
1857
1646
|
let contents = {};
|
|
@@ -1862,37 +1651,9 @@ var de_ContainsPiiEntitiesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1862
1651
|
};
|
|
1863
1652
|
return response;
|
|
1864
1653
|
}, "de_ContainsPiiEntitiesCommand");
|
|
1865
|
-
var de_ContainsPiiEntitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1866
|
-
const parsedOutput = {
|
|
1867
|
-
...output,
|
|
1868
|
-
body: await parseErrorBody(output.body, context)
|
|
1869
|
-
};
|
|
1870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
-
switch (errorCode) {
|
|
1872
|
-
case "InternalServerException":
|
|
1873
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
1874
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "InvalidRequestException":
|
|
1876
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1877
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "TextSizeLimitExceededException":
|
|
1879
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
1880
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "UnsupportedLanguageException":
|
|
1882
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
1883
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
1884
|
-
default:
|
|
1885
|
-
const parsedBody = parsedOutput.body;
|
|
1886
|
-
return throwDefaultError({
|
|
1887
|
-
output,
|
|
1888
|
-
parsedBody,
|
|
1889
|
-
errorCode
|
|
1890
|
-
});
|
|
1891
|
-
}
|
|
1892
|
-
}, "de_ContainsPiiEntitiesCommandError");
|
|
1893
1654
|
var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1894
1655
|
if (output.statusCode >= 300) {
|
|
1895
|
-
return
|
|
1656
|
+
return de_CommandError(output, context);
|
|
1896
1657
|
}
|
|
1897
1658
|
const data = await parseBody(output.body, context);
|
|
1898
1659
|
let contents = {};
|
|
@@ -1903,99 +1664,22 @@ var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1903
1664
|
};
|
|
1904
1665
|
return response;
|
|
1905
1666
|
}, "de_CreateDatasetCommand");
|
|
1906
|
-
var
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
case "InvalidRequestException":
|
|
1917
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1918
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "ResourceInUseException":
|
|
1920
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
1921
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1922
|
-
case "ResourceLimitExceededException":
|
|
1923
|
-
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
1924
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "ResourceNotFoundException":
|
|
1926
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
1927
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "TooManyRequestsException":
|
|
1929
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
1930
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1931
|
-
case "TooManyTagsException":
|
|
1932
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
1933
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1934
|
-
default:
|
|
1935
|
-
const parsedBody = parsedOutput.body;
|
|
1936
|
-
return throwDefaultError({
|
|
1937
|
-
output,
|
|
1938
|
-
parsedBody,
|
|
1939
|
-
errorCode
|
|
1940
|
-
});
|
|
1941
|
-
}
|
|
1942
|
-
}, "de_CreateDatasetCommandError");
|
|
1943
|
-
var de_CreateDocumentClassifierCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1944
|
-
if (output.statusCode >= 300) {
|
|
1945
|
-
return de_CreateDocumentClassifierCommandError(output, context);
|
|
1946
|
-
}
|
|
1947
|
-
const data = await parseBody(output.body, context);
|
|
1948
|
-
let contents = {};
|
|
1949
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1950
|
-
const response = {
|
|
1951
|
-
$metadata: deserializeMetadata(output),
|
|
1952
|
-
...contents
|
|
1667
|
+
var de_CreateDocumentClassifierCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1668
|
+
if (output.statusCode >= 300) {
|
|
1669
|
+
return de_CommandError(output, context);
|
|
1670
|
+
}
|
|
1671
|
+
const data = await parseBody(output.body, context);
|
|
1672
|
+
let contents = {};
|
|
1673
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1674
|
+
const response = {
|
|
1675
|
+
$metadata: deserializeMetadata(output),
|
|
1676
|
+
...contents
|
|
1953
1677
|
};
|
|
1954
1678
|
return response;
|
|
1955
1679
|
}, "de_CreateDocumentClassifierCommand");
|
|
1956
|
-
var de_CreateDocumentClassifierCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1957
|
-
const parsedOutput = {
|
|
1958
|
-
...output,
|
|
1959
|
-
body: await parseErrorBody(output.body, context)
|
|
1960
|
-
};
|
|
1961
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1962
|
-
switch (errorCode) {
|
|
1963
|
-
case "InternalServerException":
|
|
1964
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
1965
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1966
|
-
case "InvalidRequestException":
|
|
1967
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
1968
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "KmsKeyValidationException":
|
|
1970
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
1971
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
1972
|
-
case "ResourceInUseException":
|
|
1973
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
1974
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "ResourceLimitExceededException":
|
|
1976
|
-
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
1977
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1978
|
-
case "TooManyRequestsException":
|
|
1979
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
1980
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1981
|
-
case "TooManyTagsException":
|
|
1982
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
1983
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "UnsupportedLanguageException":
|
|
1985
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
1986
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
1987
|
-
default:
|
|
1988
|
-
const parsedBody = parsedOutput.body;
|
|
1989
|
-
return throwDefaultError({
|
|
1990
|
-
output,
|
|
1991
|
-
parsedBody,
|
|
1992
|
-
errorCode
|
|
1993
|
-
});
|
|
1994
|
-
}
|
|
1995
|
-
}, "de_CreateDocumentClassifierCommandError");
|
|
1996
1680
|
var de_CreateEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1997
1681
|
if (output.statusCode >= 300) {
|
|
1998
|
-
return
|
|
1682
|
+
return de_CommandError(output, context);
|
|
1999
1683
|
}
|
|
2000
1684
|
const data = await parseBody(output.body, context);
|
|
2001
1685
|
let contents = {};
|
|
@@ -2006,49 +1690,9 @@ var de_CreateEndpointCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2006
1690
|
};
|
|
2007
1691
|
return response;
|
|
2008
1692
|
}, "de_CreateEndpointCommand");
|
|
2009
|
-
var de_CreateEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2010
|
-
const parsedOutput = {
|
|
2011
|
-
...output,
|
|
2012
|
-
body: await parseErrorBody(output.body, context)
|
|
2013
|
-
};
|
|
2014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2015
|
-
switch (errorCode) {
|
|
2016
|
-
case "InternalServerException":
|
|
2017
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2018
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2019
|
-
case "InvalidRequestException":
|
|
2020
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2021
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2022
|
-
case "ResourceInUseException":
|
|
2023
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
2024
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "ResourceLimitExceededException":
|
|
2026
|
-
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
2027
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "ResourceNotFoundException":
|
|
2029
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2030
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2031
|
-
case "ResourceUnavailableException":
|
|
2032
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
2033
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2034
|
-
case "TooManyRequestsException":
|
|
2035
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2036
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2037
|
-
case "TooManyTagsException":
|
|
2038
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
2039
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2040
|
-
default:
|
|
2041
|
-
const parsedBody = parsedOutput.body;
|
|
2042
|
-
return throwDefaultError({
|
|
2043
|
-
output,
|
|
2044
|
-
parsedBody,
|
|
2045
|
-
errorCode
|
|
2046
|
-
});
|
|
2047
|
-
}
|
|
2048
|
-
}, "de_CreateEndpointCommandError");
|
|
2049
1693
|
var de_CreateEntityRecognizerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2050
1694
|
if (output.statusCode >= 300) {
|
|
2051
|
-
return
|
|
1695
|
+
return de_CommandError(output, context);
|
|
2052
1696
|
}
|
|
2053
1697
|
const data = await parseBody(output.body, context);
|
|
2054
1698
|
let contents = {};
|
|
@@ -2059,49 +1703,9 @@ var de_CreateEntityRecognizerCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2059
1703
|
};
|
|
2060
1704
|
return response;
|
|
2061
1705
|
}, "de_CreateEntityRecognizerCommand");
|
|
2062
|
-
var de_CreateEntityRecognizerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2063
|
-
const parsedOutput = {
|
|
2064
|
-
...output,
|
|
2065
|
-
body: await parseErrorBody(output.body, context)
|
|
2066
|
-
};
|
|
2067
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2068
|
-
switch (errorCode) {
|
|
2069
|
-
case "InternalServerException":
|
|
2070
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2071
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "InvalidRequestException":
|
|
2073
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2074
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "KmsKeyValidationException":
|
|
2076
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
2077
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "ResourceInUseException":
|
|
2079
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
2080
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2081
|
-
case "ResourceLimitExceededException":
|
|
2082
|
-
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
2083
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2084
|
-
case "TooManyRequestsException":
|
|
2085
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2086
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2087
|
-
case "TooManyTagsException":
|
|
2088
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
2089
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "UnsupportedLanguageException":
|
|
2091
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
2092
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
2093
|
-
default:
|
|
2094
|
-
const parsedBody = parsedOutput.body;
|
|
2095
|
-
return throwDefaultError({
|
|
2096
|
-
output,
|
|
2097
|
-
parsedBody,
|
|
2098
|
-
errorCode
|
|
2099
|
-
});
|
|
2100
|
-
}
|
|
2101
|
-
}, "de_CreateEntityRecognizerCommandError");
|
|
2102
1706
|
var de_CreateFlywheelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2103
1707
|
if (output.statusCode >= 300) {
|
|
2104
|
-
return
|
|
1708
|
+
return de_CommandError(output, context);
|
|
2105
1709
|
}
|
|
2106
1710
|
const data = await parseBody(output.body, context);
|
|
2107
1711
|
let contents = {};
|
|
@@ -2112,55 +1716,9 @@ var de_CreateFlywheelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2112
1716
|
};
|
|
2113
1717
|
return response;
|
|
2114
1718
|
}, "de_CreateFlywheelCommand");
|
|
2115
|
-
var de_CreateFlywheelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2116
|
-
const parsedOutput = {
|
|
2117
|
-
...output,
|
|
2118
|
-
body: await parseErrorBody(output.body, context)
|
|
2119
|
-
};
|
|
2120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2121
|
-
switch (errorCode) {
|
|
2122
|
-
case "InternalServerException":
|
|
2123
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2124
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "InvalidRequestException":
|
|
2126
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2127
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2128
|
-
case "KmsKeyValidationException":
|
|
2129
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
2130
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
2131
|
-
case "ResourceInUseException":
|
|
2132
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
2133
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2134
|
-
case "ResourceLimitExceededException":
|
|
2135
|
-
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
2136
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2137
|
-
case "ResourceNotFoundException":
|
|
2138
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2139
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "ResourceUnavailableException":
|
|
2141
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
2142
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "TooManyRequestsException":
|
|
2144
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2145
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "TooManyTagsException":
|
|
2147
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
2148
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "UnsupportedLanguageException":
|
|
2150
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
2151
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
2152
|
-
default:
|
|
2153
|
-
const parsedBody = parsedOutput.body;
|
|
2154
|
-
return throwDefaultError({
|
|
2155
|
-
output,
|
|
2156
|
-
parsedBody,
|
|
2157
|
-
errorCode
|
|
2158
|
-
});
|
|
2159
|
-
}
|
|
2160
|
-
}, "de_CreateFlywheelCommandError");
|
|
2161
1719
|
var de_DeleteDocumentClassifierCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2162
1720
|
if (output.statusCode >= 300) {
|
|
2163
|
-
return
|
|
1721
|
+
return de_CommandError(output, context);
|
|
2164
1722
|
}
|
|
2165
1723
|
const data = await parseBody(output.body, context);
|
|
2166
1724
|
let contents = {};
|
|
@@ -2171,43 +1729,9 @@ var de_DeleteDocumentClassifierCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2171
1729
|
};
|
|
2172
1730
|
return response;
|
|
2173
1731
|
}, "de_DeleteDocumentClassifierCommand");
|
|
2174
|
-
var de_DeleteDocumentClassifierCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2175
|
-
const parsedOutput = {
|
|
2176
|
-
...output,
|
|
2177
|
-
body: await parseErrorBody(output.body, context)
|
|
2178
|
-
};
|
|
2179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
|
-
switch (errorCode) {
|
|
2181
|
-
case "InternalServerException":
|
|
2182
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2183
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2184
|
-
case "InvalidRequestException":
|
|
2185
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2186
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2187
|
-
case "ResourceInUseException":
|
|
2188
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
2189
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2190
|
-
case "ResourceNotFoundException":
|
|
2191
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2192
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2193
|
-
case "ResourceUnavailableException":
|
|
2194
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
2195
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2196
|
-
case "TooManyRequestsException":
|
|
2197
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2198
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2199
|
-
default:
|
|
2200
|
-
const parsedBody = parsedOutput.body;
|
|
2201
|
-
return throwDefaultError({
|
|
2202
|
-
output,
|
|
2203
|
-
parsedBody,
|
|
2204
|
-
errorCode
|
|
2205
|
-
});
|
|
2206
|
-
}
|
|
2207
|
-
}, "de_DeleteDocumentClassifierCommandError");
|
|
2208
1732
|
var de_DeleteEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2209
1733
|
if (output.statusCode >= 300) {
|
|
2210
|
-
return
|
|
1734
|
+
return de_CommandError(output, context);
|
|
2211
1735
|
}
|
|
2212
1736
|
const data = await parseBody(output.body, context);
|
|
2213
1737
|
let contents = {};
|
|
@@ -2218,40 +1742,9 @@ var de_DeleteEndpointCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2218
1742
|
};
|
|
2219
1743
|
return response;
|
|
2220
1744
|
}, "de_DeleteEndpointCommand");
|
|
2221
|
-
var de_DeleteEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2222
|
-
const parsedOutput = {
|
|
2223
|
-
...output,
|
|
2224
|
-
body: await parseErrorBody(output.body, context)
|
|
2225
|
-
};
|
|
2226
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2227
|
-
switch (errorCode) {
|
|
2228
|
-
case "InternalServerException":
|
|
2229
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2230
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2231
|
-
case "InvalidRequestException":
|
|
2232
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2233
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2234
|
-
case "ResourceInUseException":
|
|
2235
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
2236
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2237
|
-
case "ResourceNotFoundException":
|
|
2238
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2239
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2240
|
-
case "TooManyRequestsException":
|
|
2241
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2242
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2243
|
-
default:
|
|
2244
|
-
const parsedBody = parsedOutput.body;
|
|
2245
|
-
return throwDefaultError({
|
|
2246
|
-
output,
|
|
2247
|
-
parsedBody,
|
|
2248
|
-
errorCode
|
|
2249
|
-
});
|
|
2250
|
-
}
|
|
2251
|
-
}, "de_DeleteEndpointCommandError");
|
|
2252
1745
|
var de_DeleteEntityRecognizerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2253
1746
|
if (output.statusCode >= 300) {
|
|
2254
|
-
return
|
|
1747
|
+
return de_CommandError(output, context);
|
|
2255
1748
|
}
|
|
2256
1749
|
const data = await parseBody(output.body, context);
|
|
2257
1750
|
let contents = {};
|
|
@@ -2262,43 +1755,9 @@ var de_DeleteEntityRecognizerCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2262
1755
|
};
|
|
2263
1756
|
return response;
|
|
2264
1757
|
}, "de_DeleteEntityRecognizerCommand");
|
|
2265
|
-
var de_DeleteEntityRecognizerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2266
|
-
const parsedOutput = {
|
|
2267
|
-
...output,
|
|
2268
|
-
body: await parseErrorBody(output.body, context)
|
|
2269
|
-
};
|
|
2270
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2271
|
-
switch (errorCode) {
|
|
2272
|
-
case "InternalServerException":
|
|
2273
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2274
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2275
|
-
case "InvalidRequestException":
|
|
2276
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2277
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2278
|
-
case "ResourceInUseException":
|
|
2279
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
2280
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2281
|
-
case "ResourceNotFoundException":
|
|
2282
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2283
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "ResourceUnavailableException":
|
|
2285
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
2286
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "TooManyRequestsException":
|
|
2288
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2289
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2290
|
-
default:
|
|
2291
|
-
const parsedBody = parsedOutput.body;
|
|
2292
|
-
return throwDefaultError({
|
|
2293
|
-
output,
|
|
2294
|
-
parsedBody,
|
|
2295
|
-
errorCode
|
|
2296
|
-
});
|
|
2297
|
-
}
|
|
2298
|
-
}, "de_DeleteEntityRecognizerCommandError");
|
|
2299
1758
|
var de_DeleteFlywheelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2300
1759
|
if (output.statusCode >= 300) {
|
|
2301
|
-
return
|
|
1760
|
+
return de_CommandError(output, context);
|
|
2302
1761
|
}
|
|
2303
1762
|
const data = await parseBody(output.body, context);
|
|
2304
1763
|
let contents = {};
|
|
@@ -2309,43 +1768,9 @@ var de_DeleteFlywheelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2309
1768
|
};
|
|
2310
1769
|
return response;
|
|
2311
1770
|
}, "de_DeleteFlywheelCommand");
|
|
2312
|
-
var de_DeleteFlywheelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2313
|
-
const parsedOutput = {
|
|
2314
|
-
...output,
|
|
2315
|
-
body: await parseErrorBody(output.body, context)
|
|
2316
|
-
};
|
|
2317
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2318
|
-
switch (errorCode) {
|
|
2319
|
-
case "InternalServerException":
|
|
2320
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2321
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2322
|
-
case "InvalidRequestException":
|
|
2323
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2324
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2325
|
-
case "ResourceInUseException":
|
|
2326
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
2327
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2328
|
-
case "ResourceNotFoundException":
|
|
2329
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2330
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2331
|
-
case "ResourceUnavailableException":
|
|
2332
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
2333
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "TooManyRequestsException":
|
|
2335
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2336
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2337
|
-
default:
|
|
2338
|
-
const parsedBody = parsedOutput.body;
|
|
2339
|
-
return throwDefaultError({
|
|
2340
|
-
output,
|
|
2341
|
-
parsedBody,
|
|
2342
|
-
errorCode
|
|
2343
|
-
});
|
|
2344
|
-
}
|
|
2345
|
-
}, "de_DeleteFlywheelCommandError");
|
|
2346
1771
|
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2347
1772
|
if (output.statusCode >= 300) {
|
|
2348
|
-
return
|
|
1773
|
+
return de_CommandError(output, context);
|
|
2349
1774
|
}
|
|
2350
1775
|
const data = await parseBody(output.body, context);
|
|
2351
1776
|
let contents = {};
|
|
@@ -2356,34 +1781,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2356
1781
|
};
|
|
2357
1782
|
return response;
|
|
2358
1783
|
}, "de_DeleteResourcePolicyCommand");
|
|
2359
|
-
var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2360
|
-
const parsedOutput = {
|
|
2361
|
-
...output,
|
|
2362
|
-
body: await parseErrorBody(output.body, context)
|
|
2363
|
-
};
|
|
2364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2365
|
-
switch (errorCode) {
|
|
2366
|
-
case "InternalServerException":
|
|
2367
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2368
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2369
|
-
case "InvalidRequestException":
|
|
2370
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2371
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2372
|
-
case "ResourceNotFoundException":
|
|
2373
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2374
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2375
|
-
default:
|
|
2376
|
-
const parsedBody = parsedOutput.body;
|
|
2377
|
-
return throwDefaultError({
|
|
2378
|
-
output,
|
|
2379
|
-
parsedBody,
|
|
2380
|
-
errorCode
|
|
2381
|
-
});
|
|
2382
|
-
}
|
|
2383
|
-
}, "de_DeleteResourcePolicyCommandError");
|
|
2384
1784
|
var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2385
1785
|
if (output.statusCode >= 300) {
|
|
2386
|
-
return
|
|
1786
|
+
return de_CommandError(output, context);
|
|
2387
1787
|
}
|
|
2388
1788
|
const data = await parseBody(output.body, context);
|
|
2389
1789
|
let contents = {};
|
|
@@ -2394,37 +1794,9 @@ var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2394
1794
|
};
|
|
2395
1795
|
return response;
|
|
2396
1796
|
}, "de_DescribeDatasetCommand");
|
|
2397
|
-
var de_DescribeDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2398
|
-
const parsedOutput = {
|
|
2399
|
-
...output,
|
|
2400
|
-
body: await parseErrorBody(output.body, context)
|
|
2401
|
-
};
|
|
2402
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2403
|
-
switch (errorCode) {
|
|
2404
|
-
case "InternalServerException":
|
|
2405
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2406
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2407
|
-
case "InvalidRequestException":
|
|
2408
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2409
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2410
|
-
case "ResourceNotFoundException":
|
|
2411
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2412
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2413
|
-
case "TooManyRequestsException":
|
|
2414
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2415
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2416
|
-
default:
|
|
2417
|
-
const parsedBody = parsedOutput.body;
|
|
2418
|
-
return throwDefaultError({
|
|
2419
|
-
output,
|
|
2420
|
-
parsedBody,
|
|
2421
|
-
errorCode
|
|
2422
|
-
});
|
|
2423
|
-
}
|
|
2424
|
-
}, "de_DescribeDatasetCommandError");
|
|
2425
1797
|
var de_DescribeDocumentClassificationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2426
1798
|
if (output.statusCode >= 300) {
|
|
2427
|
-
return
|
|
1799
|
+
return de_CommandError(output, context);
|
|
2428
1800
|
}
|
|
2429
1801
|
const data = await parseBody(output.body, context);
|
|
2430
1802
|
let contents = {};
|
|
@@ -2435,37 +1807,9 @@ var de_DescribeDocumentClassificationJobCommand = /* @__PURE__ */ __name(async (
|
|
|
2435
1807
|
};
|
|
2436
1808
|
return response;
|
|
2437
1809
|
}, "de_DescribeDocumentClassificationJobCommand");
|
|
2438
|
-
var de_DescribeDocumentClassificationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2439
|
-
const parsedOutput = {
|
|
2440
|
-
...output,
|
|
2441
|
-
body: await parseErrorBody(output.body, context)
|
|
2442
|
-
};
|
|
2443
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2444
|
-
switch (errorCode) {
|
|
2445
|
-
case "InternalServerException":
|
|
2446
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2447
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2448
|
-
case "InvalidRequestException":
|
|
2449
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2450
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2451
|
-
case "JobNotFoundException":
|
|
2452
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
2453
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
2454
|
-
case "TooManyRequestsException":
|
|
2455
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2456
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2457
|
-
default:
|
|
2458
|
-
const parsedBody = parsedOutput.body;
|
|
2459
|
-
return throwDefaultError({
|
|
2460
|
-
output,
|
|
2461
|
-
parsedBody,
|
|
2462
|
-
errorCode
|
|
2463
|
-
});
|
|
2464
|
-
}
|
|
2465
|
-
}, "de_DescribeDocumentClassificationJobCommandError");
|
|
2466
1810
|
var de_DescribeDocumentClassifierCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2467
1811
|
if (output.statusCode >= 300) {
|
|
2468
|
-
return
|
|
1812
|
+
return de_CommandError(output, context);
|
|
2469
1813
|
}
|
|
2470
1814
|
const data = await parseBody(output.body, context);
|
|
2471
1815
|
let contents = {};
|
|
@@ -2476,37 +1820,9 @@ var de_DescribeDocumentClassifierCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2476
1820
|
};
|
|
2477
1821
|
return response;
|
|
2478
1822
|
}, "de_DescribeDocumentClassifierCommand");
|
|
2479
|
-
var de_DescribeDocumentClassifierCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2480
|
-
const parsedOutput = {
|
|
2481
|
-
...output,
|
|
2482
|
-
body: await parseErrorBody(output.body, context)
|
|
2483
|
-
};
|
|
2484
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2485
|
-
switch (errorCode) {
|
|
2486
|
-
case "InternalServerException":
|
|
2487
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2488
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "InvalidRequestException":
|
|
2490
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2491
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2492
|
-
case "ResourceNotFoundException":
|
|
2493
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2494
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "TooManyRequestsException":
|
|
2496
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2497
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2498
|
-
default:
|
|
2499
|
-
const parsedBody = parsedOutput.body;
|
|
2500
|
-
return throwDefaultError({
|
|
2501
|
-
output,
|
|
2502
|
-
parsedBody,
|
|
2503
|
-
errorCode
|
|
2504
|
-
});
|
|
2505
|
-
}
|
|
2506
|
-
}, "de_DescribeDocumentClassifierCommandError");
|
|
2507
1823
|
var de_DescribeDominantLanguageDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2508
1824
|
if (output.statusCode >= 300) {
|
|
2509
|
-
return
|
|
1825
|
+
return de_CommandError(output, context);
|
|
2510
1826
|
}
|
|
2511
1827
|
const data = await parseBody(output.body, context);
|
|
2512
1828
|
let contents = {};
|
|
@@ -2515,121 +1831,37 @@ var de_DescribeDominantLanguageDetectionJobCommand = /* @__PURE__ */ __name(asyn
|
|
|
2515
1831
|
$metadata: deserializeMetadata(output),
|
|
2516
1832
|
...contents
|
|
2517
1833
|
};
|
|
2518
|
-
return response;
|
|
2519
|
-
}, "de_DescribeDominantLanguageDetectionJobCommand");
|
|
2520
|
-
var
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
case "TooManyRequestsException":
|
|
2537
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2538
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2539
|
-
default:
|
|
2540
|
-
const parsedBody = parsedOutput.body;
|
|
2541
|
-
return throwDefaultError({
|
|
2542
|
-
output,
|
|
2543
|
-
parsedBody,
|
|
2544
|
-
errorCode
|
|
2545
|
-
});
|
|
2546
|
-
}
|
|
2547
|
-
}, "de_DescribeDominantLanguageDetectionJobCommandError");
|
|
2548
|
-
var de_DescribeEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2549
|
-
if (output.statusCode >= 300) {
|
|
2550
|
-
return de_DescribeEndpointCommandError(output, context);
|
|
2551
|
-
}
|
|
2552
|
-
const data = await parseBody(output.body, context);
|
|
2553
|
-
let contents = {};
|
|
2554
|
-
contents = de_DescribeEndpointResponse(data, context);
|
|
2555
|
-
const response = {
|
|
2556
|
-
$metadata: deserializeMetadata(output),
|
|
2557
|
-
...contents
|
|
2558
|
-
};
|
|
2559
|
-
return response;
|
|
2560
|
-
}, "de_DescribeEndpointCommand");
|
|
2561
|
-
var de_DescribeEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2562
|
-
const parsedOutput = {
|
|
2563
|
-
...output,
|
|
2564
|
-
body: await parseErrorBody(output.body, context)
|
|
2565
|
-
};
|
|
2566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2567
|
-
switch (errorCode) {
|
|
2568
|
-
case "InternalServerException":
|
|
2569
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2570
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2571
|
-
case "InvalidRequestException":
|
|
2572
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2573
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2574
|
-
case "ResourceNotFoundException":
|
|
2575
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2576
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2577
|
-
case "TooManyRequestsException":
|
|
2578
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2579
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2580
|
-
default:
|
|
2581
|
-
const parsedBody = parsedOutput.body;
|
|
2582
|
-
return throwDefaultError({
|
|
2583
|
-
output,
|
|
2584
|
-
parsedBody,
|
|
2585
|
-
errorCode
|
|
2586
|
-
});
|
|
2587
|
-
}
|
|
2588
|
-
}, "de_DescribeEndpointCommandError");
|
|
2589
|
-
var de_DescribeEntitiesDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2590
|
-
if (output.statusCode >= 300) {
|
|
2591
|
-
return de_DescribeEntitiesDetectionJobCommandError(output, context);
|
|
2592
|
-
}
|
|
2593
|
-
const data = await parseBody(output.body, context);
|
|
2594
|
-
let contents = {};
|
|
2595
|
-
contents = de_DescribeEntitiesDetectionJobResponse(data, context);
|
|
2596
|
-
const response = {
|
|
2597
|
-
$metadata: deserializeMetadata(output),
|
|
2598
|
-
...contents
|
|
2599
|
-
};
|
|
2600
|
-
return response;
|
|
2601
|
-
}, "de_DescribeEntitiesDetectionJobCommand");
|
|
2602
|
-
var de_DescribeEntitiesDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2603
|
-
const parsedOutput = {
|
|
2604
|
-
...output,
|
|
2605
|
-
body: await parseErrorBody(output.body, context)
|
|
2606
|
-
};
|
|
2607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2608
|
-
switch (errorCode) {
|
|
2609
|
-
case "InternalServerException":
|
|
2610
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2611
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2612
|
-
case "InvalidRequestException":
|
|
2613
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2614
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2615
|
-
case "JobNotFoundException":
|
|
2616
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
2617
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
2618
|
-
case "TooManyRequestsException":
|
|
2619
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2620
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2621
|
-
default:
|
|
2622
|
-
const parsedBody = parsedOutput.body;
|
|
2623
|
-
return throwDefaultError({
|
|
2624
|
-
output,
|
|
2625
|
-
parsedBody,
|
|
2626
|
-
errorCode
|
|
2627
|
-
});
|
|
1834
|
+
return response;
|
|
1835
|
+
}, "de_DescribeDominantLanguageDetectionJobCommand");
|
|
1836
|
+
var de_DescribeEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1837
|
+
if (output.statusCode >= 300) {
|
|
1838
|
+
return de_CommandError(output, context);
|
|
1839
|
+
}
|
|
1840
|
+
const data = await parseBody(output.body, context);
|
|
1841
|
+
let contents = {};
|
|
1842
|
+
contents = de_DescribeEndpointResponse(data, context);
|
|
1843
|
+
const response = {
|
|
1844
|
+
$metadata: deserializeMetadata(output),
|
|
1845
|
+
...contents
|
|
1846
|
+
};
|
|
1847
|
+
return response;
|
|
1848
|
+
}, "de_DescribeEndpointCommand");
|
|
1849
|
+
var de_DescribeEntitiesDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1850
|
+
if (output.statusCode >= 300) {
|
|
1851
|
+
return de_CommandError(output, context);
|
|
2628
1852
|
}
|
|
2629
|
-
|
|
1853
|
+
const data = await parseBody(output.body, context);
|
|
1854
|
+
let contents = {};
|
|
1855
|
+
contents = de_DescribeEntitiesDetectionJobResponse(data, context);
|
|
1856
|
+
const response = {
|
|
1857
|
+
$metadata: deserializeMetadata(output),
|
|
1858
|
+
...contents
|
|
1859
|
+
};
|
|
1860
|
+
return response;
|
|
1861
|
+
}, "de_DescribeEntitiesDetectionJobCommand");
|
|
2630
1862
|
var de_DescribeEntityRecognizerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2631
1863
|
if (output.statusCode >= 300) {
|
|
2632
|
-
return
|
|
1864
|
+
return de_CommandError(output, context);
|
|
2633
1865
|
}
|
|
2634
1866
|
const data = await parseBody(output.body, context);
|
|
2635
1867
|
let contents = {};
|
|
@@ -2640,37 +1872,9 @@ var de_DescribeEntityRecognizerCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2640
1872
|
};
|
|
2641
1873
|
return response;
|
|
2642
1874
|
}, "de_DescribeEntityRecognizerCommand");
|
|
2643
|
-
var de_DescribeEntityRecognizerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2644
|
-
const parsedOutput = {
|
|
2645
|
-
...output,
|
|
2646
|
-
body: await parseErrorBody(output.body, context)
|
|
2647
|
-
};
|
|
2648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2649
|
-
switch (errorCode) {
|
|
2650
|
-
case "InternalServerException":
|
|
2651
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2652
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2653
|
-
case "InvalidRequestException":
|
|
2654
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2655
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2656
|
-
case "ResourceNotFoundException":
|
|
2657
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2658
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2659
|
-
case "TooManyRequestsException":
|
|
2660
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2661
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2662
|
-
default:
|
|
2663
|
-
const parsedBody = parsedOutput.body;
|
|
2664
|
-
return throwDefaultError({
|
|
2665
|
-
output,
|
|
2666
|
-
parsedBody,
|
|
2667
|
-
errorCode
|
|
2668
|
-
});
|
|
2669
|
-
}
|
|
2670
|
-
}, "de_DescribeEntityRecognizerCommandError");
|
|
2671
1875
|
var de_DescribeEventsDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2672
1876
|
if (output.statusCode >= 300) {
|
|
2673
|
-
return
|
|
1877
|
+
return de_CommandError(output, context);
|
|
2674
1878
|
}
|
|
2675
1879
|
const data = await parseBody(output.body, context);
|
|
2676
1880
|
let contents = {};
|
|
@@ -2681,37 +1885,9 @@ var de_DescribeEventsDetectionJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2681
1885
|
};
|
|
2682
1886
|
return response;
|
|
2683
1887
|
}, "de_DescribeEventsDetectionJobCommand");
|
|
2684
|
-
var de_DescribeEventsDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2685
|
-
const parsedOutput = {
|
|
2686
|
-
...output,
|
|
2687
|
-
body: await parseErrorBody(output.body, context)
|
|
2688
|
-
};
|
|
2689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2690
|
-
switch (errorCode) {
|
|
2691
|
-
case "InternalServerException":
|
|
2692
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2693
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2694
|
-
case "InvalidRequestException":
|
|
2695
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2696
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2697
|
-
case "JobNotFoundException":
|
|
2698
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
2699
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
2700
|
-
case "TooManyRequestsException":
|
|
2701
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2702
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2703
|
-
default:
|
|
2704
|
-
const parsedBody = parsedOutput.body;
|
|
2705
|
-
return throwDefaultError({
|
|
2706
|
-
output,
|
|
2707
|
-
parsedBody,
|
|
2708
|
-
errorCode
|
|
2709
|
-
});
|
|
2710
|
-
}
|
|
2711
|
-
}, "de_DescribeEventsDetectionJobCommandError");
|
|
2712
1888
|
var de_DescribeFlywheelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2713
1889
|
if (output.statusCode >= 300) {
|
|
2714
|
-
return
|
|
1890
|
+
return de_CommandError(output, context);
|
|
2715
1891
|
}
|
|
2716
1892
|
const data = await parseBody(output.body, context);
|
|
2717
1893
|
let contents = {};
|
|
@@ -2722,37 +1898,9 @@ var de_DescribeFlywheelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2722
1898
|
};
|
|
2723
1899
|
return response;
|
|
2724
1900
|
}, "de_DescribeFlywheelCommand");
|
|
2725
|
-
var de_DescribeFlywheelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2726
|
-
const parsedOutput = {
|
|
2727
|
-
...output,
|
|
2728
|
-
body: await parseErrorBody(output.body, context)
|
|
2729
|
-
};
|
|
2730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2731
|
-
switch (errorCode) {
|
|
2732
|
-
case "InternalServerException":
|
|
2733
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2734
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2735
|
-
case "InvalidRequestException":
|
|
2736
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2737
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2738
|
-
case "ResourceNotFoundException":
|
|
2739
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2740
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2741
|
-
case "TooManyRequestsException":
|
|
2742
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2743
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2744
|
-
default:
|
|
2745
|
-
const parsedBody = parsedOutput.body;
|
|
2746
|
-
return throwDefaultError({
|
|
2747
|
-
output,
|
|
2748
|
-
parsedBody,
|
|
2749
|
-
errorCode
|
|
2750
|
-
});
|
|
2751
|
-
}
|
|
2752
|
-
}, "de_DescribeFlywheelCommandError");
|
|
2753
1901
|
var de_DescribeFlywheelIterationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2754
1902
|
if (output.statusCode >= 300) {
|
|
2755
|
-
return
|
|
1903
|
+
return de_CommandError(output, context);
|
|
2756
1904
|
}
|
|
2757
1905
|
const data = await parseBody(output.body, context);
|
|
2758
1906
|
let contents = {};
|
|
@@ -2763,37 +1911,9 @@ var de_DescribeFlywheelIterationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2763
1911
|
};
|
|
2764
1912
|
return response;
|
|
2765
1913
|
}, "de_DescribeFlywheelIterationCommand");
|
|
2766
|
-
var de_DescribeFlywheelIterationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2767
|
-
const parsedOutput = {
|
|
2768
|
-
...output,
|
|
2769
|
-
body: await parseErrorBody(output.body, context)
|
|
2770
|
-
};
|
|
2771
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2772
|
-
switch (errorCode) {
|
|
2773
|
-
case "InternalServerException":
|
|
2774
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2775
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2776
|
-
case "InvalidRequestException":
|
|
2777
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2778
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2779
|
-
case "ResourceNotFoundException":
|
|
2780
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2781
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2782
|
-
case "TooManyRequestsException":
|
|
2783
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2784
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2785
|
-
default:
|
|
2786
|
-
const parsedBody = parsedOutput.body;
|
|
2787
|
-
return throwDefaultError({
|
|
2788
|
-
output,
|
|
2789
|
-
parsedBody,
|
|
2790
|
-
errorCode
|
|
2791
|
-
});
|
|
2792
|
-
}
|
|
2793
|
-
}, "de_DescribeFlywheelIterationCommandError");
|
|
2794
1914
|
var de_DescribeKeyPhrasesDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2795
1915
|
if (output.statusCode >= 300) {
|
|
2796
|
-
return
|
|
1916
|
+
return de_CommandError(output, context);
|
|
2797
1917
|
}
|
|
2798
1918
|
const data = await parseBody(output.body, context);
|
|
2799
1919
|
let contents = {};
|
|
@@ -2804,37 +1924,9 @@ var de_DescribeKeyPhrasesDetectionJobCommand = /* @__PURE__ */ __name(async (out
|
|
|
2804
1924
|
};
|
|
2805
1925
|
return response;
|
|
2806
1926
|
}, "de_DescribeKeyPhrasesDetectionJobCommand");
|
|
2807
|
-
var de_DescribeKeyPhrasesDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2808
|
-
const parsedOutput = {
|
|
2809
|
-
...output,
|
|
2810
|
-
body: await parseErrorBody(output.body, context)
|
|
2811
|
-
};
|
|
2812
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2813
|
-
switch (errorCode) {
|
|
2814
|
-
case "InternalServerException":
|
|
2815
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2816
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2817
|
-
case "InvalidRequestException":
|
|
2818
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2819
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2820
|
-
case "JobNotFoundException":
|
|
2821
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
2822
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
2823
|
-
case "TooManyRequestsException":
|
|
2824
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2825
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2826
|
-
default:
|
|
2827
|
-
const parsedBody = parsedOutput.body;
|
|
2828
|
-
return throwDefaultError({
|
|
2829
|
-
output,
|
|
2830
|
-
parsedBody,
|
|
2831
|
-
errorCode
|
|
2832
|
-
});
|
|
2833
|
-
}
|
|
2834
|
-
}, "de_DescribeKeyPhrasesDetectionJobCommandError");
|
|
2835
1927
|
var de_DescribePiiEntitiesDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2836
1928
|
if (output.statusCode >= 300) {
|
|
2837
|
-
return
|
|
1929
|
+
return de_CommandError(output, context);
|
|
2838
1930
|
}
|
|
2839
1931
|
const data = await parseBody(output.body, context);
|
|
2840
1932
|
let contents = {};
|
|
@@ -2845,37 +1937,9 @@ var de_DescribePiiEntitiesDetectionJobCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2845
1937
|
};
|
|
2846
1938
|
return response;
|
|
2847
1939
|
}, "de_DescribePiiEntitiesDetectionJobCommand");
|
|
2848
|
-
var de_DescribePiiEntitiesDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2849
|
-
const parsedOutput = {
|
|
2850
|
-
...output,
|
|
2851
|
-
body: await parseErrorBody(output.body, context)
|
|
2852
|
-
};
|
|
2853
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2854
|
-
switch (errorCode) {
|
|
2855
|
-
case "InternalServerException":
|
|
2856
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2857
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2858
|
-
case "InvalidRequestException":
|
|
2859
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2860
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2861
|
-
case "JobNotFoundException":
|
|
2862
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
2863
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
2864
|
-
case "TooManyRequestsException":
|
|
2865
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2866
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2867
|
-
default:
|
|
2868
|
-
const parsedBody = parsedOutput.body;
|
|
2869
|
-
return throwDefaultError({
|
|
2870
|
-
output,
|
|
2871
|
-
parsedBody,
|
|
2872
|
-
errorCode
|
|
2873
|
-
});
|
|
2874
|
-
}
|
|
2875
|
-
}, "de_DescribePiiEntitiesDetectionJobCommandError");
|
|
2876
1940
|
var de_DescribeResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2877
1941
|
if (output.statusCode >= 300) {
|
|
2878
|
-
return
|
|
1942
|
+
return de_CommandError(output, context);
|
|
2879
1943
|
}
|
|
2880
1944
|
const data = await parseBody(output.body, context);
|
|
2881
1945
|
let contents = {};
|
|
@@ -2886,34 +1950,9 @@ var de_DescribeResourcePolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2886
1950
|
};
|
|
2887
1951
|
return response;
|
|
2888
1952
|
}, "de_DescribeResourcePolicyCommand");
|
|
2889
|
-
var de_DescribeResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2890
|
-
const parsedOutput = {
|
|
2891
|
-
...output,
|
|
2892
|
-
body: await parseErrorBody(output.body, context)
|
|
2893
|
-
};
|
|
2894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2895
|
-
switch (errorCode) {
|
|
2896
|
-
case "InternalServerException":
|
|
2897
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2898
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2899
|
-
case "InvalidRequestException":
|
|
2900
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2901
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "ResourceNotFoundException":
|
|
2903
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
2904
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2905
|
-
default:
|
|
2906
|
-
const parsedBody = parsedOutput.body;
|
|
2907
|
-
return throwDefaultError({
|
|
2908
|
-
output,
|
|
2909
|
-
parsedBody,
|
|
2910
|
-
errorCode
|
|
2911
|
-
});
|
|
2912
|
-
}
|
|
2913
|
-
}, "de_DescribeResourcePolicyCommandError");
|
|
2914
1953
|
var de_DescribeSentimentDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2915
1954
|
if (output.statusCode >= 300) {
|
|
2916
|
-
return
|
|
1955
|
+
return de_CommandError(output, context);
|
|
2917
1956
|
}
|
|
2918
1957
|
const data = await parseBody(output.body, context);
|
|
2919
1958
|
let contents = {};
|
|
@@ -2924,37 +1963,9 @@ var de_DescribeSentimentDetectionJobCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2924
1963
|
};
|
|
2925
1964
|
return response;
|
|
2926
1965
|
}, "de_DescribeSentimentDetectionJobCommand");
|
|
2927
|
-
var de_DescribeSentimentDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2928
|
-
const parsedOutput = {
|
|
2929
|
-
...output,
|
|
2930
|
-
body: await parseErrorBody(output.body, context)
|
|
2931
|
-
};
|
|
2932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2933
|
-
switch (errorCode) {
|
|
2934
|
-
case "InternalServerException":
|
|
2935
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2936
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "InvalidRequestException":
|
|
2938
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2939
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "JobNotFoundException":
|
|
2941
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
2942
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
2943
|
-
case "TooManyRequestsException":
|
|
2944
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2945
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2946
|
-
default:
|
|
2947
|
-
const parsedBody = parsedOutput.body;
|
|
2948
|
-
return throwDefaultError({
|
|
2949
|
-
output,
|
|
2950
|
-
parsedBody,
|
|
2951
|
-
errorCode
|
|
2952
|
-
});
|
|
2953
|
-
}
|
|
2954
|
-
}, "de_DescribeSentimentDetectionJobCommandError");
|
|
2955
1966
|
var de_DescribeTargetedSentimentDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2956
1967
|
if (output.statusCode >= 300) {
|
|
2957
|
-
return
|
|
1968
|
+
return de_CommandError(output, context);
|
|
2958
1969
|
}
|
|
2959
1970
|
const data = await parseBody(output.body, context);
|
|
2960
1971
|
let contents = {};
|
|
@@ -2965,37 +1976,9 @@ var de_DescribeTargetedSentimentDetectionJobCommand = /* @__PURE__ */ __name(asy
|
|
|
2965
1976
|
};
|
|
2966
1977
|
return response;
|
|
2967
1978
|
}, "de_DescribeTargetedSentimentDetectionJobCommand");
|
|
2968
|
-
var de_DescribeTargetedSentimentDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2969
|
-
const parsedOutput = {
|
|
2970
|
-
...output,
|
|
2971
|
-
body: await parseErrorBody(output.body, context)
|
|
2972
|
-
};
|
|
2973
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2974
|
-
switch (errorCode) {
|
|
2975
|
-
case "InternalServerException":
|
|
2976
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
2977
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2978
|
-
case "InvalidRequestException":
|
|
2979
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
2980
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2981
|
-
case "JobNotFoundException":
|
|
2982
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
2983
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
2984
|
-
case "TooManyRequestsException":
|
|
2985
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
2986
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2987
|
-
default:
|
|
2988
|
-
const parsedBody = parsedOutput.body;
|
|
2989
|
-
return throwDefaultError({
|
|
2990
|
-
output,
|
|
2991
|
-
parsedBody,
|
|
2992
|
-
errorCode
|
|
2993
|
-
});
|
|
2994
|
-
}
|
|
2995
|
-
}, "de_DescribeTargetedSentimentDetectionJobCommandError");
|
|
2996
1979
|
var de_DescribeTopicsDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2997
1980
|
if (output.statusCode >= 300) {
|
|
2998
|
-
return
|
|
1981
|
+
return de_CommandError(output, context);
|
|
2999
1982
|
}
|
|
3000
1983
|
const data = await parseBody(output.body, context);
|
|
3001
1984
|
let contents = {};
|
|
@@ -3006,37 +1989,9 @@ var de_DescribeTopicsDetectionJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3006
1989
|
};
|
|
3007
1990
|
return response;
|
|
3008
1991
|
}, "de_DescribeTopicsDetectionJobCommand");
|
|
3009
|
-
var de_DescribeTopicsDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3010
|
-
const parsedOutput = {
|
|
3011
|
-
...output,
|
|
3012
|
-
body: await parseErrorBody(output.body, context)
|
|
3013
|
-
};
|
|
3014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3015
|
-
switch (errorCode) {
|
|
3016
|
-
case "InternalServerException":
|
|
3017
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3018
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3019
|
-
case "InvalidRequestException":
|
|
3020
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3021
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3022
|
-
case "JobNotFoundException":
|
|
3023
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
3024
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
3025
|
-
case "TooManyRequestsException":
|
|
3026
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3027
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3028
|
-
default:
|
|
3029
|
-
const parsedBody = parsedOutput.body;
|
|
3030
|
-
return throwDefaultError({
|
|
3031
|
-
output,
|
|
3032
|
-
parsedBody,
|
|
3033
|
-
errorCode
|
|
3034
|
-
});
|
|
3035
|
-
}
|
|
3036
|
-
}, "de_DescribeTopicsDetectionJobCommandError");
|
|
3037
1992
|
var de_DetectDominantLanguageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3038
1993
|
if (output.statusCode >= 300) {
|
|
3039
|
-
return
|
|
1994
|
+
return de_CommandError(output, context);
|
|
3040
1995
|
}
|
|
3041
1996
|
const data = await parseBody(output.body, context);
|
|
3042
1997
|
let contents = {};
|
|
@@ -3047,34 +2002,9 @@ var de_DetectDominantLanguageCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3047
2002
|
};
|
|
3048
2003
|
return response;
|
|
3049
2004
|
}, "de_DetectDominantLanguageCommand");
|
|
3050
|
-
var de_DetectDominantLanguageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3051
|
-
const parsedOutput = {
|
|
3052
|
-
...output,
|
|
3053
|
-
body: await parseErrorBody(output.body, context)
|
|
3054
|
-
};
|
|
3055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3056
|
-
switch (errorCode) {
|
|
3057
|
-
case "InternalServerException":
|
|
3058
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3059
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3060
|
-
case "InvalidRequestException":
|
|
3061
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3062
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3063
|
-
case "TextSizeLimitExceededException":
|
|
3064
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
3065
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
3066
|
-
default:
|
|
3067
|
-
const parsedBody = parsedOutput.body;
|
|
3068
|
-
return throwDefaultError({
|
|
3069
|
-
output,
|
|
3070
|
-
parsedBody,
|
|
3071
|
-
errorCode
|
|
3072
|
-
});
|
|
3073
|
-
}
|
|
3074
|
-
}, "de_DetectDominantLanguageCommandError");
|
|
3075
2005
|
var de_DetectEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3076
2006
|
if (output.statusCode >= 300) {
|
|
3077
|
-
return
|
|
2007
|
+
return de_CommandError(output, context);
|
|
3078
2008
|
}
|
|
3079
2009
|
const data = await parseBody(output.body, context);
|
|
3080
2010
|
let contents = {};
|
|
@@ -3085,40 +2015,9 @@ var de_DetectEntitiesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3085
2015
|
};
|
|
3086
2016
|
return response;
|
|
3087
2017
|
}, "de_DetectEntitiesCommand");
|
|
3088
|
-
var de_DetectEntitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3089
|
-
const parsedOutput = {
|
|
3090
|
-
...output,
|
|
3091
|
-
body: await parseErrorBody(output.body, context)
|
|
3092
|
-
};
|
|
3093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3094
|
-
switch (errorCode) {
|
|
3095
|
-
case "InternalServerException":
|
|
3096
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3097
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3098
|
-
case "InvalidRequestException":
|
|
3099
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3100
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3101
|
-
case "ResourceUnavailableException":
|
|
3102
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
3103
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3104
|
-
case "TextSizeLimitExceededException":
|
|
3105
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
3106
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
3107
|
-
case "UnsupportedLanguageException":
|
|
3108
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
3109
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
3110
|
-
default:
|
|
3111
|
-
const parsedBody = parsedOutput.body;
|
|
3112
|
-
return throwDefaultError({
|
|
3113
|
-
output,
|
|
3114
|
-
parsedBody,
|
|
3115
|
-
errorCode
|
|
3116
|
-
});
|
|
3117
|
-
}
|
|
3118
|
-
}, "de_DetectEntitiesCommandError");
|
|
3119
2018
|
var de_DetectKeyPhrasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3120
2019
|
if (output.statusCode >= 300) {
|
|
3121
|
-
return
|
|
2020
|
+
return de_CommandError(output, context);
|
|
3122
2021
|
}
|
|
3123
2022
|
const data = await parseBody(output.body, context);
|
|
3124
2023
|
let contents = {};
|
|
@@ -3129,37 +2028,9 @@ var de_DetectKeyPhrasesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3129
2028
|
};
|
|
3130
2029
|
return response;
|
|
3131
2030
|
}, "de_DetectKeyPhrasesCommand");
|
|
3132
|
-
var de_DetectKeyPhrasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3133
|
-
const parsedOutput = {
|
|
3134
|
-
...output,
|
|
3135
|
-
body: await parseErrorBody(output.body, context)
|
|
3136
|
-
};
|
|
3137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3138
|
-
switch (errorCode) {
|
|
3139
|
-
case "InternalServerException":
|
|
3140
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3141
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3142
|
-
case "InvalidRequestException":
|
|
3143
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3144
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3145
|
-
case "TextSizeLimitExceededException":
|
|
3146
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
3147
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
3148
|
-
case "UnsupportedLanguageException":
|
|
3149
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
3150
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
3151
|
-
default:
|
|
3152
|
-
const parsedBody = parsedOutput.body;
|
|
3153
|
-
return throwDefaultError({
|
|
3154
|
-
output,
|
|
3155
|
-
parsedBody,
|
|
3156
|
-
errorCode
|
|
3157
|
-
});
|
|
3158
|
-
}
|
|
3159
|
-
}, "de_DetectKeyPhrasesCommandError");
|
|
3160
2031
|
var de_DetectPiiEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3161
2032
|
if (output.statusCode >= 300) {
|
|
3162
|
-
return
|
|
2033
|
+
return de_CommandError(output, context);
|
|
3163
2034
|
}
|
|
3164
2035
|
const data = await parseBody(output.body, context);
|
|
3165
2036
|
let contents = {};
|
|
@@ -3170,37 +2041,9 @@ var de_DetectPiiEntitiesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3170
2041
|
};
|
|
3171
2042
|
return response;
|
|
3172
2043
|
}, "de_DetectPiiEntitiesCommand");
|
|
3173
|
-
var de_DetectPiiEntitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3174
|
-
const parsedOutput = {
|
|
3175
|
-
...output,
|
|
3176
|
-
body: await parseErrorBody(output.body, context)
|
|
3177
|
-
};
|
|
3178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3179
|
-
switch (errorCode) {
|
|
3180
|
-
case "InternalServerException":
|
|
3181
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3182
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3183
|
-
case "InvalidRequestException":
|
|
3184
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3185
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3186
|
-
case "TextSizeLimitExceededException":
|
|
3187
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
3188
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
3189
|
-
case "UnsupportedLanguageException":
|
|
3190
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
3191
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
3192
|
-
default:
|
|
3193
|
-
const parsedBody = parsedOutput.body;
|
|
3194
|
-
return throwDefaultError({
|
|
3195
|
-
output,
|
|
3196
|
-
parsedBody,
|
|
3197
|
-
errorCode
|
|
3198
|
-
});
|
|
3199
|
-
}
|
|
3200
|
-
}, "de_DetectPiiEntitiesCommandError");
|
|
3201
2044
|
var de_DetectSentimentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3202
2045
|
if (output.statusCode >= 300) {
|
|
3203
|
-
return
|
|
2046
|
+
return de_CommandError(output, context);
|
|
3204
2047
|
}
|
|
3205
2048
|
const data = await parseBody(output.body, context);
|
|
3206
2049
|
let contents = {};
|
|
@@ -3211,37 +2054,9 @@ var de_DetectSentimentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3211
2054
|
};
|
|
3212
2055
|
return response;
|
|
3213
2056
|
}, "de_DetectSentimentCommand");
|
|
3214
|
-
var de_DetectSentimentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3215
|
-
const parsedOutput = {
|
|
3216
|
-
...output,
|
|
3217
|
-
body: await parseErrorBody(output.body, context)
|
|
3218
|
-
};
|
|
3219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3220
|
-
switch (errorCode) {
|
|
3221
|
-
case "InternalServerException":
|
|
3222
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3223
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3224
|
-
case "InvalidRequestException":
|
|
3225
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3226
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3227
|
-
case "TextSizeLimitExceededException":
|
|
3228
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
3229
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
3230
|
-
case "UnsupportedLanguageException":
|
|
3231
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
3232
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
3233
|
-
default:
|
|
3234
|
-
const parsedBody = parsedOutput.body;
|
|
3235
|
-
return throwDefaultError({
|
|
3236
|
-
output,
|
|
3237
|
-
parsedBody,
|
|
3238
|
-
errorCode
|
|
3239
|
-
});
|
|
3240
|
-
}
|
|
3241
|
-
}, "de_DetectSentimentCommandError");
|
|
3242
2057
|
var de_DetectSyntaxCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3243
2058
|
if (output.statusCode >= 300) {
|
|
3244
|
-
return
|
|
2059
|
+
return de_CommandError(output, context);
|
|
3245
2060
|
}
|
|
3246
2061
|
const data = await parseBody(output.body, context);
|
|
3247
2062
|
let contents = {};
|
|
@@ -3252,119 +2067,35 @@ var de_DetectSyntaxCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3252
2067
|
};
|
|
3253
2068
|
return response;
|
|
3254
2069
|
}, "de_DetectSyntaxCommand");
|
|
3255
|
-
var de_DetectSyntaxCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3256
|
-
const parsedOutput = {
|
|
3257
|
-
...output,
|
|
3258
|
-
body: await parseErrorBody(output.body, context)
|
|
3259
|
-
};
|
|
3260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3261
|
-
switch (errorCode) {
|
|
3262
|
-
case "InternalServerException":
|
|
3263
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3264
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3265
|
-
case "InvalidRequestException":
|
|
3266
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3267
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3268
|
-
case "TextSizeLimitExceededException":
|
|
3269
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
3270
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
3271
|
-
case "UnsupportedLanguageException":
|
|
3272
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
3273
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
3274
|
-
default:
|
|
3275
|
-
const parsedBody = parsedOutput.body;
|
|
3276
|
-
return throwDefaultError({
|
|
3277
|
-
output,
|
|
3278
|
-
parsedBody,
|
|
3279
|
-
errorCode
|
|
3280
|
-
});
|
|
3281
|
-
}
|
|
3282
|
-
}, "de_DetectSyntaxCommandError");
|
|
3283
2070
|
var de_DetectTargetedSentimentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3284
|
-
if (output.statusCode >= 300) {
|
|
3285
|
-
return
|
|
3286
|
-
}
|
|
3287
|
-
const data = await parseBody(output.body, context);
|
|
3288
|
-
let contents = {};
|
|
3289
|
-
contents = de_DetectTargetedSentimentResponse(data, context);
|
|
3290
|
-
const response = {
|
|
3291
|
-
$metadata: deserializeMetadata(output),
|
|
3292
|
-
...contents
|
|
3293
|
-
};
|
|
3294
|
-
return response;
|
|
3295
|
-
}, "de_DetectTargetedSentimentCommand");
|
|
3296
|
-
var
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
body: await parseErrorBody(output.body, context)
|
|
3300
|
-
};
|
|
3301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3302
|
-
switch (errorCode) {
|
|
3303
|
-
case "InternalServerException":
|
|
3304
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3305
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3306
|
-
case "InvalidRequestException":
|
|
3307
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3308
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3309
|
-
case "TextSizeLimitExceededException":
|
|
3310
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
3311
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
3312
|
-
case "UnsupportedLanguageException":
|
|
3313
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
3314
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
3315
|
-
default:
|
|
3316
|
-
const parsedBody = parsedOutput.body;
|
|
3317
|
-
return throwDefaultError({
|
|
3318
|
-
output,
|
|
3319
|
-
parsedBody,
|
|
3320
|
-
errorCode
|
|
3321
|
-
});
|
|
3322
|
-
}
|
|
3323
|
-
}, "de_DetectTargetedSentimentCommandError");
|
|
3324
|
-
var de_DetectToxicContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3325
|
-
if (output.statusCode >= 300) {
|
|
3326
|
-
return de_DetectToxicContentCommandError(output, context);
|
|
3327
|
-
}
|
|
3328
|
-
const data = await parseBody(output.body, context);
|
|
3329
|
-
let contents = {};
|
|
3330
|
-
contents = de_DetectToxicContentResponse(data, context);
|
|
3331
|
-
const response = {
|
|
3332
|
-
$metadata: deserializeMetadata(output),
|
|
3333
|
-
...contents
|
|
3334
|
-
};
|
|
3335
|
-
return response;
|
|
3336
|
-
}, "de_DetectToxicContentCommand");
|
|
3337
|
-
var de_DetectToxicContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3338
|
-
const parsedOutput = {
|
|
3339
|
-
...output,
|
|
3340
|
-
body: await parseErrorBody(output.body, context)
|
|
3341
|
-
};
|
|
3342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3343
|
-
switch (errorCode) {
|
|
3344
|
-
case "InternalServerException":
|
|
3345
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3346
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3347
|
-
case "InvalidRequestException":
|
|
3348
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3349
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3350
|
-
case "TextSizeLimitExceededException":
|
|
3351
|
-
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
3352
|
-
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
3353
|
-
case "UnsupportedLanguageException":
|
|
3354
|
-
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
3355
|
-
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
3356
|
-
default:
|
|
3357
|
-
const parsedBody = parsedOutput.body;
|
|
3358
|
-
return throwDefaultError({
|
|
3359
|
-
output,
|
|
3360
|
-
parsedBody,
|
|
3361
|
-
errorCode
|
|
3362
|
-
});
|
|
2071
|
+
if (output.statusCode >= 300) {
|
|
2072
|
+
return de_CommandError(output, context);
|
|
2073
|
+
}
|
|
2074
|
+
const data = await parseBody(output.body, context);
|
|
2075
|
+
let contents = {};
|
|
2076
|
+
contents = de_DetectTargetedSentimentResponse(data, context);
|
|
2077
|
+
const response = {
|
|
2078
|
+
$metadata: deserializeMetadata(output),
|
|
2079
|
+
...contents
|
|
2080
|
+
};
|
|
2081
|
+
return response;
|
|
2082
|
+
}, "de_DetectTargetedSentimentCommand");
|
|
2083
|
+
var de_DetectToxicContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2084
|
+
if (output.statusCode >= 300) {
|
|
2085
|
+
return de_CommandError(output, context);
|
|
3363
2086
|
}
|
|
3364
|
-
|
|
2087
|
+
const data = await parseBody(output.body, context);
|
|
2088
|
+
let contents = {};
|
|
2089
|
+
contents = de_DetectToxicContentResponse(data, context);
|
|
2090
|
+
const response = {
|
|
2091
|
+
$metadata: deserializeMetadata(output),
|
|
2092
|
+
...contents
|
|
2093
|
+
};
|
|
2094
|
+
return response;
|
|
2095
|
+
}, "de_DetectToxicContentCommand");
|
|
3365
2096
|
var de_ImportModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3366
2097
|
if (output.statusCode >= 300) {
|
|
3367
|
-
return
|
|
2098
|
+
return de_CommandError(output, context);
|
|
3368
2099
|
}
|
|
3369
2100
|
const data = await parseBody(output.body, context);
|
|
3370
2101
|
let contents = {};
|
|
@@ -3375,52 +2106,9 @@ var de_ImportModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3375
2106
|
};
|
|
3376
2107
|
return response;
|
|
3377
2108
|
}, "de_ImportModelCommand");
|
|
3378
|
-
var de_ImportModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3379
|
-
const parsedOutput = {
|
|
3380
|
-
...output,
|
|
3381
|
-
body: await parseErrorBody(output.body, context)
|
|
3382
|
-
};
|
|
3383
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3384
|
-
switch (errorCode) {
|
|
3385
|
-
case "InternalServerException":
|
|
3386
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3387
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3388
|
-
case "InvalidRequestException":
|
|
3389
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3390
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3391
|
-
case "KmsKeyValidationException":
|
|
3392
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
3393
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
3394
|
-
case "ResourceInUseException":
|
|
3395
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
3396
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3397
|
-
case "ResourceLimitExceededException":
|
|
3398
|
-
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
3399
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3400
|
-
case "ResourceNotFoundException":
|
|
3401
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
3402
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3403
|
-
case "ResourceUnavailableException":
|
|
3404
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
3405
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3406
|
-
case "TooManyRequestsException":
|
|
3407
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3408
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3409
|
-
case "TooManyTagsException":
|
|
3410
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
3411
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3412
|
-
default:
|
|
3413
|
-
const parsedBody = parsedOutput.body;
|
|
3414
|
-
return throwDefaultError({
|
|
3415
|
-
output,
|
|
3416
|
-
parsedBody,
|
|
3417
|
-
errorCode
|
|
3418
|
-
});
|
|
3419
|
-
}
|
|
3420
|
-
}, "de_ImportModelCommandError");
|
|
3421
2109
|
var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3422
2110
|
if (output.statusCode >= 300) {
|
|
3423
|
-
return
|
|
2111
|
+
return de_CommandError(output, context);
|
|
3424
2112
|
}
|
|
3425
2113
|
const data = await parseBody(output.body, context);
|
|
3426
2114
|
let contents = {};
|
|
@@ -3431,40 +2119,9 @@ var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3431
2119
|
};
|
|
3432
2120
|
return response;
|
|
3433
2121
|
}, "de_ListDatasetsCommand");
|
|
3434
|
-
var de_ListDatasetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3435
|
-
const parsedOutput = {
|
|
3436
|
-
...output,
|
|
3437
|
-
body: await parseErrorBody(output.body, context)
|
|
3438
|
-
};
|
|
3439
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3440
|
-
switch (errorCode) {
|
|
3441
|
-
case "InternalServerException":
|
|
3442
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3443
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3444
|
-
case "InvalidFilterException":
|
|
3445
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3446
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
3447
|
-
case "InvalidRequestException":
|
|
3448
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3449
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3450
|
-
case "ResourceNotFoundException":
|
|
3451
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
3452
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3453
|
-
case "TooManyRequestsException":
|
|
3454
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3455
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3456
|
-
default:
|
|
3457
|
-
const parsedBody = parsedOutput.body;
|
|
3458
|
-
return throwDefaultError({
|
|
3459
|
-
output,
|
|
3460
|
-
parsedBody,
|
|
3461
|
-
errorCode
|
|
3462
|
-
});
|
|
3463
|
-
}
|
|
3464
|
-
}, "de_ListDatasetsCommandError");
|
|
3465
2122
|
var de_ListDocumentClassificationJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3466
2123
|
if (output.statusCode >= 300) {
|
|
3467
|
-
return
|
|
2124
|
+
return de_CommandError(output, context);
|
|
3468
2125
|
}
|
|
3469
2126
|
const data = await parseBody(output.body, context);
|
|
3470
2127
|
let contents = {};
|
|
@@ -3475,37 +2132,9 @@ var de_ListDocumentClassificationJobsCommand = /* @__PURE__ */ __name(async (out
|
|
|
3475
2132
|
};
|
|
3476
2133
|
return response;
|
|
3477
2134
|
}, "de_ListDocumentClassificationJobsCommand");
|
|
3478
|
-
var de_ListDocumentClassificationJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3479
|
-
const parsedOutput = {
|
|
3480
|
-
...output,
|
|
3481
|
-
body: await parseErrorBody(output.body, context)
|
|
3482
|
-
};
|
|
3483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3484
|
-
switch (errorCode) {
|
|
3485
|
-
case "InternalServerException":
|
|
3486
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3487
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3488
|
-
case "InvalidFilterException":
|
|
3489
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3490
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
3491
|
-
case "InvalidRequestException":
|
|
3492
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3493
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3494
|
-
case "TooManyRequestsException":
|
|
3495
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3496
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3497
|
-
default:
|
|
3498
|
-
const parsedBody = parsedOutput.body;
|
|
3499
|
-
return throwDefaultError({
|
|
3500
|
-
output,
|
|
3501
|
-
parsedBody,
|
|
3502
|
-
errorCode
|
|
3503
|
-
});
|
|
3504
|
-
}
|
|
3505
|
-
}, "de_ListDocumentClassificationJobsCommandError");
|
|
3506
2135
|
var de_ListDocumentClassifiersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3507
2136
|
if (output.statusCode >= 300) {
|
|
3508
|
-
return
|
|
2137
|
+
return de_CommandError(output, context);
|
|
3509
2138
|
}
|
|
3510
2139
|
const data = await parseBody(output.body, context);
|
|
3511
2140
|
let contents = {};
|
|
@@ -3516,37 +2145,9 @@ var de_ListDocumentClassifiersCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3516
2145
|
};
|
|
3517
2146
|
return response;
|
|
3518
2147
|
}, "de_ListDocumentClassifiersCommand");
|
|
3519
|
-
var de_ListDocumentClassifiersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3520
|
-
const parsedOutput = {
|
|
3521
|
-
...output,
|
|
3522
|
-
body: await parseErrorBody(output.body, context)
|
|
3523
|
-
};
|
|
3524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3525
|
-
switch (errorCode) {
|
|
3526
|
-
case "InternalServerException":
|
|
3527
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3528
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3529
|
-
case "InvalidFilterException":
|
|
3530
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3531
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
3532
|
-
case "InvalidRequestException":
|
|
3533
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3534
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3535
|
-
case "TooManyRequestsException":
|
|
3536
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3537
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3538
|
-
default:
|
|
3539
|
-
const parsedBody = parsedOutput.body;
|
|
3540
|
-
return throwDefaultError({
|
|
3541
|
-
output,
|
|
3542
|
-
parsedBody,
|
|
3543
|
-
errorCode
|
|
3544
|
-
});
|
|
3545
|
-
}
|
|
3546
|
-
}, "de_ListDocumentClassifiersCommandError");
|
|
3547
2148
|
var de_ListDocumentClassifierSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3548
2149
|
if (output.statusCode >= 300) {
|
|
3549
|
-
return
|
|
2150
|
+
return de_CommandError(output, context);
|
|
3550
2151
|
}
|
|
3551
2152
|
const data = await parseBody(output.body, context);
|
|
3552
2153
|
let contents = {};
|
|
@@ -3557,34 +2158,9 @@ var de_ListDocumentClassifierSummariesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3557
2158
|
};
|
|
3558
2159
|
return response;
|
|
3559
2160
|
}, "de_ListDocumentClassifierSummariesCommand");
|
|
3560
|
-
var de_ListDocumentClassifierSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3561
|
-
const parsedOutput = {
|
|
3562
|
-
...output,
|
|
3563
|
-
body: await parseErrorBody(output.body, context)
|
|
3564
|
-
};
|
|
3565
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3566
|
-
switch (errorCode) {
|
|
3567
|
-
case "InternalServerException":
|
|
3568
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3569
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3570
|
-
case "InvalidRequestException":
|
|
3571
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3572
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3573
|
-
case "TooManyRequestsException":
|
|
3574
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3575
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3576
|
-
default:
|
|
3577
|
-
const parsedBody = parsedOutput.body;
|
|
3578
|
-
return throwDefaultError({
|
|
3579
|
-
output,
|
|
3580
|
-
parsedBody,
|
|
3581
|
-
errorCode
|
|
3582
|
-
});
|
|
3583
|
-
}
|
|
3584
|
-
}, "de_ListDocumentClassifierSummariesCommandError");
|
|
3585
2161
|
var de_ListDominantLanguageDetectionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3586
2162
|
if (output.statusCode >= 300) {
|
|
3587
|
-
return
|
|
2163
|
+
return de_CommandError(output, context);
|
|
3588
2164
|
}
|
|
3589
2165
|
const data = await parseBody(output.body, context);
|
|
3590
2166
|
let contents = {};
|
|
@@ -3595,37 +2171,9 @@ var de_ListDominantLanguageDetectionJobsCommand = /* @__PURE__ */ __name(async (
|
|
|
3595
2171
|
};
|
|
3596
2172
|
return response;
|
|
3597
2173
|
}, "de_ListDominantLanguageDetectionJobsCommand");
|
|
3598
|
-
var de_ListDominantLanguageDetectionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3599
|
-
const parsedOutput = {
|
|
3600
|
-
...output,
|
|
3601
|
-
body: await parseErrorBody(output.body, context)
|
|
3602
|
-
};
|
|
3603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3604
|
-
switch (errorCode) {
|
|
3605
|
-
case "InternalServerException":
|
|
3606
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3607
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3608
|
-
case "InvalidFilterException":
|
|
3609
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3610
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
3611
|
-
case "InvalidRequestException":
|
|
3612
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3613
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3614
|
-
case "TooManyRequestsException":
|
|
3615
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3616
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3617
|
-
default:
|
|
3618
|
-
const parsedBody = parsedOutput.body;
|
|
3619
|
-
return throwDefaultError({
|
|
3620
|
-
output,
|
|
3621
|
-
parsedBody,
|
|
3622
|
-
errorCode
|
|
3623
|
-
});
|
|
3624
|
-
}
|
|
3625
|
-
}, "de_ListDominantLanguageDetectionJobsCommandError");
|
|
3626
2174
|
var de_ListEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3627
2175
|
if (output.statusCode >= 300) {
|
|
3628
|
-
return
|
|
2176
|
+
return de_CommandError(output, context);
|
|
3629
2177
|
}
|
|
3630
2178
|
const data = await parseBody(output.body, context);
|
|
3631
2179
|
let contents = {};
|
|
@@ -3633,78 +2181,25 @@ var de_ListEndpointsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3633
2181
|
const response = {
|
|
3634
2182
|
$metadata: deserializeMetadata(output),
|
|
3635
2183
|
...contents
|
|
3636
|
-
};
|
|
3637
|
-
return response;
|
|
3638
|
-
}, "de_ListEndpointsCommand");
|
|
3639
|
-
var
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
body: await parseErrorBody(output.body, context)
|
|
3643
|
-
};
|
|
3644
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3645
|
-
switch (errorCode) {
|
|
3646
|
-
case "InternalServerException":
|
|
3647
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3648
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3649
|
-
case "InvalidRequestException":
|
|
3650
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3651
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3652
|
-
case "TooManyRequestsException":
|
|
3653
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3654
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3655
|
-
default:
|
|
3656
|
-
const parsedBody = parsedOutput.body;
|
|
3657
|
-
return throwDefaultError({
|
|
3658
|
-
output,
|
|
3659
|
-
parsedBody,
|
|
3660
|
-
errorCode
|
|
3661
|
-
});
|
|
3662
|
-
}
|
|
3663
|
-
}, "de_ListEndpointsCommandError");
|
|
3664
|
-
var de_ListEntitiesDetectionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3665
|
-
if (output.statusCode >= 300) {
|
|
3666
|
-
return de_ListEntitiesDetectionJobsCommandError(output, context);
|
|
3667
|
-
}
|
|
3668
|
-
const data = await parseBody(output.body, context);
|
|
3669
|
-
let contents = {};
|
|
3670
|
-
contents = de_ListEntitiesDetectionJobsResponse(data, context);
|
|
3671
|
-
const response = {
|
|
3672
|
-
$metadata: deserializeMetadata(output),
|
|
3673
|
-
...contents
|
|
3674
|
-
};
|
|
3675
|
-
return response;
|
|
3676
|
-
}, "de_ListEntitiesDetectionJobsCommand");
|
|
3677
|
-
var de_ListEntitiesDetectionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3678
|
-
const parsedOutput = {
|
|
3679
|
-
...output,
|
|
3680
|
-
body: await parseErrorBody(output.body, context)
|
|
3681
|
-
};
|
|
3682
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3683
|
-
switch (errorCode) {
|
|
3684
|
-
case "InternalServerException":
|
|
3685
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3686
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3687
|
-
case "InvalidFilterException":
|
|
3688
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3689
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
3690
|
-
case "InvalidRequestException":
|
|
3691
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3692
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3693
|
-
case "TooManyRequestsException":
|
|
3694
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3695
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3696
|
-
default:
|
|
3697
|
-
const parsedBody = parsedOutput.body;
|
|
3698
|
-
return throwDefaultError({
|
|
3699
|
-
output,
|
|
3700
|
-
parsedBody,
|
|
3701
|
-
errorCode
|
|
3702
|
-
});
|
|
2184
|
+
};
|
|
2185
|
+
return response;
|
|
2186
|
+
}, "de_ListEndpointsCommand");
|
|
2187
|
+
var de_ListEntitiesDetectionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2188
|
+
if (output.statusCode >= 300) {
|
|
2189
|
+
return de_CommandError(output, context);
|
|
3703
2190
|
}
|
|
3704
|
-
|
|
2191
|
+
const data = await parseBody(output.body, context);
|
|
2192
|
+
let contents = {};
|
|
2193
|
+
contents = de_ListEntitiesDetectionJobsResponse(data, context);
|
|
2194
|
+
const response = {
|
|
2195
|
+
$metadata: deserializeMetadata(output),
|
|
2196
|
+
...contents
|
|
2197
|
+
};
|
|
2198
|
+
return response;
|
|
2199
|
+
}, "de_ListEntitiesDetectionJobsCommand");
|
|
3705
2200
|
var de_ListEntityRecognizersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3706
2201
|
if (output.statusCode >= 300) {
|
|
3707
|
-
return
|
|
2202
|
+
return de_CommandError(output, context);
|
|
3708
2203
|
}
|
|
3709
2204
|
const data = await parseBody(output.body, context);
|
|
3710
2205
|
let contents = {};
|
|
@@ -3715,37 +2210,9 @@ var de_ListEntityRecognizersCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3715
2210
|
};
|
|
3716
2211
|
return response;
|
|
3717
2212
|
}, "de_ListEntityRecognizersCommand");
|
|
3718
|
-
var de_ListEntityRecognizersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3719
|
-
const parsedOutput = {
|
|
3720
|
-
...output,
|
|
3721
|
-
body: await parseErrorBody(output.body, context)
|
|
3722
|
-
};
|
|
3723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3724
|
-
switch (errorCode) {
|
|
3725
|
-
case "InternalServerException":
|
|
3726
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3727
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3728
|
-
case "InvalidFilterException":
|
|
3729
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3730
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
3731
|
-
case "InvalidRequestException":
|
|
3732
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3733
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3734
|
-
case "TooManyRequestsException":
|
|
3735
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3736
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3737
|
-
default:
|
|
3738
|
-
const parsedBody = parsedOutput.body;
|
|
3739
|
-
return throwDefaultError({
|
|
3740
|
-
output,
|
|
3741
|
-
parsedBody,
|
|
3742
|
-
errorCode
|
|
3743
|
-
});
|
|
3744
|
-
}
|
|
3745
|
-
}, "de_ListEntityRecognizersCommandError");
|
|
3746
2213
|
var de_ListEntityRecognizerSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3747
2214
|
if (output.statusCode >= 300) {
|
|
3748
|
-
return
|
|
2215
|
+
return de_CommandError(output, context);
|
|
3749
2216
|
}
|
|
3750
2217
|
const data = await parseBody(output.body, context);
|
|
3751
2218
|
let contents = {};
|
|
@@ -3756,34 +2223,9 @@ var de_ListEntityRecognizerSummariesCommand = /* @__PURE__ */ __name(async (outp
|
|
|
3756
2223
|
};
|
|
3757
2224
|
return response;
|
|
3758
2225
|
}, "de_ListEntityRecognizerSummariesCommand");
|
|
3759
|
-
var de_ListEntityRecognizerSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3760
|
-
const parsedOutput = {
|
|
3761
|
-
...output,
|
|
3762
|
-
body: await parseErrorBody(output.body, context)
|
|
3763
|
-
};
|
|
3764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3765
|
-
switch (errorCode) {
|
|
3766
|
-
case "InternalServerException":
|
|
3767
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3768
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3769
|
-
case "InvalidRequestException":
|
|
3770
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3771
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3772
|
-
case "TooManyRequestsException":
|
|
3773
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3774
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3775
|
-
default:
|
|
3776
|
-
const parsedBody = parsedOutput.body;
|
|
3777
|
-
return throwDefaultError({
|
|
3778
|
-
output,
|
|
3779
|
-
parsedBody,
|
|
3780
|
-
errorCode
|
|
3781
|
-
});
|
|
3782
|
-
}
|
|
3783
|
-
}, "de_ListEntityRecognizerSummariesCommandError");
|
|
3784
2226
|
var de_ListEventsDetectionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3785
2227
|
if (output.statusCode >= 300) {
|
|
3786
|
-
return
|
|
2228
|
+
return de_CommandError(output, context);
|
|
3787
2229
|
}
|
|
3788
2230
|
const data = await parseBody(output.body, context);
|
|
3789
2231
|
let contents = {};
|
|
@@ -3794,37 +2236,9 @@ var de_ListEventsDetectionJobsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3794
2236
|
};
|
|
3795
2237
|
return response;
|
|
3796
2238
|
}, "de_ListEventsDetectionJobsCommand");
|
|
3797
|
-
var de_ListEventsDetectionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3798
|
-
const parsedOutput = {
|
|
3799
|
-
...output,
|
|
3800
|
-
body: await parseErrorBody(output.body, context)
|
|
3801
|
-
};
|
|
3802
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3803
|
-
switch (errorCode) {
|
|
3804
|
-
case "InternalServerException":
|
|
3805
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3806
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3807
|
-
case "InvalidFilterException":
|
|
3808
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3809
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
3810
|
-
case "InvalidRequestException":
|
|
3811
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3812
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3813
|
-
case "TooManyRequestsException":
|
|
3814
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3815
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3816
|
-
default:
|
|
3817
|
-
const parsedBody = parsedOutput.body;
|
|
3818
|
-
return throwDefaultError({
|
|
3819
|
-
output,
|
|
3820
|
-
parsedBody,
|
|
3821
|
-
errorCode
|
|
3822
|
-
});
|
|
3823
|
-
}
|
|
3824
|
-
}, "de_ListEventsDetectionJobsCommandError");
|
|
3825
2239
|
var de_ListFlywheelIterationHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3826
2240
|
if (output.statusCode >= 300) {
|
|
3827
|
-
return
|
|
2241
|
+
return de_CommandError(output, context);
|
|
3828
2242
|
}
|
|
3829
2243
|
const data = await parseBody(output.body, context);
|
|
3830
2244
|
let contents = {};
|
|
@@ -3835,40 +2249,9 @@ var de_ListFlywheelIterationHistoryCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3835
2249
|
};
|
|
3836
2250
|
return response;
|
|
3837
2251
|
}, "de_ListFlywheelIterationHistoryCommand");
|
|
3838
|
-
var de_ListFlywheelIterationHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3839
|
-
const parsedOutput = {
|
|
3840
|
-
...output,
|
|
3841
|
-
body: await parseErrorBody(output.body, context)
|
|
3842
|
-
};
|
|
3843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3844
|
-
switch (errorCode) {
|
|
3845
|
-
case "InternalServerException":
|
|
3846
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3847
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3848
|
-
case "InvalidFilterException":
|
|
3849
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3850
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
3851
|
-
case "InvalidRequestException":
|
|
3852
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3853
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3854
|
-
case "ResourceNotFoundException":
|
|
3855
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
3856
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3857
|
-
case "TooManyRequestsException":
|
|
3858
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3859
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3860
|
-
default:
|
|
3861
|
-
const parsedBody = parsedOutput.body;
|
|
3862
|
-
return throwDefaultError({
|
|
3863
|
-
output,
|
|
3864
|
-
parsedBody,
|
|
3865
|
-
errorCode
|
|
3866
|
-
});
|
|
3867
|
-
}
|
|
3868
|
-
}, "de_ListFlywheelIterationHistoryCommandError");
|
|
3869
2252
|
var de_ListFlywheelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3870
2253
|
if (output.statusCode >= 300) {
|
|
3871
|
-
return
|
|
2254
|
+
return de_CommandError(output, context);
|
|
3872
2255
|
}
|
|
3873
2256
|
const data = await parseBody(output.body, context);
|
|
3874
2257
|
let contents = {};
|
|
@@ -3879,37 +2262,9 @@ var de_ListFlywheelsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3879
2262
|
};
|
|
3880
2263
|
return response;
|
|
3881
2264
|
}, "de_ListFlywheelsCommand");
|
|
3882
|
-
var de_ListFlywheelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3883
|
-
const parsedOutput = {
|
|
3884
|
-
...output,
|
|
3885
|
-
body: await parseErrorBody(output.body, context)
|
|
3886
|
-
};
|
|
3887
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3888
|
-
switch (errorCode) {
|
|
3889
|
-
case "InternalServerException":
|
|
3890
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3891
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3892
|
-
case "InvalidFilterException":
|
|
3893
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3894
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
3895
|
-
case "InvalidRequestException":
|
|
3896
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3897
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3898
|
-
case "TooManyRequestsException":
|
|
3899
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3900
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3901
|
-
default:
|
|
3902
|
-
const parsedBody = parsedOutput.body;
|
|
3903
|
-
return throwDefaultError({
|
|
3904
|
-
output,
|
|
3905
|
-
parsedBody,
|
|
3906
|
-
errorCode
|
|
3907
|
-
});
|
|
3908
|
-
}
|
|
3909
|
-
}, "de_ListFlywheelsCommandError");
|
|
3910
2265
|
var de_ListKeyPhrasesDetectionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3911
2266
|
if (output.statusCode >= 300) {
|
|
3912
|
-
return
|
|
2267
|
+
return de_CommandError(output, context);
|
|
3913
2268
|
}
|
|
3914
2269
|
const data = await parseBody(output.body, context);
|
|
3915
2270
|
let contents = {};
|
|
@@ -3920,37 +2275,9 @@ var de_ListKeyPhrasesDetectionJobsCommand = /* @__PURE__ */ __name(async (output
|
|
|
3920
2275
|
};
|
|
3921
2276
|
return response;
|
|
3922
2277
|
}, "de_ListKeyPhrasesDetectionJobsCommand");
|
|
3923
|
-
var de_ListKeyPhrasesDetectionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3924
|
-
const parsedOutput = {
|
|
3925
|
-
...output,
|
|
3926
|
-
body: await parseErrorBody(output.body, context)
|
|
3927
|
-
};
|
|
3928
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3929
|
-
switch (errorCode) {
|
|
3930
|
-
case "InternalServerException":
|
|
3931
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3932
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3933
|
-
case "InvalidFilterException":
|
|
3934
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3935
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
3936
|
-
case "InvalidRequestException":
|
|
3937
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3938
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3939
|
-
case "TooManyRequestsException":
|
|
3940
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3941
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3942
|
-
default:
|
|
3943
|
-
const parsedBody = parsedOutput.body;
|
|
3944
|
-
return throwDefaultError({
|
|
3945
|
-
output,
|
|
3946
|
-
parsedBody,
|
|
3947
|
-
errorCode
|
|
3948
|
-
});
|
|
3949
|
-
}
|
|
3950
|
-
}, "de_ListKeyPhrasesDetectionJobsCommandError");
|
|
3951
2278
|
var de_ListPiiEntitiesDetectionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3952
2279
|
if (output.statusCode >= 300) {
|
|
3953
|
-
return
|
|
2280
|
+
return de_CommandError(output, context);
|
|
3954
2281
|
}
|
|
3955
2282
|
const data = await parseBody(output.body, context);
|
|
3956
2283
|
let contents = {};
|
|
@@ -3961,37 +2288,9 @@ var de_ListPiiEntitiesDetectionJobsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3961
2288
|
};
|
|
3962
2289
|
return response;
|
|
3963
2290
|
}, "de_ListPiiEntitiesDetectionJobsCommand");
|
|
3964
|
-
var de_ListPiiEntitiesDetectionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3965
|
-
const parsedOutput = {
|
|
3966
|
-
...output,
|
|
3967
|
-
body: await parseErrorBody(output.body, context)
|
|
3968
|
-
};
|
|
3969
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3970
|
-
switch (errorCode) {
|
|
3971
|
-
case "InternalServerException":
|
|
3972
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
3973
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3974
|
-
case "InvalidFilterException":
|
|
3975
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
3976
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
3977
|
-
case "InvalidRequestException":
|
|
3978
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
3979
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3980
|
-
case "TooManyRequestsException":
|
|
3981
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
3982
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3983
|
-
default:
|
|
3984
|
-
const parsedBody = parsedOutput.body;
|
|
3985
|
-
return throwDefaultError({
|
|
3986
|
-
output,
|
|
3987
|
-
parsedBody,
|
|
3988
|
-
errorCode
|
|
3989
|
-
});
|
|
3990
|
-
}
|
|
3991
|
-
}, "de_ListPiiEntitiesDetectionJobsCommandError");
|
|
3992
2291
|
var de_ListSentimentDetectionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3993
2292
|
if (output.statusCode >= 300) {
|
|
3994
|
-
return
|
|
2293
|
+
return de_CommandError(output, context);
|
|
3995
2294
|
}
|
|
3996
2295
|
const data = await parseBody(output.body, context);
|
|
3997
2296
|
let contents = {};
|
|
@@ -4002,75 +2301,22 @@ var de_ListSentimentDetectionJobsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4002
2301
|
};
|
|
4003
2302
|
return response;
|
|
4004
2303
|
}, "de_ListSentimentDetectionJobsCommand");
|
|
4005
|
-
var
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
body: await parseErrorBody(output.body, context)
|
|
4009
|
-
};
|
|
4010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4011
|
-
switch (errorCode) {
|
|
4012
|
-
case "InternalServerException":
|
|
4013
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4014
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4015
|
-
case "InvalidFilterException":
|
|
4016
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
4017
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
4018
|
-
case "InvalidRequestException":
|
|
4019
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4020
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4021
|
-
case "TooManyRequestsException":
|
|
4022
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4023
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4024
|
-
default:
|
|
4025
|
-
const parsedBody = parsedOutput.body;
|
|
4026
|
-
return throwDefaultError({
|
|
4027
|
-
output,
|
|
4028
|
-
parsedBody,
|
|
4029
|
-
errorCode
|
|
4030
|
-
});
|
|
4031
|
-
}
|
|
4032
|
-
}, "de_ListSentimentDetectionJobsCommandError");
|
|
4033
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4034
|
-
if (output.statusCode >= 300) {
|
|
4035
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
4036
|
-
}
|
|
4037
|
-
const data = await parseBody(output.body, context);
|
|
4038
|
-
let contents = {};
|
|
4039
|
-
contents = (0, import_smithy_client._json)(data);
|
|
4040
|
-
const response = {
|
|
4041
|
-
$metadata: deserializeMetadata(output),
|
|
4042
|
-
...contents
|
|
4043
|
-
};
|
|
4044
|
-
return response;
|
|
4045
|
-
}, "de_ListTagsForResourceCommand");
|
|
4046
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4047
|
-
const parsedOutput = {
|
|
4048
|
-
...output,
|
|
4049
|
-
body: await parseErrorBody(output.body, context)
|
|
4050
|
-
};
|
|
4051
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4052
|
-
switch (errorCode) {
|
|
4053
|
-
case "InternalServerException":
|
|
4054
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4055
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4056
|
-
case "InvalidRequestException":
|
|
4057
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4058
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4059
|
-
case "ResourceNotFoundException":
|
|
4060
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
4061
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4062
|
-
default:
|
|
4063
|
-
const parsedBody = parsedOutput.body;
|
|
4064
|
-
return throwDefaultError({
|
|
4065
|
-
output,
|
|
4066
|
-
parsedBody,
|
|
4067
|
-
errorCode
|
|
4068
|
-
});
|
|
2304
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2305
|
+
if (output.statusCode >= 300) {
|
|
2306
|
+
return de_CommandError(output, context);
|
|
4069
2307
|
}
|
|
4070
|
-
|
|
2308
|
+
const data = await parseBody(output.body, context);
|
|
2309
|
+
let contents = {};
|
|
2310
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2311
|
+
const response = {
|
|
2312
|
+
$metadata: deserializeMetadata(output),
|
|
2313
|
+
...contents
|
|
2314
|
+
};
|
|
2315
|
+
return response;
|
|
2316
|
+
}, "de_ListTagsForResourceCommand");
|
|
4071
2317
|
var de_ListTargetedSentimentDetectionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4072
2318
|
if (output.statusCode >= 300) {
|
|
4073
|
-
return
|
|
2319
|
+
return de_CommandError(output, context);
|
|
4074
2320
|
}
|
|
4075
2321
|
const data = await parseBody(output.body, context);
|
|
4076
2322
|
let contents = {};
|
|
@@ -4081,37 +2327,9 @@ var de_ListTargetedSentimentDetectionJobsCommand = /* @__PURE__ */ __name(async
|
|
|
4081
2327
|
};
|
|
4082
2328
|
return response;
|
|
4083
2329
|
}, "de_ListTargetedSentimentDetectionJobsCommand");
|
|
4084
|
-
var de_ListTargetedSentimentDetectionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4085
|
-
const parsedOutput = {
|
|
4086
|
-
...output,
|
|
4087
|
-
body: await parseErrorBody(output.body, context)
|
|
4088
|
-
};
|
|
4089
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4090
|
-
switch (errorCode) {
|
|
4091
|
-
case "InternalServerException":
|
|
4092
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4093
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4094
|
-
case "InvalidFilterException":
|
|
4095
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
4096
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
4097
|
-
case "InvalidRequestException":
|
|
4098
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4099
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4100
|
-
case "TooManyRequestsException":
|
|
4101
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4102
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4103
|
-
default:
|
|
4104
|
-
const parsedBody = parsedOutput.body;
|
|
4105
|
-
return throwDefaultError({
|
|
4106
|
-
output,
|
|
4107
|
-
parsedBody,
|
|
4108
|
-
errorCode
|
|
4109
|
-
});
|
|
4110
|
-
}
|
|
4111
|
-
}, "de_ListTargetedSentimentDetectionJobsCommandError");
|
|
4112
2330
|
var de_ListTopicsDetectionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4113
2331
|
if (output.statusCode >= 300) {
|
|
4114
|
-
return
|
|
2332
|
+
return de_CommandError(output, context);
|
|
4115
2333
|
}
|
|
4116
2334
|
const data = await parseBody(output.body, context);
|
|
4117
2335
|
let contents = {};
|
|
@@ -4122,37 +2340,9 @@ var de_ListTopicsDetectionJobsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4122
2340
|
};
|
|
4123
2341
|
return response;
|
|
4124
2342
|
}, "de_ListTopicsDetectionJobsCommand");
|
|
4125
|
-
var de_ListTopicsDetectionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4126
|
-
const parsedOutput = {
|
|
4127
|
-
...output,
|
|
4128
|
-
body: await parseErrorBody(output.body, context)
|
|
4129
|
-
};
|
|
4130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4131
|
-
switch (errorCode) {
|
|
4132
|
-
case "InternalServerException":
|
|
4133
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4134
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4135
|
-
case "InvalidFilterException":
|
|
4136
|
-
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
4137
|
-
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
4138
|
-
case "InvalidRequestException":
|
|
4139
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4140
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4141
|
-
case "TooManyRequestsException":
|
|
4142
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4143
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4144
|
-
default:
|
|
4145
|
-
const parsedBody = parsedOutput.body;
|
|
4146
|
-
return throwDefaultError({
|
|
4147
|
-
output,
|
|
4148
|
-
parsedBody,
|
|
4149
|
-
errorCode
|
|
4150
|
-
});
|
|
4151
|
-
}
|
|
4152
|
-
}, "de_ListTopicsDetectionJobsCommandError");
|
|
4153
2343
|
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4154
2344
|
if (output.statusCode >= 300) {
|
|
4155
|
-
return
|
|
2345
|
+
return de_CommandError(output, context);
|
|
4156
2346
|
}
|
|
4157
2347
|
const data = await parseBody(output.body, context);
|
|
4158
2348
|
let contents = {};
|
|
@@ -4163,34 +2353,9 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4163
2353
|
};
|
|
4164
2354
|
return response;
|
|
4165
2355
|
}, "de_PutResourcePolicyCommand");
|
|
4166
|
-
var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4167
|
-
const parsedOutput = {
|
|
4168
|
-
...output,
|
|
4169
|
-
body: await parseErrorBody(output.body, context)
|
|
4170
|
-
};
|
|
4171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4172
|
-
switch (errorCode) {
|
|
4173
|
-
case "InternalServerException":
|
|
4174
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4175
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4176
|
-
case "InvalidRequestException":
|
|
4177
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4178
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4179
|
-
case "ResourceNotFoundException":
|
|
4180
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
4181
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4182
|
-
default:
|
|
4183
|
-
const parsedBody = parsedOutput.body;
|
|
4184
|
-
return throwDefaultError({
|
|
4185
|
-
output,
|
|
4186
|
-
parsedBody,
|
|
4187
|
-
errorCode
|
|
4188
|
-
});
|
|
4189
|
-
}
|
|
4190
|
-
}, "de_PutResourcePolicyCommandError");
|
|
4191
2356
|
var de_StartDocumentClassificationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4192
2357
|
if (output.statusCode >= 300) {
|
|
4193
|
-
return
|
|
2358
|
+
return de_CommandError(output, context);
|
|
4194
2359
|
}
|
|
4195
2360
|
const data = await parseBody(output.body, context);
|
|
4196
2361
|
let contents = {};
|
|
@@ -4201,49 +2366,9 @@ var de_StartDocumentClassificationJobCommand = /* @__PURE__ */ __name(async (out
|
|
|
4201
2366
|
};
|
|
4202
2367
|
return response;
|
|
4203
2368
|
}, "de_StartDocumentClassificationJobCommand");
|
|
4204
|
-
var de_StartDocumentClassificationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4205
|
-
const parsedOutput = {
|
|
4206
|
-
...output,
|
|
4207
|
-
body: await parseErrorBody(output.body, context)
|
|
4208
|
-
};
|
|
4209
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4210
|
-
switch (errorCode) {
|
|
4211
|
-
case "InternalServerException":
|
|
4212
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4213
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4214
|
-
case "InvalidRequestException":
|
|
4215
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4216
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4217
|
-
case "KmsKeyValidationException":
|
|
4218
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
4219
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
4220
|
-
case "ResourceInUseException":
|
|
4221
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
4222
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4223
|
-
case "ResourceNotFoundException":
|
|
4224
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
4225
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4226
|
-
case "ResourceUnavailableException":
|
|
4227
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
4228
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
4229
|
-
case "TooManyRequestsException":
|
|
4230
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4231
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4232
|
-
case "TooManyTagsException":
|
|
4233
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
4234
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
4235
|
-
default:
|
|
4236
|
-
const parsedBody = parsedOutput.body;
|
|
4237
|
-
return throwDefaultError({
|
|
4238
|
-
output,
|
|
4239
|
-
parsedBody,
|
|
4240
|
-
errorCode
|
|
4241
|
-
});
|
|
4242
|
-
}
|
|
4243
|
-
}, "de_StartDocumentClassificationJobCommandError");
|
|
4244
2369
|
var de_StartDominantLanguageDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4245
2370
|
if (output.statusCode >= 300) {
|
|
4246
|
-
return
|
|
2371
|
+
return de_CommandError(output, context);
|
|
4247
2372
|
}
|
|
4248
2373
|
const data = await parseBody(output.body, context);
|
|
4249
2374
|
let contents = {};
|
|
@@ -4254,43 +2379,9 @@ var de_StartDominantLanguageDetectionJobCommand = /* @__PURE__ */ __name(async (
|
|
|
4254
2379
|
};
|
|
4255
2380
|
return response;
|
|
4256
2381
|
}, "de_StartDominantLanguageDetectionJobCommand");
|
|
4257
|
-
var de_StartDominantLanguageDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4258
|
-
const parsedOutput = {
|
|
4259
|
-
...output,
|
|
4260
|
-
body: await parseErrorBody(output.body, context)
|
|
4261
|
-
};
|
|
4262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4263
|
-
switch (errorCode) {
|
|
4264
|
-
case "InternalServerException":
|
|
4265
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4266
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4267
|
-
case "InvalidRequestException":
|
|
4268
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4269
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4270
|
-
case "KmsKeyValidationException":
|
|
4271
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
4272
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
4273
|
-
case "ResourceInUseException":
|
|
4274
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
4275
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4276
|
-
case "TooManyRequestsException":
|
|
4277
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4278
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4279
|
-
case "TooManyTagsException":
|
|
4280
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
4281
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
4282
|
-
default:
|
|
4283
|
-
const parsedBody = parsedOutput.body;
|
|
4284
|
-
return throwDefaultError({
|
|
4285
|
-
output,
|
|
4286
|
-
parsedBody,
|
|
4287
|
-
errorCode
|
|
4288
|
-
});
|
|
4289
|
-
}
|
|
4290
|
-
}, "de_StartDominantLanguageDetectionJobCommandError");
|
|
4291
2382
|
var de_StartEntitiesDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4292
2383
|
if (output.statusCode >= 300) {
|
|
4293
|
-
return
|
|
2384
|
+
return de_CommandError(output, context);
|
|
4294
2385
|
}
|
|
4295
2386
|
const data = await parseBody(output.body, context);
|
|
4296
2387
|
let contents = {};
|
|
@@ -4301,49 +2392,9 @@ var de_StartEntitiesDetectionJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4301
2392
|
};
|
|
4302
2393
|
return response;
|
|
4303
2394
|
}, "de_StartEntitiesDetectionJobCommand");
|
|
4304
|
-
var de_StartEntitiesDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4305
|
-
const parsedOutput = {
|
|
4306
|
-
...output,
|
|
4307
|
-
body: await parseErrorBody(output.body, context)
|
|
4308
|
-
};
|
|
4309
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4310
|
-
switch (errorCode) {
|
|
4311
|
-
case "InternalServerException":
|
|
4312
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4313
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4314
|
-
case "InvalidRequestException":
|
|
4315
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4316
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4317
|
-
case "KmsKeyValidationException":
|
|
4318
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
4319
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
4320
|
-
case "ResourceInUseException":
|
|
4321
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
4322
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4323
|
-
case "ResourceNotFoundException":
|
|
4324
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
4325
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4326
|
-
case "ResourceUnavailableException":
|
|
4327
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
4328
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
4329
|
-
case "TooManyRequestsException":
|
|
4330
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4331
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4332
|
-
case "TooManyTagsException":
|
|
4333
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
4334
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
4335
|
-
default:
|
|
4336
|
-
const parsedBody = parsedOutput.body;
|
|
4337
|
-
return throwDefaultError({
|
|
4338
|
-
output,
|
|
4339
|
-
parsedBody,
|
|
4340
|
-
errorCode
|
|
4341
|
-
});
|
|
4342
|
-
}
|
|
4343
|
-
}, "de_StartEntitiesDetectionJobCommandError");
|
|
4344
2395
|
var de_StartEventsDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4345
2396
|
if (output.statusCode >= 300) {
|
|
4346
|
-
return
|
|
2397
|
+
return de_CommandError(output, context);
|
|
4347
2398
|
}
|
|
4348
2399
|
const data = await parseBody(output.body, context);
|
|
4349
2400
|
let contents = {};
|
|
@@ -4354,43 +2405,9 @@ var de_StartEventsDetectionJobCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4354
2405
|
};
|
|
4355
2406
|
return response;
|
|
4356
2407
|
}, "de_StartEventsDetectionJobCommand");
|
|
4357
|
-
var de_StartEventsDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4358
|
-
const parsedOutput = {
|
|
4359
|
-
...output,
|
|
4360
|
-
body: await parseErrorBody(output.body, context)
|
|
4361
|
-
};
|
|
4362
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4363
|
-
switch (errorCode) {
|
|
4364
|
-
case "InternalServerException":
|
|
4365
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4366
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4367
|
-
case "InvalidRequestException":
|
|
4368
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4369
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4370
|
-
case "KmsKeyValidationException":
|
|
4371
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
4372
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
4373
|
-
case "ResourceInUseException":
|
|
4374
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
4375
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4376
|
-
case "TooManyRequestsException":
|
|
4377
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4378
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4379
|
-
case "TooManyTagsException":
|
|
4380
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
4381
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
4382
|
-
default:
|
|
4383
|
-
const parsedBody = parsedOutput.body;
|
|
4384
|
-
return throwDefaultError({
|
|
4385
|
-
output,
|
|
4386
|
-
parsedBody,
|
|
4387
|
-
errorCode
|
|
4388
|
-
});
|
|
4389
|
-
}
|
|
4390
|
-
}, "de_StartEventsDetectionJobCommandError");
|
|
4391
2408
|
var de_StartFlywheelIterationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4392
2409
|
if (output.statusCode >= 300) {
|
|
4393
|
-
return
|
|
2410
|
+
return de_CommandError(output, context);
|
|
4394
2411
|
}
|
|
4395
2412
|
const data = await parseBody(output.body, context);
|
|
4396
2413
|
let contents = {};
|
|
@@ -4400,41 +2417,10 @@ var de_StartFlywheelIterationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4400
2417
|
...contents
|
|
4401
2418
|
};
|
|
4402
2419
|
return response;
|
|
4403
|
-
}, "de_StartFlywheelIterationCommand");
|
|
4404
|
-
var de_StartFlywheelIterationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4405
|
-
const parsedOutput = {
|
|
4406
|
-
...output,
|
|
4407
|
-
body: await parseErrorBody(output.body, context)
|
|
4408
|
-
};
|
|
4409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4410
|
-
switch (errorCode) {
|
|
4411
|
-
case "InternalServerException":
|
|
4412
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4413
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4414
|
-
case "InvalidRequestException":
|
|
4415
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4416
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4417
|
-
case "ResourceInUseException":
|
|
4418
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
4419
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4420
|
-
case "ResourceNotFoundException":
|
|
4421
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
4422
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4423
|
-
case "TooManyRequestsException":
|
|
4424
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4425
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4426
|
-
default:
|
|
4427
|
-
const parsedBody = parsedOutput.body;
|
|
4428
|
-
return throwDefaultError({
|
|
4429
|
-
output,
|
|
4430
|
-
parsedBody,
|
|
4431
|
-
errorCode
|
|
4432
|
-
});
|
|
4433
|
-
}
|
|
4434
|
-
}, "de_StartFlywheelIterationCommandError");
|
|
2420
|
+
}, "de_StartFlywheelIterationCommand");
|
|
4435
2421
|
var de_StartKeyPhrasesDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4436
2422
|
if (output.statusCode >= 300) {
|
|
4437
|
-
return
|
|
2423
|
+
return de_CommandError(output, context);
|
|
4438
2424
|
}
|
|
4439
2425
|
const data = await parseBody(output.body, context);
|
|
4440
2426
|
let contents = {};
|
|
@@ -4445,43 +2431,9 @@ var de_StartKeyPhrasesDetectionJobCommand = /* @__PURE__ */ __name(async (output
|
|
|
4445
2431
|
};
|
|
4446
2432
|
return response;
|
|
4447
2433
|
}, "de_StartKeyPhrasesDetectionJobCommand");
|
|
4448
|
-
var de_StartKeyPhrasesDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4449
|
-
const parsedOutput = {
|
|
4450
|
-
...output,
|
|
4451
|
-
body: await parseErrorBody(output.body, context)
|
|
4452
|
-
};
|
|
4453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4454
|
-
switch (errorCode) {
|
|
4455
|
-
case "InternalServerException":
|
|
4456
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4457
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4458
|
-
case "InvalidRequestException":
|
|
4459
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4460
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4461
|
-
case "KmsKeyValidationException":
|
|
4462
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
4463
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
4464
|
-
case "ResourceInUseException":
|
|
4465
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
4466
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4467
|
-
case "TooManyRequestsException":
|
|
4468
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4469
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4470
|
-
case "TooManyTagsException":
|
|
4471
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
4472
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
4473
|
-
default:
|
|
4474
|
-
const parsedBody = parsedOutput.body;
|
|
4475
|
-
return throwDefaultError({
|
|
4476
|
-
output,
|
|
4477
|
-
parsedBody,
|
|
4478
|
-
errorCode
|
|
4479
|
-
});
|
|
4480
|
-
}
|
|
4481
|
-
}, "de_StartKeyPhrasesDetectionJobCommandError");
|
|
4482
2434
|
var de_StartPiiEntitiesDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4483
2435
|
if (output.statusCode >= 300) {
|
|
4484
|
-
return
|
|
2436
|
+
return de_CommandError(output, context);
|
|
4485
2437
|
}
|
|
4486
2438
|
const data = await parseBody(output.body, context);
|
|
4487
2439
|
let contents = {};
|
|
@@ -4492,43 +2444,9 @@ var de_StartPiiEntitiesDetectionJobCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
4492
2444
|
};
|
|
4493
2445
|
return response;
|
|
4494
2446
|
}, "de_StartPiiEntitiesDetectionJobCommand");
|
|
4495
|
-
var de_StartPiiEntitiesDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4496
|
-
const parsedOutput = {
|
|
4497
|
-
...output,
|
|
4498
|
-
body: await parseErrorBody(output.body, context)
|
|
4499
|
-
};
|
|
4500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4501
|
-
switch (errorCode) {
|
|
4502
|
-
case "InternalServerException":
|
|
4503
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4504
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4505
|
-
case "InvalidRequestException":
|
|
4506
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4507
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4508
|
-
case "KmsKeyValidationException":
|
|
4509
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
4510
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
4511
|
-
case "ResourceInUseException":
|
|
4512
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
4513
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4514
|
-
case "TooManyRequestsException":
|
|
4515
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4516
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4517
|
-
case "TooManyTagsException":
|
|
4518
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
4519
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
4520
|
-
default:
|
|
4521
|
-
const parsedBody = parsedOutput.body;
|
|
4522
|
-
return throwDefaultError({
|
|
4523
|
-
output,
|
|
4524
|
-
parsedBody,
|
|
4525
|
-
errorCode
|
|
4526
|
-
});
|
|
4527
|
-
}
|
|
4528
|
-
}, "de_StartPiiEntitiesDetectionJobCommandError");
|
|
4529
2447
|
var de_StartSentimentDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4530
2448
|
if (output.statusCode >= 300) {
|
|
4531
|
-
return
|
|
2449
|
+
return de_CommandError(output, context);
|
|
4532
2450
|
}
|
|
4533
2451
|
const data = await parseBody(output.body, context);
|
|
4534
2452
|
let contents = {};
|
|
@@ -4539,43 +2457,9 @@ var de_StartSentimentDetectionJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4539
2457
|
};
|
|
4540
2458
|
return response;
|
|
4541
2459
|
}, "de_StartSentimentDetectionJobCommand");
|
|
4542
|
-
var de_StartSentimentDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4543
|
-
const parsedOutput = {
|
|
4544
|
-
...output,
|
|
4545
|
-
body: await parseErrorBody(output.body, context)
|
|
4546
|
-
};
|
|
4547
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4548
|
-
switch (errorCode) {
|
|
4549
|
-
case "InternalServerException":
|
|
4550
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4551
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4552
|
-
case "InvalidRequestException":
|
|
4553
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4554
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4555
|
-
case "KmsKeyValidationException":
|
|
4556
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
4557
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
4558
|
-
case "ResourceInUseException":
|
|
4559
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
4560
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4561
|
-
case "TooManyRequestsException":
|
|
4562
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4563
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4564
|
-
case "TooManyTagsException":
|
|
4565
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
4566
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
4567
|
-
default:
|
|
4568
|
-
const parsedBody = parsedOutput.body;
|
|
4569
|
-
return throwDefaultError({
|
|
4570
|
-
output,
|
|
4571
|
-
parsedBody,
|
|
4572
|
-
errorCode
|
|
4573
|
-
});
|
|
4574
|
-
}
|
|
4575
|
-
}, "de_StartSentimentDetectionJobCommandError");
|
|
4576
2460
|
var de_StartTargetedSentimentDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4577
2461
|
if (output.statusCode >= 300) {
|
|
4578
|
-
return
|
|
2462
|
+
return de_CommandError(output, context);
|
|
4579
2463
|
}
|
|
4580
2464
|
const data = await parseBody(output.body, context);
|
|
4581
2465
|
let contents = {};
|
|
@@ -4586,43 +2470,9 @@ var de_StartTargetedSentimentDetectionJobCommand = /* @__PURE__ */ __name(async
|
|
|
4586
2470
|
};
|
|
4587
2471
|
return response;
|
|
4588
2472
|
}, "de_StartTargetedSentimentDetectionJobCommand");
|
|
4589
|
-
var de_StartTargetedSentimentDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4590
|
-
const parsedOutput = {
|
|
4591
|
-
...output,
|
|
4592
|
-
body: await parseErrorBody(output.body, context)
|
|
4593
|
-
};
|
|
4594
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4595
|
-
switch (errorCode) {
|
|
4596
|
-
case "InternalServerException":
|
|
4597
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4598
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4599
|
-
case "InvalidRequestException":
|
|
4600
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4601
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4602
|
-
case "KmsKeyValidationException":
|
|
4603
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
4604
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
4605
|
-
case "ResourceInUseException":
|
|
4606
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
4607
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4608
|
-
case "TooManyRequestsException":
|
|
4609
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4610
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4611
|
-
case "TooManyTagsException":
|
|
4612
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
4613
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
4614
|
-
default:
|
|
4615
|
-
const parsedBody = parsedOutput.body;
|
|
4616
|
-
return throwDefaultError({
|
|
4617
|
-
output,
|
|
4618
|
-
parsedBody,
|
|
4619
|
-
errorCode
|
|
4620
|
-
});
|
|
4621
|
-
}
|
|
4622
|
-
}, "de_StartTargetedSentimentDetectionJobCommandError");
|
|
4623
2473
|
var de_StartTopicsDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4624
2474
|
if (output.statusCode >= 300) {
|
|
4625
|
-
return
|
|
2475
|
+
return de_CommandError(output, context);
|
|
4626
2476
|
}
|
|
4627
2477
|
const data = await parseBody(output.body, context);
|
|
4628
2478
|
let contents = {};
|
|
@@ -4633,43 +2483,9 @@ var de_StartTopicsDetectionJobCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4633
2483
|
};
|
|
4634
2484
|
return response;
|
|
4635
2485
|
}, "de_StartTopicsDetectionJobCommand");
|
|
4636
|
-
var de_StartTopicsDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4637
|
-
const parsedOutput = {
|
|
4638
|
-
...output,
|
|
4639
|
-
body: await parseErrorBody(output.body, context)
|
|
4640
|
-
};
|
|
4641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4642
|
-
switch (errorCode) {
|
|
4643
|
-
case "InternalServerException":
|
|
4644
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4645
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4646
|
-
case "InvalidRequestException":
|
|
4647
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4648
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4649
|
-
case "KmsKeyValidationException":
|
|
4650
|
-
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
4651
|
-
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
4652
|
-
case "ResourceInUseException":
|
|
4653
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
4654
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4655
|
-
case "TooManyRequestsException":
|
|
4656
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4657
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4658
|
-
case "TooManyTagsException":
|
|
4659
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
4660
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
4661
|
-
default:
|
|
4662
|
-
const parsedBody = parsedOutput.body;
|
|
4663
|
-
return throwDefaultError({
|
|
4664
|
-
output,
|
|
4665
|
-
parsedBody,
|
|
4666
|
-
errorCode
|
|
4667
|
-
});
|
|
4668
|
-
}
|
|
4669
|
-
}, "de_StartTopicsDetectionJobCommandError");
|
|
4670
2486
|
var de_StopDominantLanguageDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4671
2487
|
if (output.statusCode >= 300) {
|
|
4672
|
-
return
|
|
2488
|
+
return de_CommandError(output, context);
|
|
4673
2489
|
}
|
|
4674
2490
|
const data = await parseBody(output.body, context);
|
|
4675
2491
|
let contents = {};
|
|
@@ -4680,34 +2496,9 @@ var de_StopDominantLanguageDetectionJobCommand = /* @__PURE__ */ __name(async (o
|
|
|
4680
2496
|
};
|
|
4681
2497
|
return response;
|
|
4682
2498
|
}, "de_StopDominantLanguageDetectionJobCommand");
|
|
4683
|
-
var de_StopDominantLanguageDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4684
|
-
const parsedOutput = {
|
|
4685
|
-
...output,
|
|
4686
|
-
body: await parseErrorBody(output.body, context)
|
|
4687
|
-
};
|
|
4688
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4689
|
-
switch (errorCode) {
|
|
4690
|
-
case "InternalServerException":
|
|
4691
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4692
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4693
|
-
case "InvalidRequestException":
|
|
4694
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4695
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4696
|
-
case "JobNotFoundException":
|
|
4697
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
4698
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
4699
|
-
default:
|
|
4700
|
-
const parsedBody = parsedOutput.body;
|
|
4701
|
-
return throwDefaultError({
|
|
4702
|
-
output,
|
|
4703
|
-
parsedBody,
|
|
4704
|
-
errorCode
|
|
4705
|
-
});
|
|
4706
|
-
}
|
|
4707
|
-
}, "de_StopDominantLanguageDetectionJobCommandError");
|
|
4708
2499
|
var de_StopEntitiesDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4709
2500
|
if (output.statusCode >= 300) {
|
|
4710
|
-
return
|
|
2501
|
+
return de_CommandError(output, context);
|
|
4711
2502
|
}
|
|
4712
2503
|
const data = await parseBody(output.body, context);
|
|
4713
2504
|
let contents = {};
|
|
@@ -4718,34 +2509,9 @@ var de_StopEntitiesDetectionJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
4718
2509
|
};
|
|
4719
2510
|
return response;
|
|
4720
2511
|
}, "de_StopEntitiesDetectionJobCommand");
|
|
4721
|
-
var de_StopEntitiesDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4722
|
-
const parsedOutput = {
|
|
4723
|
-
...output,
|
|
4724
|
-
body: await parseErrorBody(output.body, context)
|
|
4725
|
-
};
|
|
4726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4727
|
-
switch (errorCode) {
|
|
4728
|
-
case "InternalServerException":
|
|
4729
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4730
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4731
|
-
case "InvalidRequestException":
|
|
4732
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4733
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4734
|
-
case "JobNotFoundException":
|
|
4735
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
4736
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
4737
|
-
default:
|
|
4738
|
-
const parsedBody = parsedOutput.body;
|
|
4739
|
-
return throwDefaultError({
|
|
4740
|
-
output,
|
|
4741
|
-
parsedBody,
|
|
4742
|
-
errorCode
|
|
4743
|
-
});
|
|
4744
|
-
}
|
|
4745
|
-
}, "de_StopEntitiesDetectionJobCommandError");
|
|
4746
2512
|
var de_StopEventsDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4747
2513
|
if (output.statusCode >= 300) {
|
|
4748
|
-
return
|
|
2514
|
+
return de_CommandError(output, context);
|
|
4749
2515
|
}
|
|
4750
2516
|
const data = await parseBody(output.body, context);
|
|
4751
2517
|
let contents = {};
|
|
@@ -4756,34 +2522,9 @@ var de_StopEventsDetectionJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4756
2522
|
};
|
|
4757
2523
|
return response;
|
|
4758
2524
|
}, "de_StopEventsDetectionJobCommand");
|
|
4759
|
-
var de_StopEventsDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4760
|
-
const parsedOutput = {
|
|
4761
|
-
...output,
|
|
4762
|
-
body: await parseErrorBody(output.body, context)
|
|
4763
|
-
};
|
|
4764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4765
|
-
switch (errorCode) {
|
|
4766
|
-
case "InternalServerException":
|
|
4767
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4768
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4769
|
-
case "InvalidRequestException":
|
|
4770
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4771
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4772
|
-
case "JobNotFoundException":
|
|
4773
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
4774
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
4775
|
-
default:
|
|
4776
|
-
const parsedBody = parsedOutput.body;
|
|
4777
|
-
return throwDefaultError({
|
|
4778
|
-
output,
|
|
4779
|
-
parsedBody,
|
|
4780
|
-
errorCode
|
|
4781
|
-
});
|
|
4782
|
-
}
|
|
4783
|
-
}, "de_StopEventsDetectionJobCommandError");
|
|
4784
2525
|
var de_StopKeyPhrasesDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4785
2526
|
if (output.statusCode >= 300) {
|
|
4786
|
-
return
|
|
2527
|
+
return de_CommandError(output, context);
|
|
4787
2528
|
}
|
|
4788
2529
|
const data = await parseBody(output.body, context);
|
|
4789
2530
|
let contents = {};
|
|
@@ -4791,37 +2532,12 @@ var de_StopKeyPhrasesDetectionJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4791
2532
|
const response = {
|
|
4792
2533
|
$metadata: deserializeMetadata(output),
|
|
4793
2534
|
...contents
|
|
4794
|
-
};
|
|
4795
|
-
return response;
|
|
4796
|
-
}, "de_StopKeyPhrasesDetectionJobCommand");
|
|
4797
|
-
var de_StopKeyPhrasesDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4798
|
-
const parsedOutput = {
|
|
4799
|
-
...output,
|
|
4800
|
-
body: await parseErrorBody(output.body, context)
|
|
4801
|
-
};
|
|
4802
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4803
|
-
switch (errorCode) {
|
|
4804
|
-
case "InternalServerException":
|
|
4805
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4806
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4807
|
-
case "InvalidRequestException":
|
|
4808
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4809
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4810
|
-
case "JobNotFoundException":
|
|
4811
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
4812
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
4813
|
-
default:
|
|
4814
|
-
const parsedBody = parsedOutput.body;
|
|
4815
|
-
return throwDefaultError({
|
|
4816
|
-
output,
|
|
4817
|
-
parsedBody,
|
|
4818
|
-
errorCode
|
|
4819
|
-
});
|
|
4820
|
-
}
|
|
4821
|
-
}, "de_StopKeyPhrasesDetectionJobCommandError");
|
|
2535
|
+
};
|
|
2536
|
+
return response;
|
|
2537
|
+
}, "de_StopKeyPhrasesDetectionJobCommand");
|
|
4822
2538
|
var de_StopPiiEntitiesDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4823
2539
|
if (output.statusCode >= 300) {
|
|
4824
|
-
return
|
|
2540
|
+
return de_CommandError(output, context);
|
|
4825
2541
|
}
|
|
4826
2542
|
const data = await parseBody(output.body, context);
|
|
4827
2543
|
let contents = {};
|
|
@@ -4832,34 +2548,9 @@ var de_StopPiiEntitiesDetectionJobCommand = /* @__PURE__ */ __name(async (output
|
|
|
4832
2548
|
};
|
|
4833
2549
|
return response;
|
|
4834
2550
|
}, "de_StopPiiEntitiesDetectionJobCommand");
|
|
4835
|
-
var de_StopPiiEntitiesDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4836
|
-
const parsedOutput = {
|
|
4837
|
-
...output,
|
|
4838
|
-
body: await parseErrorBody(output.body, context)
|
|
4839
|
-
};
|
|
4840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4841
|
-
switch (errorCode) {
|
|
4842
|
-
case "InternalServerException":
|
|
4843
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4844
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4845
|
-
case "InvalidRequestException":
|
|
4846
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4847
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4848
|
-
case "JobNotFoundException":
|
|
4849
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
4850
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
4851
|
-
default:
|
|
4852
|
-
const parsedBody = parsedOutput.body;
|
|
4853
|
-
return throwDefaultError({
|
|
4854
|
-
output,
|
|
4855
|
-
parsedBody,
|
|
4856
|
-
errorCode
|
|
4857
|
-
});
|
|
4858
|
-
}
|
|
4859
|
-
}, "de_StopPiiEntitiesDetectionJobCommandError");
|
|
4860
2551
|
var de_StopSentimentDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4861
2552
|
if (output.statusCode >= 300) {
|
|
4862
|
-
return
|
|
2553
|
+
return de_CommandError(output, context);
|
|
4863
2554
|
}
|
|
4864
2555
|
const data = await parseBody(output.body, context);
|
|
4865
2556
|
let contents = {};
|
|
@@ -4870,34 +2561,9 @@ var de_StopSentimentDetectionJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4870
2561
|
};
|
|
4871
2562
|
return response;
|
|
4872
2563
|
}, "de_StopSentimentDetectionJobCommand");
|
|
4873
|
-
var de_StopSentimentDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4874
|
-
const parsedOutput = {
|
|
4875
|
-
...output,
|
|
4876
|
-
body: await parseErrorBody(output.body, context)
|
|
4877
|
-
};
|
|
4878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4879
|
-
switch (errorCode) {
|
|
4880
|
-
case "InternalServerException":
|
|
4881
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4882
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4883
|
-
case "InvalidRequestException":
|
|
4884
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4885
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4886
|
-
case "JobNotFoundException":
|
|
4887
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
4888
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
4889
|
-
default:
|
|
4890
|
-
const parsedBody = parsedOutput.body;
|
|
4891
|
-
return throwDefaultError({
|
|
4892
|
-
output,
|
|
4893
|
-
parsedBody,
|
|
4894
|
-
errorCode
|
|
4895
|
-
});
|
|
4896
|
-
}
|
|
4897
|
-
}, "de_StopSentimentDetectionJobCommandError");
|
|
4898
2564
|
var de_StopTargetedSentimentDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4899
2565
|
if (output.statusCode >= 300) {
|
|
4900
|
-
return
|
|
2566
|
+
return de_CommandError(output, context);
|
|
4901
2567
|
}
|
|
4902
2568
|
const data = await parseBody(output.body, context);
|
|
4903
2569
|
let contents = {};
|
|
@@ -4908,34 +2574,9 @@ var de_StopTargetedSentimentDetectionJobCommand = /* @__PURE__ */ __name(async (
|
|
|
4908
2574
|
};
|
|
4909
2575
|
return response;
|
|
4910
2576
|
}, "de_StopTargetedSentimentDetectionJobCommand");
|
|
4911
|
-
var de_StopTargetedSentimentDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4912
|
-
const parsedOutput = {
|
|
4913
|
-
...output,
|
|
4914
|
-
body: await parseErrorBody(output.body, context)
|
|
4915
|
-
};
|
|
4916
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4917
|
-
switch (errorCode) {
|
|
4918
|
-
case "InternalServerException":
|
|
4919
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4920
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4921
|
-
case "InvalidRequestException":
|
|
4922
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4923
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4924
|
-
case "JobNotFoundException":
|
|
4925
|
-
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
4926
|
-
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
4927
|
-
default:
|
|
4928
|
-
const parsedBody = parsedOutput.body;
|
|
4929
|
-
return throwDefaultError({
|
|
4930
|
-
output,
|
|
4931
|
-
parsedBody,
|
|
4932
|
-
errorCode
|
|
4933
|
-
});
|
|
4934
|
-
}
|
|
4935
|
-
}, "de_StopTargetedSentimentDetectionJobCommandError");
|
|
4936
2577
|
var de_StopTrainingDocumentClassifierCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4937
2578
|
if (output.statusCode >= 300) {
|
|
4938
|
-
return
|
|
2579
|
+
return de_CommandError(output, context);
|
|
4939
2580
|
}
|
|
4940
2581
|
const data = await parseBody(output.body, context);
|
|
4941
2582
|
let contents = {};
|
|
@@ -4946,37 +2587,9 @@ var de_StopTrainingDocumentClassifierCommand = /* @__PURE__ */ __name(async (out
|
|
|
4946
2587
|
};
|
|
4947
2588
|
return response;
|
|
4948
2589
|
}, "de_StopTrainingDocumentClassifierCommand");
|
|
4949
|
-
var de_StopTrainingDocumentClassifierCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4950
|
-
const parsedOutput = {
|
|
4951
|
-
...output,
|
|
4952
|
-
body: await parseErrorBody(output.body, context)
|
|
4953
|
-
};
|
|
4954
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4955
|
-
switch (errorCode) {
|
|
4956
|
-
case "InternalServerException":
|
|
4957
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4958
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4959
|
-
case "InvalidRequestException":
|
|
4960
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
4961
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4962
|
-
case "ResourceNotFoundException":
|
|
4963
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
4964
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4965
|
-
case "TooManyRequestsException":
|
|
4966
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
4967
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4968
|
-
default:
|
|
4969
|
-
const parsedBody = parsedOutput.body;
|
|
4970
|
-
return throwDefaultError({
|
|
4971
|
-
output,
|
|
4972
|
-
parsedBody,
|
|
4973
|
-
errorCode
|
|
4974
|
-
});
|
|
4975
|
-
}
|
|
4976
|
-
}, "de_StopTrainingDocumentClassifierCommandError");
|
|
4977
2590
|
var de_StopTrainingEntityRecognizerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4978
2591
|
if (output.statusCode >= 300) {
|
|
4979
|
-
return
|
|
2592
|
+
return de_CommandError(output, context);
|
|
4980
2593
|
}
|
|
4981
2594
|
const data = await parseBody(output.body, context);
|
|
4982
2595
|
let contents = {};
|
|
@@ -4987,37 +2600,9 @@ var de_StopTrainingEntityRecognizerCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
4987
2600
|
};
|
|
4988
2601
|
return response;
|
|
4989
2602
|
}, "de_StopTrainingEntityRecognizerCommand");
|
|
4990
|
-
var de_StopTrainingEntityRecognizerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4991
|
-
const parsedOutput = {
|
|
4992
|
-
...output,
|
|
4993
|
-
body: await parseErrorBody(output.body, context)
|
|
4994
|
-
};
|
|
4995
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4996
|
-
switch (errorCode) {
|
|
4997
|
-
case "InternalServerException":
|
|
4998
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
4999
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5000
|
-
case "InvalidRequestException":
|
|
5001
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
5002
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5003
|
-
case "ResourceNotFoundException":
|
|
5004
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
5005
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5006
|
-
case "TooManyRequestsException":
|
|
5007
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
5008
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5009
|
-
default:
|
|
5010
|
-
const parsedBody = parsedOutput.body;
|
|
5011
|
-
return throwDefaultError({
|
|
5012
|
-
output,
|
|
5013
|
-
parsedBody,
|
|
5014
|
-
errorCode
|
|
5015
|
-
});
|
|
5016
|
-
}
|
|
5017
|
-
}, "de_StopTrainingEntityRecognizerCommandError");
|
|
5018
2603
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5019
2604
|
if (output.statusCode >= 300) {
|
|
5020
|
-
return
|
|
2605
|
+
return de_CommandError(output, context);
|
|
5021
2606
|
}
|
|
5022
2607
|
const data = await parseBody(output.body, context);
|
|
5023
2608
|
let contents = {};
|
|
@@ -5028,40 +2613,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5028
2613
|
};
|
|
5029
2614
|
return response;
|
|
5030
2615
|
}, "de_TagResourceCommand");
|
|
5031
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5032
|
-
const parsedOutput = {
|
|
5033
|
-
...output,
|
|
5034
|
-
body: await parseErrorBody(output.body, context)
|
|
5035
|
-
};
|
|
5036
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5037
|
-
switch (errorCode) {
|
|
5038
|
-
case "ConcurrentModificationException":
|
|
5039
|
-
case "com.amazonaws.comprehend#ConcurrentModificationException":
|
|
5040
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
5041
|
-
case "InternalServerException":
|
|
5042
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
5043
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5044
|
-
case "InvalidRequestException":
|
|
5045
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
5046
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5047
|
-
case "ResourceNotFoundException":
|
|
5048
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
5049
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5050
|
-
case "TooManyTagsException":
|
|
5051
|
-
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
5052
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
5053
|
-
default:
|
|
5054
|
-
const parsedBody = parsedOutput.body;
|
|
5055
|
-
return throwDefaultError({
|
|
5056
|
-
output,
|
|
5057
|
-
parsedBody,
|
|
5058
|
-
errorCode
|
|
5059
|
-
});
|
|
5060
|
-
}
|
|
5061
|
-
}, "de_TagResourceCommandError");
|
|
5062
2616
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5063
2617
|
if (output.statusCode >= 300) {
|
|
5064
|
-
return
|
|
2618
|
+
return de_CommandError(output, context);
|
|
5065
2619
|
}
|
|
5066
2620
|
const data = await parseBody(output.body, context);
|
|
5067
2621
|
let contents = {};
|
|
@@ -5072,40 +2626,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5072
2626
|
};
|
|
5073
2627
|
return response;
|
|
5074
2628
|
}, "de_UntagResourceCommand");
|
|
5075
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5076
|
-
const parsedOutput = {
|
|
5077
|
-
...output,
|
|
5078
|
-
body: await parseErrorBody(output.body, context)
|
|
5079
|
-
};
|
|
5080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5081
|
-
switch (errorCode) {
|
|
5082
|
-
case "ConcurrentModificationException":
|
|
5083
|
-
case "com.amazonaws.comprehend#ConcurrentModificationException":
|
|
5084
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
5085
|
-
case "InternalServerException":
|
|
5086
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
5087
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5088
|
-
case "InvalidRequestException":
|
|
5089
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
5090
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5091
|
-
case "ResourceNotFoundException":
|
|
5092
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
5093
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5094
|
-
case "TooManyTagKeysException":
|
|
5095
|
-
case "com.amazonaws.comprehend#TooManyTagKeysException":
|
|
5096
|
-
throw await de_TooManyTagKeysExceptionRes(parsedOutput, context);
|
|
5097
|
-
default:
|
|
5098
|
-
const parsedBody = parsedOutput.body;
|
|
5099
|
-
return throwDefaultError({
|
|
5100
|
-
output,
|
|
5101
|
-
parsedBody,
|
|
5102
|
-
errorCode
|
|
5103
|
-
});
|
|
5104
|
-
}
|
|
5105
|
-
}, "de_UntagResourceCommandError");
|
|
5106
2629
|
var de_UpdateEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5107
2630
|
if (output.statusCode >= 300) {
|
|
5108
|
-
return
|
|
2631
|
+
return de_CommandError(output, context);
|
|
5109
2632
|
}
|
|
5110
2633
|
const data = await parseBody(output.body, context);
|
|
5111
2634
|
let contents = {};
|
|
@@ -5116,46 +2639,9 @@ var de_UpdateEndpointCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5116
2639
|
};
|
|
5117
2640
|
return response;
|
|
5118
2641
|
}, "de_UpdateEndpointCommand");
|
|
5119
|
-
var de_UpdateEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5120
|
-
const parsedOutput = {
|
|
5121
|
-
...output,
|
|
5122
|
-
body: await parseErrorBody(output.body, context)
|
|
5123
|
-
};
|
|
5124
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5125
|
-
switch (errorCode) {
|
|
5126
|
-
case "InternalServerException":
|
|
5127
|
-
case "com.amazonaws.comprehend#InternalServerException":
|
|
5128
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5129
|
-
case "InvalidRequestException":
|
|
5130
|
-
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
5131
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5132
|
-
case "ResourceInUseException":
|
|
5133
|
-
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
5134
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
5135
|
-
case "ResourceLimitExceededException":
|
|
5136
|
-
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
5137
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
5138
|
-
case "ResourceNotFoundException":
|
|
5139
|
-
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
5140
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5141
|
-
case "ResourceUnavailableException":
|
|
5142
|
-
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
5143
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
5144
|
-
case "TooManyRequestsException":
|
|
5145
|
-
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
5146
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5147
|
-
default:
|
|
5148
|
-
const parsedBody = parsedOutput.body;
|
|
5149
|
-
return throwDefaultError({
|
|
5150
|
-
output,
|
|
5151
|
-
parsedBody,
|
|
5152
|
-
errorCode
|
|
5153
|
-
});
|
|
5154
|
-
}
|
|
5155
|
-
}, "de_UpdateEndpointCommandError");
|
|
5156
2642
|
var de_UpdateFlywheelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5157
2643
|
if (output.statusCode >= 300) {
|
|
5158
|
-
return
|
|
2644
|
+
return de_CommandError(output, context);
|
|
5159
2645
|
}
|
|
5160
2646
|
const data = await parseBody(output.body, context);
|
|
5161
2647
|
let contents = {};
|
|
@@ -5166,28 +2652,61 @@ var de_UpdateFlywheelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5166
2652
|
};
|
|
5167
2653
|
return response;
|
|
5168
2654
|
}, "de_UpdateFlywheelCommand");
|
|
5169
|
-
var
|
|
2655
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5170
2656
|
const parsedOutput = {
|
|
5171
2657
|
...output,
|
|
5172
2658
|
body: await parseErrorBody(output.body, context)
|
|
5173
2659
|
};
|
|
5174
2660
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5175
2661
|
switch (errorCode) {
|
|
2662
|
+
case "BatchSizeLimitExceededException":
|
|
2663
|
+
case "com.amazonaws.comprehend#BatchSizeLimitExceededException":
|
|
2664
|
+
throw await de_BatchSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
5176
2665
|
case "InternalServerException":
|
|
5177
2666
|
case "com.amazonaws.comprehend#InternalServerException":
|
|
5178
2667
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5179
2668
|
case "InvalidRequestException":
|
|
5180
2669
|
case "com.amazonaws.comprehend#InvalidRequestException":
|
|
5181
2670
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5182
|
-
case "
|
|
5183
|
-
case "com.amazonaws.comprehend#
|
|
5184
|
-
throw await
|
|
2671
|
+
case "TextSizeLimitExceededException":
|
|
2672
|
+
case "com.amazonaws.comprehend#TextSizeLimitExceededException":
|
|
2673
|
+
throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
|
|
2674
|
+
case "UnsupportedLanguageException":
|
|
2675
|
+
case "com.amazonaws.comprehend#UnsupportedLanguageException":
|
|
2676
|
+
throw await de_UnsupportedLanguageExceptionRes(parsedOutput, context);
|
|
2677
|
+
case "ResourceUnavailableException":
|
|
2678
|
+
case "com.amazonaws.comprehend#ResourceUnavailableException":
|
|
2679
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2680
|
+
case "ResourceInUseException":
|
|
2681
|
+
case "com.amazonaws.comprehend#ResourceInUseException":
|
|
2682
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2683
|
+
case "ResourceLimitExceededException":
|
|
2684
|
+
case "com.amazonaws.comprehend#ResourceLimitExceededException":
|
|
2685
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
5185
2686
|
case "ResourceNotFoundException":
|
|
5186
2687
|
case "com.amazonaws.comprehend#ResourceNotFoundException":
|
|
5187
2688
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5188
2689
|
case "TooManyRequestsException":
|
|
5189
2690
|
case "com.amazonaws.comprehend#TooManyRequestsException":
|
|
5190
2691
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2692
|
+
case "TooManyTagsException":
|
|
2693
|
+
case "com.amazonaws.comprehend#TooManyTagsException":
|
|
2694
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2695
|
+
case "KmsKeyValidationException":
|
|
2696
|
+
case "com.amazonaws.comprehend#KmsKeyValidationException":
|
|
2697
|
+
throw await de_KmsKeyValidationExceptionRes(parsedOutput, context);
|
|
2698
|
+
case "JobNotFoundException":
|
|
2699
|
+
case "com.amazonaws.comprehend#JobNotFoundException":
|
|
2700
|
+
throw await de_JobNotFoundExceptionRes(parsedOutput, context);
|
|
2701
|
+
case "InvalidFilterException":
|
|
2702
|
+
case "com.amazonaws.comprehend#InvalidFilterException":
|
|
2703
|
+
throw await de_InvalidFilterExceptionRes(parsedOutput, context);
|
|
2704
|
+
case "ConcurrentModificationException":
|
|
2705
|
+
case "com.amazonaws.comprehend#ConcurrentModificationException":
|
|
2706
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2707
|
+
case "TooManyTagKeysException":
|
|
2708
|
+
case "com.amazonaws.comprehend#TooManyTagKeysException":
|
|
2709
|
+
throw await de_TooManyTagKeysExceptionRes(parsedOutput, context);
|
|
5191
2710
|
default:
|
|
5192
2711
|
const parsedBody = parsedOutput.body;
|
|
5193
2712
|
return throwDefaultError({
|
|
@@ -5196,7 +2715,7 @@ var de_UpdateFlywheelCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
5196
2715
|
errorCode
|
|
5197
2716
|
});
|
|
5198
2717
|
}
|
|
5199
|
-
}, "
|
|
2718
|
+
}, "de_CommandError");
|
|
5200
2719
|
var de_BatchSizeLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
5201
2720
|
const body = parsedOutput.body;
|
|
5202
2721
|
const deserialized = (0, import_smithy_client._json)(body);
|