@aws-sdk/client-machine-learning 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 +34 -28
- package/dist-es/MachineLearning.js +114 -121
- package/dist-es/MachineLearningClient.js +22 -28
- package/dist-es/commands/AddTagsCommand.js +21 -28
- package/dist-es/commands/CreateBatchPredictionCommand.js +21 -28
- package/dist-es/commands/CreateDataSourceFromRDSCommand.js +21 -28
- package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js +21 -28
- package/dist-es/commands/CreateDataSourceFromS3Command.js +21 -28
- package/dist-es/commands/CreateEvaluationCommand.js +21 -28
- package/dist-es/commands/CreateMLModelCommand.js +21 -28
- package/dist-es/commands/CreateRealtimeEndpointCommand.js +21 -28
- package/dist-es/commands/DeleteBatchPredictionCommand.js +21 -28
- package/dist-es/commands/DeleteDataSourceCommand.js +21 -28
- package/dist-es/commands/DeleteEvaluationCommand.js +21 -28
- package/dist-es/commands/DeleteMLModelCommand.js +21 -28
- package/dist-es/commands/DeleteRealtimeEndpointCommand.js +21 -28
- package/dist-es/commands/DeleteTagsCommand.js +21 -28
- package/dist-es/commands/DescribeBatchPredictionsCommand.js +21 -28
- package/dist-es/commands/DescribeDataSourcesCommand.js +21 -28
- package/dist-es/commands/DescribeEvaluationsCommand.js +21 -28
- package/dist-es/commands/DescribeMLModelsCommand.js +21 -28
- package/dist-es/commands/DescribeTagsCommand.js +21 -28
- package/dist-es/commands/GetBatchPredictionCommand.js +21 -28
- package/dist-es/commands/GetDataSourceCommand.js +21 -28
- package/dist-es/commands/GetEvaluationCommand.js +21 -28
- package/dist-es/commands/GetMLModelCommand.js +21 -28
- package/dist-es/commands/PredictCommand.js +21 -28
- package/dist-es/commands/UpdateBatchPredictionCommand.js +21 -28
- package/dist-es/commands/UpdateDataSourceCommand.js +21 -28
- package/dist-es/commands/UpdateEvaluationCommand.js +21 -28
- package/dist-es/commands/UpdateMLModelCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MachineLearningServiceException.js +5 -10
- package/dist-es/models/models_0.js +312 -167
- package/dist-es/pagination/DescribeBatchPredictionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeDataSourcesPaginator.js +25 -68
- package/dist-es/pagination/DescribeEvaluationsPaginator.js +25 -68
- package/dist-es/pagination/DescribeMLModelsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1831 -2279
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForBatchPredictionAvailable.js +50 -91
- package/dist-es/waiters/waitForDataSourceAvailable.js +50 -91
- package/dist-es/waiters/waitForEvaluationAvailable.js +50 -91
- package/dist-es/waiters/waitForMLModelAvailable.js +50 -91
- package/package.json +35 -35
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-machine-learning
|
|
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-machine-learning
|
|
@@ -303,7 +303,7 @@ exports.deserializeAws_json1_1AddTagsCommand = deserializeAws_json1_1AddTagsComm
|
|
|
303
303
|
const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
304
304
|
const parsedOutput = {
|
|
305
305
|
...output,
|
|
306
|
-
body: await
|
|
306
|
+
body: await parseErrorBody(output.body, context),
|
|
307
307
|
};
|
|
308
308
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
309
309
|
switch (errorCode) {
|
|
@@ -349,7 +349,7 @@ exports.deserializeAws_json1_1CreateBatchPredictionCommand = deserializeAws_json
|
|
|
349
349
|
const deserializeAws_json1_1CreateBatchPredictionCommandError = async (output, context) => {
|
|
350
350
|
const parsedOutput = {
|
|
351
351
|
...output,
|
|
352
|
-
body: await
|
|
352
|
+
body: await parseErrorBody(output.body, context),
|
|
353
353
|
};
|
|
354
354
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
355
355
|
switch (errorCode) {
|
|
@@ -389,7 +389,7 @@ exports.deserializeAws_json1_1CreateDataSourceFromRDSCommand = deserializeAws_js
|
|
|
389
389
|
const deserializeAws_json1_1CreateDataSourceFromRDSCommandError = async (output, context) => {
|
|
390
390
|
const parsedOutput = {
|
|
391
391
|
...output,
|
|
392
|
-
body: await
|
|
392
|
+
body: await parseErrorBody(output.body, context),
|
|
393
393
|
};
|
|
394
394
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
395
395
|
switch (errorCode) {
|
|
@@ -429,7 +429,7 @@ exports.deserializeAws_json1_1CreateDataSourceFromRedshiftCommand = deserializeA
|
|
|
429
429
|
const deserializeAws_json1_1CreateDataSourceFromRedshiftCommandError = async (output, context) => {
|
|
430
430
|
const parsedOutput = {
|
|
431
431
|
...output,
|
|
432
|
-
body: await
|
|
432
|
+
body: await parseErrorBody(output.body, context),
|
|
433
433
|
};
|
|
434
434
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
435
435
|
switch (errorCode) {
|
|
@@ -469,7 +469,7 @@ exports.deserializeAws_json1_1CreateDataSourceFromS3Command = deserializeAws_jso
|
|
|
469
469
|
const deserializeAws_json1_1CreateDataSourceFromS3CommandError = async (output, context) => {
|
|
470
470
|
const parsedOutput = {
|
|
471
471
|
...output,
|
|
472
|
-
body: await
|
|
472
|
+
body: await parseErrorBody(output.body, context),
|
|
473
473
|
};
|
|
474
474
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
475
475
|
switch (errorCode) {
|
|
@@ -509,7 +509,7 @@ exports.deserializeAws_json1_1CreateEvaluationCommand = deserializeAws_json1_1Cr
|
|
|
509
509
|
const deserializeAws_json1_1CreateEvaluationCommandError = async (output, context) => {
|
|
510
510
|
const parsedOutput = {
|
|
511
511
|
...output,
|
|
512
|
-
body: await
|
|
512
|
+
body: await parseErrorBody(output.body, context),
|
|
513
513
|
};
|
|
514
514
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
515
515
|
switch (errorCode) {
|
|
@@ -549,7 +549,7 @@ exports.deserializeAws_json1_1CreateMLModelCommand = deserializeAws_json1_1Creat
|
|
|
549
549
|
const deserializeAws_json1_1CreateMLModelCommandError = async (output, context) => {
|
|
550
550
|
const parsedOutput = {
|
|
551
551
|
...output,
|
|
552
|
-
body: await
|
|
552
|
+
body: await parseErrorBody(output.body, context),
|
|
553
553
|
};
|
|
554
554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
555
555
|
switch (errorCode) {
|
|
@@ -589,7 +589,7 @@ exports.deserializeAws_json1_1CreateRealtimeEndpointCommand = deserializeAws_jso
|
|
|
589
589
|
const deserializeAws_json1_1CreateRealtimeEndpointCommandError = async (output, context) => {
|
|
590
590
|
const parsedOutput = {
|
|
591
591
|
...output,
|
|
592
|
-
body: await
|
|
592
|
+
body: await parseErrorBody(output.body, context),
|
|
593
593
|
};
|
|
594
594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
595
595
|
switch (errorCode) {
|
|
@@ -629,7 +629,7 @@ exports.deserializeAws_json1_1DeleteBatchPredictionCommand = deserializeAws_json
|
|
|
629
629
|
const deserializeAws_json1_1DeleteBatchPredictionCommandError = async (output, context) => {
|
|
630
630
|
const parsedOutput = {
|
|
631
631
|
...output,
|
|
632
|
-
body: await
|
|
632
|
+
body: await parseErrorBody(output.body, context),
|
|
633
633
|
};
|
|
634
634
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
635
|
switch (errorCode) {
|
|
@@ -669,7 +669,7 @@ exports.deserializeAws_json1_1DeleteDataSourceCommand = deserializeAws_json1_1De
|
|
|
669
669
|
const deserializeAws_json1_1DeleteDataSourceCommandError = async (output, context) => {
|
|
670
670
|
const parsedOutput = {
|
|
671
671
|
...output,
|
|
672
|
-
body: await
|
|
672
|
+
body: await parseErrorBody(output.body, context),
|
|
673
673
|
};
|
|
674
674
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
675
675
|
switch (errorCode) {
|
|
@@ -709,7 +709,7 @@ exports.deserializeAws_json1_1DeleteEvaluationCommand = deserializeAws_json1_1De
|
|
|
709
709
|
const deserializeAws_json1_1DeleteEvaluationCommandError = async (output, context) => {
|
|
710
710
|
const parsedOutput = {
|
|
711
711
|
...output,
|
|
712
|
-
body: await
|
|
712
|
+
body: await parseErrorBody(output.body, context),
|
|
713
713
|
};
|
|
714
714
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
715
715
|
switch (errorCode) {
|
|
@@ -749,7 +749,7 @@ exports.deserializeAws_json1_1DeleteMLModelCommand = deserializeAws_json1_1Delet
|
|
|
749
749
|
const deserializeAws_json1_1DeleteMLModelCommandError = async (output, context) => {
|
|
750
750
|
const parsedOutput = {
|
|
751
751
|
...output,
|
|
752
|
-
body: await
|
|
752
|
+
body: await parseErrorBody(output.body, context),
|
|
753
753
|
};
|
|
754
754
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
755
755
|
switch (errorCode) {
|
|
@@ -789,7 +789,7 @@ exports.deserializeAws_json1_1DeleteRealtimeEndpointCommand = deserializeAws_jso
|
|
|
789
789
|
const deserializeAws_json1_1DeleteRealtimeEndpointCommandError = 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) {
|
|
@@ -829,7 +829,7 @@ exports.deserializeAws_json1_1DeleteTagsCommand = deserializeAws_json1_1DeleteTa
|
|
|
829
829
|
const deserializeAws_json1_1DeleteTagsCommandError = async (output, context) => {
|
|
830
830
|
const parsedOutput = {
|
|
831
831
|
...output,
|
|
832
|
-
body: await
|
|
832
|
+
body: await parseErrorBody(output.body, context),
|
|
833
833
|
};
|
|
834
834
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
835
835
|
switch (errorCode) {
|
|
@@ -872,7 +872,7 @@ exports.deserializeAws_json1_1DescribeBatchPredictionsCommand = deserializeAws_j
|
|
|
872
872
|
const deserializeAws_json1_1DescribeBatchPredictionsCommandError = 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) {
|
|
@@ -909,7 +909,7 @@ exports.deserializeAws_json1_1DescribeDataSourcesCommand = deserializeAws_json1_
|
|
|
909
909
|
const deserializeAws_json1_1DescribeDataSourcesCommandError = async (output, context) => {
|
|
910
910
|
const parsedOutput = {
|
|
911
911
|
...output,
|
|
912
|
-
body: await
|
|
912
|
+
body: await parseErrorBody(output.body, context),
|
|
913
913
|
};
|
|
914
914
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
915
915
|
switch (errorCode) {
|
|
@@ -946,7 +946,7 @@ exports.deserializeAws_json1_1DescribeEvaluationsCommand = deserializeAws_json1_
|
|
|
946
946
|
const deserializeAws_json1_1DescribeEvaluationsCommandError = async (output, context) => {
|
|
947
947
|
const parsedOutput = {
|
|
948
948
|
...output,
|
|
949
|
-
body: await
|
|
949
|
+
body: await parseErrorBody(output.body, context),
|
|
950
950
|
};
|
|
951
951
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
952
952
|
switch (errorCode) {
|
|
@@ -983,7 +983,7 @@ exports.deserializeAws_json1_1DescribeMLModelsCommand = deserializeAws_json1_1De
|
|
|
983
983
|
const deserializeAws_json1_1DescribeMLModelsCommandError = async (output, context) => {
|
|
984
984
|
const parsedOutput = {
|
|
985
985
|
...output,
|
|
986
|
-
body: await
|
|
986
|
+
body: await parseErrorBody(output.body, context),
|
|
987
987
|
};
|
|
988
988
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
989
989
|
switch (errorCode) {
|
|
@@ -1020,7 +1020,7 @@ exports.deserializeAws_json1_1DescribeTagsCommand = deserializeAws_json1_1Descri
|
|
|
1020
1020
|
const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) => {
|
|
1021
1021
|
const parsedOutput = {
|
|
1022
1022
|
...output,
|
|
1023
|
-
body: await
|
|
1023
|
+
body: await parseErrorBody(output.body, context),
|
|
1024
1024
|
};
|
|
1025
1025
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1026
1026
|
switch (errorCode) {
|
|
@@ -1060,7 +1060,7 @@ exports.deserializeAws_json1_1GetBatchPredictionCommand = deserializeAws_json1_1
|
|
|
1060
1060
|
const deserializeAws_json1_1GetBatchPredictionCommandError = async (output, context) => {
|
|
1061
1061
|
const parsedOutput = {
|
|
1062
1062
|
...output,
|
|
1063
|
-
body: await
|
|
1063
|
+
body: await parseErrorBody(output.body, context),
|
|
1064
1064
|
};
|
|
1065
1065
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
1066
|
switch (errorCode) {
|
|
@@ -1100,7 +1100,7 @@ exports.deserializeAws_json1_1GetDataSourceCommand = deserializeAws_json1_1GetDa
|
|
|
1100
1100
|
const deserializeAws_json1_1GetDataSourceCommandError = async (output, context) => {
|
|
1101
1101
|
const parsedOutput = {
|
|
1102
1102
|
...output,
|
|
1103
|
-
body: await
|
|
1103
|
+
body: await parseErrorBody(output.body, context),
|
|
1104
1104
|
};
|
|
1105
1105
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
1106
|
switch (errorCode) {
|
|
@@ -1140,7 +1140,7 @@ exports.deserializeAws_json1_1GetEvaluationCommand = deserializeAws_json1_1GetEv
|
|
|
1140
1140
|
const deserializeAws_json1_1GetEvaluationCommandError = async (output, context) => {
|
|
1141
1141
|
const parsedOutput = {
|
|
1142
1142
|
...output,
|
|
1143
|
-
body: await
|
|
1143
|
+
body: await parseErrorBody(output.body, context),
|
|
1144
1144
|
};
|
|
1145
1145
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
1146
|
switch (errorCode) {
|
|
@@ -1180,7 +1180,7 @@ exports.deserializeAws_json1_1GetMLModelCommand = deserializeAws_json1_1GetMLMod
|
|
|
1180
1180
|
const deserializeAws_json1_1GetMLModelCommandError = async (output, context) => {
|
|
1181
1181
|
const parsedOutput = {
|
|
1182
1182
|
...output,
|
|
1183
|
-
body: await
|
|
1183
|
+
body: await parseErrorBody(output.body, context),
|
|
1184
1184
|
};
|
|
1185
1185
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
1186
|
switch (errorCode) {
|
|
@@ -1220,7 +1220,7 @@ exports.deserializeAws_json1_1PredictCommand = deserializeAws_json1_1PredictComm
|
|
|
1220
1220
|
const deserializeAws_json1_1PredictCommandError = async (output, context) => {
|
|
1221
1221
|
const parsedOutput = {
|
|
1222
1222
|
...output,
|
|
1223
|
-
body: await
|
|
1223
|
+
body: await parseErrorBody(output.body, context),
|
|
1224
1224
|
};
|
|
1225
1225
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
1226
|
switch (errorCode) {
|
|
@@ -1266,7 +1266,7 @@ exports.deserializeAws_json1_1UpdateBatchPredictionCommand = deserializeAws_json
|
|
|
1266
1266
|
const deserializeAws_json1_1UpdateBatchPredictionCommandError = async (output, context) => {
|
|
1267
1267
|
const parsedOutput = {
|
|
1268
1268
|
...output,
|
|
1269
|
-
body: await
|
|
1269
|
+
body: await parseErrorBody(output.body, context),
|
|
1270
1270
|
};
|
|
1271
1271
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
1272
|
switch (errorCode) {
|
|
@@ -1306,7 +1306,7 @@ exports.deserializeAws_json1_1UpdateDataSourceCommand = deserializeAws_json1_1Up
|
|
|
1306
1306
|
const deserializeAws_json1_1UpdateDataSourceCommandError = async (output, context) => {
|
|
1307
1307
|
const parsedOutput = {
|
|
1308
1308
|
...output,
|
|
1309
|
-
body: await
|
|
1309
|
+
body: await parseErrorBody(output.body, context),
|
|
1310
1310
|
};
|
|
1311
1311
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
1312
|
switch (errorCode) {
|
|
@@ -1346,7 +1346,7 @@ exports.deserializeAws_json1_1UpdateEvaluationCommand = deserializeAws_json1_1Up
|
|
|
1346
1346
|
const deserializeAws_json1_1UpdateEvaluationCommandError = async (output, context) => {
|
|
1347
1347
|
const parsedOutput = {
|
|
1348
1348
|
...output,
|
|
1349
|
-
body: await
|
|
1349
|
+
body: await parseErrorBody(output.body, context),
|
|
1350
1350
|
};
|
|
1351
1351
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
1352
|
switch (errorCode) {
|
|
@@ -1386,7 +1386,7 @@ exports.deserializeAws_json1_1UpdateMLModelCommand = deserializeAws_json1_1Updat
|
|
|
1386
1386
|
const deserializeAws_json1_1UpdateMLModelCommandError = async (output, context) => {
|
|
1387
1387
|
const parsedOutput = {
|
|
1388
1388
|
...output,
|
|
1389
|
-
body: await
|
|
1389
|
+
body: await parseErrorBody(output.body, context),
|
|
1390
1390
|
};
|
|
1391
1391
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
1392
|
switch (errorCode) {
|
|
@@ -2406,6 +2406,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2406
2406
|
}
|
|
2407
2407
|
return {};
|
|
2408
2408
|
});
|
|
2409
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2410
|
+
var _a;
|
|
2411
|
+
const value = await parseBody(errorBody, context);
|
|
2412
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2413
|
+
return value;
|
|
2414
|
+
};
|
|
2409
2415
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2410
2416
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2411
2417
|
const sanitizeErrorCode = (rawValue) => {
|