@aws-sdk/client-personalize 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 +66 -60
- package/dist-es/Personalize.js +242 -249
- package/dist-es/PersonalizeClient.js +22 -28
- package/dist-es/commands/CreateBatchInferenceJobCommand.js +21 -28
- package/dist-es/commands/CreateBatchSegmentJobCommand.js +21 -28
- package/dist-es/commands/CreateCampaignCommand.js +21 -28
- package/dist-es/commands/CreateDatasetCommand.js +21 -28
- package/dist-es/commands/CreateDatasetExportJobCommand.js +21 -28
- package/dist-es/commands/CreateDatasetGroupCommand.js +21 -28
- package/dist-es/commands/CreateDatasetImportJobCommand.js +21 -28
- package/dist-es/commands/CreateEventTrackerCommand.js +21 -28
- package/dist-es/commands/CreateFilterCommand.js +21 -28
- package/dist-es/commands/CreateRecommenderCommand.js +21 -28
- package/dist-es/commands/CreateSchemaCommand.js +21 -28
- package/dist-es/commands/CreateSolutionCommand.js +21 -28
- package/dist-es/commands/CreateSolutionVersionCommand.js +21 -28
- package/dist-es/commands/DeleteCampaignCommand.js +22 -29
- package/dist-es/commands/DeleteDatasetCommand.js +22 -29
- package/dist-es/commands/DeleteDatasetGroupCommand.js +22 -29
- package/dist-es/commands/DeleteEventTrackerCommand.js +22 -29
- package/dist-es/commands/DeleteFilterCommand.js +22 -29
- package/dist-es/commands/DeleteRecommenderCommand.js +22 -29
- package/dist-es/commands/DeleteSchemaCommand.js +22 -29
- package/dist-es/commands/DeleteSolutionCommand.js +22 -29
- package/dist-es/commands/DescribeAlgorithmCommand.js +21 -28
- package/dist-es/commands/DescribeBatchInferenceJobCommand.js +21 -28
- package/dist-es/commands/DescribeBatchSegmentJobCommand.js +21 -28
- package/dist-es/commands/DescribeCampaignCommand.js +21 -28
- package/dist-es/commands/DescribeDatasetCommand.js +21 -28
- package/dist-es/commands/DescribeDatasetExportJobCommand.js +21 -28
- package/dist-es/commands/DescribeDatasetGroupCommand.js +21 -28
- package/dist-es/commands/DescribeDatasetImportJobCommand.js +21 -28
- package/dist-es/commands/DescribeEventTrackerCommand.js +21 -28
- package/dist-es/commands/DescribeFeatureTransformationCommand.js +21 -28
- package/dist-es/commands/DescribeFilterCommand.js +21 -28
- package/dist-es/commands/DescribeRecipeCommand.js +21 -28
- package/dist-es/commands/DescribeRecommenderCommand.js +21 -28
- package/dist-es/commands/DescribeSchemaCommand.js +21 -28
- package/dist-es/commands/DescribeSolutionCommand.js +21 -28
- package/dist-es/commands/DescribeSolutionVersionCommand.js +21 -28
- package/dist-es/commands/GetSolutionMetricsCommand.js +21 -28
- package/dist-es/commands/ListBatchInferenceJobsCommand.js +21 -28
- package/dist-es/commands/ListBatchSegmentJobsCommand.js +21 -28
- package/dist-es/commands/ListCampaignsCommand.js +21 -28
- package/dist-es/commands/ListDatasetExportJobsCommand.js +21 -28
- package/dist-es/commands/ListDatasetGroupsCommand.js +21 -28
- package/dist-es/commands/ListDatasetImportJobsCommand.js +21 -28
- package/dist-es/commands/ListDatasetsCommand.js +21 -28
- package/dist-es/commands/ListEventTrackersCommand.js +21 -28
- package/dist-es/commands/ListFiltersCommand.js +21 -28
- package/dist-es/commands/ListRecipesCommand.js +21 -28
- package/dist-es/commands/ListRecommendersCommand.js +21 -28
- package/dist-es/commands/ListSchemasCommand.js +21 -28
- package/dist-es/commands/ListSolutionVersionsCommand.js +21 -28
- package/dist-es/commands/ListSolutionsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/StartRecommenderCommand.js +21 -28
- package/dist-es/commands/StopRecommenderCommand.js +21 -28
- package/dist-es/commands/StopSolutionVersionCreationCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateCampaignCommand.js +21 -28
- package/dist-es/commands/UpdateRecommenderCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/PersonalizeServiceException.js +5 -10
- package/dist-es/models/models_0.js +604 -260
- package/dist-es/pagination/ListBatchInferenceJobsPaginator.js +25 -68
- package/dist-es/pagination/ListBatchSegmentJobsPaginator.js +25 -68
- package/dist-es/pagination/ListCampaignsPaginator.js +25 -68
- package/dist-es/pagination/ListDatasetExportJobsPaginator.js +25 -68
- package/dist-es/pagination/ListDatasetGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListDatasetImportJobsPaginator.js +25 -68
- package/dist-es/pagination/ListDatasetsPaginator.js +25 -68
- package/dist-es/pagination/ListEventTrackersPaginator.js +25 -68
- package/dist-es/pagination/ListFiltersPaginator.js +25 -68
- package/dist-es/pagination/ListRecipesPaginator.js +25 -68
- package/dist-es/pagination/ListRecommendersPaginator.js +25 -68
- package/dist-es/pagination/ListSchemasPaginator.js +25 -68
- package/dist-es/pagination/ListSolutionVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListSolutionsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +3737 -4818
- 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-personalize
|
|
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-personalize
|
|
@@ -624,7 +624,7 @@ exports.deserializeAws_json1_1CreateBatchInferenceJobCommand = deserializeAws_js
|
|
|
624
624
|
const deserializeAws_json1_1CreateBatchInferenceJobCommandError = async (output, context) => {
|
|
625
625
|
const parsedOutput = {
|
|
626
626
|
...output,
|
|
627
|
-
body: await
|
|
627
|
+
body: await parseErrorBody(output.body, context),
|
|
628
628
|
};
|
|
629
629
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
630
630
|
switch (errorCode) {
|
|
@@ -673,7 +673,7 @@ exports.deserializeAws_json1_1CreateBatchSegmentJobCommand = deserializeAws_json
|
|
|
673
673
|
const deserializeAws_json1_1CreateBatchSegmentJobCommandError = async (output, context) => {
|
|
674
674
|
const parsedOutput = {
|
|
675
675
|
...output,
|
|
676
|
-
body: await
|
|
676
|
+
body: await parseErrorBody(output.body, context),
|
|
677
677
|
};
|
|
678
678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
679
|
switch (errorCode) {
|
|
@@ -722,7 +722,7 @@ exports.deserializeAws_json1_1CreateCampaignCommand = deserializeAws_json1_1Crea
|
|
|
722
722
|
const deserializeAws_json1_1CreateCampaignCommandError = async (output, context) => {
|
|
723
723
|
const parsedOutput = {
|
|
724
724
|
...output,
|
|
725
|
-
body: await
|
|
725
|
+
body: await parseErrorBody(output.body, context),
|
|
726
726
|
};
|
|
727
727
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
728
|
switch (errorCode) {
|
|
@@ -771,7 +771,7 @@ exports.deserializeAws_json1_1CreateDatasetCommand = deserializeAws_json1_1Creat
|
|
|
771
771
|
const deserializeAws_json1_1CreateDatasetCommandError = async (output, context) => {
|
|
772
772
|
const parsedOutput = {
|
|
773
773
|
...output,
|
|
774
|
-
body: await
|
|
774
|
+
body: await parseErrorBody(output.body, context),
|
|
775
775
|
};
|
|
776
776
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
777
|
switch (errorCode) {
|
|
@@ -820,7 +820,7 @@ exports.deserializeAws_json1_1CreateDatasetExportJobCommand = deserializeAws_jso
|
|
|
820
820
|
const deserializeAws_json1_1CreateDatasetExportJobCommandError = async (output, context) => {
|
|
821
821
|
const parsedOutput = {
|
|
822
822
|
...output,
|
|
823
|
-
body: await
|
|
823
|
+
body: await parseErrorBody(output.body, context),
|
|
824
824
|
};
|
|
825
825
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
826
|
switch (errorCode) {
|
|
@@ -869,7 +869,7 @@ exports.deserializeAws_json1_1CreateDatasetGroupCommand = deserializeAws_json1_1
|
|
|
869
869
|
const deserializeAws_json1_1CreateDatasetGroupCommandError = async (output, context) => {
|
|
870
870
|
const parsedOutput = {
|
|
871
871
|
...output,
|
|
872
|
-
body: await
|
|
872
|
+
body: await parseErrorBody(output.body, context),
|
|
873
873
|
};
|
|
874
874
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
875
|
switch (errorCode) {
|
|
@@ -912,7 +912,7 @@ exports.deserializeAws_json1_1CreateDatasetImportJobCommand = deserializeAws_jso
|
|
|
912
912
|
const deserializeAws_json1_1CreateDatasetImportJobCommandError = async (output, context) => {
|
|
913
913
|
const parsedOutput = {
|
|
914
914
|
...output,
|
|
915
|
-
body: await
|
|
915
|
+
body: await parseErrorBody(output.body, context),
|
|
916
916
|
};
|
|
917
917
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
918
918
|
switch (errorCode) {
|
|
@@ -961,7 +961,7 @@ exports.deserializeAws_json1_1CreateEventTrackerCommand = deserializeAws_json1_1
|
|
|
961
961
|
const deserializeAws_json1_1CreateEventTrackerCommandError = async (output, context) => {
|
|
962
962
|
const parsedOutput = {
|
|
963
963
|
...output,
|
|
964
|
-
body: await
|
|
964
|
+
body: await parseErrorBody(output.body, context),
|
|
965
965
|
};
|
|
966
966
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
967
967
|
switch (errorCode) {
|
|
@@ -1010,7 +1010,7 @@ exports.deserializeAws_json1_1CreateFilterCommand = deserializeAws_json1_1Create
|
|
|
1010
1010
|
const deserializeAws_json1_1CreateFilterCommandError = 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_1CreateRecommenderCommand = deserializeAws_json1_1C
|
|
|
1056
1056
|
const deserializeAws_json1_1CreateRecommenderCommandError = 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) {
|
|
@@ -1105,7 +1105,7 @@ exports.deserializeAws_json1_1CreateSchemaCommand = deserializeAws_json1_1Create
|
|
|
1105
1105
|
const deserializeAws_json1_1CreateSchemaCommandError = async (output, context) => {
|
|
1106
1106
|
const parsedOutput = {
|
|
1107
1107
|
...output,
|
|
1108
|
-
body: await
|
|
1108
|
+
body: await parseErrorBody(output.body, context),
|
|
1109
1109
|
};
|
|
1110
1110
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
1111
|
switch (errorCode) {
|
|
@@ -1145,7 +1145,7 @@ exports.deserializeAws_json1_1CreateSolutionCommand = deserializeAws_json1_1Crea
|
|
|
1145
1145
|
const deserializeAws_json1_1CreateSolutionCommandError = 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) {
|
|
@@ -1194,7 +1194,7 @@ exports.deserializeAws_json1_1CreateSolutionVersionCommand = deserializeAws_json
|
|
|
1194
1194
|
const deserializeAws_json1_1CreateSolutionVersionCommandError = 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_1DeleteCampaignCommand = deserializeAws_json1_1Dele
|
|
|
1237
1237
|
const deserializeAws_json1_1DeleteCampaignCommandError = 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) {
|
|
@@ -1274,7 +1274,7 @@ exports.deserializeAws_json1_1DeleteDatasetCommand = deserializeAws_json1_1Delet
|
|
|
1274
1274
|
const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context) => {
|
|
1275
1275
|
const parsedOutput = {
|
|
1276
1276
|
...output,
|
|
1277
|
-
body: await
|
|
1277
|
+
body: await parseErrorBody(output.body, context),
|
|
1278
1278
|
};
|
|
1279
1279
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
1280
|
switch (errorCode) {
|
|
@@ -1311,7 +1311,7 @@ exports.deserializeAws_json1_1DeleteDatasetGroupCommand = deserializeAws_json1_1
|
|
|
1311
1311
|
const deserializeAws_json1_1DeleteDatasetGroupCommandError = async (output, context) => {
|
|
1312
1312
|
const parsedOutput = {
|
|
1313
1313
|
...output,
|
|
1314
|
-
body: await
|
|
1314
|
+
body: await parseErrorBody(output.body, context),
|
|
1315
1315
|
};
|
|
1316
1316
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1317
1317
|
switch (errorCode) {
|
|
@@ -1348,7 +1348,7 @@ exports.deserializeAws_json1_1DeleteEventTrackerCommand = deserializeAws_json1_1
|
|
|
1348
1348
|
const deserializeAws_json1_1DeleteEventTrackerCommandError = async (output, context) => {
|
|
1349
1349
|
const parsedOutput = {
|
|
1350
1350
|
...output,
|
|
1351
|
-
body: await
|
|
1351
|
+
body: await parseErrorBody(output.body, context),
|
|
1352
1352
|
};
|
|
1353
1353
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1354
|
switch (errorCode) {
|
|
@@ -1385,7 +1385,7 @@ exports.deserializeAws_json1_1DeleteFilterCommand = deserializeAws_json1_1Delete
|
|
|
1385
1385
|
const deserializeAws_json1_1DeleteFilterCommandError = async (output, context) => {
|
|
1386
1386
|
const parsedOutput = {
|
|
1387
1387
|
...output,
|
|
1388
|
-
body: await
|
|
1388
|
+
body: await parseErrorBody(output.body, context),
|
|
1389
1389
|
};
|
|
1390
1390
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
1391
|
switch (errorCode) {
|
|
@@ -1422,7 +1422,7 @@ exports.deserializeAws_json1_1DeleteRecommenderCommand = deserializeAws_json1_1D
|
|
|
1422
1422
|
const deserializeAws_json1_1DeleteRecommenderCommandError = async (output, context) => {
|
|
1423
1423
|
const parsedOutput = {
|
|
1424
1424
|
...output,
|
|
1425
|
-
body: await
|
|
1425
|
+
body: await parseErrorBody(output.body, context),
|
|
1426
1426
|
};
|
|
1427
1427
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1428
1428
|
switch (errorCode) {
|
|
@@ -1459,7 +1459,7 @@ exports.deserializeAws_json1_1DeleteSchemaCommand = deserializeAws_json1_1Delete
|
|
|
1459
1459
|
const deserializeAws_json1_1DeleteSchemaCommandError = async (output, context) => {
|
|
1460
1460
|
const parsedOutput = {
|
|
1461
1461
|
...output,
|
|
1462
|
-
body: await
|
|
1462
|
+
body: await parseErrorBody(output.body, context),
|
|
1463
1463
|
};
|
|
1464
1464
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
1465
|
switch (errorCode) {
|
|
@@ -1496,7 +1496,7 @@ exports.deserializeAws_json1_1DeleteSolutionCommand = deserializeAws_json1_1Dele
|
|
|
1496
1496
|
const deserializeAws_json1_1DeleteSolutionCommandError = async (output, context) => {
|
|
1497
1497
|
const parsedOutput = {
|
|
1498
1498
|
...output,
|
|
1499
|
-
body: await
|
|
1499
|
+
body: await parseErrorBody(output.body, context),
|
|
1500
1500
|
};
|
|
1501
1501
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
1502
|
switch (errorCode) {
|
|
@@ -1536,7 +1536,7 @@ exports.deserializeAws_json1_1DescribeAlgorithmCommand = deserializeAws_json1_1D
|
|
|
1536
1536
|
const deserializeAws_json1_1DescribeAlgorithmCommandError = async (output, context) => {
|
|
1537
1537
|
const parsedOutput = {
|
|
1538
1538
|
...output,
|
|
1539
|
-
body: await
|
|
1539
|
+
body: await parseErrorBody(output.body, context),
|
|
1540
1540
|
};
|
|
1541
1541
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1542
1542
|
switch (errorCode) {
|
|
@@ -1573,7 +1573,7 @@ exports.deserializeAws_json1_1DescribeBatchInferenceJobCommand = deserializeAws_
|
|
|
1573
1573
|
const deserializeAws_json1_1DescribeBatchInferenceJobCommandError = async (output, context) => {
|
|
1574
1574
|
const parsedOutput = {
|
|
1575
1575
|
...output,
|
|
1576
|
-
body: await
|
|
1576
|
+
body: await parseErrorBody(output.body, context),
|
|
1577
1577
|
};
|
|
1578
1578
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
1579
|
switch (errorCode) {
|
|
@@ -1610,7 +1610,7 @@ exports.deserializeAws_json1_1DescribeBatchSegmentJobCommand = deserializeAws_js
|
|
|
1610
1610
|
const deserializeAws_json1_1DescribeBatchSegmentJobCommandError = async (output, context) => {
|
|
1611
1611
|
const parsedOutput = {
|
|
1612
1612
|
...output,
|
|
1613
|
-
body: await
|
|
1613
|
+
body: await parseErrorBody(output.body, context),
|
|
1614
1614
|
};
|
|
1615
1615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1616
1616
|
switch (errorCode) {
|
|
@@ -1647,7 +1647,7 @@ exports.deserializeAws_json1_1DescribeCampaignCommand = deserializeAws_json1_1De
|
|
|
1647
1647
|
const deserializeAws_json1_1DescribeCampaignCommandError = async (output, context) => {
|
|
1648
1648
|
const parsedOutput = {
|
|
1649
1649
|
...output,
|
|
1650
|
-
body: await
|
|
1650
|
+
body: await parseErrorBody(output.body, context),
|
|
1651
1651
|
};
|
|
1652
1652
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
1653
|
switch (errorCode) {
|
|
@@ -1684,7 +1684,7 @@ exports.deserializeAws_json1_1DescribeDatasetCommand = deserializeAws_json1_1Des
|
|
|
1684
1684
|
const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context) => {
|
|
1685
1685
|
const parsedOutput = {
|
|
1686
1686
|
...output,
|
|
1687
|
-
body: await
|
|
1687
|
+
body: await parseErrorBody(output.body, context),
|
|
1688
1688
|
};
|
|
1689
1689
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
1690
|
switch (errorCode) {
|
|
@@ -1721,7 +1721,7 @@ exports.deserializeAws_json1_1DescribeDatasetExportJobCommand = deserializeAws_j
|
|
|
1721
1721
|
const deserializeAws_json1_1DescribeDatasetExportJobCommandError = async (output, context) => {
|
|
1722
1722
|
const parsedOutput = {
|
|
1723
1723
|
...output,
|
|
1724
|
-
body: await
|
|
1724
|
+
body: await parseErrorBody(output.body, context),
|
|
1725
1725
|
};
|
|
1726
1726
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1727
1727
|
switch (errorCode) {
|
|
@@ -1758,7 +1758,7 @@ exports.deserializeAws_json1_1DescribeDatasetGroupCommand = deserializeAws_json1
|
|
|
1758
1758
|
const deserializeAws_json1_1DescribeDatasetGroupCommandError = async (output, context) => {
|
|
1759
1759
|
const parsedOutput = {
|
|
1760
1760
|
...output,
|
|
1761
|
-
body: await
|
|
1761
|
+
body: await parseErrorBody(output.body, context),
|
|
1762
1762
|
};
|
|
1763
1763
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
1764
|
switch (errorCode) {
|
|
@@ -1795,7 +1795,7 @@ exports.deserializeAws_json1_1DescribeDatasetImportJobCommand = deserializeAws_j
|
|
|
1795
1795
|
const deserializeAws_json1_1DescribeDatasetImportJobCommandError = async (output, context) => {
|
|
1796
1796
|
const parsedOutput = {
|
|
1797
1797
|
...output,
|
|
1798
|
-
body: await
|
|
1798
|
+
body: await parseErrorBody(output.body, context),
|
|
1799
1799
|
};
|
|
1800
1800
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1801
1801
|
switch (errorCode) {
|
|
@@ -1832,7 +1832,7 @@ exports.deserializeAws_json1_1DescribeEventTrackerCommand = deserializeAws_json1
|
|
|
1832
1832
|
const deserializeAws_json1_1DescribeEventTrackerCommandError = 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) {
|
|
@@ -1869,7 +1869,7 @@ exports.deserializeAws_json1_1DescribeFeatureTransformationCommand = deserialize
|
|
|
1869
1869
|
const deserializeAws_json1_1DescribeFeatureTransformationCommandError = async (output, context) => {
|
|
1870
1870
|
const parsedOutput = {
|
|
1871
1871
|
...output,
|
|
1872
|
-
body: await
|
|
1872
|
+
body: await parseErrorBody(output.body, context),
|
|
1873
1873
|
};
|
|
1874
1874
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1875
1875
|
switch (errorCode) {
|
|
@@ -1906,7 +1906,7 @@ exports.deserializeAws_json1_1DescribeFilterCommand = deserializeAws_json1_1Desc
|
|
|
1906
1906
|
const deserializeAws_json1_1DescribeFilterCommandError = async (output, context) => {
|
|
1907
1907
|
const parsedOutput = {
|
|
1908
1908
|
...output,
|
|
1909
|
-
body: await
|
|
1909
|
+
body: await parseErrorBody(output.body, context),
|
|
1910
1910
|
};
|
|
1911
1911
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
1912
|
switch (errorCode) {
|
|
@@ -1943,7 +1943,7 @@ exports.deserializeAws_json1_1DescribeRecipeCommand = deserializeAws_json1_1Desc
|
|
|
1943
1943
|
const deserializeAws_json1_1DescribeRecipeCommandError = async (output, context) => {
|
|
1944
1944
|
const parsedOutput = {
|
|
1945
1945
|
...output,
|
|
1946
|
-
body: await
|
|
1946
|
+
body: await parseErrorBody(output.body, context),
|
|
1947
1947
|
};
|
|
1948
1948
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1949
1949
|
switch (errorCode) {
|
|
@@ -1980,7 +1980,7 @@ exports.deserializeAws_json1_1DescribeRecommenderCommand = deserializeAws_json1_
|
|
|
1980
1980
|
const deserializeAws_json1_1DescribeRecommenderCommandError = async (output, context) => {
|
|
1981
1981
|
const parsedOutput = {
|
|
1982
1982
|
...output,
|
|
1983
|
-
body: await
|
|
1983
|
+
body: await parseErrorBody(output.body, context),
|
|
1984
1984
|
};
|
|
1985
1985
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1986
1986
|
switch (errorCode) {
|
|
@@ -2017,7 +2017,7 @@ exports.deserializeAws_json1_1DescribeSchemaCommand = deserializeAws_json1_1Desc
|
|
|
2017
2017
|
const deserializeAws_json1_1DescribeSchemaCommandError = async (output, context) => {
|
|
2018
2018
|
const parsedOutput = {
|
|
2019
2019
|
...output,
|
|
2020
|
-
body: await
|
|
2020
|
+
body: await parseErrorBody(output.body, context),
|
|
2021
2021
|
};
|
|
2022
2022
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2023
2023
|
switch (errorCode) {
|
|
@@ -2054,7 +2054,7 @@ exports.deserializeAws_json1_1DescribeSolutionCommand = deserializeAws_json1_1De
|
|
|
2054
2054
|
const deserializeAws_json1_1DescribeSolutionCommandError = async (output, context) => {
|
|
2055
2055
|
const parsedOutput = {
|
|
2056
2056
|
...output,
|
|
2057
|
-
body: await
|
|
2057
|
+
body: await parseErrorBody(output.body, context),
|
|
2058
2058
|
};
|
|
2059
2059
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2060
2060
|
switch (errorCode) {
|
|
@@ -2091,7 +2091,7 @@ exports.deserializeAws_json1_1DescribeSolutionVersionCommand = deserializeAws_js
|
|
|
2091
2091
|
const deserializeAws_json1_1DescribeSolutionVersionCommandError = async (output, context) => {
|
|
2092
2092
|
const parsedOutput = {
|
|
2093
2093
|
...output,
|
|
2094
|
-
body: await
|
|
2094
|
+
body: await parseErrorBody(output.body, context),
|
|
2095
2095
|
};
|
|
2096
2096
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2097
2097
|
switch (errorCode) {
|
|
@@ -2128,7 +2128,7 @@ exports.deserializeAws_json1_1GetSolutionMetricsCommand = deserializeAws_json1_1
|
|
|
2128
2128
|
const deserializeAws_json1_1GetSolutionMetricsCommandError = async (output, context) => {
|
|
2129
2129
|
const parsedOutput = {
|
|
2130
2130
|
...output,
|
|
2131
|
-
body: await
|
|
2131
|
+
body: await parseErrorBody(output.body, context),
|
|
2132
2132
|
};
|
|
2133
2133
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2134
2134
|
switch (errorCode) {
|
|
@@ -2168,7 +2168,7 @@ exports.deserializeAws_json1_1ListBatchInferenceJobsCommand = deserializeAws_jso
|
|
|
2168
2168
|
const deserializeAws_json1_1ListBatchInferenceJobsCommandError = async (output, context) => {
|
|
2169
2169
|
const parsedOutput = {
|
|
2170
2170
|
...output,
|
|
2171
|
-
body: await
|
|
2171
|
+
body: await parseErrorBody(output.body, context),
|
|
2172
2172
|
};
|
|
2173
2173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2174
2174
|
switch (errorCode) {
|
|
@@ -2205,7 +2205,7 @@ exports.deserializeAws_json1_1ListBatchSegmentJobsCommand = deserializeAws_json1
|
|
|
2205
2205
|
const deserializeAws_json1_1ListBatchSegmentJobsCommandError = async (output, context) => {
|
|
2206
2206
|
const parsedOutput = {
|
|
2207
2207
|
...output,
|
|
2208
|
-
body: await
|
|
2208
|
+
body: await parseErrorBody(output.body, context),
|
|
2209
2209
|
};
|
|
2210
2210
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2211
2211
|
switch (errorCode) {
|
|
@@ -2242,7 +2242,7 @@ exports.deserializeAws_json1_1ListCampaignsCommand = deserializeAws_json1_1ListC
|
|
|
2242
2242
|
const deserializeAws_json1_1ListCampaignsCommandError = async (output, context) => {
|
|
2243
2243
|
const parsedOutput = {
|
|
2244
2244
|
...output,
|
|
2245
|
-
body: await
|
|
2245
|
+
body: await parseErrorBody(output.body, context),
|
|
2246
2246
|
};
|
|
2247
2247
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2248
2248
|
switch (errorCode) {
|
|
@@ -2279,7 +2279,7 @@ exports.deserializeAws_json1_1ListDatasetExportJobsCommand = deserializeAws_json
|
|
|
2279
2279
|
const deserializeAws_json1_1ListDatasetExportJobsCommandError = async (output, context) => {
|
|
2280
2280
|
const parsedOutput = {
|
|
2281
2281
|
...output,
|
|
2282
|
-
body: await
|
|
2282
|
+
body: await parseErrorBody(output.body, context),
|
|
2283
2283
|
};
|
|
2284
2284
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2285
2285
|
switch (errorCode) {
|
|
@@ -2316,7 +2316,7 @@ exports.deserializeAws_json1_1ListDatasetGroupsCommand = deserializeAws_json1_1L
|
|
|
2316
2316
|
const deserializeAws_json1_1ListDatasetGroupsCommandError = async (output, context) => {
|
|
2317
2317
|
const parsedOutput = {
|
|
2318
2318
|
...output,
|
|
2319
|
-
body: await
|
|
2319
|
+
body: await parseErrorBody(output.body, context),
|
|
2320
2320
|
};
|
|
2321
2321
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2322
2322
|
switch (errorCode) {
|
|
@@ -2350,7 +2350,7 @@ exports.deserializeAws_json1_1ListDatasetImportJobsCommand = deserializeAws_json
|
|
|
2350
2350
|
const deserializeAws_json1_1ListDatasetImportJobsCommandError = async (output, context) => {
|
|
2351
2351
|
const parsedOutput = {
|
|
2352
2352
|
...output,
|
|
2353
|
-
body: await
|
|
2353
|
+
body: await parseErrorBody(output.body, context),
|
|
2354
2354
|
};
|
|
2355
2355
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
2356
|
switch (errorCode) {
|
|
@@ -2387,7 +2387,7 @@ exports.deserializeAws_json1_1ListDatasetsCommand = deserializeAws_json1_1ListDa
|
|
|
2387
2387
|
const deserializeAws_json1_1ListDatasetsCommandError = async (output, context) => {
|
|
2388
2388
|
const parsedOutput = {
|
|
2389
2389
|
...output,
|
|
2390
|
-
body: await
|
|
2390
|
+
body: await parseErrorBody(output.body, context),
|
|
2391
2391
|
};
|
|
2392
2392
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2393
2393
|
switch (errorCode) {
|
|
@@ -2424,7 +2424,7 @@ exports.deserializeAws_json1_1ListEventTrackersCommand = deserializeAws_json1_1L
|
|
|
2424
2424
|
const deserializeAws_json1_1ListEventTrackersCommandError = async (output, context) => {
|
|
2425
2425
|
const parsedOutput = {
|
|
2426
2426
|
...output,
|
|
2427
|
-
body: await
|
|
2427
|
+
body: await parseErrorBody(output.body, context),
|
|
2428
2428
|
};
|
|
2429
2429
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2430
2430
|
switch (errorCode) {
|
|
@@ -2461,7 +2461,7 @@ exports.deserializeAws_json1_1ListFiltersCommand = deserializeAws_json1_1ListFil
|
|
|
2461
2461
|
const deserializeAws_json1_1ListFiltersCommandError = async (output, context) => {
|
|
2462
2462
|
const parsedOutput = {
|
|
2463
2463
|
...output,
|
|
2464
|
-
body: await
|
|
2464
|
+
body: await parseErrorBody(output.body, context),
|
|
2465
2465
|
};
|
|
2466
2466
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2467
2467
|
switch (errorCode) {
|
|
@@ -2498,7 +2498,7 @@ exports.deserializeAws_json1_1ListRecipesCommand = deserializeAws_json1_1ListRec
|
|
|
2498
2498
|
const deserializeAws_json1_1ListRecipesCommandError = async (output, context) => {
|
|
2499
2499
|
const parsedOutput = {
|
|
2500
2500
|
...output,
|
|
2501
|
-
body: await
|
|
2501
|
+
body: await parseErrorBody(output.body, context),
|
|
2502
2502
|
};
|
|
2503
2503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2504
2504
|
switch (errorCode) {
|
|
@@ -2535,7 +2535,7 @@ exports.deserializeAws_json1_1ListRecommendersCommand = deserializeAws_json1_1Li
|
|
|
2535
2535
|
const deserializeAws_json1_1ListRecommendersCommandError = async (output, context) => {
|
|
2536
2536
|
const parsedOutput = {
|
|
2537
2537
|
...output,
|
|
2538
|
-
body: await
|
|
2538
|
+
body: await parseErrorBody(output.body, context),
|
|
2539
2539
|
};
|
|
2540
2540
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2541
2541
|
switch (errorCode) {
|
|
@@ -2572,7 +2572,7 @@ exports.deserializeAws_json1_1ListSchemasCommand = deserializeAws_json1_1ListSch
|
|
|
2572
2572
|
const deserializeAws_json1_1ListSchemasCommandError = async (output, context) => {
|
|
2573
2573
|
const parsedOutput = {
|
|
2574
2574
|
...output,
|
|
2575
|
-
body: await
|
|
2575
|
+
body: await parseErrorBody(output.body, context),
|
|
2576
2576
|
};
|
|
2577
2577
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2578
2578
|
switch (errorCode) {
|
|
@@ -2606,7 +2606,7 @@ exports.deserializeAws_json1_1ListSolutionsCommand = deserializeAws_json1_1ListS
|
|
|
2606
2606
|
const deserializeAws_json1_1ListSolutionsCommandError = async (output, context) => {
|
|
2607
2607
|
const parsedOutput = {
|
|
2608
2608
|
...output,
|
|
2609
|
-
body: await
|
|
2609
|
+
body: await parseErrorBody(output.body, context),
|
|
2610
2610
|
};
|
|
2611
2611
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2612
2612
|
switch (errorCode) {
|
|
@@ -2643,7 +2643,7 @@ exports.deserializeAws_json1_1ListSolutionVersionsCommand = deserializeAws_json1
|
|
|
2643
2643
|
const deserializeAws_json1_1ListSolutionVersionsCommandError = async (output, context) => {
|
|
2644
2644
|
const parsedOutput = {
|
|
2645
2645
|
...output,
|
|
2646
|
-
body: await
|
|
2646
|
+
body: await parseErrorBody(output.body, context),
|
|
2647
2647
|
};
|
|
2648
2648
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2649
2649
|
switch (errorCode) {
|
|
@@ -2683,7 +2683,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
2683
2683
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
2684
2684
|
const parsedOutput = {
|
|
2685
2685
|
...output,
|
|
2686
|
-
body: await
|
|
2686
|
+
body: await parseErrorBody(output.body, context),
|
|
2687
2687
|
};
|
|
2688
2688
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2689
2689
|
switch (errorCode) {
|
|
@@ -2723,7 +2723,7 @@ exports.deserializeAws_json1_1StartRecommenderCommand = deserializeAws_json1_1St
|
|
|
2723
2723
|
const deserializeAws_json1_1StartRecommenderCommandError = async (output, context) => {
|
|
2724
2724
|
const parsedOutput = {
|
|
2725
2725
|
...output,
|
|
2726
|
-
body: await
|
|
2726
|
+
body: await parseErrorBody(output.body, context),
|
|
2727
2727
|
};
|
|
2728
2728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2729
2729
|
switch (errorCode) {
|
|
@@ -2763,7 +2763,7 @@ exports.deserializeAws_json1_1StopRecommenderCommand = deserializeAws_json1_1Sto
|
|
|
2763
2763
|
const deserializeAws_json1_1StopRecommenderCommandError = async (output, context) => {
|
|
2764
2764
|
const parsedOutput = {
|
|
2765
2765
|
...output,
|
|
2766
|
-
body: await
|
|
2766
|
+
body: await parseErrorBody(output.body, context),
|
|
2767
2767
|
};
|
|
2768
2768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2769
2769
|
switch (errorCode) {
|
|
@@ -2800,7 +2800,7 @@ exports.deserializeAws_json1_1StopSolutionVersionCreationCommand = deserializeAw
|
|
|
2800
2800
|
const deserializeAws_json1_1StopSolutionVersionCreationCommandError = async (output, context) => {
|
|
2801
2801
|
const parsedOutput = {
|
|
2802
2802
|
...output,
|
|
2803
|
-
body: await
|
|
2803
|
+
body: await parseErrorBody(output.body, context),
|
|
2804
2804
|
};
|
|
2805
2805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2806
2806
|
switch (errorCode) {
|
|
@@ -2840,7 +2840,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
2840
2840
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
2841
2841
|
const parsedOutput = {
|
|
2842
2842
|
...output,
|
|
2843
|
-
body: await
|
|
2843
|
+
body: await parseErrorBody(output.body, context),
|
|
2844
2844
|
};
|
|
2845
2845
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2846
2846
|
switch (errorCode) {
|
|
@@ -2886,7 +2886,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
2886
2886
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
2887
2887
|
const parsedOutput = {
|
|
2888
2888
|
...output,
|
|
2889
|
-
body: await
|
|
2889
|
+
body: await parseErrorBody(output.body, context),
|
|
2890
2890
|
};
|
|
2891
2891
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2892
2892
|
switch (errorCode) {
|
|
@@ -2929,7 +2929,7 @@ exports.deserializeAws_json1_1UpdateCampaignCommand = deserializeAws_json1_1Upda
|
|
|
2929
2929
|
const deserializeAws_json1_1UpdateCampaignCommandError = async (output, context) => {
|
|
2930
2930
|
const parsedOutput = {
|
|
2931
2931
|
...output,
|
|
2932
|
-
body: await
|
|
2932
|
+
body: await parseErrorBody(output.body, context),
|
|
2933
2933
|
};
|
|
2934
2934
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2935
2935
|
switch (errorCode) {
|
|
@@ -2969,7 +2969,7 @@ exports.deserializeAws_json1_1UpdateRecommenderCommand = deserializeAws_json1_1U
|
|
|
2969
2969
|
const deserializeAws_json1_1UpdateRecommenderCommandError = async (output, context) => {
|
|
2970
2970
|
const parsedOutput = {
|
|
2971
2971
|
...output,
|
|
2972
|
-
body: await
|
|
2972
|
+
body: await parseErrorBody(output.body, context),
|
|
2973
2973
|
};
|
|
2974
2974
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2975
2975
|
switch (errorCode) {
|
|
@@ -5118,6 +5118,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
5118
5118
|
}
|
|
5119
5119
|
return {};
|
|
5120
5120
|
});
|
|
5121
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
5122
|
+
var _a;
|
|
5123
|
+
const value = await parseBody(errorBody, context);
|
|
5124
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
5125
|
+
return value;
|
|
5126
|
+
};
|
|
5121
5127
|
const loadRestJsonErrorCode = (output, data) => {
|
|
5122
5128
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
5123
5129
|
const sanitizeErrorCode = (rawValue) => {
|