@aws-sdk/client-machine-learning 3.987.0 → 3.988.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultMachineLearningHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2014-12-12",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_1Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.machinelearning",
30
+ errorTypeRegistries,
29
31
  xmlNamespace: "http://machinelearning.amazonaws.com/doc/2014-12-12/",
30
32
  version: "2014-12-12",
31
33
  serviceTarget: "AmazonML_20141212",
@@ -212,12 +212,68 @@ const _m = "message";
212
212
  const _pL = "predictedLabel";
213
213
  const _pS = "predictedScores";
214
214
  const _pV = "predictedValue";
215
- const _s = "server";
216
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.machinelearning";
215
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.machinelearning";
216
+ const _se = "server";
217
217
  const n0 = "com.amazonaws.machinelearning";
218
218
  import { TypeRegistry } from "@smithy/core/schema";
219
219
  import { IdempotentParameterMismatchException, InternalServerException, InvalidInputException, InvalidTagException, LimitExceededException, PredictorNotMountedException, ResourceNotFoundException, TagLimitExceededException, } from "../models/errors";
220
220
  import { MachineLearningServiceException } from "../models/MachineLearningServiceException";
221
+ const _s_registry = TypeRegistry.for(_s);
222
+ export var MachineLearningServiceException$ = [-3, _s, "MachineLearningServiceException", 0, [], []];
223
+ _s_registry.registerError(MachineLearningServiceException$, MachineLearningServiceException);
224
+ const n0_registry = TypeRegistry.for(n0);
225
+ export var IdempotentParameterMismatchException$ = [-3, n0, _IPME,
226
+ { [_e]: _c, [_hE]: 400 },
227
+ [_m, _co],
228
+ [0, 1]
229
+ ];
230
+ n0_registry.registerError(IdempotentParameterMismatchException$, IdempotentParameterMismatchException);
231
+ export var InternalServerException$ = [-3, n0, _ISE,
232
+ { [_e]: _se, [_hE]: 500 },
233
+ [_m, _co],
234
+ [0, 1]
235
+ ];
236
+ n0_registry.registerError(InternalServerException$, InternalServerException);
237
+ export var InvalidInputException$ = [-3, n0, _IIE,
238
+ { [_e]: _c, [_hE]: 400 },
239
+ [_m, _co],
240
+ [0, 1]
241
+ ];
242
+ n0_registry.registerError(InvalidInputException$, InvalidInputException);
243
+ export var InvalidTagException$ = [-3, n0, _ITE,
244
+ { [_e]: _c },
245
+ [_m],
246
+ [0]
247
+ ];
248
+ n0_registry.registerError(InvalidTagException$, InvalidTagException);
249
+ export var LimitExceededException$ = [-3, n0, _LEE,
250
+ { [_e]: _c, [_hE]: 417 },
251
+ [_m, _co],
252
+ [0, 1]
253
+ ];
254
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
255
+ export var PredictorNotMountedException$ = [-3, n0, _PNME,
256
+ { [_e]: _c, [_hE]: 400 },
257
+ [_m],
258
+ [0]
259
+ ];
260
+ n0_registry.registerError(PredictorNotMountedException$, PredictorNotMountedException);
261
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
262
+ { [_e]: _c, [_hE]: 404 },
263
+ [_m, _co],
264
+ [0, 1]
265
+ ];
266
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
267
+ export var TagLimitExceededException$ = [-3, n0, _TLEE,
268
+ { [_e]: _c },
269
+ [_m],
270
+ [0]
271
+ ];
272
+ n0_registry.registerError(TagLimitExceededException$, TagLimitExceededException);
273
+ export const errorTypeRegistries = [
274
+ _s_registry,
275
+ n0_registry,
276
+ ];
221
277
  var RDSDatabasePassword = [0, n0, _RDSDP, 8, 0];
222
278
  var RedshiftDatabasePassword = [0, n0, _RDP, 8, 0];
223
279
  export var AddTagsInput$ = [3, n0, _ATI,
@@ -465,36 +521,6 @@ export var GetMLModelOutput$ = [3, n0, _GMLMO,
465
521
  [_MLMI, _TDSI, _CBIU, _CA, _LUA, _N, _S, _SIB, _EIn, _TP, _IDLS, _MLMT, _ST, _STLUA, _LU, _M, _CT, _FA, _SA, _R, _Sc],
466
522
  [0, 0, 0, 4, 4, 0, 0, 1, () => RealtimeEndpointInfo$, 128 | 0, 0, 0, 1, 4, 0, 0, 1, 4, 4, 0, 0]
467
523
  ];
468
- export var IdempotentParameterMismatchException$ = [-3, n0, _IPME,
469
- { [_e]: _c, [_hE]: 400 },
470
- [_m, _co],
471
- [0, 1]
472
- ];
473
- TypeRegistry.for(n0).registerError(IdempotentParameterMismatchException$, IdempotentParameterMismatchException);
474
- export var InternalServerException$ = [-3, n0, _ISE,
475
- { [_e]: _s, [_hE]: 500 },
476
- [_m, _co],
477
- [0, 1]
478
- ];
479
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
480
- export var InvalidInputException$ = [-3, n0, _IIE,
481
- { [_e]: _c, [_hE]: 400 },
482
- [_m, _co],
483
- [0, 1]
484
- ];
485
- TypeRegistry.for(n0).registerError(InvalidInputException$, InvalidInputException);
486
- export var InvalidTagException$ = [-3, n0, _ITE,
487
- { [_e]: _c },
488
- [_m],
489
- [0]
490
- ];
491
- TypeRegistry.for(n0).registerError(InvalidTagException$, InvalidTagException);
492
- export var LimitExceededException$ = [-3, n0, _LEE,
493
- { [_e]: _c, [_hE]: 417 },
494
- [_m, _co],
495
- [0, 1]
496
- ];
497
- TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
498
524
  export var MLModel$ = [3, n0, _MLM,
499
525
  0,
500
526
  [_MLMI, _TDSI, _CBIU, _CA, _LUA, _N, _S, _SIB, _EIn, _TP, _IDLS, _A, _MLMT, _ST, _STLUA, _M, _CT, _FA, _SA],
@@ -515,12 +541,6 @@ export var Prediction$ = [3, n0, _Pre,
515
541
  [_pL, _pV, _pS, _d],
516
542
  [0, 1, 128 | 1, 128 | 0]
517
543
  ];
518
- export var PredictorNotMountedException$ = [-3, n0, _PNME,
519
- { [_e]: _c, [_hE]: 400 },
520
- [_m],
521
- [0]
522
- ];
523
- TypeRegistry.for(n0).registerError(PredictorNotMountedException$, PredictorNotMountedException);
524
544
  export var PredictOutput$ = [3, n0, _PO,
525
545
  0,
526
546
  [_Pre],
@@ -571,12 +591,6 @@ export var RedshiftMetadata$ = [3, n0, _RM,
571
591
  [_RD, _DUN, _SSQ],
572
592
  [() => RedshiftDatabase$, 0, 0]
573
593
  ];
574
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
575
- { [_e]: _c, [_hE]: 404 },
576
- [_m, _co],
577
- [0, 1]
578
- ];
579
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
580
594
  export var S3DataSpec$ = [3, n0, _SDS,
581
595
  0,
582
596
  [_DLS, _DR, _DSat, _DSLS],
@@ -587,12 +601,6 @@ export var Tag$ = [3, n0, _Ta,
587
601
  [_K, _Va],
588
602
  [0, 0]
589
603
  ];
590
- export var TagLimitExceededException$ = [-3, n0, _TLEE,
591
- { [_e]: _c },
592
- [_m],
593
- [0]
594
- ];
595
- TypeRegistry.for(n0).registerError(TagLimitExceededException$, TagLimitExceededException);
596
604
  export var UpdateBatchPredictionInput$ = [3, n0, _UBPI,
597
605
  0,
598
606
  [_BPI, _BPN],
@@ -633,8 +641,6 @@ export var UpdateMLModelOutput$ = [3, n0, _UMLMO,
633
641
  [_MLMI],
634
642
  [0]
635
643
  ];
636
- export var MachineLearningServiceException$ = [-3, _sm, "MachineLearningServiceException", 0, [], []];
637
- TypeRegistry.for(_sm).registerError(MachineLearningServiceException$, MachineLearningServiceException);
638
644
  var BatchPredictions = [1, n0, _BPa,
639
645
  0, () => BatchPrediction$
640
646
  ];
@@ -1,4 +1,20 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var MachineLearningServiceException$: StaticErrorSchema;
4
+ export declare var IdempotentParameterMismatchException$: StaticErrorSchema;
5
+ export declare var InternalServerException$: StaticErrorSchema;
6
+ export declare var InvalidInputException$: StaticErrorSchema;
7
+ export declare var InvalidTagException$: StaticErrorSchema;
8
+ export declare var LimitExceededException$: StaticErrorSchema;
9
+ export declare var PredictorNotMountedException$: StaticErrorSchema;
10
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
11
+ export declare var TagLimitExceededException$: StaticErrorSchema;
12
+ /**
13
+ * TypeRegistry instances containing modeled errors.
14
+ * @internal
15
+ *
16
+ */
17
+ export declare const errorTypeRegistries: TypeRegistry[];
2
18
  export declare var AddTagsInput$: StaticStructureSchema;
3
19
  export declare var AddTagsOutput$: StaticStructureSchema;
4
20
  export declare var BatchPrediction$: StaticStructureSchema;
@@ -48,16 +64,10 @@ export declare var GetEvaluationInput$: StaticStructureSchema;
48
64
  export declare var GetEvaluationOutput$: StaticStructureSchema;
49
65
  export declare var GetMLModelInput$: StaticStructureSchema;
50
66
  export declare var GetMLModelOutput$: StaticStructureSchema;
51
- export declare var IdempotentParameterMismatchException$: StaticErrorSchema;
52
- export declare var InternalServerException$: StaticErrorSchema;
53
- export declare var InvalidInputException$: StaticErrorSchema;
54
- export declare var InvalidTagException$: StaticErrorSchema;
55
- export declare var LimitExceededException$: StaticErrorSchema;
56
67
  export declare var MLModel$: StaticStructureSchema;
57
68
  export declare var PerformanceMetrics$: StaticStructureSchema;
58
69
  export declare var PredictInput$: StaticStructureSchema;
59
70
  export declare var Prediction$: StaticStructureSchema;
60
- export declare var PredictorNotMountedException$: StaticErrorSchema;
61
71
  export declare var PredictOutput$: StaticStructureSchema;
62
72
  export declare var RDSDatabase$: StaticStructureSchema;
63
73
  export declare var RDSDatabaseCredentials$: StaticStructureSchema;
@@ -68,10 +78,8 @@ export declare var RedshiftDatabase$: StaticStructureSchema;
68
78
  export declare var RedshiftDatabaseCredentials$: StaticStructureSchema;
69
79
  export declare var RedshiftDataSpec$: StaticStructureSchema;
70
80
  export declare var RedshiftMetadata$: StaticStructureSchema;
71
- export declare var ResourceNotFoundException$: StaticErrorSchema;
72
81
  export declare var S3DataSpec$: StaticStructureSchema;
73
82
  export declare var Tag$: StaticStructureSchema;
74
- export declare var TagLimitExceededException$: StaticErrorSchema;
75
83
  export declare var UpdateBatchPredictionInput$: StaticStructureSchema;
76
84
  export declare var UpdateBatchPredictionOutput$: StaticStructureSchema;
77
85
  export declare var UpdateDataSourceInput$: StaticStructureSchema;
@@ -80,7 +88,6 @@ export declare var UpdateEvaluationInput$: StaticStructureSchema;
80
88
  export declare var UpdateEvaluationOutput$: StaticStructureSchema;
81
89
  export declare var UpdateMLModelInput$: StaticStructureSchema;
82
90
  export declare var UpdateMLModelOutput$: StaticStructureSchema;
83
- export declare var MachineLearningServiceException$: StaticErrorSchema;
84
91
  export declare var AddTags$: StaticOperationSchema;
85
92
  export declare var CreateBatchPrediction$: StaticOperationSchema;
86
93
  export declare var CreateDataSourceFromRDS$: StaticOperationSchema;
@@ -1,8 +1,19 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var MachineLearningServiceException$: StaticErrorSchema;
8
+ export declare var IdempotentParameterMismatchException$: StaticErrorSchema;
9
+ export declare var InternalServerException$: StaticErrorSchema;
10
+ export declare var InvalidInputException$: StaticErrorSchema;
11
+ export declare var InvalidTagException$: StaticErrorSchema;
12
+ export declare var LimitExceededException$: StaticErrorSchema;
13
+ export declare var PredictorNotMountedException$: StaticErrorSchema;
14
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
15
+ export declare var TagLimitExceededException$: StaticErrorSchema;
16
+ export declare const errorTypeRegistries: TypeRegistry[];
6
17
  export declare var AddTagsInput$: StaticStructureSchema;
7
18
  export declare var AddTagsOutput$: StaticStructureSchema;
8
19
  export declare var BatchPrediction$: StaticStructureSchema;
@@ -52,16 +63,10 @@ export declare var GetEvaluationInput$: StaticStructureSchema;
52
63
  export declare var GetEvaluationOutput$: StaticStructureSchema;
53
64
  export declare var GetMLModelInput$: StaticStructureSchema;
54
65
  export declare var GetMLModelOutput$: StaticStructureSchema;
55
- export declare var IdempotentParameterMismatchException$: StaticErrorSchema;
56
- export declare var InternalServerException$: StaticErrorSchema;
57
- export declare var InvalidInputException$: StaticErrorSchema;
58
- export declare var InvalidTagException$: StaticErrorSchema;
59
- export declare var LimitExceededException$: StaticErrorSchema;
60
66
  export declare var MLModel$: StaticStructureSchema;
61
67
  export declare var PerformanceMetrics$: StaticStructureSchema;
62
68
  export declare var PredictInput$: StaticStructureSchema;
63
69
  export declare var Prediction$: StaticStructureSchema;
64
- export declare var PredictorNotMountedException$: StaticErrorSchema;
65
70
  export declare var PredictOutput$: StaticStructureSchema;
66
71
  export declare var RDSDatabase$: StaticStructureSchema;
67
72
  export declare var RDSDatabaseCredentials$: StaticStructureSchema;
@@ -72,10 +77,8 @@ export declare var RedshiftDatabase$: StaticStructureSchema;
72
77
  export declare var RedshiftDatabaseCredentials$: StaticStructureSchema;
73
78
  export declare var RedshiftDataSpec$: StaticStructureSchema;
74
79
  export declare var RedshiftMetadata$: StaticStructureSchema;
75
- export declare var ResourceNotFoundException$: StaticErrorSchema;
76
80
  export declare var S3DataSpec$: StaticStructureSchema;
77
81
  export declare var Tag$: StaticStructureSchema;
78
- export declare var TagLimitExceededException$: StaticErrorSchema;
79
82
  export declare var UpdateBatchPredictionInput$: StaticStructureSchema;
80
83
  export declare var UpdateBatchPredictionOutput$: StaticStructureSchema;
81
84
  export declare var UpdateDataSourceInput$: StaticStructureSchema;
@@ -84,7 +87,6 @@ export declare var UpdateEvaluationInput$: StaticStructureSchema;
84
87
  export declare var UpdateEvaluationOutput$: StaticStructureSchema;
85
88
  export declare var UpdateMLModelInput$: StaticStructureSchema;
86
89
  export declare var UpdateMLModelOutput$: StaticStructureSchema;
87
- export declare var MachineLearningServiceException$: StaticErrorSchema;
88
90
  export declare var AddTags$: StaticOperationSchema;
89
91
  export declare var CreateBatchPrediction$: StaticOperationSchema;
90
92
  export declare var CreateDataSourceFromRDS$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-machine-learning",
3
3
  "description": "AWS SDK for JavaScript Machine Learning Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-machine-learning",
@@ -21,39 +21,39 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
29
  "@aws-sdk/middleware-sdk-machinelearning": "^3.972.3",
30
- "@aws-sdk/middleware-user-agent": "^3.972.7",
30
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
31
31
  "@aws-sdk/region-config-resolver": "^3.972.3",
32
32
  "@aws-sdk/types": "^3.973.1",
33
- "@aws-sdk/util-endpoints": "3.987.0",
33
+ "@aws-sdk/util-endpoints": "3.988.0",
34
34
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
35
- "@aws-sdk/util-user-agent-node": "^3.972.5",
35
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
36
36
  "@smithy/config-resolver": "^4.4.6",
37
- "@smithy/core": "^3.22.1",
37
+ "@smithy/core": "^3.23.0",
38
38
  "@smithy/fetch-http-handler": "^5.3.9",
39
39
  "@smithy/hash-node": "^4.2.8",
40
40
  "@smithy/invalid-dependency": "^4.2.8",
41
41
  "@smithy/middleware-content-length": "^4.2.8",
42
- "@smithy/middleware-endpoint": "^4.4.13",
43
- "@smithy/middleware-retry": "^4.4.30",
42
+ "@smithy/middleware-endpoint": "^4.4.14",
43
+ "@smithy/middleware-retry": "^4.4.31",
44
44
  "@smithy/middleware-serde": "^4.2.9",
45
45
  "@smithy/middleware-stack": "^4.2.8",
46
46
  "@smithy/node-config-provider": "^4.3.8",
47
- "@smithy/node-http-handler": "^4.4.9",
47
+ "@smithy/node-http-handler": "^4.4.10",
48
48
  "@smithy/protocol-http": "^5.3.8",
49
- "@smithy/smithy-client": "^4.11.2",
49
+ "@smithy/smithy-client": "^4.11.3",
50
50
  "@smithy/types": "^4.12.0",
51
51
  "@smithy/url-parser": "^4.2.8",
52
52
  "@smithy/util-base64": "^4.3.0",
53
53
  "@smithy/util-body-length-browser": "^4.2.0",
54
54
  "@smithy/util-body-length-node": "^4.2.1",
55
- "@smithy/util-defaults-mode-browser": "^4.3.29",
56
- "@smithy/util-defaults-mode-node": "^4.2.32",
55
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
56
+ "@smithy/util-defaults-mode-node": "^4.2.33",
57
57
  "@smithy/util-endpoints": "^3.2.8",
58
58
  "@smithy/util-middleware": "^4.2.8",
59
59
  "@smithy/util-retry": "^4.2.8",