@aws-sdk/client-lookoutequipment 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_0.js +39 -33
- package/dist-es/LookoutEquipment.js +134 -141
- package/dist-es/LookoutEquipmentClient.js +22 -28
- package/dist-es/commands/CreateDatasetCommand.js +21 -28
- package/dist-es/commands/CreateInferenceSchedulerCommand.js +21 -28
- package/dist-es/commands/CreateLabelCommand.js +21 -28
- package/dist-es/commands/CreateLabelGroupCommand.js +21 -28
- package/dist-es/commands/CreateModelCommand.js +21 -28
- package/dist-es/commands/DeleteDatasetCommand.js +22 -29
- package/dist-es/commands/DeleteInferenceSchedulerCommand.js +22 -29
- package/dist-es/commands/DeleteLabelCommand.js +22 -29
- package/dist-es/commands/DeleteLabelGroupCommand.js +22 -29
- package/dist-es/commands/DeleteModelCommand.js +22 -29
- package/dist-es/commands/DescribeDataIngestionJobCommand.js +21 -28
- package/dist-es/commands/DescribeDatasetCommand.js +21 -28
- package/dist-es/commands/DescribeInferenceSchedulerCommand.js +21 -28
- package/dist-es/commands/DescribeLabelCommand.js +21 -28
- package/dist-es/commands/DescribeLabelGroupCommand.js +21 -28
- package/dist-es/commands/DescribeModelCommand.js +21 -28
- package/dist-es/commands/ListDataIngestionJobsCommand.js +21 -28
- package/dist-es/commands/ListDatasetsCommand.js +21 -28
- package/dist-es/commands/ListInferenceEventsCommand.js +21 -28
- package/dist-es/commands/ListInferenceExecutionsCommand.js +21 -28
- package/dist-es/commands/ListInferenceSchedulersCommand.js +21 -28
- package/dist-es/commands/ListLabelGroupsCommand.js +21 -28
- package/dist-es/commands/ListLabelsCommand.js +21 -28
- package/dist-es/commands/ListModelsCommand.js +21 -28
- package/dist-es/commands/ListSensorStatisticsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/StartDataIngestionJobCommand.js +21 -28
- package/dist-es/commands/StartInferenceSchedulerCommand.js +21 -28
- package/dist-es/commands/StopInferenceSchedulerCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateInferenceSchedulerCommand.js +22 -29
- package/dist-es/commands/UpdateLabelGroupCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/LookoutEquipmentServiceException.js +5 -10
- package/dist-es/models/models_0.js +369 -180
- package/dist-es/pagination/ListDataIngestionJobsPaginator.js +25 -68
- package/dist-es/pagination/ListDatasetsPaginator.js +25 -68
- package/dist-es/pagination/ListInferenceEventsPaginator.js +25 -68
- package/dist-es/pagination/ListInferenceExecutionsPaginator.js +25 -68
- package/dist-es/pagination/ListInferenceSchedulersPaginator.js +25 -68
- package/dist-es/pagination/ListLabelGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListLabelsPaginator.js +25 -68
- package/dist-es/pagination/ListModelsPaginator.js +25 -68
- package/dist-es/pagination/ListSensorStatisticsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_0.js +2351 -3009
- 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/package.json +33 -33
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-lookoutequipment
|
|
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-lookoutequipment
|
|
@@ -354,7 +354,7 @@ exports.deserializeAws_json1_0CreateDatasetCommand = deserializeAws_json1_0Creat
|
|
|
354
354
|
const deserializeAws_json1_0CreateDatasetCommandError = async (output, context) => {
|
|
355
355
|
const parsedOutput = {
|
|
356
356
|
...output,
|
|
357
|
-
body: await
|
|
357
|
+
body: await parseErrorBody(output.body, context),
|
|
358
358
|
};
|
|
359
359
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
360
360
|
switch (errorCode) {
|
|
@@ -403,7 +403,7 @@ exports.deserializeAws_json1_0CreateInferenceSchedulerCommand = deserializeAws_j
|
|
|
403
403
|
const deserializeAws_json1_0CreateInferenceSchedulerCommandError = async (output, context) => {
|
|
404
404
|
const parsedOutput = {
|
|
405
405
|
...output,
|
|
406
|
-
body: await
|
|
406
|
+
body: await parseErrorBody(output.body, context),
|
|
407
407
|
};
|
|
408
408
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
409
409
|
switch (errorCode) {
|
|
@@ -455,7 +455,7 @@ exports.deserializeAws_json1_0CreateLabelCommand = deserializeAws_json1_0CreateL
|
|
|
455
455
|
const deserializeAws_json1_0CreateLabelCommandError = async (output, context) => {
|
|
456
456
|
const parsedOutput = {
|
|
457
457
|
...output,
|
|
458
|
-
body: await
|
|
458
|
+
body: await parseErrorBody(output.body, context),
|
|
459
459
|
};
|
|
460
460
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
461
461
|
switch (errorCode) {
|
|
@@ -507,7 +507,7 @@ exports.deserializeAws_json1_0CreateLabelGroupCommand = deserializeAws_json1_0Cr
|
|
|
507
507
|
const deserializeAws_json1_0CreateLabelGroupCommandError = async (output, context) => {
|
|
508
508
|
const parsedOutput = {
|
|
509
509
|
...output,
|
|
510
|
-
body: await
|
|
510
|
+
body: await parseErrorBody(output.body, context),
|
|
511
511
|
};
|
|
512
512
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
513
513
|
switch (errorCode) {
|
|
@@ -556,7 +556,7 @@ exports.deserializeAws_json1_0CreateModelCommand = deserializeAws_json1_0CreateM
|
|
|
556
556
|
const deserializeAws_json1_0CreateModelCommandError = async (output, context) => {
|
|
557
557
|
const parsedOutput = {
|
|
558
558
|
...output,
|
|
559
|
-
body: await
|
|
559
|
+
body: await parseErrorBody(output.body, context),
|
|
560
560
|
};
|
|
561
561
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
562
562
|
switch (errorCode) {
|
|
@@ -605,7 +605,7 @@ exports.deserializeAws_json1_0DeleteDatasetCommand = deserializeAws_json1_0Delet
|
|
|
605
605
|
const deserializeAws_json1_0DeleteDatasetCommandError = async (output, context) => {
|
|
606
606
|
const parsedOutput = {
|
|
607
607
|
...output,
|
|
608
|
-
body: await
|
|
608
|
+
body: await parseErrorBody(output.body, context),
|
|
609
609
|
};
|
|
610
610
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
611
611
|
switch (errorCode) {
|
|
@@ -648,7 +648,7 @@ exports.deserializeAws_json1_0DeleteInferenceSchedulerCommand = deserializeAws_j
|
|
|
648
648
|
const deserializeAws_json1_0DeleteInferenceSchedulerCommandError = async (output, context) => {
|
|
649
649
|
const parsedOutput = {
|
|
650
650
|
...output,
|
|
651
|
-
body: await
|
|
651
|
+
body: await parseErrorBody(output.body, context),
|
|
652
652
|
};
|
|
653
653
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
654
654
|
switch (errorCode) {
|
|
@@ -694,7 +694,7 @@ exports.deserializeAws_json1_0DeleteLabelCommand = deserializeAws_json1_0DeleteL
|
|
|
694
694
|
const deserializeAws_json1_0DeleteLabelCommandError = async (output, context) => {
|
|
695
695
|
const parsedOutput = {
|
|
696
696
|
...output,
|
|
697
|
-
body: await
|
|
697
|
+
body: await parseErrorBody(output.body, context),
|
|
698
698
|
};
|
|
699
699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
700
|
switch (errorCode) {
|
|
@@ -737,7 +737,7 @@ exports.deserializeAws_json1_0DeleteLabelGroupCommand = deserializeAws_json1_0De
|
|
|
737
737
|
const deserializeAws_json1_0DeleteLabelGroupCommandError = async (output, context) => {
|
|
738
738
|
const parsedOutput = {
|
|
739
739
|
...output,
|
|
740
|
-
body: await
|
|
740
|
+
body: await parseErrorBody(output.body, context),
|
|
741
741
|
};
|
|
742
742
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
743
|
switch (errorCode) {
|
|
@@ -780,7 +780,7 @@ exports.deserializeAws_json1_0DeleteModelCommand = deserializeAws_json1_0DeleteM
|
|
|
780
780
|
const deserializeAws_json1_0DeleteModelCommandError = async (output, context) => {
|
|
781
781
|
const parsedOutput = {
|
|
782
782
|
...output,
|
|
783
|
-
body: await
|
|
783
|
+
body: await parseErrorBody(output.body, context),
|
|
784
784
|
};
|
|
785
785
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
786
786
|
switch (errorCode) {
|
|
@@ -826,7 +826,7 @@ exports.deserializeAws_json1_0DescribeDataIngestionJobCommand = deserializeAws_j
|
|
|
826
826
|
const deserializeAws_json1_0DescribeDataIngestionJobCommandError = async (output, context) => {
|
|
827
827
|
const parsedOutput = {
|
|
828
828
|
...output,
|
|
829
|
-
body: await
|
|
829
|
+
body: await parseErrorBody(output.body, context),
|
|
830
830
|
};
|
|
831
831
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
832
832
|
switch (errorCode) {
|
|
@@ -872,7 +872,7 @@ exports.deserializeAws_json1_0DescribeDatasetCommand = deserializeAws_json1_0Des
|
|
|
872
872
|
const deserializeAws_json1_0DescribeDatasetCommandError = async (output, context) => {
|
|
873
873
|
const parsedOutput = {
|
|
874
874
|
...output,
|
|
875
|
-
body: await
|
|
875
|
+
body: await parseErrorBody(output.body, context),
|
|
876
876
|
};
|
|
877
877
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
878
|
switch (errorCode) {
|
|
@@ -918,7 +918,7 @@ exports.deserializeAws_json1_0DescribeInferenceSchedulerCommand = deserializeAws
|
|
|
918
918
|
const deserializeAws_json1_0DescribeInferenceSchedulerCommandError = async (output, context) => {
|
|
919
919
|
const parsedOutput = {
|
|
920
920
|
...output,
|
|
921
|
-
body: await
|
|
921
|
+
body: await parseErrorBody(output.body, context),
|
|
922
922
|
};
|
|
923
923
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
924
|
switch (errorCode) {
|
|
@@ -964,7 +964,7 @@ exports.deserializeAws_json1_0DescribeLabelCommand = deserializeAws_json1_0Descr
|
|
|
964
964
|
const deserializeAws_json1_0DescribeLabelCommandError = async (output, context) => {
|
|
965
965
|
const parsedOutput = {
|
|
966
966
|
...output,
|
|
967
|
-
body: await
|
|
967
|
+
body: await parseErrorBody(output.body, context),
|
|
968
968
|
};
|
|
969
969
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
970
970
|
switch (errorCode) {
|
|
@@ -1010,7 +1010,7 @@ exports.deserializeAws_json1_0DescribeLabelGroupCommand = deserializeAws_json1_0
|
|
|
1010
1010
|
const deserializeAws_json1_0DescribeLabelGroupCommandError = async (output, context) => {
|
|
1011
1011
|
const parsedOutput = {
|
|
1012
1012
|
...output,
|
|
1013
|
-
body: await
|
|
1013
|
+
body: await parseErrorBody(output.body, context),
|
|
1014
1014
|
};
|
|
1015
1015
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1016
1016
|
switch (errorCode) {
|
|
@@ -1056,7 +1056,7 @@ exports.deserializeAws_json1_0DescribeModelCommand = deserializeAws_json1_0Descr
|
|
|
1056
1056
|
const deserializeAws_json1_0DescribeModelCommandError = async (output, context) => {
|
|
1057
1057
|
const parsedOutput = {
|
|
1058
1058
|
...output,
|
|
1059
|
-
body: await
|
|
1059
|
+
body: await parseErrorBody(output.body, context),
|
|
1060
1060
|
};
|
|
1061
1061
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
1062
|
switch (errorCode) {
|
|
@@ -1102,7 +1102,7 @@ exports.deserializeAws_json1_0ListDataIngestionJobsCommand = deserializeAws_json
|
|
|
1102
1102
|
const deserializeAws_json1_0ListDataIngestionJobsCommandError = async (output, context) => {
|
|
1103
1103
|
const parsedOutput = {
|
|
1104
1104
|
...output,
|
|
1105
|
-
body: await
|
|
1105
|
+
body: await parseErrorBody(output.body, context),
|
|
1106
1106
|
};
|
|
1107
1107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
1108
|
switch (errorCode) {
|
|
@@ -1145,7 +1145,7 @@ exports.deserializeAws_json1_0ListDatasetsCommand = deserializeAws_json1_0ListDa
|
|
|
1145
1145
|
const deserializeAws_json1_0ListDatasetsCommandError = async (output, context) => {
|
|
1146
1146
|
const parsedOutput = {
|
|
1147
1147
|
...output,
|
|
1148
|
-
body: await
|
|
1148
|
+
body: await parseErrorBody(output.body, context),
|
|
1149
1149
|
};
|
|
1150
1150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
1151
|
switch (errorCode) {
|
|
@@ -1188,7 +1188,7 @@ exports.deserializeAws_json1_0ListInferenceEventsCommand = deserializeAws_json1_
|
|
|
1188
1188
|
const deserializeAws_json1_0ListInferenceEventsCommandError = async (output, context) => {
|
|
1189
1189
|
const parsedOutput = {
|
|
1190
1190
|
...output,
|
|
1191
|
-
body: await
|
|
1191
|
+
body: await parseErrorBody(output.body, context),
|
|
1192
1192
|
};
|
|
1193
1193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
1194
|
switch (errorCode) {
|
|
@@ -1234,7 +1234,7 @@ exports.deserializeAws_json1_0ListInferenceExecutionsCommand = deserializeAws_js
|
|
|
1234
1234
|
const deserializeAws_json1_0ListInferenceExecutionsCommandError = async (output, context) => {
|
|
1235
1235
|
const parsedOutput = {
|
|
1236
1236
|
...output,
|
|
1237
|
-
body: await
|
|
1237
|
+
body: await parseErrorBody(output.body, context),
|
|
1238
1238
|
};
|
|
1239
1239
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
1240
|
switch (errorCode) {
|
|
@@ -1280,7 +1280,7 @@ exports.deserializeAws_json1_0ListInferenceSchedulersCommand = deserializeAws_js
|
|
|
1280
1280
|
const deserializeAws_json1_0ListInferenceSchedulersCommandError = async (output, context) => {
|
|
1281
1281
|
const parsedOutput = {
|
|
1282
1282
|
...output,
|
|
1283
|
-
body: await
|
|
1283
|
+
body: await parseErrorBody(output.body, context),
|
|
1284
1284
|
};
|
|
1285
1285
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
1286
|
switch (errorCode) {
|
|
@@ -1323,7 +1323,7 @@ exports.deserializeAws_json1_0ListLabelGroupsCommand = deserializeAws_json1_0Lis
|
|
|
1323
1323
|
const deserializeAws_json1_0ListLabelGroupsCommandError = async (output, context) => {
|
|
1324
1324
|
const parsedOutput = {
|
|
1325
1325
|
...output,
|
|
1326
|
-
body: await
|
|
1326
|
+
body: await parseErrorBody(output.body, context),
|
|
1327
1327
|
};
|
|
1328
1328
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1329
1329
|
switch (errorCode) {
|
|
@@ -1366,7 +1366,7 @@ exports.deserializeAws_json1_0ListLabelsCommand = deserializeAws_json1_0ListLabe
|
|
|
1366
1366
|
const deserializeAws_json1_0ListLabelsCommandError = async (output, context) => {
|
|
1367
1367
|
const parsedOutput = {
|
|
1368
1368
|
...output,
|
|
1369
|
-
body: await
|
|
1369
|
+
body: await parseErrorBody(output.body, context),
|
|
1370
1370
|
};
|
|
1371
1371
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
1372
|
switch (errorCode) {
|
|
@@ -1409,7 +1409,7 @@ exports.deserializeAws_json1_0ListModelsCommand = deserializeAws_json1_0ListMode
|
|
|
1409
1409
|
const deserializeAws_json1_0ListModelsCommandError = async (output, context) => {
|
|
1410
1410
|
const parsedOutput = {
|
|
1411
1411
|
...output,
|
|
1412
|
-
body: await
|
|
1412
|
+
body: await parseErrorBody(output.body, context),
|
|
1413
1413
|
};
|
|
1414
1414
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
1415
|
switch (errorCode) {
|
|
@@ -1452,7 +1452,7 @@ exports.deserializeAws_json1_0ListSensorStatisticsCommand = deserializeAws_json1
|
|
|
1452
1452
|
const deserializeAws_json1_0ListSensorStatisticsCommandError = 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) {
|
|
@@ -1498,7 +1498,7 @@ exports.deserializeAws_json1_0ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1498
1498
|
const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
|
|
1499
1499
|
const parsedOutput = {
|
|
1500
1500
|
...output,
|
|
1501
|
-
body: await
|
|
1501
|
+
body: await parseErrorBody(output.body, context),
|
|
1502
1502
|
};
|
|
1503
1503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
1504
|
switch (errorCode) {
|
|
@@ -1544,7 +1544,7 @@ exports.deserializeAws_json1_0StartDataIngestionJobCommand = deserializeAws_json
|
|
|
1544
1544
|
const deserializeAws_json1_0StartDataIngestionJobCommandError = async (output, context) => {
|
|
1545
1545
|
const parsedOutput = {
|
|
1546
1546
|
...output,
|
|
1547
|
-
body: await
|
|
1547
|
+
body: await parseErrorBody(output.body, context),
|
|
1548
1548
|
};
|
|
1549
1549
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1550
1550
|
switch (errorCode) {
|
|
@@ -1596,7 +1596,7 @@ exports.deserializeAws_json1_0StartInferenceSchedulerCommand = deserializeAws_js
|
|
|
1596
1596
|
const deserializeAws_json1_0StartInferenceSchedulerCommandError = async (output, context) => {
|
|
1597
1597
|
const parsedOutput = {
|
|
1598
1598
|
...output,
|
|
1599
|
-
body: await
|
|
1599
|
+
body: await parseErrorBody(output.body, context),
|
|
1600
1600
|
};
|
|
1601
1601
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1602
1602
|
switch (errorCode) {
|
|
@@ -1645,7 +1645,7 @@ exports.deserializeAws_json1_0StopInferenceSchedulerCommand = deserializeAws_jso
|
|
|
1645
1645
|
const deserializeAws_json1_0StopInferenceSchedulerCommandError = async (output, context) => {
|
|
1646
1646
|
const parsedOutput = {
|
|
1647
1647
|
...output,
|
|
1648
|
-
body: await
|
|
1648
|
+
body: await parseErrorBody(output.body, context),
|
|
1649
1649
|
};
|
|
1650
1650
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1651
1651
|
switch (errorCode) {
|
|
@@ -1694,7 +1694,7 @@ exports.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagReso
|
|
|
1694
1694
|
const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
|
|
1695
1695
|
const parsedOutput = {
|
|
1696
1696
|
...output,
|
|
1697
|
-
body: await
|
|
1697
|
+
body: await parseErrorBody(output.body, context),
|
|
1698
1698
|
};
|
|
1699
1699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
1700
|
switch (errorCode) {
|
|
@@ -1743,7 +1743,7 @@ exports.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0Untag
|
|
|
1743
1743
|
const deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
|
|
1744
1744
|
const parsedOutput = {
|
|
1745
1745
|
...output,
|
|
1746
|
-
body: await
|
|
1746
|
+
body: await parseErrorBody(output.body, context),
|
|
1747
1747
|
};
|
|
1748
1748
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1749
1749
|
switch (errorCode) {
|
|
@@ -1786,7 +1786,7 @@ exports.deserializeAws_json1_0UpdateInferenceSchedulerCommand = deserializeAws_j
|
|
|
1786
1786
|
const deserializeAws_json1_0UpdateInferenceSchedulerCommandError = async (output, context) => {
|
|
1787
1787
|
const parsedOutput = {
|
|
1788
1788
|
...output,
|
|
1789
|
-
body: await
|
|
1789
|
+
body: await parseErrorBody(output.body, context),
|
|
1790
1790
|
};
|
|
1791
1791
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1792
1792
|
switch (errorCode) {
|
|
@@ -1832,7 +1832,7 @@ exports.deserializeAws_json1_0UpdateLabelGroupCommand = deserializeAws_json1_0Up
|
|
|
1832
1832
|
const deserializeAws_json1_0UpdateLabelGroupCommandError = async (output, context) => {
|
|
1833
1833
|
const parsedOutput = {
|
|
1834
1834
|
...output,
|
|
1835
|
-
body: await
|
|
1835
|
+
body: await parseErrorBody(output.body, context),
|
|
1836
1836
|
};
|
|
1837
1837
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
1838
|
switch (errorCode) {
|
|
@@ -3117,6 +3117,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3117
3117
|
}
|
|
3118
3118
|
return {};
|
|
3119
3119
|
});
|
|
3120
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3121
|
+
var _a;
|
|
3122
|
+
const value = await parseBody(errorBody, context);
|
|
3123
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3124
|
+
return value;
|
|
3125
|
+
};
|
|
3120
3126
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3121
3127
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3122
3128
|
const sanitizeErrorCode = (rawValue) => {
|