@aws-sdk/client-rekognition 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +69 -63
- package/dist-es/Rekognition.js +254 -261
- package/dist-es/RekognitionClient.js +22 -28
- package/dist-es/commands/CompareFacesCommand.js +21 -28
- package/dist-es/commands/CopyProjectVersionCommand.js +21 -28
- package/dist-es/commands/CreateCollectionCommand.js +21 -28
- package/dist-es/commands/CreateDatasetCommand.js +21 -28
- package/dist-es/commands/CreateProjectCommand.js +21 -28
- package/dist-es/commands/CreateProjectVersionCommand.js +21 -28
- package/dist-es/commands/CreateStreamProcessorCommand.js +21 -28
- package/dist-es/commands/DeleteCollectionCommand.js +21 -28
- package/dist-es/commands/DeleteDatasetCommand.js +21 -28
- package/dist-es/commands/DeleteFacesCommand.js +21 -28
- package/dist-es/commands/DeleteProjectCommand.js +21 -28
- package/dist-es/commands/DeleteProjectPolicyCommand.js +21 -28
- package/dist-es/commands/DeleteProjectVersionCommand.js +21 -28
- package/dist-es/commands/DeleteStreamProcessorCommand.js +21 -28
- package/dist-es/commands/DescribeCollectionCommand.js +21 -28
- package/dist-es/commands/DescribeDatasetCommand.js +21 -28
- package/dist-es/commands/DescribeProjectVersionsCommand.js +21 -28
- package/dist-es/commands/DescribeProjectsCommand.js +21 -28
- package/dist-es/commands/DescribeStreamProcessorCommand.js +21 -28
- package/dist-es/commands/DetectCustomLabelsCommand.js +21 -28
- package/dist-es/commands/DetectFacesCommand.js +21 -28
- package/dist-es/commands/DetectLabelsCommand.js +21 -28
- package/dist-es/commands/DetectModerationLabelsCommand.js +21 -28
- package/dist-es/commands/DetectProtectiveEquipmentCommand.js +21 -28
- package/dist-es/commands/DetectTextCommand.js +21 -28
- package/dist-es/commands/DistributeDatasetEntriesCommand.js +21 -28
- package/dist-es/commands/GetCelebrityInfoCommand.js +21 -28
- package/dist-es/commands/GetCelebrityRecognitionCommand.js +21 -28
- package/dist-es/commands/GetContentModerationCommand.js +21 -28
- package/dist-es/commands/GetFaceDetectionCommand.js +21 -28
- package/dist-es/commands/GetFaceSearchCommand.js +21 -28
- package/dist-es/commands/GetLabelDetectionCommand.js +21 -28
- package/dist-es/commands/GetPersonTrackingCommand.js +21 -28
- package/dist-es/commands/GetSegmentDetectionCommand.js +21 -28
- package/dist-es/commands/GetTextDetectionCommand.js +21 -28
- package/dist-es/commands/IndexFacesCommand.js +21 -28
- package/dist-es/commands/ListCollectionsCommand.js +21 -28
- package/dist-es/commands/ListDatasetEntriesCommand.js +21 -28
- package/dist-es/commands/ListDatasetLabelsCommand.js +21 -28
- package/dist-es/commands/ListFacesCommand.js +21 -28
- package/dist-es/commands/ListProjectPoliciesCommand.js +21 -28
- package/dist-es/commands/ListStreamProcessorsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutProjectPolicyCommand.js +21 -28
- package/dist-es/commands/RecognizeCelebritiesCommand.js +21 -28
- package/dist-es/commands/SearchFacesByImageCommand.js +21 -28
- package/dist-es/commands/SearchFacesCommand.js +21 -28
- package/dist-es/commands/StartCelebrityRecognitionCommand.js +21 -28
- package/dist-es/commands/StartContentModerationCommand.js +21 -28
- package/dist-es/commands/StartFaceDetectionCommand.js +21 -28
- package/dist-es/commands/StartFaceSearchCommand.js +21 -28
- package/dist-es/commands/StartLabelDetectionCommand.js +21 -28
- package/dist-es/commands/StartPersonTrackingCommand.js +21 -28
- package/dist-es/commands/StartProjectVersionCommand.js +21 -28
- package/dist-es/commands/StartSegmentDetectionCommand.js +21 -28
- package/dist-es/commands/StartStreamProcessorCommand.js +21 -28
- package/dist-es/commands/StartTextDetectionCommand.js +21 -28
- package/dist-es/commands/StopProjectVersionCommand.js +21 -28
- package/dist-es/commands/StopStreamProcessorCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateDatasetEntriesCommand.js +21 -28
- package/dist-es/commands/UpdateStreamProcessorCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/RekognitionServiceException.js +5 -10
- package/dist-es/models/models_0.js +976 -515
- package/dist-es/pagination/DescribeProjectVersionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeProjectsPaginator.js +25 -68
- package/dist-es/pagination/GetCelebrityRecognitionPaginator.js +25 -68
- package/dist-es/pagination/GetContentModerationPaginator.js +25 -68
- package/dist-es/pagination/GetFaceDetectionPaginator.js +25 -68
- package/dist-es/pagination/GetFaceSearchPaginator.js +25 -68
- package/dist-es/pagination/GetLabelDetectionPaginator.js +25 -68
- package/dist-es/pagination/GetPersonTrackingPaginator.js +25 -68
- package/dist-es/pagination/GetSegmentDetectionPaginator.js +25 -68
- package/dist-es/pagination/GetTextDetectionPaginator.js +25 -68
- package/dist-es/pagination/ListCollectionsPaginator.js +25 -68
- package/dist-es/pagination/ListDatasetEntriesPaginator.js +25 -68
- package/dist-es/pagination/ListDatasetLabelsPaginator.js +25 -68
- package/dist-es/pagination/ListFacesPaginator.js +25 -68
- package/dist-es/pagination/ListProjectPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListStreamProcessorsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +5219 -6533
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForProjectVersionRunning.js +50 -91
- package/dist-es/waiters/waitForProjectVersionTrainingCompleted.js +50 -91
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-rekognition
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
* **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))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-rekognition
|
|
@@ -654,7 +654,7 @@ exports.deserializeAws_json1_1CompareFacesCommand = deserializeAws_json1_1Compar
|
|
|
654
654
|
const deserializeAws_json1_1CompareFacesCommandError = async (output, context) => {
|
|
655
655
|
const parsedOutput = {
|
|
656
656
|
...output,
|
|
657
|
-
body: await
|
|
657
|
+
body: await parseErrorBody(output.body, context),
|
|
658
658
|
};
|
|
659
659
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
660
660
|
switch (errorCode) {
|
|
@@ -709,7 +709,7 @@ exports.deserializeAws_json1_1CopyProjectVersionCommand = deserializeAws_json1_1
|
|
|
709
709
|
const deserializeAws_json1_1CopyProjectVersionCommandError = async (output, context) => {
|
|
710
710
|
const parsedOutput = {
|
|
711
711
|
...output,
|
|
712
|
-
body: await
|
|
712
|
+
body: await parseErrorBody(output.body, context),
|
|
713
713
|
};
|
|
714
714
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
715
|
switch (errorCode) {
|
|
@@ -767,7 +767,7 @@ exports.deserializeAws_json1_1CreateCollectionCommand = deserializeAws_json1_1Cr
|
|
|
767
767
|
const deserializeAws_json1_1CreateCollectionCommandError = async (output, context) => {
|
|
768
768
|
const parsedOutput = {
|
|
769
769
|
...output,
|
|
770
|
-
body: await
|
|
770
|
+
body: await parseErrorBody(output.body, context),
|
|
771
771
|
};
|
|
772
772
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
773
773
|
switch (errorCode) {
|
|
@@ -819,7 +819,7 @@ exports.deserializeAws_json1_1CreateDatasetCommand = deserializeAws_json1_1Creat
|
|
|
819
819
|
const deserializeAws_json1_1CreateDatasetCommandError = async (output, context) => {
|
|
820
820
|
const parsedOutput = {
|
|
821
821
|
...output,
|
|
822
|
-
body: await
|
|
822
|
+
body: await parseErrorBody(output.body, context),
|
|
823
823
|
};
|
|
824
824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
825
|
switch (errorCode) {
|
|
@@ -877,7 +877,7 @@ exports.deserializeAws_json1_1CreateProjectCommand = deserializeAws_json1_1Creat
|
|
|
877
877
|
const deserializeAws_json1_1CreateProjectCommandError = async (output, context) => {
|
|
878
878
|
const parsedOutput = {
|
|
879
879
|
...output,
|
|
880
|
-
body: await
|
|
880
|
+
body: await parseErrorBody(output.body, context),
|
|
881
881
|
};
|
|
882
882
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
883
883
|
switch (errorCode) {
|
|
@@ -929,7 +929,7 @@ exports.deserializeAws_json1_1CreateProjectVersionCommand = deserializeAws_json1
|
|
|
929
929
|
const deserializeAws_json1_1CreateProjectVersionCommandError = async (output, context) => {
|
|
930
930
|
const parsedOutput = {
|
|
931
931
|
...output,
|
|
932
|
-
body: await
|
|
932
|
+
body: await parseErrorBody(output.body, context),
|
|
933
933
|
};
|
|
934
934
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
935
935
|
switch (errorCode) {
|
|
@@ -987,7 +987,7 @@ exports.deserializeAws_json1_1CreateStreamProcessorCommand = deserializeAws_json
|
|
|
987
987
|
const deserializeAws_json1_1CreateStreamProcessorCommandError = async (output, context) => {
|
|
988
988
|
const parsedOutput = {
|
|
989
989
|
...output,
|
|
990
|
-
body: await
|
|
990
|
+
body: await parseErrorBody(output.body, context),
|
|
991
991
|
};
|
|
992
992
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
993
|
switch (errorCode) {
|
|
@@ -1042,7 +1042,7 @@ exports.deserializeAws_json1_1DeleteCollectionCommand = deserializeAws_json1_1De
|
|
|
1042
1042
|
const deserializeAws_json1_1DeleteCollectionCommandError = async (output, context) => {
|
|
1043
1043
|
const parsedOutput = {
|
|
1044
1044
|
...output,
|
|
1045
|
-
body: await
|
|
1045
|
+
body: await parseErrorBody(output.body, context),
|
|
1046
1046
|
};
|
|
1047
1047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
1048
|
switch (errorCode) {
|
|
@@ -1091,7 +1091,7 @@ exports.deserializeAws_json1_1DeleteDatasetCommand = deserializeAws_json1_1Delet
|
|
|
1091
1091
|
const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context) => {
|
|
1092
1092
|
const parsedOutput = {
|
|
1093
1093
|
...output,
|
|
1094
|
-
body: await
|
|
1094
|
+
body: await parseErrorBody(output.body, context),
|
|
1095
1095
|
};
|
|
1096
1096
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1097
1097
|
switch (errorCode) {
|
|
@@ -1146,7 +1146,7 @@ exports.deserializeAws_json1_1DeleteFacesCommand = deserializeAws_json1_1DeleteF
|
|
|
1146
1146
|
const deserializeAws_json1_1DeleteFacesCommandError = async (output, context) => {
|
|
1147
1147
|
const parsedOutput = {
|
|
1148
1148
|
...output,
|
|
1149
|
-
body: await
|
|
1149
|
+
body: await parseErrorBody(output.body, context),
|
|
1150
1150
|
};
|
|
1151
1151
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
1152
|
switch (errorCode) {
|
|
@@ -1195,7 +1195,7 @@ exports.deserializeAws_json1_1DeleteProjectCommand = deserializeAws_json1_1Delet
|
|
|
1195
1195
|
const deserializeAws_json1_1DeleteProjectCommandError = async (output, context) => {
|
|
1196
1196
|
const parsedOutput = {
|
|
1197
1197
|
...output,
|
|
1198
|
-
body: await
|
|
1198
|
+
body: await parseErrorBody(output.body, context),
|
|
1199
1199
|
};
|
|
1200
1200
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
1201
|
switch (errorCode) {
|
|
@@ -1247,7 +1247,7 @@ exports.deserializeAws_json1_1DeleteProjectPolicyCommand = deserializeAws_json1_
|
|
|
1247
1247
|
const deserializeAws_json1_1DeleteProjectPolicyCommandError = async (output, context) => {
|
|
1248
1248
|
const parsedOutput = {
|
|
1249
1249
|
...output,
|
|
1250
|
-
body: await
|
|
1250
|
+
body: await parseErrorBody(output.body, context),
|
|
1251
1251
|
};
|
|
1252
1252
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
1253
|
switch (errorCode) {
|
|
@@ -1299,7 +1299,7 @@ exports.deserializeAws_json1_1DeleteProjectVersionCommand = deserializeAws_json1
|
|
|
1299
1299
|
const deserializeAws_json1_1DeleteProjectVersionCommandError = async (output, context) => {
|
|
1300
1300
|
const parsedOutput = {
|
|
1301
1301
|
...output,
|
|
1302
|
-
body: await
|
|
1302
|
+
body: await parseErrorBody(output.body, context),
|
|
1303
1303
|
};
|
|
1304
1304
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1305
1305
|
switch (errorCode) {
|
|
@@ -1351,7 +1351,7 @@ exports.deserializeAws_json1_1DeleteStreamProcessorCommand = deserializeAws_json
|
|
|
1351
1351
|
const deserializeAws_json1_1DeleteStreamProcessorCommandError = async (output, context) => {
|
|
1352
1352
|
const parsedOutput = {
|
|
1353
1353
|
...output,
|
|
1354
|
-
body: await
|
|
1354
|
+
body: await parseErrorBody(output.body, context),
|
|
1355
1355
|
};
|
|
1356
1356
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
1357
|
switch (errorCode) {
|
|
@@ -1403,7 +1403,7 @@ exports.deserializeAws_json1_1DescribeCollectionCommand = deserializeAws_json1_1
|
|
|
1403
1403
|
const deserializeAws_json1_1DescribeCollectionCommandError = async (output, context) => {
|
|
1404
1404
|
const parsedOutput = {
|
|
1405
1405
|
...output,
|
|
1406
|
-
body: await
|
|
1406
|
+
body: await parseErrorBody(output.body, context),
|
|
1407
1407
|
};
|
|
1408
1408
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1409
|
switch (errorCode) {
|
|
@@ -1452,7 +1452,7 @@ exports.deserializeAws_json1_1DescribeDatasetCommand = deserializeAws_json1_1Des
|
|
|
1452
1452
|
const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context) => {
|
|
1453
1453
|
const parsedOutput = {
|
|
1454
1454
|
...output,
|
|
1455
|
-
body: await
|
|
1455
|
+
body: await parseErrorBody(output.body, context),
|
|
1456
1456
|
};
|
|
1457
1457
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
1458
|
switch (errorCode) {
|
|
@@ -1501,7 +1501,7 @@ exports.deserializeAws_json1_1DescribeProjectsCommand = deserializeAws_json1_1De
|
|
|
1501
1501
|
const deserializeAws_json1_1DescribeProjectsCommandError = async (output, context) => {
|
|
1502
1502
|
const parsedOutput = {
|
|
1503
1503
|
...output,
|
|
1504
|
-
body: await
|
|
1504
|
+
body: await parseErrorBody(output.body, context),
|
|
1505
1505
|
};
|
|
1506
1506
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
1507
|
switch (errorCode) {
|
|
@@ -1550,7 +1550,7 @@ exports.deserializeAws_json1_1DescribeProjectVersionsCommand = deserializeAws_js
|
|
|
1550
1550
|
const deserializeAws_json1_1DescribeProjectVersionsCommandError = async (output, context) => {
|
|
1551
1551
|
const parsedOutput = {
|
|
1552
1552
|
...output,
|
|
1553
|
-
body: await
|
|
1553
|
+
body: await parseErrorBody(output.body, context),
|
|
1554
1554
|
};
|
|
1555
1555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
1556
|
switch (errorCode) {
|
|
@@ -1602,7 +1602,7 @@ exports.deserializeAws_json1_1DescribeStreamProcessorCommand = deserializeAws_js
|
|
|
1602
1602
|
const deserializeAws_json1_1DescribeStreamProcessorCommandError = async (output, context) => {
|
|
1603
1603
|
const parsedOutput = {
|
|
1604
1604
|
...output,
|
|
1605
|
-
body: await
|
|
1605
|
+
body: await parseErrorBody(output.body, context),
|
|
1606
1606
|
};
|
|
1607
1607
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1608
1608
|
switch (errorCode) {
|
|
@@ -1651,7 +1651,7 @@ exports.deserializeAws_json1_1DetectCustomLabelsCommand = deserializeAws_json1_1
|
|
|
1651
1651
|
const deserializeAws_json1_1DetectCustomLabelsCommandError = async (output, context) => {
|
|
1652
1652
|
const parsedOutput = {
|
|
1653
1653
|
...output,
|
|
1654
|
-
body: await
|
|
1654
|
+
body: await parseErrorBody(output.body, context),
|
|
1655
1655
|
};
|
|
1656
1656
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1657
1657
|
switch (errorCode) {
|
|
@@ -1715,7 +1715,7 @@ exports.deserializeAws_json1_1DetectFacesCommand = deserializeAws_json1_1DetectF
|
|
|
1715
1715
|
const deserializeAws_json1_1DetectFacesCommandError = async (output, context) => {
|
|
1716
1716
|
const parsedOutput = {
|
|
1717
1717
|
...output,
|
|
1718
|
-
body: await
|
|
1718
|
+
body: await parseErrorBody(output.body, context),
|
|
1719
1719
|
};
|
|
1720
1720
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1721
1721
|
switch (errorCode) {
|
|
@@ -1770,7 +1770,7 @@ exports.deserializeAws_json1_1DetectLabelsCommand = deserializeAws_json1_1Detect
|
|
|
1770
1770
|
const deserializeAws_json1_1DetectLabelsCommandError = async (output, context) => {
|
|
1771
1771
|
const parsedOutput = {
|
|
1772
1772
|
...output,
|
|
1773
|
-
body: await
|
|
1773
|
+
body: await parseErrorBody(output.body, context),
|
|
1774
1774
|
};
|
|
1775
1775
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1776
1776
|
switch (errorCode) {
|
|
@@ -1825,7 +1825,7 @@ exports.deserializeAws_json1_1DetectModerationLabelsCommand = deserializeAws_jso
|
|
|
1825
1825
|
const deserializeAws_json1_1DetectModerationLabelsCommandError = async (output, context) => {
|
|
1826
1826
|
const parsedOutput = {
|
|
1827
1827
|
...output,
|
|
1828
|
-
body: await
|
|
1828
|
+
body: await parseErrorBody(output.body, context),
|
|
1829
1829
|
};
|
|
1830
1830
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1831
1831
|
switch (errorCode) {
|
|
@@ -1883,7 +1883,7 @@ exports.deserializeAws_json1_1DetectProtectiveEquipmentCommand = deserializeAws_
|
|
|
1883
1883
|
const deserializeAws_json1_1DetectProtectiveEquipmentCommandError = async (output, context) => {
|
|
1884
1884
|
const parsedOutput = {
|
|
1885
1885
|
...output,
|
|
1886
|
-
body: await
|
|
1886
|
+
body: await parseErrorBody(output.body, context),
|
|
1887
1887
|
};
|
|
1888
1888
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
1889
|
switch (errorCode) {
|
|
@@ -1938,7 +1938,7 @@ exports.deserializeAws_json1_1DetectTextCommand = deserializeAws_json1_1DetectTe
|
|
|
1938
1938
|
const deserializeAws_json1_1DetectTextCommandError = async (output, context) => {
|
|
1939
1939
|
const parsedOutput = {
|
|
1940
1940
|
...output,
|
|
1941
|
-
body: await
|
|
1941
|
+
body: await parseErrorBody(output.body, context),
|
|
1942
1942
|
};
|
|
1943
1943
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1944
1944
|
switch (errorCode) {
|
|
@@ -1993,7 +1993,7 @@ exports.deserializeAws_json1_1DistributeDatasetEntriesCommand = deserializeAws_j
|
|
|
1993
1993
|
const deserializeAws_json1_1DistributeDatasetEntriesCommandError = async (output, context) => {
|
|
1994
1994
|
const parsedOutput = {
|
|
1995
1995
|
...output,
|
|
1996
|
-
body: await
|
|
1996
|
+
body: await parseErrorBody(output.body, context),
|
|
1997
1997
|
};
|
|
1998
1998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1999
1999
|
switch (errorCode) {
|
|
@@ -2045,7 +2045,7 @@ exports.deserializeAws_json1_1GetCelebrityInfoCommand = deserializeAws_json1_1Ge
|
|
|
2045
2045
|
const deserializeAws_json1_1GetCelebrityInfoCommandError = async (output, context) => {
|
|
2046
2046
|
const parsedOutput = {
|
|
2047
2047
|
...output,
|
|
2048
|
-
body: await
|
|
2048
|
+
body: await parseErrorBody(output.body, context),
|
|
2049
2049
|
};
|
|
2050
2050
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2051
2051
|
switch (errorCode) {
|
|
@@ -2094,7 +2094,7 @@ exports.deserializeAws_json1_1GetCelebrityRecognitionCommand = deserializeAws_js
|
|
|
2094
2094
|
const deserializeAws_json1_1GetCelebrityRecognitionCommandError = async (output, context) => {
|
|
2095
2095
|
const parsedOutput = {
|
|
2096
2096
|
...output,
|
|
2097
|
-
body: await
|
|
2097
|
+
body: await parseErrorBody(output.body, context),
|
|
2098
2098
|
};
|
|
2099
2099
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2100
2100
|
switch (errorCode) {
|
|
@@ -2146,7 +2146,7 @@ exports.deserializeAws_json1_1GetContentModerationCommand = deserializeAws_json1
|
|
|
2146
2146
|
const deserializeAws_json1_1GetContentModerationCommandError = async (output, context) => {
|
|
2147
2147
|
const parsedOutput = {
|
|
2148
2148
|
...output,
|
|
2149
|
-
body: await
|
|
2149
|
+
body: await parseErrorBody(output.body, context),
|
|
2150
2150
|
};
|
|
2151
2151
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2152
2152
|
switch (errorCode) {
|
|
@@ -2198,7 +2198,7 @@ exports.deserializeAws_json1_1GetFaceDetectionCommand = deserializeAws_json1_1Ge
|
|
|
2198
2198
|
const deserializeAws_json1_1GetFaceDetectionCommandError = async (output, context) => {
|
|
2199
2199
|
const parsedOutput = {
|
|
2200
2200
|
...output,
|
|
2201
|
-
body: await
|
|
2201
|
+
body: await parseErrorBody(output.body, context),
|
|
2202
2202
|
};
|
|
2203
2203
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2204
2204
|
switch (errorCode) {
|
|
@@ -2250,7 +2250,7 @@ exports.deserializeAws_json1_1GetFaceSearchCommand = deserializeAws_json1_1GetFa
|
|
|
2250
2250
|
const deserializeAws_json1_1GetFaceSearchCommandError = async (output, context) => {
|
|
2251
2251
|
const parsedOutput = {
|
|
2252
2252
|
...output,
|
|
2253
|
-
body: await
|
|
2253
|
+
body: await parseErrorBody(output.body, context),
|
|
2254
2254
|
};
|
|
2255
2255
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2256
2256
|
switch (errorCode) {
|
|
@@ -2302,7 +2302,7 @@ exports.deserializeAws_json1_1GetLabelDetectionCommand = deserializeAws_json1_1G
|
|
|
2302
2302
|
const deserializeAws_json1_1GetLabelDetectionCommandError = async (output, context) => {
|
|
2303
2303
|
const parsedOutput = {
|
|
2304
2304
|
...output,
|
|
2305
|
-
body: await
|
|
2305
|
+
body: await parseErrorBody(output.body, context),
|
|
2306
2306
|
};
|
|
2307
2307
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2308
2308
|
switch (errorCode) {
|
|
@@ -2354,7 +2354,7 @@ exports.deserializeAws_json1_1GetPersonTrackingCommand = deserializeAws_json1_1G
|
|
|
2354
2354
|
const deserializeAws_json1_1GetPersonTrackingCommandError = async (output, context) => {
|
|
2355
2355
|
const parsedOutput = {
|
|
2356
2356
|
...output,
|
|
2357
|
-
body: await
|
|
2357
|
+
body: await parseErrorBody(output.body, context),
|
|
2358
2358
|
};
|
|
2359
2359
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2360
2360
|
switch (errorCode) {
|
|
@@ -2406,7 +2406,7 @@ exports.deserializeAws_json1_1GetSegmentDetectionCommand = deserializeAws_json1_
|
|
|
2406
2406
|
const deserializeAws_json1_1GetSegmentDetectionCommandError = async (output, context) => {
|
|
2407
2407
|
const parsedOutput = {
|
|
2408
2408
|
...output,
|
|
2409
|
-
body: await
|
|
2409
|
+
body: await parseErrorBody(output.body, context),
|
|
2410
2410
|
};
|
|
2411
2411
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2412
2412
|
switch (errorCode) {
|
|
@@ -2458,7 +2458,7 @@ exports.deserializeAws_json1_1GetTextDetectionCommand = deserializeAws_json1_1Ge
|
|
|
2458
2458
|
const deserializeAws_json1_1GetTextDetectionCommandError = async (output, context) => {
|
|
2459
2459
|
const parsedOutput = {
|
|
2460
2460
|
...output,
|
|
2461
|
-
body: await
|
|
2461
|
+
body: await parseErrorBody(output.body, context),
|
|
2462
2462
|
};
|
|
2463
2463
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2464
2464
|
switch (errorCode) {
|
|
@@ -2510,7 +2510,7 @@ exports.deserializeAws_json1_1IndexFacesCommand = deserializeAws_json1_1IndexFac
|
|
|
2510
2510
|
const deserializeAws_json1_1IndexFacesCommandError = async (output, context) => {
|
|
2511
2511
|
const parsedOutput = {
|
|
2512
2512
|
...output,
|
|
2513
|
-
body: await
|
|
2513
|
+
body: await parseErrorBody(output.body, context),
|
|
2514
2514
|
};
|
|
2515
2515
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
2516
|
switch (errorCode) {
|
|
@@ -2571,7 +2571,7 @@ exports.deserializeAws_json1_1ListCollectionsCommand = deserializeAws_json1_1Lis
|
|
|
2571
2571
|
const deserializeAws_json1_1ListCollectionsCommandError = async (output, context) => {
|
|
2572
2572
|
const parsedOutput = {
|
|
2573
2573
|
...output,
|
|
2574
|
-
body: await
|
|
2574
|
+
body: await parseErrorBody(output.body, context),
|
|
2575
2575
|
};
|
|
2576
2576
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2577
2577
|
switch (errorCode) {
|
|
@@ -2623,7 +2623,7 @@ exports.deserializeAws_json1_1ListDatasetEntriesCommand = deserializeAws_json1_1
|
|
|
2623
2623
|
const deserializeAws_json1_1ListDatasetEntriesCommandError = async (output, context) => {
|
|
2624
2624
|
const parsedOutput = {
|
|
2625
2625
|
...output,
|
|
2626
|
-
body: await
|
|
2626
|
+
body: await parseErrorBody(output.body, context),
|
|
2627
2627
|
};
|
|
2628
2628
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2629
2629
|
switch (errorCode) {
|
|
@@ -2681,7 +2681,7 @@ exports.deserializeAws_json1_1ListDatasetLabelsCommand = deserializeAws_json1_1L
|
|
|
2681
2681
|
const deserializeAws_json1_1ListDatasetLabelsCommandError = async (output, context) => {
|
|
2682
2682
|
const parsedOutput = {
|
|
2683
2683
|
...output,
|
|
2684
|
-
body: await
|
|
2684
|
+
body: await parseErrorBody(output.body, context),
|
|
2685
2685
|
};
|
|
2686
2686
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2687
2687
|
switch (errorCode) {
|
|
@@ -2739,7 +2739,7 @@ exports.deserializeAws_json1_1ListFacesCommand = deserializeAws_json1_1ListFaces
|
|
|
2739
2739
|
const deserializeAws_json1_1ListFacesCommandError = async (output, context) => {
|
|
2740
2740
|
const parsedOutput = {
|
|
2741
2741
|
...output,
|
|
2742
|
-
body: await
|
|
2742
|
+
body: await parseErrorBody(output.body, context),
|
|
2743
2743
|
};
|
|
2744
2744
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2745
2745
|
switch (errorCode) {
|
|
@@ -2791,7 +2791,7 @@ exports.deserializeAws_json1_1ListProjectPoliciesCommand = deserializeAws_json1_
|
|
|
2791
2791
|
const deserializeAws_json1_1ListProjectPoliciesCommandError = async (output, context) => {
|
|
2792
2792
|
const parsedOutput = {
|
|
2793
2793
|
...output,
|
|
2794
|
-
body: await
|
|
2794
|
+
body: await parseErrorBody(output.body, context),
|
|
2795
2795
|
};
|
|
2796
2796
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2797
2797
|
switch (errorCode) {
|
|
@@ -2843,7 +2843,7 @@ exports.deserializeAws_json1_1ListStreamProcessorsCommand = deserializeAws_json1
|
|
|
2843
2843
|
const deserializeAws_json1_1ListStreamProcessorsCommandError = async (output, context) => {
|
|
2844
2844
|
const parsedOutput = {
|
|
2845
2845
|
...output,
|
|
2846
|
-
body: await
|
|
2846
|
+
body: await parseErrorBody(output.body, context),
|
|
2847
2847
|
};
|
|
2848
2848
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2849
2849
|
switch (errorCode) {
|
|
@@ -2892,7 +2892,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
2892
2892
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
2893
2893
|
const parsedOutput = {
|
|
2894
2894
|
...output,
|
|
2895
|
-
body: await
|
|
2895
|
+
body: await parseErrorBody(output.body, context),
|
|
2896
2896
|
};
|
|
2897
2897
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2898
2898
|
switch (errorCode) {
|
|
@@ -2941,7 +2941,7 @@ exports.deserializeAws_json1_1PutProjectPolicyCommand = deserializeAws_json1_1Pu
|
|
|
2941
2941
|
const deserializeAws_json1_1PutProjectPolicyCommandError = async (output, context) => {
|
|
2942
2942
|
const parsedOutput = {
|
|
2943
2943
|
...output,
|
|
2944
|
-
body: await
|
|
2944
|
+
body: await parseErrorBody(output.body, context),
|
|
2945
2945
|
};
|
|
2946
2946
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2947
2947
|
switch (errorCode) {
|
|
@@ -3005,7 +3005,7 @@ exports.deserializeAws_json1_1RecognizeCelebritiesCommand = deserializeAws_json1
|
|
|
3005
3005
|
const deserializeAws_json1_1RecognizeCelebritiesCommandError = async (output, context) => {
|
|
3006
3006
|
const parsedOutput = {
|
|
3007
3007
|
...output,
|
|
3008
|
-
body: await
|
|
3008
|
+
body: await parseErrorBody(output.body, context),
|
|
3009
3009
|
};
|
|
3010
3010
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3011
3011
|
switch (errorCode) {
|
|
@@ -3060,7 +3060,7 @@ exports.deserializeAws_json1_1SearchFacesCommand = deserializeAws_json1_1SearchF
|
|
|
3060
3060
|
const deserializeAws_json1_1SearchFacesCommandError = async (output, context) => {
|
|
3061
3061
|
const parsedOutput = {
|
|
3062
3062
|
...output,
|
|
3063
|
-
body: await
|
|
3063
|
+
body: await parseErrorBody(output.body, context),
|
|
3064
3064
|
};
|
|
3065
3065
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3066
3066
|
switch (errorCode) {
|
|
@@ -3109,7 +3109,7 @@ exports.deserializeAws_json1_1SearchFacesByImageCommand = deserializeAws_json1_1
|
|
|
3109
3109
|
const deserializeAws_json1_1SearchFacesByImageCommandError = async (output, context) => {
|
|
3110
3110
|
const parsedOutput = {
|
|
3111
3111
|
...output,
|
|
3112
|
-
body: await
|
|
3112
|
+
body: await parseErrorBody(output.body, context),
|
|
3113
3113
|
};
|
|
3114
3114
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3115
3115
|
switch (errorCode) {
|
|
@@ -3167,7 +3167,7 @@ exports.deserializeAws_json1_1StartCelebrityRecognitionCommand = deserializeAws_
|
|
|
3167
3167
|
const deserializeAws_json1_1StartCelebrityRecognitionCommandError = async (output, context) => {
|
|
3168
3168
|
const parsedOutput = {
|
|
3169
3169
|
...output,
|
|
3170
|
-
body: await
|
|
3170
|
+
body: await parseErrorBody(output.body, context),
|
|
3171
3171
|
};
|
|
3172
3172
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3173
3173
|
switch (errorCode) {
|
|
@@ -3225,7 +3225,7 @@ exports.deserializeAws_json1_1StartContentModerationCommand = deserializeAws_jso
|
|
|
3225
3225
|
const deserializeAws_json1_1StartContentModerationCommandError = async (output, context) => {
|
|
3226
3226
|
const parsedOutput = {
|
|
3227
3227
|
...output,
|
|
3228
|
-
body: await
|
|
3228
|
+
body: await parseErrorBody(output.body, context),
|
|
3229
3229
|
};
|
|
3230
3230
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3231
3231
|
switch (errorCode) {
|
|
@@ -3283,7 +3283,7 @@ exports.deserializeAws_json1_1StartFaceDetectionCommand = deserializeAws_json1_1
|
|
|
3283
3283
|
const deserializeAws_json1_1StartFaceDetectionCommandError = async (output, context) => {
|
|
3284
3284
|
const parsedOutput = {
|
|
3285
3285
|
...output,
|
|
3286
|
-
body: await
|
|
3286
|
+
body: await parseErrorBody(output.body, context),
|
|
3287
3287
|
};
|
|
3288
3288
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3289
3289
|
switch (errorCode) {
|
|
@@ -3341,7 +3341,7 @@ exports.deserializeAws_json1_1StartFaceSearchCommand = deserializeAws_json1_1Sta
|
|
|
3341
3341
|
const deserializeAws_json1_1StartFaceSearchCommandError = async (output, context) => {
|
|
3342
3342
|
const parsedOutput = {
|
|
3343
3343
|
...output,
|
|
3344
|
-
body: await
|
|
3344
|
+
body: await parseErrorBody(output.body, context),
|
|
3345
3345
|
};
|
|
3346
3346
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3347
3347
|
switch (errorCode) {
|
|
@@ -3402,7 +3402,7 @@ exports.deserializeAws_json1_1StartLabelDetectionCommand = deserializeAws_json1_
|
|
|
3402
3402
|
const deserializeAws_json1_1StartLabelDetectionCommandError = async (output, context) => {
|
|
3403
3403
|
const parsedOutput = {
|
|
3404
3404
|
...output,
|
|
3405
|
-
body: await
|
|
3405
|
+
body: await parseErrorBody(output.body, context),
|
|
3406
3406
|
};
|
|
3407
3407
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3408
3408
|
switch (errorCode) {
|
|
@@ -3460,7 +3460,7 @@ exports.deserializeAws_json1_1StartPersonTrackingCommand = deserializeAws_json1_
|
|
|
3460
3460
|
const deserializeAws_json1_1StartPersonTrackingCommandError = async (output, context) => {
|
|
3461
3461
|
const parsedOutput = {
|
|
3462
3462
|
...output,
|
|
3463
|
-
body: await
|
|
3463
|
+
body: await parseErrorBody(output.body, context),
|
|
3464
3464
|
};
|
|
3465
3465
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3466
3466
|
switch (errorCode) {
|
|
@@ -3518,7 +3518,7 @@ exports.deserializeAws_json1_1StartProjectVersionCommand = deserializeAws_json1_
|
|
|
3518
3518
|
const deserializeAws_json1_1StartProjectVersionCommandError = async (output, context) => {
|
|
3519
3519
|
const parsedOutput = {
|
|
3520
3520
|
...output,
|
|
3521
|
-
body: await
|
|
3521
|
+
body: await parseErrorBody(output.body, context),
|
|
3522
3522
|
};
|
|
3523
3523
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3524
3524
|
switch (errorCode) {
|
|
@@ -3573,7 +3573,7 @@ exports.deserializeAws_json1_1StartSegmentDetectionCommand = deserializeAws_json
|
|
|
3573
3573
|
const deserializeAws_json1_1StartSegmentDetectionCommandError = async (output, context) => {
|
|
3574
3574
|
const parsedOutput = {
|
|
3575
3575
|
...output,
|
|
3576
|
-
body: await
|
|
3576
|
+
body: await parseErrorBody(output.body, context),
|
|
3577
3577
|
};
|
|
3578
3578
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3579
3579
|
switch (errorCode) {
|
|
@@ -3631,7 +3631,7 @@ exports.deserializeAws_json1_1StartStreamProcessorCommand = deserializeAws_json1
|
|
|
3631
3631
|
const deserializeAws_json1_1StartStreamProcessorCommandError = async (output, context) => {
|
|
3632
3632
|
const parsedOutput = {
|
|
3633
3633
|
...output,
|
|
3634
|
-
body: await
|
|
3634
|
+
body: await parseErrorBody(output.body, context),
|
|
3635
3635
|
};
|
|
3636
3636
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3637
3637
|
switch (errorCode) {
|
|
@@ -3683,7 +3683,7 @@ exports.deserializeAws_json1_1StartTextDetectionCommand = deserializeAws_json1_1
|
|
|
3683
3683
|
const deserializeAws_json1_1StartTextDetectionCommandError = async (output, context) => {
|
|
3684
3684
|
const parsedOutput = {
|
|
3685
3685
|
...output,
|
|
3686
|
-
body: await
|
|
3686
|
+
body: await parseErrorBody(output.body, context),
|
|
3687
3687
|
};
|
|
3688
3688
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3689
3689
|
switch (errorCode) {
|
|
@@ -3741,7 +3741,7 @@ exports.deserializeAws_json1_1StopProjectVersionCommand = deserializeAws_json1_1
|
|
|
3741
3741
|
const deserializeAws_json1_1StopProjectVersionCommandError = async (output, context) => {
|
|
3742
3742
|
const parsedOutput = {
|
|
3743
3743
|
...output,
|
|
3744
|
-
body: await
|
|
3744
|
+
body: await parseErrorBody(output.body, context),
|
|
3745
3745
|
};
|
|
3746
3746
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3747
3747
|
switch (errorCode) {
|
|
@@ -3793,7 +3793,7 @@ exports.deserializeAws_json1_1StopStreamProcessorCommand = deserializeAws_json1_
|
|
|
3793
3793
|
const deserializeAws_json1_1StopStreamProcessorCommandError = async (output, context) => {
|
|
3794
3794
|
const parsedOutput = {
|
|
3795
3795
|
...output,
|
|
3796
|
-
body: await
|
|
3796
|
+
body: await parseErrorBody(output.body, context),
|
|
3797
3797
|
};
|
|
3798
3798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3799
3799
|
switch (errorCode) {
|
|
@@ -3845,7 +3845,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
3845
3845
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
3846
3846
|
const parsedOutput = {
|
|
3847
3847
|
...output,
|
|
3848
|
-
body: await
|
|
3848
|
+
body: await parseErrorBody(output.body, context),
|
|
3849
3849
|
};
|
|
3850
3850
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3851
3851
|
switch (errorCode) {
|
|
@@ -3897,7 +3897,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
3897
3897
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
3898
3898
|
const parsedOutput = {
|
|
3899
3899
|
...output,
|
|
3900
|
-
body: await
|
|
3900
|
+
body: await parseErrorBody(output.body, context),
|
|
3901
3901
|
};
|
|
3902
3902
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3903
3903
|
switch (errorCode) {
|
|
@@ -3946,7 +3946,7 @@ exports.deserializeAws_json1_1UpdateDatasetEntriesCommand = deserializeAws_json1
|
|
|
3946
3946
|
const deserializeAws_json1_1UpdateDatasetEntriesCommandError = async (output, context) => {
|
|
3947
3947
|
const parsedOutput = {
|
|
3948
3948
|
...output,
|
|
3949
|
-
body: await
|
|
3949
|
+
body: await parseErrorBody(output.body, context),
|
|
3950
3950
|
};
|
|
3951
3951
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3952
3952
|
switch (errorCode) {
|
|
@@ -4001,7 +4001,7 @@ exports.deserializeAws_json1_1UpdateStreamProcessorCommand = deserializeAws_json
|
|
|
4001
4001
|
const deserializeAws_json1_1UpdateStreamProcessorCommandError = async (output, context) => {
|
|
4002
4002
|
const parsedOutput = {
|
|
4003
4003
|
...output,
|
|
4004
|
-
body: await
|
|
4004
|
+
body: await parseErrorBody(output.body, context),
|
|
4005
4005
|
};
|
|
4006
4006
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4007
4007
|
switch (errorCode) {
|
|
@@ -6895,6 +6895,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
6895
6895
|
}
|
|
6896
6896
|
return {};
|
|
6897
6897
|
});
|
|
6898
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
6899
|
+
var _a;
|
|
6900
|
+
const value = await parseBody(errorBody, context);
|
|
6901
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
6902
|
+
return value;
|
|
6903
|
+
};
|
|
6898
6904
|
const loadRestJsonErrorCode = (output, data) => {
|
|
6899
6905
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
6900
6906
|
const sanitizeErrorCode = (rawValue) => {
|