@aws-sdk/client-comprehend 3.180.0 → 3.181.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/CHANGELOG.md +12 -0
- package/dist-cjs/protocols/Aws_json1_1.js +79 -73
- package/dist-es/protocols/Aws_json1_1.js +86 -73
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
12
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @aws-sdk/client-comprehend
|
|
@@ -755,7 +755,7 @@ exports.deserializeAws_json1_1BatchDetectDominantLanguageCommand = deserializeAw
|
|
|
755
755
|
const deserializeAws_json1_1BatchDetectDominantLanguageCommandError = async (output, context) => {
|
|
756
756
|
const parsedOutput = {
|
|
757
757
|
...output,
|
|
758
|
-
body: await
|
|
758
|
+
body: await parseErrorBody(output.body, context),
|
|
759
759
|
};
|
|
760
760
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
761
|
switch (errorCode) {
|
|
@@ -798,7 +798,7 @@ exports.deserializeAws_json1_1BatchDetectEntitiesCommand = deserializeAws_json1_
|
|
|
798
798
|
const deserializeAws_json1_1BatchDetectEntitiesCommandError = async (output, context) => {
|
|
799
799
|
const parsedOutput = {
|
|
800
800
|
...output,
|
|
801
|
-
body: await
|
|
801
|
+
body: await parseErrorBody(output.body, context),
|
|
802
802
|
};
|
|
803
803
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
804
|
switch (errorCode) {
|
|
@@ -844,7 +844,7 @@ exports.deserializeAws_json1_1BatchDetectKeyPhrasesCommand = deserializeAws_json
|
|
|
844
844
|
const deserializeAws_json1_1BatchDetectKeyPhrasesCommandError = async (output, context) => {
|
|
845
845
|
const parsedOutput = {
|
|
846
846
|
...output,
|
|
847
|
-
body: await
|
|
847
|
+
body: await parseErrorBody(output.body, context),
|
|
848
848
|
};
|
|
849
849
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
850
850
|
switch (errorCode) {
|
|
@@ -890,7 +890,7 @@ exports.deserializeAws_json1_1BatchDetectSentimentCommand = deserializeAws_json1
|
|
|
890
890
|
const deserializeAws_json1_1BatchDetectSentimentCommandError = async (output, context) => {
|
|
891
891
|
const parsedOutput = {
|
|
892
892
|
...output,
|
|
893
|
-
body: await
|
|
893
|
+
body: await parseErrorBody(output.body, context),
|
|
894
894
|
};
|
|
895
895
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
896
896
|
switch (errorCode) {
|
|
@@ -936,7 +936,7 @@ exports.deserializeAws_json1_1BatchDetectSyntaxCommand = deserializeAws_json1_1B
|
|
|
936
936
|
const deserializeAws_json1_1BatchDetectSyntaxCommandError = async (output, context) => {
|
|
937
937
|
const parsedOutput = {
|
|
938
938
|
...output,
|
|
939
|
-
body: await
|
|
939
|
+
body: await parseErrorBody(output.body, context),
|
|
940
940
|
};
|
|
941
941
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
942
|
switch (errorCode) {
|
|
@@ -982,7 +982,7 @@ exports.deserializeAws_json1_1BatchDetectTargetedSentimentCommand = deserializeA
|
|
|
982
982
|
const deserializeAws_json1_1BatchDetectTargetedSentimentCommandError = async (output, context) => {
|
|
983
983
|
const parsedOutput = {
|
|
984
984
|
...output,
|
|
985
|
-
body: await
|
|
985
|
+
body: await parseErrorBody(output.body, context),
|
|
986
986
|
};
|
|
987
987
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
988
988
|
switch (errorCode) {
|
|
@@ -1028,7 +1028,7 @@ exports.deserializeAws_json1_1ClassifyDocumentCommand = deserializeAws_json1_1Cl
|
|
|
1028
1028
|
const deserializeAws_json1_1ClassifyDocumentCommandError = async (output, context) => {
|
|
1029
1029
|
const parsedOutput = {
|
|
1030
1030
|
...output,
|
|
1031
|
-
body: await
|
|
1031
|
+
body: await parseErrorBody(output.body, context),
|
|
1032
1032
|
};
|
|
1033
1033
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
1034
|
switch (errorCode) {
|
|
@@ -1071,7 +1071,7 @@ exports.deserializeAws_json1_1ContainsPiiEntitiesCommand = deserializeAws_json1_
|
|
|
1071
1071
|
const deserializeAws_json1_1ContainsPiiEntitiesCommandError = async (output, context) => {
|
|
1072
1072
|
const parsedOutput = {
|
|
1073
1073
|
...output,
|
|
1074
|
-
body: await
|
|
1074
|
+
body: await parseErrorBody(output.body, context),
|
|
1075
1075
|
};
|
|
1076
1076
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
1077
|
switch (errorCode) {
|
|
@@ -1114,7 +1114,7 @@ exports.deserializeAws_json1_1CreateDocumentClassifierCommand = deserializeAws_j
|
|
|
1114
1114
|
const deserializeAws_json1_1CreateDocumentClassifierCommandError = async (output, context) => {
|
|
1115
1115
|
const parsedOutput = {
|
|
1116
1116
|
...output,
|
|
1117
|
-
body: await
|
|
1117
|
+
body: await parseErrorBody(output.body, context),
|
|
1118
1118
|
};
|
|
1119
1119
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
1120
|
switch (errorCode) {
|
|
@@ -1169,7 +1169,7 @@ exports.deserializeAws_json1_1CreateEndpointCommand = deserializeAws_json1_1Crea
|
|
|
1169
1169
|
const deserializeAws_json1_1CreateEndpointCommandError = async (output, context) => {
|
|
1170
1170
|
const parsedOutput = {
|
|
1171
1171
|
...output,
|
|
1172
|
-
body: await
|
|
1172
|
+
body: await parseErrorBody(output.body, context),
|
|
1173
1173
|
};
|
|
1174
1174
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
1175
|
switch (errorCode) {
|
|
@@ -1224,7 +1224,7 @@ exports.deserializeAws_json1_1CreateEntityRecognizerCommand = deserializeAws_jso
|
|
|
1224
1224
|
const deserializeAws_json1_1CreateEntityRecognizerCommandError = async (output, context) => {
|
|
1225
1225
|
const parsedOutput = {
|
|
1226
1226
|
...output,
|
|
1227
|
-
body: await
|
|
1227
|
+
body: await parseErrorBody(output.body, context),
|
|
1228
1228
|
};
|
|
1229
1229
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1230
1230
|
switch (errorCode) {
|
|
@@ -1279,7 +1279,7 @@ exports.deserializeAws_json1_1DeleteDocumentClassifierCommand = deserializeAws_j
|
|
|
1279
1279
|
const deserializeAws_json1_1DeleteDocumentClassifierCommandError = async (output, context) => {
|
|
1280
1280
|
const parsedOutput = {
|
|
1281
1281
|
...output,
|
|
1282
|
-
body: await
|
|
1282
|
+
body: await parseErrorBody(output.body, context),
|
|
1283
1283
|
};
|
|
1284
1284
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
1285
|
switch (errorCode) {
|
|
@@ -1328,7 +1328,7 @@ exports.deserializeAws_json1_1DeleteEndpointCommand = deserializeAws_json1_1Dele
|
|
|
1328
1328
|
const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context) => {
|
|
1329
1329
|
const parsedOutput = {
|
|
1330
1330
|
...output,
|
|
1331
|
-
body: await
|
|
1331
|
+
body: await parseErrorBody(output.body, context),
|
|
1332
1332
|
};
|
|
1333
1333
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
1334
|
switch (errorCode) {
|
|
@@ -1374,7 +1374,7 @@ exports.deserializeAws_json1_1DeleteEntityRecognizerCommand = deserializeAws_jso
|
|
|
1374
1374
|
const deserializeAws_json1_1DeleteEntityRecognizerCommandError = async (output, context) => {
|
|
1375
1375
|
const parsedOutput = {
|
|
1376
1376
|
...output,
|
|
1377
|
-
body: await
|
|
1377
|
+
body: await parseErrorBody(output.body, context),
|
|
1378
1378
|
};
|
|
1379
1379
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
1380
|
switch (errorCode) {
|
|
@@ -1423,7 +1423,7 @@ exports.deserializeAws_json1_1DeleteResourcePolicyCommand = deserializeAws_json1
|
|
|
1423
1423
|
const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
1424
1424
|
const parsedOutput = {
|
|
1425
1425
|
...output,
|
|
1426
|
-
body: await
|
|
1426
|
+
body: await parseErrorBody(output.body, context),
|
|
1427
1427
|
};
|
|
1428
1428
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
1429
|
switch (errorCode) {
|
|
@@ -1463,7 +1463,7 @@ exports.deserializeAws_json1_1DescribeDocumentClassificationJobCommand = deseria
|
|
|
1463
1463
|
const deserializeAws_json1_1DescribeDocumentClassificationJobCommandError = async (output, context) => {
|
|
1464
1464
|
const parsedOutput = {
|
|
1465
1465
|
...output,
|
|
1466
|
-
body: await
|
|
1466
|
+
body: await parseErrorBody(output.body, context),
|
|
1467
1467
|
};
|
|
1468
1468
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
1469
|
switch (errorCode) {
|
|
@@ -1506,7 +1506,7 @@ exports.deserializeAws_json1_1DescribeDocumentClassifierCommand = deserializeAws
|
|
|
1506
1506
|
const deserializeAws_json1_1DescribeDocumentClassifierCommandError = async (output, context) => {
|
|
1507
1507
|
const parsedOutput = {
|
|
1508
1508
|
...output,
|
|
1509
|
-
body: await
|
|
1509
|
+
body: await parseErrorBody(output.body, context),
|
|
1510
1510
|
};
|
|
1511
1511
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
1512
|
switch (errorCode) {
|
|
@@ -1549,7 +1549,7 @@ exports.deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommand = dese
|
|
|
1549
1549
|
const deserializeAws_json1_1DescribeDominantLanguageDetectionJobCommandError = async (output, context) => {
|
|
1550
1550
|
const parsedOutput = {
|
|
1551
1551
|
...output,
|
|
1552
|
-
body: await
|
|
1552
|
+
body: await parseErrorBody(output.body, context),
|
|
1553
1553
|
};
|
|
1554
1554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
1555
|
switch (errorCode) {
|
|
@@ -1592,7 +1592,7 @@ exports.deserializeAws_json1_1DescribeEndpointCommand = deserializeAws_json1_1De
|
|
|
1592
1592
|
const deserializeAws_json1_1DescribeEndpointCommandError = async (output, context) => {
|
|
1593
1593
|
const parsedOutput = {
|
|
1594
1594
|
...output,
|
|
1595
|
-
body: await
|
|
1595
|
+
body: await parseErrorBody(output.body, context),
|
|
1596
1596
|
};
|
|
1597
1597
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1598
1598
|
switch (errorCode) {
|
|
@@ -1635,7 +1635,7 @@ exports.deserializeAws_json1_1DescribeEntitiesDetectionJobCommand = deserializeA
|
|
|
1635
1635
|
const deserializeAws_json1_1DescribeEntitiesDetectionJobCommandError = async (output, context) => {
|
|
1636
1636
|
const parsedOutput = {
|
|
1637
1637
|
...output,
|
|
1638
|
-
body: await
|
|
1638
|
+
body: await parseErrorBody(output.body, context),
|
|
1639
1639
|
};
|
|
1640
1640
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
1641
|
switch (errorCode) {
|
|
@@ -1678,7 +1678,7 @@ exports.deserializeAws_json1_1DescribeEntityRecognizerCommand = deserializeAws_j
|
|
|
1678
1678
|
const deserializeAws_json1_1DescribeEntityRecognizerCommandError = async (output, context) => {
|
|
1679
1679
|
const parsedOutput = {
|
|
1680
1680
|
...output,
|
|
1681
|
-
body: await
|
|
1681
|
+
body: await parseErrorBody(output.body, context),
|
|
1682
1682
|
};
|
|
1683
1683
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1684
1684
|
switch (errorCode) {
|
|
@@ -1721,7 +1721,7 @@ exports.deserializeAws_json1_1DescribeEventsDetectionJobCommand = deserializeAws
|
|
|
1721
1721
|
const deserializeAws_json1_1DescribeEventsDetectionJobCommandError = async (output, context) => {
|
|
1722
1722
|
const parsedOutput = {
|
|
1723
1723
|
...output,
|
|
1724
|
-
body: await
|
|
1724
|
+
body: await parseErrorBody(output.body, context),
|
|
1725
1725
|
};
|
|
1726
1726
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1727
1727
|
switch (errorCode) {
|
|
@@ -1764,7 +1764,7 @@ exports.deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommand = deserializ
|
|
|
1764
1764
|
const deserializeAws_json1_1DescribeKeyPhrasesDetectionJobCommandError = async (output, context) => {
|
|
1765
1765
|
const parsedOutput = {
|
|
1766
1766
|
...output,
|
|
1767
|
-
body: await
|
|
1767
|
+
body: await parseErrorBody(output.body, context),
|
|
1768
1768
|
};
|
|
1769
1769
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
1770
|
switch (errorCode) {
|
|
@@ -1807,7 +1807,7 @@ exports.deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommand = deseriali
|
|
|
1807
1807
|
const deserializeAws_json1_1DescribePiiEntitiesDetectionJobCommandError = async (output, context) => {
|
|
1808
1808
|
const parsedOutput = {
|
|
1809
1809
|
...output,
|
|
1810
|
-
body: await
|
|
1810
|
+
body: await parseErrorBody(output.body, context),
|
|
1811
1811
|
};
|
|
1812
1812
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1813
1813
|
switch (errorCode) {
|
|
@@ -1850,7 +1850,7 @@ exports.deserializeAws_json1_1DescribeResourcePolicyCommand = deserializeAws_jso
|
|
|
1850
1850
|
const deserializeAws_json1_1DescribeResourcePolicyCommandError = async (output, context) => {
|
|
1851
1851
|
const parsedOutput = {
|
|
1852
1852
|
...output,
|
|
1853
|
-
body: await
|
|
1853
|
+
body: await parseErrorBody(output.body, context),
|
|
1854
1854
|
};
|
|
1855
1855
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1856
1856
|
switch (errorCode) {
|
|
@@ -1890,7 +1890,7 @@ exports.deserializeAws_json1_1DescribeSentimentDetectionJobCommand = deserialize
|
|
|
1890
1890
|
const deserializeAws_json1_1DescribeSentimentDetectionJobCommandError = async (output, context) => {
|
|
1891
1891
|
const parsedOutput = {
|
|
1892
1892
|
...output,
|
|
1893
|
-
body: await
|
|
1893
|
+
body: await parseErrorBody(output.body, context),
|
|
1894
1894
|
};
|
|
1895
1895
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
1896
|
switch (errorCode) {
|
|
@@ -1933,7 +1933,7 @@ exports.deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommand = des
|
|
|
1933
1933
|
const deserializeAws_json1_1DescribeTargetedSentimentDetectionJobCommandError = async (output, context) => {
|
|
1934
1934
|
const parsedOutput = {
|
|
1935
1935
|
...output,
|
|
1936
|
-
body: await
|
|
1936
|
+
body: await parseErrorBody(output.body, context),
|
|
1937
1937
|
};
|
|
1938
1938
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1939
1939
|
switch (errorCode) {
|
|
@@ -1976,7 +1976,7 @@ exports.deserializeAws_json1_1DescribeTopicsDetectionJobCommand = deserializeAws
|
|
|
1976
1976
|
const deserializeAws_json1_1DescribeTopicsDetectionJobCommandError = async (output, context) => {
|
|
1977
1977
|
const parsedOutput = {
|
|
1978
1978
|
...output,
|
|
1979
|
-
body: await
|
|
1979
|
+
body: await parseErrorBody(output.body, context),
|
|
1980
1980
|
};
|
|
1981
1981
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
1982
|
switch (errorCode) {
|
|
@@ -2019,7 +2019,7 @@ exports.deserializeAws_json1_1DetectDominantLanguageCommand = deserializeAws_jso
|
|
|
2019
2019
|
const deserializeAws_json1_1DetectDominantLanguageCommandError = async (output, context) => {
|
|
2020
2020
|
const parsedOutput = {
|
|
2021
2021
|
...output,
|
|
2022
|
-
body: await
|
|
2022
|
+
body: await parseErrorBody(output.body, context),
|
|
2023
2023
|
};
|
|
2024
2024
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2025
2025
|
switch (errorCode) {
|
|
@@ -2059,7 +2059,7 @@ exports.deserializeAws_json1_1DetectEntitiesCommand = deserializeAws_json1_1Dete
|
|
|
2059
2059
|
const deserializeAws_json1_1DetectEntitiesCommandError = async (output, context) => {
|
|
2060
2060
|
const parsedOutput = {
|
|
2061
2061
|
...output,
|
|
2062
|
-
body: await
|
|
2062
|
+
body: await parseErrorBody(output.body, context),
|
|
2063
2063
|
};
|
|
2064
2064
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2065
2065
|
switch (errorCode) {
|
|
@@ -2105,7 +2105,7 @@ exports.deserializeAws_json1_1DetectKeyPhrasesCommand = deserializeAws_json1_1De
|
|
|
2105
2105
|
const deserializeAws_json1_1DetectKeyPhrasesCommandError = async (output, context) => {
|
|
2106
2106
|
const parsedOutput = {
|
|
2107
2107
|
...output,
|
|
2108
|
-
body: await
|
|
2108
|
+
body: await parseErrorBody(output.body, context),
|
|
2109
2109
|
};
|
|
2110
2110
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2111
2111
|
switch (errorCode) {
|
|
@@ -2148,7 +2148,7 @@ exports.deserializeAws_json1_1DetectPiiEntitiesCommand = deserializeAws_json1_1D
|
|
|
2148
2148
|
const deserializeAws_json1_1DetectPiiEntitiesCommandError = async (output, context) => {
|
|
2149
2149
|
const parsedOutput = {
|
|
2150
2150
|
...output,
|
|
2151
|
-
body: await
|
|
2151
|
+
body: await parseErrorBody(output.body, context),
|
|
2152
2152
|
};
|
|
2153
2153
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2154
2154
|
switch (errorCode) {
|
|
@@ -2191,7 +2191,7 @@ exports.deserializeAws_json1_1DetectSentimentCommand = deserializeAws_json1_1Det
|
|
|
2191
2191
|
const deserializeAws_json1_1DetectSentimentCommandError = async (output, context) => {
|
|
2192
2192
|
const parsedOutput = {
|
|
2193
2193
|
...output,
|
|
2194
|
-
body: await
|
|
2194
|
+
body: await parseErrorBody(output.body, context),
|
|
2195
2195
|
};
|
|
2196
2196
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2197
2197
|
switch (errorCode) {
|
|
@@ -2234,7 +2234,7 @@ exports.deserializeAws_json1_1DetectSyntaxCommand = deserializeAws_json1_1Detect
|
|
|
2234
2234
|
const deserializeAws_json1_1DetectSyntaxCommandError = async (output, context) => {
|
|
2235
2235
|
const parsedOutput = {
|
|
2236
2236
|
...output,
|
|
2237
|
-
body: await
|
|
2237
|
+
body: await parseErrorBody(output.body, context),
|
|
2238
2238
|
};
|
|
2239
2239
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2240
2240
|
switch (errorCode) {
|
|
@@ -2277,7 +2277,7 @@ exports.deserializeAws_json1_1DetectTargetedSentimentCommand = deserializeAws_js
|
|
|
2277
2277
|
const deserializeAws_json1_1DetectTargetedSentimentCommandError = async (output, context) => {
|
|
2278
2278
|
const parsedOutput = {
|
|
2279
2279
|
...output,
|
|
2280
|
-
body: await
|
|
2280
|
+
body: await parseErrorBody(output.body, context),
|
|
2281
2281
|
};
|
|
2282
2282
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2283
2283
|
switch (errorCode) {
|
|
@@ -2320,7 +2320,7 @@ exports.deserializeAws_json1_1ImportModelCommand = deserializeAws_json1_1ImportM
|
|
|
2320
2320
|
const deserializeAws_json1_1ImportModelCommandError = async (output, context) => {
|
|
2321
2321
|
const parsedOutput = {
|
|
2322
2322
|
...output,
|
|
2323
|
-
body: await
|
|
2323
|
+
body: await parseErrorBody(output.body, context),
|
|
2324
2324
|
};
|
|
2325
2325
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2326
2326
|
switch (errorCode) {
|
|
@@ -2378,7 +2378,7 @@ exports.deserializeAws_json1_1ListDocumentClassificationJobsCommand = deserializ
|
|
|
2378
2378
|
const deserializeAws_json1_1ListDocumentClassificationJobsCommandError = async (output, context) => {
|
|
2379
2379
|
const parsedOutput = {
|
|
2380
2380
|
...output,
|
|
2381
|
-
body: await
|
|
2381
|
+
body: await parseErrorBody(output.body, context),
|
|
2382
2382
|
};
|
|
2383
2383
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2384
2384
|
switch (errorCode) {
|
|
@@ -2421,7 +2421,7 @@ exports.deserializeAws_json1_1ListDocumentClassifiersCommand = deserializeAws_js
|
|
|
2421
2421
|
const deserializeAws_json1_1ListDocumentClassifiersCommandError = async (output, context) => {
|
|
2422
2422
|
const parsedOutput = {
|
|
2423
2423
|
...output,
|
|
2424
|
-
body: await
|
|
2424
|
+
body: await parseErrorBody(output.body, context),
|
|
2425
2425
|
};
|
|
2426
2426
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2427
2427
|
switch (errorCode) {
|
|
@@ -2464,7 +2464,7 @@ exports.deserializeAws_json1_1ListDocumentClassifierSummariesCommand = deseriali
|
|
|
2464
2464
|
const deserializeAws_json1_1ListDocumentClassifierSummariesCommandError = async (output, context) => {
|
|
2465
2465
|
const parsedOutput = {
|
|
2466
2466
|
...output,
|
|
2467
|
-
body: await
|
|
2467
|
+
body: await parseErrorBody(output.body, context),
|
|
2468
2468
|
};
|
|
2469
2469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
2470
|
switch (errorCode) {
|
|
@@ -2504,7 +2504,7 @@ exports.deserializeAws_json1_1ListDominantLanguageDetectionJobsCommand = deseria
|
|
|
2504
2504
|
const deserializeAws_json1_1ListDominantLanguageDetectionJobsCommandError = async (output, context) => {
|
|
2505
2505
|
const parsedOutput = {
|
|
2506
2506
|
...output,
|
|
2507
|
-
body: await
|
|
2507
|
+
body: await parseErrorBody(output.body, context),
|
|
2508
2508
|
};
|
|
2509
2509
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2510
2510
|
switch (errorCode) {
|
|
@@ -2547,7 +2547,7 @@ exports.deserializeAws_json1_1ListEndpointsCommand = deserializeAws_json1_1ListE
|
|
|
2547
2547
|
const deserializeAws_json1_1ListEndpointsCommandError = async (output, context) => {
|
|
2548
2548
|
const parsedOutput = {
|
|
2549
2549
|
...output,
|
|
2550
|
-
body: await
|
|
2550
|
+
body: await parseErrorBody(output.body, context),
|
|
2551
2551
|
};
|
|
2552
2552
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2553
2553
|
switch (errorCode) {
|
|
@@ -2587,7 +2587,7 @@ exports.deserializeAws_json1_1ListEntitiesDetectionJobsCommand = deserializeAws_
|
|
|
2587
2587
|
const deserializeAws_json1_1ListEntitiesDetectionJobsCommandError = async (output, context) => {
|
|
2588
2588
|
const parsedOutput = {
|
|
2589
2589
|
...output,
|
|
2590
|
-
body: await
|
|
2590
|
+
body: await parseErrorBody(output.body, context),
|
|
2591
2591
|
};
|
|
2592
2592
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2593
2593
|
switch (errorCode) {
|
|
@@ -2630,7 +2630,7 @@ exports.deserializeAws_json1_1ListEntityRecognizersCommand = deserializeAws_json
|
|
|
2630
2630
|
const deserializeAws_json1_1ListEntityRecognizersCommandError = async (output, context) => {
|
|
2631
2631
|
const parsedOutput = {
|
|
2632
2632
|
...output,
|
|
2633
|
-
body: await
|
|
2633
|
+
body: await parseErrorBody(output.body, context),
|
|
2634
2634
|
};
|
|
2635
2635
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2636
2636
|
switch (errorCode) {
|
|
@@ -2673,7 +2673,7 @@ exports.deserializeAws_json1_1ListEntityRecognizerSummariesCommand = deserialize
|
|
|
2673
2673
|
const deserializeAws_json1_1ListEntityRecognizerSummariesCommandError = async (output, context) => {
|
|
2674
2674
|
const parsedOutput = {
|
|
2675
2675
|
...output,
|
|
2676
|
-
body: await
|
|
2676
|
+
body: await parseErrorBody(output.body, context),
|
|
2677
2677
|
};
|
|
2678
2678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2679
2679
|
switch (errorCode) {
|
|
@@ -2713,7 +2713,7 @@ exports.deserializeAws_json1_1ListEventsDetectionJobsCommand = deserializeAws_js
|
|
|
2713
2713
|
const deserializeAws_json1_1ListEventsDetectionJobsCommandError = async (output, context) => {
|
|
2714
2714
|
const parsedOutput = {
|
|
2715
2715
|
...output,
|
|
2716
|
-
body: await
|
|
2716
|
+
body: await parseErrorBody(output.body, context),
|
|
2717
2717
|
};
|
|
2718
2718
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2719
2719
|
switch (errorCode) {
|
|
@@ -2756,7 +2756,7 @@ exports.deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommand = deserializeAw
|
|
|
2756
2756
|
const deserializeAws_json1_1ListKeyPhrasesDetectionJobsCommandError = async (output, context) => {
|
|
2757
2757
|
const parsedOutput = {
|
|
2758
2758
|
...output,
|
|
2759
|
-
body: await
|
|
2759
|
+
body: await parseErrorBody(output.body, context),
|
|
2760
2760
|
};
|
|
2761
2761
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2762
2762
|
switch (errorCode) {
|
|
@@ -2799,7 +2799,7 @@ exports.deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommand = deserializeA
|
|
|
2799
2799
|
const deserializeAws_json1_1ListPiiEntitiesDetectionJobsCommandError = async (output, context) => {
|
|
2800
2800
|
const parsedOutput = {
|
|
2801
2801
|
...output,
|
|
2802
|
-
body: await
|
|
2802
|
+
body: await parseErrorBody(output.body, context),
|
|
2803
2803
|
};
|
|
2804
2804
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2805
2805
|
switch (errorCode) {
|
|
@@ -2842,7 +2842,7 @@ exports.deserializeAws_json1_1ListSentimentDetectionJobsCommand = deserializeAws
|
|
|
2842
2842
|
const deserializeAws_json1_1ListSentimentDetectionJobsCommandError = async (output, context) => {
|
|
2843
2843
|
const parsedOutput = {
|
|
2844
2844
|
...output,
|
|
2845
|
-
body: await
|
|
2845
|
+
body: await parseErrorBody(output.body, context),
|
|
2846
2846
|
};
|
|
2847
2847
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2848
2848
|
switch (errorCode) {
|
|
@@ -2885,7 +2885,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
2885
2885
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
2886
2886
|
const parsedOutput = {
|
|
2887
2887
|
...output,
|
|
2888
|
-
body: await
|
|
2888
|
+
body: await parseErrorBody(output.body, context),
|
|
2889
2889
|
};
|
|
2890
2890
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2891
2891
|
switch (errorCode) {
|
|
@@ -2925,7 +2925,7 @@ exports.deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommand = deseri
|
|
|
2925
2925
|
const deserializeAws_json1_1ListTargetedSentimentDetectionJobsCommandError = async (output, context) => {
|
|
2926
2926
|
const parsedOutput = {
|
|
2927
2927
|
...output,
|
|
2928
|
-
body: await
|
|
2928
|
+
body: await parseErrorBody(output.body, context),
|
|
2929
2929
|
};
|
|
2930
2930
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2931
2931
|
switch (errorCode) {
|
|
@@ -2968,7 +2968,7 @@ exports.deserializeAws_json1_1ListTopicsDetectionJobsCommand = deserializeAws_js
|
|
|
2968
2968
|
const deserializeAws_json1_1ListTopicsDetectionJobsCommandError = async (output, context) => {
|
|
2969
2969
|
const parsedOutput = {
|
|
2970
2970
|
...output,
|
|
2971
|
-
body: await
|
|
2971
|
+
body: await parseErrorBody(output.body, context),
|
|
2972
2972
|
};
|
|
2973
2973
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2974
2974
|
switch (errorCode) {
|
|
@@ -3011,7 +3011,7 @@ exports.deserializeAws_json1_1PutResourcePolicyCommand = deserializeAws_json1_1P
|
|
|
3011
3011
|
const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, context) => {
|
|
3012
3012
|
const parsedOutput = {
|
|
3013
3013
|
...output,
|
|
3014
|
-
body: await
|
|
3014
|
+
body: await parseErrorBody(output.body, context),
|
|
3015
3015
|
};
|
|
3016
3016
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3017
3017
|
switch (errorCode) {
|
|
@@ -3051,7 +3051,7 @@ exports.deserializeAws_json1_1StartDocumentClassificationJobCommand = deserializ
|
|
|
3051
3051
|
const deserializeAws_json1_1StartDocumentClassificationJobCommandError = async (output, context) => {
|
|
3052
3052
|
const parsedOutput = {
|
|
3053
3053
|
...output,
|
|
3054
|
-
body: await
|
|
3054
|
+
body: await parseErrorBody(output.body, context),
|
|
3055
3055
|
};
|
|
3056
3056
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3057
3057
|
switch (errorCode) {
|
|
@@ -3103,7 +3103,7 @@ exports.deserializeAws_json1_1StartDominantLanguageDetectionJobCommand = deseria
|
|
|
3103
3103
|
const deserializeAws_json1_1StartDominantLanguageDetectionJobCommandError = async (output, context) => {
|
|
3104
3104
|
const parsedOutput = {
|
|
3105
3105
|
...output,
|
|
3106
|
-
body: await
|
|
3106
|
+
body: await parseErrorBody(output.body, context),
|
|
3107
3107
|
};
|
|
3108
3108
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3109
3109
|
switch (errorCode) {
|
|
@@ -3149,7 +3149,7 @@ exports.deserializeAws_json1_1StartEntitiesDetectionJobCommand = deserializeAws_
|
|
|
3149
3149
|
const deserializeAws_json1_1StartEntitiesDetectionJobCommandError = async (output, context) => {
|
|
3150
3150
|
const parsedOutput = {
|
|
3151
3151
|
...output,
|
|
3152
|
-
body: await
|
|
3152
|
+
body: await parseErrorBody(output.body, context),
|
|
3153
3153
|
};
|
|
3154
3154
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3155
3155
|
switch (errorCode) {
|
|
@@ -3201,7 +3201,7 @@ exports.deserializeAws_json1_1StartEventsDetectionJobCommand = deserializeAws_js
|
|
|
3201
3201
|
const deserializeAws_json1_1StartEventsDetectionJobCommandError = async (output, context) => {
|
|
3202
3202
|
const parsedOutput = {
|
|
3203
3203
|
...output,
|
|
3204
|
-
body: await
|
|
3204
|
+
body: await parseErrorBody(output.body, context),
|
|
3205
3205
|
};
|
|
3206
3206
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3207
3207
|
switch (errorCode) {
|
|
@@ -3247,7 +3247,7 @@ exports.deserializeAws_json1_1StartKeyPhrasesDetectionJobCommand = deserializeAw
|
|
|
3247
3247
|
const deserializeAws_json1_1StartKeyPhrasesDetectionJobCommandError = async (output, context) => {
|
|
3248
3248
|
const parsedOutput = {
|
|
3249
3249
|
...output,
|
|
3250
|
-
body: await
|
|
3250
|
+
body: await parseErrorBody(output.body, context),
|
|
3251
3251
|
};
|
|
3252
3252
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3253
3253
|
switch (errorCode) {
|
|
@@ -3293,7 +3293,7 @@ exports.deserializeAws_json1_1StartPiiEntitiesDetectionJobCommand = deserializeA
|
|
|
3293
3293
|
const deserializeAws_json1_1StartPiiEntitiesDetectionJobCommandError = async (output, context) => {
|
|
3294
3294
|
const parsedOutput = {
|
|
3295
3295
|
...output,
|
|
3296
|
-
body: await
|
|
3296
|
+
body: await parseErrorBody(output.body, context),
|
|
3297
3297
|
};
|
|
3298
3298
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3299
3299
|
switch (errorCode) {
|
|
@@ -3339,7 +3339,7 @@ exports.deserializeAws_json1_1StartSentimentDetectionJobCommand = deserializeAws
|
|
|
3339
3339
|
const deserializeAws_json1_1StartSentimentDetectionJobCommandError = async (output, context) => {
|
|
3340
3340
|
const parsedOutput = {
|
|
3341
3341
|
...output,
|
|
3342
|
-
body: await
|
|
3342
|
+
body: await parseErrorBody(output.body, context),
|
|
3343
3343
|
};
|
|
3344
3344
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3345
3345
|
switch (errorCode) {
|
|
@@ -3385,7 +3385,7 @@ exports.deserializeAws_json1_1StartTargetedSentimentDetectionJobCommand = deseri
|
|
|
3385
3385
|
const deserializeAws_json1_1StartTargetedSentimentDetectionJobCommandError = async (output, context) => {
|
|
3386
3386
|
const parsedOutput = {
|
|
3387
3387
|
...output,
|
|
3388
|
-
body: await
|
|
3388
|
+
body: await parseErrorBody(output.body, context),
|
|
3389
3389
|
};
|
|
3390
3390
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3391
3391
|
switch (errorCode) {
|
|
@@ -3431,7 +3431,7 @@ exports.deserializeAws_json1_1StartTopicsDetectionJobCommand = deserializeAws_js
|
|
|
3431
3431
|
const deserializeAws_json1_1StartTopicsDetectionJobCommandError = async (output, context) => {
|
|
3432
3432
|
const parsedOutput = {
|
|
3433
3433
|
...output,
|
|
3434
|
-
body: await
|
|
3434
|
+
body: await parseErrorBody(output.body, context),
|
|
3435
3435
|
};
|
|
3436
3436
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3437
3437
|
switch (errorCode) {
|
|
@@ -3477,7 +3477,7 @@ exports.deserializeAws_json1_1StopDominantLanguageDetectionJobCommand = deserial
|
|
|
3477
3477
|
const deserializeAws_json1_1StopDominantLanguageDetectionJobCommandError = async (output, context) => {
|
|
3478
3478
|
const parsedOutput = {
|
|
3479
3479
|
...output,
|
|
3480
|
-
body: await
|
|
3480
|
+
body: await parseErrorBody(output.body, context),
|
|
3481
3481
|
};
|
|
3482
3482
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3483
3483
|
switch (errorCode) {
|
|
@@ -3517,7 +3517,7 @@ exports.deserializeAws_json1_1StopEntitiesDetectionJobCommand = deserializeAws_j
|
|
|
3517
3517
|
const deserializeAws_json1_1StopEntitiesDetectionJobCommandError = async (output, context) => {
|
|
3518
3518
|
const parsedOutput = {
|
|
3519
3519
|
...output,
|
|
3520
|
-
body: await
|
|
3520
|
+
body: await parseErrorBody(output.body, context),
|
|
3521
3521
|
};
|
|
3522
3522
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3523
3523
|
switch (errorCode) {
|
|
@@ -3557,7 +3557,7 @@ exports.deserializeAws_json1_1StopEventsDetectionJobCommand = deserializeAws_jso
|
|
|
3557
3557
|
const deserializeAws_json1_1StopEventsDetectionJobCommandError = async (output, context) => {
|
|
3558
3558
|
const parsedOutput = {
|
|
3559
3559
|
...output,
|
|
3560
|
-
body: await
|
|
3560
|
+
body: await parseErrorBody(output.body, context),
|
|
3561
3561
|
};
|
|
3562
3562
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3563
3563
|
switch (errorCode) {
|
|
@@ -3597,7 +3597,7 @@ exports.deserializeAws_json1_1StopKeyPhrasesDetectionJobCommand = deserializeAws
|
|
|
3597
3597
|
const deserializeAws_json1_1StopKeyPhrasesDetectionJobCommandError = async (output, context) => {
|
|
3598
3598
|
const parsedOutput = {
|
|
3599
3599
|
...output,
|
|
3600
|
-
body: await
|
|
3600
|
+
body: await parseErrorBody(output.body, context),
|
|
3601
3601
|
};
|
|
3602
3602
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3603
3603
|
switch (errorCode) {
|
|
@@ -3637,7 +3637,7 @@ exports.deserializeAws_json1_1StopPiiEntitiesDetectionJobCommand = deserializeAw
|
|
|
3637
3637
|
const deserializeAws_json1_1StopPiiEntitiesDetectionJobCommandError = async (output, context) => {
|
|
3638
3638
|
const parsedOutput = {
|
|
3639
3639
|
...output,
|
|
3640
|
-
body: await
|
|
3640
|
+
body: await parseErrorBody(output.body, context),
|
|
3641
3641
|
};
|
|
3642
3642
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3643
3643
|
switch (errorCode) {
|
|
@@ -3677,7 +3677,7 @@ exports.deserializeAws_json1_1StopSentimentDetectionJobCommand = deserializeAws_
|
|
|
3677
3677
|
const deserializeAws_json1_1StopSentimentDetectionJobCommandError = async (output, context) => {
|
|
3678
3678
|
const parsedOutput = {
|
|
3679
3679
|
...output,
|
|
3680
|
-
body: await
|
|
3680
|
+
body: await parseErrorBody(output.body, context),
|
|
3681
3681
|
};
|
|
3682
3682
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3683
3683
|
switch (errorCode) {
|
|
@@ -3717,7 +3717,7 @@ exports.deserializeAws_json1_1StopTargetedSentimentDetectionJobCommand = deseria
|
|
|
3717
3717
|
const deserializeAws_json1_1StopTargetedSentimentDetectionJobCommandError = async (output, context) => {
|
|
3718
3718
|
const parsedOutput = {
|
|
3719
3719
|
...output,
|
|
3720
|
-
body: await
|
|
3720
|
+
body: await parseErrorBody(output.body, context),
|
|
3721
3721
|
};
|
|
3722
3722
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3723
3723
|
switch (errorCode) {
|
|
@@ -3757,7 +3757,7 @@ exports.deserializeAws_json1_1StopTrainingDocumentClassifierCommand = deserializ
|
|
|
3757
3757
|
const deserializeAws_json1_1StopTrainingDocumentClassifierCommandError = async (output, context) => {
|
|
3758
3758
|
const parsedOutput = {
|
|
3759
3759
|
...output,
|
|
3760
|
-
body: await
|
|
3760
|
+
body: await parseErrorBody(output.body, context),
|
|
3761
3761
|
};
|
|
3762
3762
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3763
3763
|
switch (errorCode) {
|
|
@@ -3800,7 +3800,7 @@ exports.deserializeAws_json1_1StopTrainingEntityRecognizerCommand = deserializeA
|
|
|
3800
3800
|
const deserializeAws_json1_1StopTrainingEntityRecognizerCommandError = async (output, context) => {
|
|
3801
3801
|
const parsedOutput = {
|
|
3802
3802
|
...output,
|
|
3803
|
-
body: await
|
|
3803
|
+
body: await parseErrorBody(output.body, context),
|
|
3804
3804
|
};
|
|
3805
3805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3806
3806
|
switch (errorCode) {
|
|
@@ -3843,7 +3843,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
3843
3843
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
3844
3844
|
const parsedOutput = {
|
|
3845
3845
|
...output,
|
|
3846
|
-
body: await
|
|
3846
|
+
body: await parseErrorBody(output.body, context),
|
|
3847
3847
|
};
|
|
3848
3848
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3849
3849
|
switch (errorCode) {
|
|
@@ -3889,7 +3889,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
3889
3889
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
3890
3890
|
const parsedOutput = {
|
|
3891
3891
|
...output,
|
|
3892
|
-
body: await
|
|
3892
|
+
body: await parseErrorBody(output.body, context),
|
|
3893
3893
|
};
|
|
3894
3894
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3895
3895
|
switch (errorCode) {
|
|
@@ -3935,7 +3935,7 @@ exports.deserializeAws_json1_1UpdateEndpointCommand = deserializeAws_json1_1Upda
|
|
|
3935
3935
|
const deserializeAws_json1_1UpdateEndpointCommandError = async (output, context) => {
|
|
3936
3936
|
const parsedOutput = {
|
|
3937
3937
|
...output,
|
|
3938
|
-
body: await
|
|
3938
|
+
body: await parseErrorBody(output.body, context),
|
|
3939
3939
|
};
|
|
3940
3940
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3941
3941
|
switch (errorCode) {
|
|
@@ -6668,6 +6668,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
6668
6668
|
}
|
|
6669
6669
|
return {};
|
|
6670
6670
|
});
|
|
6671
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
6672
|
+
var _a;
|
|
6673
|
+
const value = await parseBody(errorBody, context);
|
|
6674
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
6675
|
+
return value;
|
|
6676
|
+
};
|
|
6671
6677
|
const loadRestJsonErrorCode = (output, data) => {
|
|
6672
6678
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
6673
6679
|
const sanitizeErrorCode = (rawValue) => {
|