@aws-sdk/client-frauddetector 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 +74 -68
- package/dist-es/FraudDetector.js +274 -281
- package/dist-es/FraudDetectorClient.js +22 -28
- package/dist-es/commands/BatchCreateVariableCommand.js +21 -28
- package/dist-es/commands/BatchGetVariableCommand.js +21 -28
- package/dist-es/commands/CancelBatchImportJobCommand.js +21 -28
- package/dist-es/commands/CancelBatchPredictionJobCommand.js +21 -28
- package/dist-es/commands/CreateBatchImportJobCommand.js +21 -28
- package/dist-es/commands/CreateBatchPredictionJobCommand.js +21 -28
- package/dist-es/commands/CreateDetectorVersionCommand.js +21 -28
- package/dist-es/commands/CreateModelCommand.js +21 -28
- package/dist-es/commands/CreateModelVersionCommand.js +21 -28
- package/dist-es/commands/CreateRuleCommand.js +21 -28
- package/dist-es/commands/CreateVariableCommand.js +21 -28
- package/dist-es/commands/DeleteBatchImportJobCommand.js +21 -28
- package/dist-es/commands/DeleteBatchPredictionJobCommand.js +21 -28
- package/dist-es/commands/DeleteDetectorCommand.js +21 -28
- package/dist-es/commands/DeleteDetectorVersionCommand.js +21 -28
- package/dist-es/commands/DeleteEntityTypeCommand.js +21 -28
- package/dist-es/commands/DeleteEventCommand.js +21 -28
- package/dist-es/commands/DeleteEventTypeCommand.js +21 -28
- package/dist-es/commands/DeleteEventsByEventTypeCommand.js +21 -28
- package/dist-es/commands/DeleteExternalModelCommand.js +21 -28
- package/dist-es/commands/DeleteLabelCommand.js +21 -28
- package/dist-es/commands/DeleteModelCommand.js +21 -28
- package/dist-es/commands/DeleteModelVersionCommand.js +21 -28
- package/dist-es/commands/DeleteOutcomeCommand.js +21 -28
- package/dist-es/commands/DeleteRuleCommand.js +21 -28
- package/dist-es/commands/DeleteVariableCommand.js +21 -28
- package/dist-es/commands/DescribeDetectorCommand.js +21 -28
- package/dist-es/commands/DescribeModelVersionsCommand.js +21 -28
- package/dist-es/commands/GetBatchImportJobsCommand.js +21 -28
- package/dist-es/commands/GetBatchPredictionJobsCommand.js +21 -28
- package/dist-es/commands/GetDeleteEventsByEventTypeStatusCommand.js +21 -28
- package/dist-es/commands/GetDetectorVersionCommand.js +21 -28
- package/dist-es/commands/GetDetectorsCommand.js +21 -28
- package/dist-es/commands/GetEntityTypesCommand.js +21 -28
- package/dist-es/commands/GetEventCommand.js +21 -28
- package/dist-es/commands/GetEventPredictionCommand.js +21 -28
- package/dist-es/commands/GetEventPredictionMetadataCommand.js +21 -28
- package/dist-es/commands/GetEventTypesCommand.js +21 -28
- package/dist-es/commands/GetExternalModelsCommand.js +21 -28
- package/dist-es/commands/GetKMSEncryptionKeyCommand.js +22 -29
- package/dist-es/commands/GetLabelsCommand.js +21 -28
- package/dist-es/commands/GetModelVersionCommand.js +21 -28
- package/dist-es/commands/GetModelsCommand.js +21 -28
- package/dist-es/commands/GetOutcomesCommand.js +21 -28
- package/dist-es/commands/GetRulesCommand.js +21 -28
- package/dist-es/commands/GetVariablesCommand.js +21 -28
- package/dist-es/commands/ListEventPredictionsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutDetectorCommand.js +21 -28
- package/dist-es/commands/PutEntityTypeCommand.js +21 -28
- package/dist-es/commands/PutEventTypeCommand.js +21 -28
- package/dist-es/commands/PutExternalModelCommand.js +21 -28
- package/dist-es/commands/PutKMSEncryptionKeyCommand.js +21 -28
- package/dist-es/commands/PutLabelCommand.js +21 -28
- package/dist-es/commands/PutOutcomeCommand.js +21 -28
- package/dist-es/commands/SendEventCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateDetectorVersionCommand.js +21 -28
- package/dist-es/commands/UpdateDetectorVersionMetadataCommand.js +21 -28
- package/dist-es/commands/UpdateDetectorVersionStatusCommand.js +21 -28
- package/dist-es/commands/UpdateEventLabelCommand.js +21 -28
- package/dist-es/commands/UpdateModelCommand.js +21 -28
- package/dist-es/commands/UpdateModelVersionCommand.js +21 -28
- package/dist-es/commands/UpdateModelVersionStatusCommand.js +21 -28
- package/dist-es/commands/UpdateRuleMetadataCommand.js +21 -28
- package/dist-es/commands/UpdateRuleVersionCommand.js +21 -28
- package/dist-es/commands/UpdateVariableCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/FraudDetectorServiceException.js +5 -10
- package/dist-es/models/models_0.js +710 -284
- package/dist-es/pagination/DescribeModelVersionsPaginator.js +25 -68
- package/dist-es/pagination/GetBatchImportJobsPaginator.js +25 -68
- package/dist-es/pagination/GetBatchPredictionJobsPaginator.js +25 -68
- package/dist-es/pagination/GetDetectorsPaginator.js +25 -68
- package/dist-es/pagination/GetEntityTypesPaginator.js +25 -68
- package/dist-es/pagination/GetEventTypesPaginator.js +25 -68
- package/dist-es/pagination/GetExternalModelsPaginator.js +25 -68
- package/dist-es/pagination/GetLabelsPaginator.js +25 -68
- package/dist-es/pagination/GetModelsPaginator.js +25 -68
- package/dist-es/pagination/GetOutcomesPaginator.js +25 -68
- package/dist-es/pagination/GetRulesPaginator.js +25 -68
- package/dist-es/pagination/GetVariablesPaginator.js +25 -68
- package/dist-es/pagination/ListEventPredictionsPaginator.js +25 -68
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +4746 -6029
- 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-frauddetector
|
|
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-frauddetector
|
|
@@ -703,7 +703,7 @@ exports.deserializeAws_json1_1BatchCreateVariableCommand = deserializeAws_json1_
|
|
|
703
703
|
const deserializeAws_json1_1BatchCreateVariableCommandError = async (output, context) => {
|
|
704
704
|
const parsedOutput = {
|
|
705
705
|
...output,
|
|
706
|
-
body: await
|
|
706
|
+
body: await parseErrorBody(output.body, context),
|
|
707
707
|
};
|
|
708
708
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
709
|
switch (errorCode) {
|
|
@@ -746,7 +746,7 @@ exports.deserializeAws_json1_1BatchGetVariableCommand = deserializeAws_json1_1Ba
|
|
|
746
746
|
const deserializeAws_json1_1BatchGetVariableCommandError = async (output, context) => {
|
|
747
747
|
const parsedOutput = {
|
|
748
748
|
...output,
|
|
749
|
-
body: await
|
|
749
|
+
body: await parseErrorBody(output.body, context),
|
|
750
750
|
};
|
|
751
751
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
752
752
|
switch (errorCode) {
|
|
@@ -789,7 +789,7 @@ exports.deserializeAws_json1_1CancelBatchImportJobCommand = deserializeAws_json1
|
|
|
789
789
|
const deserializeAws_json1_1CancelBatchImportJobCommandError = async (output, context) => {
|
|
790
790
|
const parsedOutput = {
|
|
791
791
|
...output,
|
|
792
|
-
body: await
|
|
792
|
+
body: await parseErrorBody(output.body, context),
|
|
793
793
|
};
|
|
794
794
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
795
795
|
switch (errorCode) {
|
|
@@ -835,7 +835,7 @@ exports.deserializeAws_json1_1CancelBatchPredictionJobCommand = deserializeAws_j
|
|
|
835
835
|
const deserializeAws_json1_1CancelBatchPredictionJobCommandError = async (output, context) => {
|
|
836
836
|
const parsedOutput = {
|
|
837
837
|
...output,
|
|
838
|
-
body: await
|
|
838
|
+
body: await parseErrorBody(output.body, context),
|
|
839
839
|
};
|
|
840
840
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
841
|
switch (errorCode) {
|
|
@@ -881,7 +881,7 @@ exports.deserializeAws_json1_1CreateBatchImportJobCommand = deserializeAws_json1
|
|
|
881
881
|
const deserializeAws_json1_1CreateBatchImportJobCommandError = async (output, context) => {
|
|
882
882
|
const parsedOutput = {
|
|
883
883
|
...output,
|
|
884
|
-
body: await
|
|
884
|
+
body: await parseErrorBody(output.body, context),
|
|
885
885
|
};
|
|
886
886
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
887
887
|
switch (errorCode) {
|
|
@@ -927,7 +927,7 @@ exports.deserializeAws_json1_1CreateBatchPredictionJobCommand = deserializeAws_j
|
|
|
927
927
|
const deserializeAws_json1_1CreateBatchPredictionJobCommandError = async (output, context) => {
|
|
928
928
|
const parsedOutput = {
|
|
929
929
|
...output,
|
|
930
|
-
body: await
|
|
930
|
+
body: await parseErrorBody(output.body, context),
|
|
931
931
|
};
|
|
932
932
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
933
|
switch (errorCode) {
|
|
@@ -973,7 +973,7 @@ exports.deserializeAws_json1_1CreateDetectorVersionCommand = deserializeAws_json
|
|
|
973
973
|
const deserializeAws_json1_1CreateDetectorVersionCommandError = async (output, context) => {
|
|
974
974
|
const parsedOutput = {
|
|
975
975
|
...output,
|
|
976
|
-
body: await
|
|
976
|
+
body: await parseErrorBody(output.body, context),
|
|
977
977
|
};
|
|
978
978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
979
|
switch (errorCode) {
|
|
@@ -1019,7 +1019,7 @@ exports.deserializeAws_json1_1CreateModelCommand = deserializeAws_json1_1CreateM
|
|
|
1019
1019
|
const deserializeAws_json1_1CreateModelCommandError = async (output, context) => {
|
|
1020
1020
|
const parsedOutput = {
|
|
1021
1021
|
...output,
|
|
1022
|
-
body: await
|
|
1022
|
+
body: await parseErrorBody(output.body, context),
|
|
1023
1023
|
};
|
|
1024
1024
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
1025
|
switch (errorCode) {
|
|
@@ -1062,7 +1062,7 @@ exports.deserializeAws_json1_1CreateModelVersionCommand = deserializeAws_json1_1
|
|
|
1062
1062
|
const deserializeAws_json1_1CreateModelVersionCommandError = async (output, context) => {
|
|
1063
1063
|
const parsedOutput = {
|
|
1064
1064
|
...output,
|
|
1065
|
-
body: await
|
|
1065
|
+
body: await parseErrorBody(output.body, context),
|
|
1066
1066
|
};
|
|
1067
1067
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
1068
|
switch (errorCode) {
|
|
@@ -1108,7 +1108,7 @@ exports.deserializeAws_json1_1CreateRuleCommand = deserializeAws_json1_1CreateRu
|
|
|
1108
1108
|
const deserializeAws_json1_1CreateRuleCommandError = async (output, context) => {
|
|
1109
1109
|
const parsedOutput = {
|
|
1110
1110
|
...output,
|
|
1111
|
-
body: await
|
|
1111
|
+
body: await parseErrorBody(output.body, context),
|
|
1112
1112
|
};
|
|
1113
1113
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
1114
|
switch (errorCode) {
|
|
@@ -1151,7 +1151,7 @@ exports.deserializeAws_json1_1CreateVariableCommand = deserializeAws_json1_1Crea
|
|
|
1151
1151
|
const deserializeAws_json1_1CreateVariableCommandError = async (output, context) => {
|
|
1152
1152
|
const parsedOutput = {
|
|
1153
1153
|
...output,
|
|
1154
|
-
body: await
|
|
1154
|
+
body: await parseErrorBody(output.body, context),
|
|
1155
1155
|
};
|
|
1156
1156
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
1157
|
switch (errorCode) {
|
|
@@ -1194,7 +1194,7 @@ exports.deserializeAws_json1_1DeleteBatchImportJobCommand = deserializeAws_json1
|
|
|
1194
1194
|
const deserializeAws_json1_1DeleteBatchImportJobCommandError = async (output, context) => {
|
|
1195
1195
|
const parsedOutput = {
|
|
1196
1196
|
...output,
|
|
1197
|
-
body: await
|
|
1197
|
+
body: await parseErrorBody(output.body, context),
|
|
1198
1198
|
};
|
|
1199
1199
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
1200
|
switch (errorCode) {
|
|
@@ -1237,7 +1237,7 @@ exports.deserializeAws_json1_1DeleteBatchPredictionJobCommand = deserializeAws_j
|
|
|
1237
1237
|
const deserializeAws_json1_1DeleteBatchPredictionJobCommandError = async (output, context) => {
|
|
1238
1238
|
const parsedOutput = {
|
|
1239
1239
|
...output,
|
|
1240
|
-
body: await
|
|
1240
|
+
body: await parseErrorBody(output.body, context),
|
|
1241
1241
|
};
|
|
1242
1242
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
1243
|
switch (errorCode) {
|
|
@@ -1280,7 +1280,7 @@ exports.deserializeAws_json1_1DeleteDetectorCommand = deserializeAws_json1_1Dele
|
|
|
1280
1280
|
const deserializeAws_json1_1DeleteDetectorCommandError = 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) {
|
|
@@ -1326,7 +1326,7 @@ exports.deserializeAws_json1_1DeleteDetectorVersionCommand = deserializeAws_json
|
|
|
1326
1326
|
const deserializeAws_json1_1DeleteDetectorVersionCommandError = async (output, context) => {
|
|
1327
1327
|
const parsedOutput = {
|
|
1328
1328
|
...output,
|
|
1329
|
-
body: await
|
|
1329
|
+
body: await parseErrorBody(output.body, context),
|
|
1330
1330
|
};
|
|
1331
1331
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
1332
|
switch (errorCode) {
|
|
@@ -1375,7 +1375,7 @@ exports.deserializeAws_json1_1DeleteEntityTypeCommand = deserializeAws_json1_1De
|
|
|
1375
1375
|
const deserializeAws_json1_1DeleteEntityTypeCommandError = async (output, context) => {
|
|
1376
1376
|
const parsedOutput = {
|
|
1377
1377
|
...output,
|
|
1378
|
-
body: await
|
|
1378
|
+
body: await parseErrorBody(output.body, context),
|
|
1379
1379
|
};
|
|
1380
1380
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
1381
|
switch (errorCode) {
|
|
@@ -1421,7 +1421,7 @@ exports.deserializeAws_json1_1DeleteEventCommand = deserializeAws_json1_1DeleteE
|
|
|
1421
1421
|
const deserializeAws_json1_1DeleteEventCommandError = async (output, context) => {
|
|
1422
1422
|
const parsedOutput = {
|
|
1423
1423
|
...output,
|
|
1424
|
-
body: await
|
|
1424
|
+
body: await parseErrorBody(output.body, context),
|
|
1425
1425
|
};
|
|
1426
1426
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1427
1427
|
switch (errorCode) {
|
|
@@ -1464,7 +1464,7 @@ exports.deserializeAws_json1_1DeleteEventsByEventTypeCommand = deserializeAws_js
|
|
|
1464
1464
|
const deserializeAws_json1_1DeleteEventsByEventTypeCommandError = async (output, context) => {
|
|
1465
1465
|
const parsedOutput = {
|
|
1466
1466
|
...output,
|
|
1467
|
-
body: await
|
|
1467
|
+
body: await parseErrorBody(output.body, context),
|
|
1468
1468
|
};
|
|
1469
1469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1470
1470
|
switch (errorCode) {
|
|
@@ -1513,7 +1513,7 @@ exports.deserializeAws_json1_1DeleteEventTypeCommand = deserializeAws_json1_1Del
|
|
|
1513
1513
|
const deserializeAws_json1_1DeleteEventTypeCommandError = async (output, context) => {
|
|
1514
1514
|
const parsedOutput = {
|
|
1515
1515
|
...output,
|
|
1516
|
-
body: await
|
|
1516
|
+
body: await parseErrorBody(output.body, context),
|
|
1517
1517
|
};
|
|
1518
1518
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1519
1519
|
switch (errorCode) {
|
|
@@ -1559,7 +1559,7 @@ exports.deserializeAws_json1_1DeleteExternalModelCommand = deserializeAws_json1_
|
|
|
1559
1559
|
const deserializeAws_json1_1DeleteExternalModelCommandError = async (output, context) => {
|
|
1560
1560
|
const parsedOutput = {
|
|
1561
1561
|
...output,
|
|
1562
|
-
body: await
|
|
1562
|
+
body: await parseErrorBody(output.body, context),
|
|
1563
1563
|
};
|
|
1564
1564
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
1565
|
switch (errorCode) {
|
|
@@ -1605,7 +1605,7 @@ exports.deserializeAws_json1_1DeleteLabelCommand = deserializeAws_json1_1DeleteL
|
|
|
1605
1605
|
const deserializeAws_json1_1DeleteLabelCommandError = async (output, context) => {
|
|
1606
1606
|
const parsedOutput = {
|
|
1607
1607
|
...output,
|
|
1608
|
-
body: await
|
|
1608
|
+
body: await parseErrorBody(output.body, context),
|
|
1609
1609
|
};
|
|
1610
1610
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1611
1611
|
switch (errorCode) {
|
|
@@ -1648,7 +1648,7 @@ exports.deserializeAws_json1_1DeleteModelCommand = deserializeAws_json1_1DeleteM
|
|
|
1648
1648
|
const deserializeAws_json1_1DeleteModelCommandError = async (output, context) => {
|
|
1649
1649
|
const parsedOutput = {
|
|
1650
1650
|
...output,
|
|
1651
|
-
body: await
|
|
1651
|
+
body: await parseErrorBody(output.body, context),
|
|
1652
1652
|
};
|
|
1653
1653
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1654
1654
|
switch (errorCode) {
|
|
@@ -1694,7 +1694,7 @@ exports.deserializeAws_json1_1DeleteModelVersionCommand = deserializeAws_json1_1
|
|
|
1694
1694
|
const deserializeAws_json1_1DeleteModelVersionCommandError = 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) {
|
|
@@ -1740,7 +1740,7 @@ exports.deserializeAws_json1_1DeleteOutcomeCommand = deserializeAws_json1_1Delet
|
|
|
1740
1740
|
const deserializeAws_json1_1DeleteOutcomeCommandError = async (output, context) => {
|
|
1741
1741
|
const parsedOutput = {
|
|
1742
1742
|
...output,
|
|
1743
|
-
body: await
|
|
1743
|
+
body: await parseErrorBody(output.body, context),
|
|
1744
1744
|
};
|
|
1745
1745
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1746
1746
|
switch (errorCode) {
|
|
@@ -1786,7 +1786,7 @@ exports.deserializeAws_json1_1DeleteRuleCommand = deserializeAws_json1_1DeleteRu
|
|
|
1786
1786
|
const deserializeAws_json1_1DeleteRuleCommandError = 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_1DeleteVariableCommand = deserializeAws_json1_1Dele
|
|
|
1832
1832
|
const deserializeAws_json1_1DeleteVariableCommandError = 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) {
|
|
@@ -1878,7 +1878,7 @@ exports.deserializeAws_json1_1DescribeDetectorCommand = deserializeAws_json1_1De
|
|
|
1878
1878
|
const deserializeAws_json1_1DescribeDetectorCommandError = async (output, context) => {
|
|
1879
1879
|
const parsedOutput = {
|
|
1880
1880
|
...output,
|
|
1881
|
-
body: await
|
|
1881
|
+
body: await parseErrorBody(output.body, context),
|
|
1882
1882
|
};
|
|
1883
1883
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1884
1884
|
switch (errorCode) {
|
|
@@ -1924,7 +1924,7 @@ exports.deserializeAws_json1_1DescribeModelVersionsCommand = deserializeAws_json
|
|
|
1924
1924
|
const deserializeAws_json1_1DescribeModelVersionsCommandError = async (output, context) => {
|
|
1925
1925
|
const parsedOutput = {
|
|
1926
1926
|
...output,
|
|
1927
|
-
body: await
|
|
1927
|
+
body: await parseErrorBody(output.body, context),
|
|
1928
1928
|
};
|
|
1929
1929
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1930
1930
|
switch (errorCode) {
|
|
@@ -1970,7 +1970,7 @@ exports.deserializeAws_json1_1GetBatchImportJobsCommand = deserializeAws_json1_1
|
|
|
1970
1970
|
const deserializeAws_json1_1GetBatchImportJobsCommandError = async (output, context) => {
|
|
1971
1971
|
const parsedOutput = {
|
|
1972
1972
|
...output,
|
|
1973
|
-
body: await
|
|
1973
|
+
body: await parseErrorBody(output.body, context),
|
|
1974
1974
|
};
|
|
1975
1975
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1976
1976
|
switch (errorCode) {
|
|
@@ -2016,7 +2016,7 @@ exports.deserializeAws_json1_1GetBatchPredictionJobsCommand = deserializeAws_jso
|
|
|
2016
2016
|
const deserializeAws_json1_1GetBatchPredictionJobsCommandError = async (output, context) => {
|
|
2017
2017
|
const parsedOutput = {
|
|
2018
2018
|
...output,
|
|
2019
|
-
body: await
|
|
2019
|
+
body: await parseErrorBody(output.body, context),
|
|
2020
2020
|
};
|
|
2021
2021
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2022
2022
|
switch (errorCode) {
|
|
@@ -2062,7 +2062,7 @@ exports.deserializeAws_json1_1GetDeleteEventsByEventTypeStatusCommand = deserial
|
|
|
2062
2062
|
const deserializeAws_json1_1GetDeleteEventsByEventTypeStatusCommandError = async (output, context) => {
|
|
2063
2063
|
const parsedOutput = {
|
|
2064
2064
|
...output,
|
|
2065
|
-
body: await
|
|
2065
|
+
body: await parseErrorBody(output.body, context),
|
|
2066
2066
|
};
|
|
2067
2067
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2068
2068
|
switch (errorCode) {
|
|
@@ -2108,7 +2108,7 @@ exports.deserializeAws_json1_1GetDetectorsCommand = deserializeAws_json1_1GetDet
|
|
|
2108
2108
|
const deserializeAws_json1_1GetDetectorsCommandError = async (output, context) => {
|
|
2109
2109
|
const parsedOutput = {
|
|
2110
2110
|
...output,
|
|
2111
|
-
body: await
|
|
2111
|
+
body: await parseErrorBody(output.body, context),
|
|
2112
2112
|
};
|
|
2113
2113
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2114
2114
|
switch (errorCode) {
|
|
@@ -2154,7 +2154,7 @@ exports.deserializeAws_json1_1GetDetectorVersionCommand = deserializeAws_json1_1
|
|
|
2154
2154
|
const deserializeAws_json1_1GetDetectorVersionCommandError = async (output, context) => {
|
|
2155
2155
|
const parsedOutput = {
|
|
2156
2156
|
...output,
|
|
2157
|
-
body: await
|
|
2157
|
+
body: await parseErrorBody(output.body, context),
|
|
2158
2158
|
};
|
|
2159
2159
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2160
2160
|
switch (errorCode) {
|
|
@@ -2200,7 +2200,7 @@ exports.deserializeAws_json1_1GetEntityTypesCommand = deserializeAws_json1_1GetE
|
|
|
2200
2200
|
const deserializeAws_json1_1GetEntityTypesCommandError = async (output, context) => {
|
|
2201
2201
|
const parsedOutput = {
|
|
2202
2202
|
...output,
|
|
2203
|
-
body: await
|
|
2203
|
+
body: await parseErrorBody(output.body, context),
|
|
2204
2204
|
};
|
|
2205
2205
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2206
2206
|
switch (errorCode) {
|
|
@@ -2246,7 +2246,7 @@ exports.deserializeAws_json1_1GetEventCommand = deserializeAws_json1_1GetEventCo
|
|
|
2246
2246
|
const deserializeAws_json1_1GetEventCommandError = async (output, context) => {
|
|
2247
2247
|
const parsedOutput = {
|
|
2248
2248
|
...output,
|
|
2249
|
-
body: await
|
|
2249
|
+
body: await parseErrorBody(output.body, context),
|
|
2250
2250
|
};
|
|
2251
2251
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2252
2252
|
switch (errorCode) {
|
|
@@ -2292,7 +2292,7 @@ exports.deserializeAws_json1_1GetEventPredictionCommand = deserializeAws_json1_1
|
|
|
2292
2292
|
const deserializeAws_json1_1GetEventPredictionCommandError = async (output, context) => {
|
|
2293
2293
|
const parsedOutput = {
|
|
2294
2294
|
...output,
|
|
2295
|
-
body: await
|
|
2295
|
+
body: await parseErrorBody(output.body, context),
|
|
2296
2296
|
};
|
|
2297
2297
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2298
2298
|
switch (errorCode) {
|
|
@@ -2344,7 +2344,7 @@ exports.deserializeAws_json1_1GetEventPredictionMetadataCommand = deserializeAws
|
|
|
2344
2344
|
const deserializeAws_json1_1GetEventPredictionMetadataCommandError = async (output, context) => {
|
|
2345
2345
|
const parsedOutput = {
|
|
2346
2346
|
...output,
|
|
2347
|
-
body: await
|
|
2347
|
+
body: await parseErrorBody(output.body, context),
|
|
2348
2348
|
};
|
|
2349
2349
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2350
2350
|
switch (errorCode) {
|
|
@@ -2390,7 +2390,7 @@ exports.deserializeAws_json1_1GetEventTypesCommand = deserializeAws_json1_1GetEv
|
|
|
2390
2390
|
const deserializeAws_json1_1GetEventTypesCommandError = async (output, context) => {
|
|
2391
2391
|
const parsedOutput = {
|
|
2392
2392
|
...output,
|
|
2393
|
-
body: await
|
|
2393
|
+
body: await parseErrorBody(output.body, context),
|
|
2394
2394
|
};
|
|
2395
2395
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
2396
|
switch (errorCode) {
|
|
@@ -2436,7 +2436,7 @@ exports.deserializeAws_json1_1GetExternalModelsCommand = deserializeAws_json1_1G
|
|
|
2436
2436
|
const deserializeAws_json1_1GetExternalModelsCommandError = async (output, context) => {
|
|
2437
2437
|
const parsedOutput = {
|
|
2438
2438
|
...output,
|
|
2439
|
-
body: await
|
|
2439
|
+
body: await parseErrorBody(output.body, context),
|
|
2440
2440
|
};
|
|
2441
2441
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2442
2442
|
switch (errorCode) {
|
|
@@ -2482,7 +2482,7 @@ exports.deserializeAws_json1_1GetKMSEncryptionKeyCommand = deserializeAws_json1_
|
|
|
2482
2482
|
const deserializeAws_json1_1GetKMSEncryptionKeyCommandError = async (output, context) => {
|
|
2483
2483
|
const parsedOutput = {
|
|
2484
2484
|
...output,
|
|
2485
|
-
body: await
|
|
2485
|
+
body: await parseErrorBody(output.body, context),
|
|
2486
2486
|
};
|
|
2487
2487
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2488
2488
|
switch (errorCode) {
|
|
@@ -2525,7 +2525,7 @@ exports.deserializeAws_json1_1GetLabelsCommand = deserializeAws_json1_1GetLabels
|
|
|
2525
2525
|
const deserializeAws_json1_1GetLabelsCommandError = async (output, context) => {
|
|
2526
2526
|
const parsedOutput = {
|
|
2527
2527
|
...output,
|
|
2528
|
-
body: await
|
|
2528
|
+
body: await parseErrorBody(output.body, context),
|
|
2529
2529
|
};
|
|
2530
2530
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2531
2531
|
switch (errorCode) {
|
|
@@ -2571,7 +2571,7 @@ exports.deserializeAws_json1_1GetModelsCommand = deserializeAws_json1_1GetModels
|
|
|
2571
2571
|
const deserializeAws_json1_1GetModelsCommandError = 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) {
|
|
@@ -2617,7 +2617,7 @@ exports.deserializeAws_json1_1GetModelVersionCommand = deserializeAws_json1_1Get
|
|
|
2617
2617
|
const deserializeAws_json1_1GetModelVersionCommandError = async (output, context) => {
|
|
2618
2618
|
const parsedOutput = {
|
|
2619
2619
|
...output,
|
|
2620
|
-
body: await
|
|
2620
|
+
body: await parseErrorBody(output.body, context),
|
|
2621
2621
|
};
|
|
2622
2622
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2623
2623
|
switch (errorCode) {
|
|
@@ -2663,7 +2663,7 @@ exports.deserializeAws_json1_1GetOutcomesCommand = deserializeAws_json1_1GetOutc
|
|
|
2663
2663
|
const deserializeAws_json1_1GetOutcomesCommandError = async (output, context) => {
|
|
2664
2664
|
const parsedOutput = {
|
|
2665
2665
|
...output,
|
|
2666
|
-
body: await
|
|
2666
|
+
body: await parseErrorBody(output.body, context),
|
|
2667
2667
|
};
|
|
2668
2668
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2669
2669
|
switch (errorCode) {
|
|
@@ -2709,7 +2709,7 @@ exports.deserializeAws_json1_1GetRulesCommand = deserializeAws_json1_1GetRulesCo
|
|
|
2709
2709
|
const deserializeAws_json1_1GetRulesCommandError = async (output, context) => {
|
|
2710
2710
|
const parsedOutput = {
|
|
2711
2711
|
...output,
|
|
2712
|
-
body: await
|
|
2712
|
+
body: await parseErrorBody(output.body, context),
|
|
2713
2713
|
};
|
|
2714
2714
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2715
2715
|
switch (errorCode) {
|
|
@@ -2755,7 +2755,7 @@ exports.deserializeAws_json1_1GetVariablesCommand = deserializeAws_json1_1GetVar
|
|
|
2755
2755
|
const deserializeAws_json1_1GetVariablesCommandError = async (output, context) => {
|
|
2756
2756
|
const parsedOutput = {
|
|
2757
2757
|
...output,
|
|
2758
|
-
body: await
|
|
2758
|
+
body: await parseErrorBody(output.body, context),
|
|
2759
2759
|
};
|
|
2760
2760
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2761
2761
|
switch (errorCode) {
|
|
@@ -2801,7 +2801,7 @@ exports.deserializeAws_json1_1ListEventPredictionsCommand = deserializeAws_json1
|
|
|
2801
2801
|
const deserializeAws_json1_1ListEventPredictionsCommandError = async (output, context) => {
|
|
2802
2802
|
const parsedOutput = {
|
|
2803
2803
|
...output,
|
|
2804
|
-
body: await
|
|
2804
|
+
body: await parseErrorBody(output.body, context),
|
|
2805
2805
|
};
|
|
2806
2806
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2807
2807
|
switch (errorCode) {
|
|
@@ -2844,7 +2844,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
2844
2844
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
2845
2845
|
const parsedOutput = {
|
|
2846
2846
|
...output,
|
|
2847
|
-
body: await
|
|
2847
|
+
body: await parseErrorBody(output.body, context),
|
|
2848
2848
|
};
|
|
2849
2849
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2850
2850
|
switch (errorCode) {
|
|
@@ -2887,7 +2887,7 @@ exports.deserializeAws_json1_1PutDetectorCommand = deserializeAws_json1_1PutDete
|
|
|
2887
2887
|
const deserializeAws_json1_1PutDetectorCommandError = async (output, context) => {
|
|
2888
2888
|
const parsedOutput = {
|
|
2889
2889
|
...output,
|
|
2890
|
-
body: await
|
|
2890
|
+
body: await parseErrorBody(output.body, context),
|
|
2891
2891
|
};
|
|
2892
2892
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2893
2893
|
switch (errorCode) {
|
|
@@ -2933,7 +2933,7 @@ exports.deserializeAws_json1_1PutEntityTypeCommand = deserializeAws_json1_1PutEn
|
|
|
2933
2933
|
const deserializeAws_json1_1PutEntityTypeCommandError = async (output, context) => {
|
|
2934
2934
|
const parsedOutput = {
|
|
2935
2935
|
...output,
|
|
2936
|
-
body: await
|
|
2936
|
+
body: await parseErrorBody(output.body, context),
|
|
2937
2937
|
};
|
|
2938
2938
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2939
2939
|
switch (errorCode) {
|
|
@@ -2979,7 +2979,7 @@ exports.deserializeAws_json1_1PutEventTypeCommand = deserializeAws_json1_1PutEve
|
|
|
2979
2979
|
const deserializeAws_json1_1PutEventTypeCommandError = async (output, context) => {
|
|
2980
2980
|
const parsedOutput = {
|
|
2981
2981
|
...output,
|
|
2982
|
-
body: await
|
|
2982
|
+
body: await parseErrorBody(output.body, context),
|
|
2983
2983
|
};
|
|
2984
2984
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2985
2985
|
switch (errorCode) {
|
|
@@ -3025,7 +3025,7 @@ exports.deserializeAws_json1_1PutExternalModelCommand = deserializeAws_json1_1Pu
|
|
|
3025
3025
|
const deserializeAws_json1_1PutExternalModelCommandError = async (output, context) => {
|
|
3026
3026
|
const parsedOutput = {
|
|
3027
3027
|
...output,
|
|
3028
|
-
body: await
|
|
3028
|
+
body: await parseErrorBody(output.body, context),
|
|
3029
3029
|
};
|
|
3030
3030
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3031
3031
|
switch (errorCode) {
|
|
@@ -3071,7 +3071,7 @@ exports.deserializeAws_json1_1PutKMSEncryptionKeyCommand = deserializeAws_json1_
|
|
|
3071
3071
|
const deserializeAws_json1_1PutKMSEncryptionKeyCommandError = async (output, context) => {
|
|
3072
3072
|
const parsedOutput = {
|
|
3073
3073
|
...output,
|
|
3074
|
-
body: await
|
|
3074
|
+
body: await parseErrorBody(output.body, context),
|
|
3075
3075
|
};
|
|
3076
3076
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3077
3077
|
switch (errorCode) {
|
|
@@ -3120,7 +3120,7 @@ exports.deserializeAws_json1_1PutLabelCommand = deserializeAws_json1_1PutLabelCo
|
|
|
3120
3120
|
const deserializeAws_json1_1PutLabelCommandError = async (output, context) => {
|
|
3121
3121
|
const parsedOutput = {
|
|
3122
3122
|
...output,
|
|
3123
|
-
body: await
|
|
3123
|
+
body: await parseErrorBody(output.body, context),
|
|
3124
3124
|
};
|
|
3125
3125
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3126
3126
|
switch (errorCode) {
|
|
@@ -3166,7 +3166,7 @@ exports.deserializeAws_json1_1PutOutcomeCommand = deserializeAws_json1_1PutOutco
|
|
|
3166
3166
|
const deserializeAws_json1_1PutOutcomeCommandError = async (output, context) => {
|
|
3167
3167
|
const parsedOutput = {
|
|
3168
3168
|
...output,
|
|
3169
|
-
body: await
|
|
3169
|
+
body: await parseErrorBody(output.body, context),
|
|
3170
3170
|
};
|
|
3171
3171
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3172
3172
|
switch (errorCode) {
|
|
@@ -3212,7 +3212,7 @@ exports.deserializeAws_json1_1SendEventCommand = deserializeAws_json1_1SendEvent
|
|
|
3212
3212
|
const deserializeAws_json1_1SendEventCommandError = async (output, context) => {
|
|
3213
3213
|
const parsedOutput = {
|
|
3214
3214
|
...output,
|
|
3215
|
-
body: await
|
|
3215
|
+
body: await parseErrorBody(output.body, context),
|
|
3216
3216
|
};
|
|
3217
3217
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3218
3218
|
switch (errorCode) {
|
|
@@ -3261,7 +3261,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
3261
3261
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
3262
3262
|
const parsedOutput = {
|
|
3263
3263
|
...output,
|
|
3264
|
-
body: await
|
|
3264
|
+
body: await parseErrorBody(output.body, context),
|
|
3265
3265
|
};
|
|
3266
3266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3267
3267
|
switch (errorCode) {
|
|
@@ -3304,7 +3304,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
3304
3304
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
3305
3305
|
const parsedOutput = {
|
|
3306
3306
|
...output,
|
|
3307
|
-
body: await
|
|
3307
|
+
body: await parseErrorBody(output.body, context),
|
|
3308
3308
|
};
|
|
3309
3309
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3310
3310
|
switch (errorCode) {
|
|
@@ -3347,7 +3347,7 @@ exports.deserializeAws_json1_1UpdateDetectorVersionCommand = deserializeAws_json
|
|
|
3347
3347
|
const deserializeAws_json1_1UpdateDetectorVersionCommandError = async (output, context) => {
|
|
3348
3348
|
const parsedOutput = {
|
|
3349
3349
|
...output,
|
|
3350
|
-
body: await
|
|
3350
|
+
body: await parseErrorBody(output.body, context),
|
|
3351
3351
|
};
|
|
3352
3352
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3353
3353
|
switch (errorCode) {
|
|
@@ -3396,7 +3396,7 @@ exports.deserializeAws_json1_1UpdateDetectorVersionMetadataCommand = deserialize
|
|
|
3396
3396
|
const deserializeAws_json1_1UpdateDetectorVersionMetadataCommandError = async (output, context) => {
|
|
3397
3397
|
const parsedOutput = {
|
|
3398
3398
|
...output,
|
|
3399
|
-
body: await
|
|
3399
|
+
body: await parseErrorBody(output.body, context),
|
|
3400
3400
|
};
|
|
3401
3401
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3402
3402
|
switch (errorCode) {
|
|
@@ -3442,7 +3442,7 @@ exports.deserializeAws_json1_1UpdateDetectorVersionStatusCommand = deserializeAw
|
|
|
3442
3442
|
const deserializeAws_json1_1UpdateDetectorVersionStatusCommandError = async (output, context) => {
|
|
3443
3443
|
const parsedOutput = {
|
|
3444
3444
|
...output,
|
|
3445
|
-
body: await
|
|
3445
|
+
body: await parseErrorBody(output.body, context),
|
|
3446
3446
|
};
|
|
3447
3447
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3448
3448
|
switch (errorCode) {
|
|
@@ -3491,7 +3491,7 @@ exports.deserializeAws_json1_1UpdateEventLabelCommand = deserializeAws_json1_1Up
|
|
|
3491
3491
|
const deserializeAws_json1_1UpdateEventLabelCommandError = async (output, context) => {
|
|
3492
3492
|
const parsedOutput = {
|
|
3493
3493
|
...output,
|
|
3494
|
-
body: await
|
|
3494
|
+
body: await parseErrorBody(output.body, context),
|
|
3495
3495
|
};
|
|
3496
3496
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3497
3497
|
switch (errorCode) {
|
|
@@ -3540,7 +3540,7 @@ exports.deserializeAws_json1_1UpdateModelCommand = deserializeAws_json1_1UpdateM
|
|
|
3540
3540
|
const deserializeAws_json1_1UpdateModelCommandError = async (output, context) => {
|
|
3541
3541
|
const parsedOutput = {
|
|
3542
3542
|
...output,
|
|
3543
|
-
body: await
|
|
3543
|
+
body: await parseErrorBody(output.body, context),
|
|
3544
3544
|
};
|
|
3545
3545
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3546
3546
|
switch (errorCode) {
|
|
@@ -3589,7 +3589,7 @@ exports.deserializeAws_json1_1UpdateModelVersionCommand = deserializeAws_json1_1
|
|
|
3589
3589
|
const deserializeAws_json1_1UpdateModelVersionCommandError = async (output, context) => {
|
|
3590
3590
|
const parsedOutput = {
|
|
3591
3591
|
...output,
|
|
3592
|
-
body: await
|
|
3592
|
+
body: await parseErrorBody(output.body, context),
|
|
3593
3593
|
};
|
|
3594
3594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3595
3595
|
switch (errorCode) {
|
|
@@ -3638,7 +3638,7 @@ exports.deserializeAws_json1_1UpdateModelVersionStatusCommand = deserializeAws_j
|
|
|
3638
3638
|
const deserializeAws_json1_1UpdateModelVersionStatusCommandError = async (output, context) => {
|
|
3639
3639
|
const parsedOutput = {
|
|
3640
3640
|
...output,
|
|
3641
|
-
body: await
|
|
3641
|
+
body: await parseErrorBody(output.body, context),
|
|
3642
3642
|
};
|
|
3643
3643
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3644
3644
|
switch (errorCode) {
|
|
@@ -3687,7 +3687,7 @@ exports.deserializeAws_json1_1UpdateRuleMetadataCommand = deserializeAws_json1_1
|
|
|
3687
3687
|
const deserializeAws_json1_1UpdateRuleMetadataCommandError = async (output, context) => {
|
|
3688
3688
|
const parsedOutput = {
|
|
3689
3689
|
...output,
|
|
3690
|
-
body: await
|
|
3690
|
+
body: await parseErrorBody(output.body, context),
|
|
3691
3691
|
};
|
|
3692
3692
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3693
3693
|
switch (errorCode) {
|
|
@@ -3736,7 +3736,7 @@ exports.deserializeAws_json1_1UpdateRuleVersionCommand = deserializeAws_json1_1U
|
|
|
3736
3736
|
const deserializeAws_json1_1UpdateRuleVersionCommandError = async (output, context) => {
|
|
3737
3737
|
const parsedOutput = {
|
|
3738
3738
|
...output,
|
|
3739
|
-
body: await
|
|
3739
|
+
body: await parseErrorBody(output.body, context),
|
|
3740
3740
|
};
|
|
3741
3741
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3742
3742
|
switch (errorCode) {
|
|
@@ -3785,7 +3785,7 @@ exports.deserializeAws_json1_1UpdateVariableCommand = deserializeAws_json1_1Upda
|
|
|
3785
3785
|
const deserializeAws_json1_1UpdateVariableCommandError = async (output, context) => {
|
|
3786
3786
|
const parsedOutput = {
|
|
3787
3787
|
...output,
|
|
3788
|
-
body: await
|
|
3788
|
+
body: await parseErrorBody(output.body, context),
|
|
3789
3789
|
};
|
|
3790
3790
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3791
3791
|
switch (errorCode) {
|
|
@@ -6163,6 +6163,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
6163
6163
|
}
|
|
6164
6164
|
return {};
|
|
6165
6165
|
});
|
|
6166
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
6167
|
+
var _a;
|
|
6168
|
+
const value = await parseBody(errorBody, context);
|
|
6169
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
6170
|
+
return value;
|
|
6171
|
+
};
|
|
6166
6172
|
const loadRestJsonErrorCode = (output, data) => {
|
|
6167
6173
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
6168
6174
|
const sanitizeErrorCode = (rawValue) => {
|