@aws-sdk/client-machine-learning 3.183.0 → 3.186.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/MachineLearning.js +121 -114
  4. package/dist-es/MachineLearningClient.js +28 -22
  5. package/dist-es/commands/AddTagsCommand.js +28 -21
  6. package/dist-es/commands/CreateBatchPredictionCommand.js +28 -21
  7. package/dist-es/commands/CreateDataSourceFromRDSCommand.js +28 -21
  8. package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js +28 -21
  9. package/dist-es/commands/CreateDataSourceFromS3Command.js +28 -21
  10. package/dist-es/commands/CreateEvaluationCommand.js +28 -21
  11. package/dist-es/commands/CreateMLModelCommand.js +28 -21
  12. package/dist-es/commands/CreateRealtimeEndpointCommand.js +28 -21
  13. package/dist-es/commands/DeleteBatchPredictionCommand.js +28 -21
  14. package/dist-es/commands/DeleteDataSourceCommand.js +28 -21
  15. package/dist-es/commands/DeleteEvaluationCommand.js +28 -21
  16. package/dist-es/commands/DeleteMLModelCommand.js +28 -21
  17. package/dist-es/commands/DeleteRealtimeEndpointCommand.js +28 -21
  18. package/dist-es/commands/DeleteTagsCommand.js +28 -21
  19. package/dist-es/commands/DescribeBatchPredictionsCommand.js +28 -21
  20. package/dist-es/commands/DescribeDataSourcesCommand.js +28 -21
  21. package/dist-es/commands/DescribeEvaluationsCommand.js +28 -21
  22. package/dist-es/commands/DescribeMLModelsCommand.js +28 -21
  23. package/dist-es/commands/DescribeTagsCommand.js +28 -21
  24. package/dist-es/commands/GetBatchPredictionCommand.js +28 -21
  25. package/dist-es/commands/GetDataSourceCommand.js +28 -21
  26. package/dist-es/commands/GetEvaluationCommand.js +28 -21
  27. package/dist-es/commands/GetMLModelCommand.js +28 -21
  28. package/dist-es/commands/PredictCommand.js +28 -21
  29. package/dist-es/commands/UpdateBatchPredictionCommand.js +28 -21
  30. package/dist-es/commands/UpdateDataSourceCommand.js +28 -21
  31. package/dist-es/commands/UpdateEvaluationCommand.js +28 -21
  32. package/dist-es/commands/UpdateMLModelCommand.js +28 -21
  33. package/dist-es/endpoints.js +8 -8
  34. package/dist-es/models/MachineLearningServiceException.js +10 -5
  35. package/dist-es/models/models_0.js +167 -312
  36. package/dist-es/pagination/DescribeBatchPredictionsPaginator.js +68 -25
  37. package/dist-es/pagination/DescribeDataSourcesPaginator.js +68 -25
  38. package/dist-es/pagination/DescribeEvaluationsPaginator.js +68 -25
  39. package/dist-es/pagination/DescribeMLModelsPaginator.js +68 -25
  40. package/dist-es/protocols/Aws_json1_1.js +2292 -1831
  41. package/dist-es/runtimeConfig.browser.js +12 -26
  42. package/dist-es/runtimeConfig.js +12 -30
  43. package/dist-es/runtimeConfig.native.js +5 -8
  44. package/dist-es/runtimeConfig.shared.js +11 -8
  45. package/dist-es/waiters/waitForBatchPredictionAvailable.js +91 -50
  46. package/dist-es/waiters/waitForDataSourceAvailable.js +91 -50
  47. package/dist-es/waiters/waitForEvaluationAvailable.js +91 -50
  48. package/dist-es/waiters/waitForMLModelAvailable.js +91 -50
  49. package/package.json +35 -35
@@ -1,3 +1,4 @@
1
+ import { __assign, __extends } from "tslib";
1
2
  import { MachineLearningServiceException as __BaseException } from "./MachineLearningServiceException";
2
3
  export var TaggableResourceType;
3
4
  (function (TaggableResourceType) {
@@ -6,86 +7,86 @@ export var TaggableResourceType;
6
7
  TaggableResourceType["EVALUATION"] = "Evaluation";
7
8
  TaggableResourceType["ML_MODEL"] = "MLModel";
8
9
  })(TaggableResourceType || (TaggableResourceType = {}));
9
- export class InternalServerException extends __BaseException {
10
- constructor(opts) {
11
- super({
12
- name: "InternalServerException",
13
- $fault: "server",
14
- ...opts,
15
- });
16
- this.name = "InternalServerException";
17
- this.$fault = "server";
18
- Object.setPrototypeOf(this, InternalServerException.prototype);
19
- this.code = opts.code;
10
+ var InternalServerException = (function (_super) {
11
+ __extends(InternalServerException, _super);
12
+ function InternalServerException(opts) {
13
+ var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
14
+ _this.name = "InternalServerException";
15
+ _this.$fault = "server";
16
+ Object.setPrototypeOf(_this, InternalServerException.prototype);
17
+ _this.code = opts.code;
18
+ return _this;
20
19
  }
21
- }
22
- export class InvalidInputException extends __BaseException {
23
- constructor(opts) {
24
- super({
25
- name: "InvalidInputException",
26
- $fault: "client",
27
- ...opts,
28
- });
29
- this.name = "InvalidInputException";
30
- this.$fault = "client";
31
- Object.setPrototypeOf(this, InvalidInputException.prototype);
32
- this.code = opts.code;
20
+ return InternalServerException;
21
+ }(__BaseException));
22
+ export { InternalServerException };
23
+ var InvalidInputException = (function (_super) {
24
+ __extends(InvalidInputException, _super);
25
+ function InvalidInputException(opts) {
26
+ var _this = _super.call(this, __assign({ name: "InvalidInputException", $fault: "client" }, opts)) || this;
27
+ _this.name = "InvalidInputException";
28
+ _this.$fault = "client";
29
+ Object.setPrototypeOf(_this, InvalidInputException.prototype);
30
+ _this.code = opts.code;
31
+ return _this;
33
32
  }
34
- }
35
- export class InvalidTagException extends __BaseException {
36
- constructor(opts) {
37
- super({
38
- name: "InvalidTagException",
39
- $fault: "client",
40
- ...opts,
41
- });
42
- this.name = "InvalidTagException";
43
- this.$fault = "client";
44
- Object.setPrototypeOf(this, InvalidTagException.prototype);
33
+ return InvalidInputException;
34
+ }(__BaseException));
35
+ export { InvalidInputException };
36
+ var InvalidTagException = (function (_super) {
37
+ __extends(InvalidTagException, _super);
38
+ function InvalidTagException(opts) {
39
+ var _this = _super.call(this, __assign({ name: "InvalidTagException", $fault: "client" }, opts)) || this;
40
+ _this.name = "InvalidTagException";
41
+ _this.$fault = "client";
42
+ Object.setPrototypeOf(_this, InvalidTagException.prototype);
43
+ return _this;
45
44
  }
46
- }
47
- export class ResourceNotFoundException extends __BaseException {
48
- constructor(opts) {
49
- super({
50
- name: "ResourceNotFoundException",
51
- $fault: "client",
52
- ...opts,
53
- });
54
- this.name = "ResourceNotFoundException";
55
- this.$fault = "client";
56
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
57
- this.code = opts.code;
45
+ return InvalidTagException;
46
+ }(__BaseException));
47
+ export { InvalidTagException };
48
+ var ResourceNotFoundException = (function (_super) {
49
+ __extends(ResourceNotFoundException, _super);
50
+ function ResourceNotFoundException(opts) {
51
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
52
+ _this.name = "ResourceNotFoundException";
53
+ _this.$fault = "client";
54
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
55
+ _this.code = opts.code;
56
+ return _this;
58
57
  }
59
- }
60
- export class TagLimitExceededException extends __BaseException {
61
- constructor(opts) {
62
- super({
63
- name: "TagLimitExceededException",
64
- $fault: "client",
65
- ...opts,
66
- });
67
- this.name = "TagLimitExceededException";
68
- this.$fault = "client";
69
- Object.setPrototypeOf(this, TagLimitExceededException.prototype);
58
+ return ResourceNotFoundException;
59
+ }(__BaseException));
60
+ export { ResourceNotFoundException };
61
+ var TagLimitExceededException = (function (_super) {
62
+ __extends(TagLimitExceededException, _super);
63
+ function TagLimitExceededException(opts) {
64
+ var _this = _super.call(this, __assign({ name: "TagLimitExceededException", $fault: "client" }, opts)) || this;
65
+ _this.name = "TagLimitExceededException";
66
+ _this.$fault = "client";
67
+ Object.setPrototypeOf(_this, TagLimitExceededException.prototype);
68
+ return _this;
70
69
  }
71
- }
70
+ return TagLimitExceededException;
71
+ }(__BaseException));
72
+ export { TagLimitExceededException };
72
73
  export var Algorithm;
73
74
  (function (Algorithm) {
74
75
  Algorithm["SGD"] = "sgd";
75
76
  })(Algorithm || (Algorithm = {}));
76
- export class IdempotentParameterMismatchException extends __BaseException {
77
- constructor(opts) {
78
- super({
79
- name: "IdempotentParameterMismatchException",
80
- $fault: "client",
81
- ...opts,
82
- });
83
- this.name = "IdempotentParameterMismatchException";
84
- this.$fault = "client";
85
- Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
86
- this.code = opts.code;
77
+ var IdempotentParameterMismatchException = (function (_super) {
78
+ __extends(IdempotentParameterMismatchException, _super);
79
+ function IdempotentParameterMismatchException(opts) {
80
+ var _this = _super.call(this, __assign({ name: "IdempotentParameterMismatchException", $fault: "client" }, opts)) || this;
81
+ _this.name = "IdempotentParameterMismatchException";
82
+ _this.$fault = "client";
83
+ Object.setPrototypeOf(_this, IdempotentParameterMismatchException.prototype);
84
+ _this.code = opts.code;
85
+ return _this;
87
86
  }
88
- }
87
+ return IdempotentParameterMismatchException;
88
+ }(__BaseException));
89
+ export { IdempotentParameterMismatchException };
89
90
  export var MLModelType;
90
91
  (function (MLModelType) {
91
92
  MLModelType["BINARY"] = "BINARY";
@@ -156,252 +157,106 @@ export var MLModelFilterVariable;
156
157
  MLModelFilterVariable["TRAINING_DATASOURCE_ID"] = "TrainingDataSourceId";
157
158
  MLModelFilterVariable["TRAINING_DATA_URI"] = "TrainingDataURI";
158
159
  })(MLModelFilterVariable || (MLModelFilterVariable = {}));
159
- export class LimitExceededException extends __BaseException {
160
- constructor(opts) {
161
- super({
162
- name: "LimitExceededException",
163
- $fault: "client",
164
- ...opts,
165
- });
166
- this.name = "LimitExceededException";
167
- this.$fault = "client";
168
- Object.setPrototypeOf(this, LimitExceededException.prototype);
169
- this.code = opts.code;
160
+ var LimitExceededException = (function (_super) {
161
+ __extends(LimitExceededException, _super);
162
+ function LimitExceededException(opts) {
163
+ var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
164
+ _this.name = "LimitExceededException";
165
+ _this.$fault = "client";
166
+ Object.setPrototypeOf(_this, LimitExceededException.prototype);
167
+ _this.code = opts.code;
168
+ return _this;
170
169
  }
171
- }
172
- export class PredictorNotMountedException extends __BaseException {
173
- constructor(opts) {
174
- super({
175
- name: "PredictorNotMountedException",
176
- $fault: "client",
177
- ...opts,
178
- });
179
- this.name = "PredictorNotMountedException";
180
- this.$fault = "client";
181
- Object.setPrototypeOf(this, PredictorNotMountedException.prototype);
170
+ return LimitExceededException;
171
+ }(__BaseException));
172
+ export { LimitExceededException };
173
+ var PredictorNotMountedException = (function (_super) {
174
+ __extends(PredictorNotMountedException, _super);
175
+ function PredictorNotMountedException(opts) {
176
+ var _this = _super.call(this, __assign({ name: "PredictorNotMountedException", $fault: "client" }, opts)) || this;
177
+ _this.name = "PredictorNotMountedException";
178
+ _this.$fault = "client";
179
+ Object.setPrototypeOf(_this, PredictorNotMountedException.prototype);
180
+ return _this;
182
181
  }
183
- }
182
+ return PredictorNotMountedException;
183
+ }(__BaseException));
184
+ export { PredictorNotMountedException };
184
185
  export var DetailsAttributes;
185
186
  (function (DetailsAttributes) {
186
187
  DetailsAttributes["ALGORITHM"] = "Algorithm";
187
188
  DetailsAttributes["PREDICTIVE_MODEL_TYPE"] = "PredictiveModelType";
188
189
  })(DetailsAttributes || (DetailsAttributes = {}));
189
- export const TagFilterSensitiveLog = (obj) => ({
190
- ...obj,
191
- });
192
- export const AddTagsInputFilterSensitiveLog = (obj) => ({
193
- ...obj,
194
- });
195
- export const AddTagsOutputFilterSensitiveLog = (obj) => ({
196
- ...obj,
197
- });
198
- export const CreateBatchPredictionInputFilterSensitiveLog = (obj) => ({
199
- ...obj,
200
- });
201
- export const CreateBatchPredictionOutputFilterSensitiveLog = (obj) => ({
202
- ...obj,
203
- });
204
- export const RDSDatabaseCredentialsFilterSensitiveLog = (obj) => ({
205
- ...obj,
206
- });
207
- export const RDSDatabaseFilterSensitiveLog = (obj) => ({
208
- ...obj,
209
- });
210
- export const RDSDataSpecFilterSensitiveLog = (obj) => ({
211
- ...obj,
212
- });
213
- export const CreateDataSourceFromRDSInputFilterSensitiveLog = (obj) => ({
214
- ...obj,
215
- });
216
- export const CreateDataSourceFromRDSOutputFilterSensitiveLog = (obj) => ({
217
- ...obj,
218
- });
219
- export const RedshiftDatabaseCredentialsFilterSensitiveLog = (obj) => ({
220
- ...obj,
221
- });
222
- export const RedshiftDatabaseFilterSensitiveLog = (obj) => ({
223
- ...obj,
224
- });
225
- export const RedshiftDataSpecFilterSensitiveLog = (obj) => ({
226
- ...obj,
227
- });
228
- export const CreateDataSourceFromRedshiftInputFilterSensitiveLog = (obj) => ({
229
- ...obj,
230
- });
231
- export const CreateDataSourceFromRedshiftOutputFilterSensitiveLog = (obj) => ({
232
- ...obj,
233
- });
234
- export const S3DataSpecFilterSensitiveLog = (obj) => ({
235
- ...obj,
236
- });
237
- export const CreateDataSourceFromS3InputFilterSensitiveLog = (obj) => ({
238
- ...obj,
239
- });
240
- export const CreateDataSourceFromS3OutputFilterSensitiveLog = (obj) => ({
241
- ...obj,
242
- });
243
- export const CreateEvaluationInputFilterSensitiveLog = (obj) => ({
244
- ...obj,
245
- });
246
- export const CreateEvaluationOutputFilterSensitiveLog = (obj) => ({
247
- ...obj,
248
- });
249
- export const CreateMLModelInputFilterSensitiveLog = (obj) => ({
250
- ...obj,
251
- });
252
- export const CreateMLModelOutputFilterSensitiveLog = (obj) => ({
253
- ...obj,
254
- });
255
- export const CreateRealtimeEndpointInputFilterSensitiveLog = (obj) => ({
256
- ...obj,
257
- });
258
- export const RealtimeEndpointInfoFilterSensitiveLog = (obj) => ({
259
- ...obj,
260
- });
261
- export const CreateRealtimeEndpointOutputFilterSensitiveLog = (obj) => ({
262
- ...obj,
263
- });
264
- export const DeleteBatchPredictionInputFilterSensitiveLog = (obj) => ({
265
- ...obj,
266
- });
267
- export const DeleteBatchPredictionOutputFilterSensitiveLog = (obj) => ({
268
- ...obj,
269
- });
270
- export const DeleteDataSourceInputFilterSensitiveLog = (obj) => ({
271
- ...obj,
272
- });
273
- export const DeleteDataSourceOutputFilterSensitiveLog = (obj) => ({
274
- ...obj,
275
- });
276
- export const DeleteEvaluationInputFilterSensitiveLog = (obj) => ({
277
- ...obj,
278
- });
279
- export const DeleteEvaluationOutputFilterSensitiveLog = (obj) => ({
280
- ...obj,
281
- });
282
- export const DeleteMLModelInputFilterSensitiveLog = (obj) => ({
283
- ...obj,
284
- });
285
- export const DeleteMLModelOutputFilterSensitiveLog = (obj) => ({
286
- ...obj,
287
- });
288
- export const DeleteRealtimeEndpointInputFilterSensitiveLog = (obj) => ({
289
- ...obj,
290
- });
291
- export const DeleteRealtimeEndpointOutputFilterSensitiveLog = (obj) => ({
292
- ...obj,
293
- });
294
- export const DeleteTagsInputFilterSensitiveLog = (obj) => ({
295
- ...obj,
296
- });
297
- export const DeleteTagsOutputFilterSensitiveLog = (obj) => ({
298
- ...obj,
299
- });
300
- export const DescribeBatchPredictionsInputFilterSensitiveLog = (obj) => ({
301
- ...obj,
302
- });
303
- export const BatchPredictionFilterSensitiveLog = (obj) => ({
304
- ...obj,
305
- });
306
- export const DescribeBatchPredictionsOutputFilterSensitiveLog = (obj) => ({
307
- ...obj,
308
- });
309
- export const DescribeDataSourcesInputFilterSensitiveLog = (obj) => ({
310
- ...obj,
311
- });
312
- export const RDSMetadataFilterSensitiveLog = (obj) => ({
313
- ...obj,
314
- });
315
- export const RedshiftMetadataFilterSensitiveLog = (obj) => ({
316
- ...obj,
317
- });
318
- export const DataSourceFilterSensitiveLog = (obj) => ({
319
- ...obj,
320
- });
321
- export const DescribeDataSourcesOutputFilterSensitiveLog = (obj) => ({
322
- ...obj,
323
- });
324
- export const DescribeEvaluationsInputFilterSensitiveLog = (obj) => ({
325
- ...obj,
326
- });
327
- export const PerformanceMetricsFilterSensitiveLog = (obj) => ({
328
- ...obj,
329
- });
330
- export const EvaluationFilterSensitiveLog = (obj) => ({
331
- ...obj,
332
- });
333
- export const DescribeEvaluationsOutputFilterSensitiveLog = (obj) => ({
334
- ...obj,
335
- });
336
- export const DescribeMLModelsInputFilterSensitiveLog = (obj) => ({
337
- ...obj,
338
- });
339
- export const MLModelFilterSensitiveLog = (obj) => ({
340
- ...obj,
341
- });
342
- export const DescribeMLModelsOutputFilterSensitiveLog = (obj) => ({
343
- ...obj,
344
- });
345
- export const DescribeTagsInputFilterSensitiveLog = (obj) => ({
346
- ...obj,
347
- });
348
- export const DescribeTagsOutputFilterSensitiveLog = (obj) => ({
349
- ...obj,
350
- });
351
- export const GetBatchPredictionInputFilterSensitiveLog = (obj) => ({
352
- ...obj,
353
- });
354
- export const GetBatchPredictionOutputFilterSensitiveLog = (obj) => ({
355
- ...obj,
356
- });
357
- export const GetDataSourceInputFilterSensitiveLog = (obj) => ({
358
- ...obj,
359
- });
360
- export const GetDataSourceOutputFilterSensitiveLog = (obj) => ({
361
- ...obj,
362
- });
363
- export const GetEvaluationInputFilterSensitiveLog = (obj) => ({
364
- ...obj,
365
- });
366
- export const GetEvaluationOutputFilterSensitiveLog = (obj) => ({
367
- ...obj,
368
- });
369
- export const GetMLModelInputFilterSensitiveLog = (obj) => ({
370
- ...obj,
371
- });
372
- export const GetMLModelOutputFilterSensitiveLog = (obj) => ({
373
- ...obj,
374
- });
375
- export const PredictInputFilterSensitiveLog = (obj) => ({
376
- ...obj,
377
- });
378
- export const PredictionFilterSensitiveLog = (obj) => ({
379
- ...obj,
380
- });
381
- export const PredictOutputFilterSensitiveLog = (obj) => ({
382
- ...obj,
383
- });
384
- export const UpdateBatchPredictionInputFilterSensitiveLog = (obj) => ({
385
- ...obj,
386
- });
387
- export const UpdateBatchPredictionOutputFilterSensitiveLog = (obj) => ({
388
- ...obj,
389
- });
390
- export const UpdateDataSourceInputFilterSensitiveLog = (obj) => ({
391
- ...obj,
392
- });
393
- export const UpdateDataSourceOutputFilterSensitiveLog = (obj) => ({
394
- ...obj,
395
- });
396
- export const UpdateEvaluationInputFilterSensitiveLog = (obj) => ({
397
- ...obj,
398
- });
399
- export const UpdateEvaluationOutputFilterSensitiveLog = (obj) => ({
400
- ...obj,
401
- });
402
- export const UpdateMLModelInputFilterSensitiveLog = (obj) => ({
403
- ...obj,
404
- });
405
- export const UpdateMLModelOutputFilterSensitiveLog = (obj) => ({
406
- ...obj,
407
- });
190
+ export var TagFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
191
+ export var AddTagsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
192
+ export var AddTagsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
+ export var CreateBatchPredictionInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
194
+ export var CreateBatchPredictionOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
195
+ export var RDSDatabaseCredentialsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
196
+ export var RDSDatabaseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
197
+ export var RDSDataSpecFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
198
+ export var CreateDataSourceFromRDSInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
199
+ export var CreateDataSourceFromRDSOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
200
+ export var RedshiftDatabaseCredentialsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
201
+ export var RedshiftDatabaseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
202
+ export var RedshiftDataSpecFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
203
+ export var CreateDataSourceFromRedshiftInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
204
+ export var CreateDataSourceFromRedshiftOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
205
+ export var S3DataSpecFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
206
+ export var CreateDataSourceFromS3InputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
207
+ export var CreateDataSourceFromS3OutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
208
+ export var CreateEvaluationInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
209
+ export var CreateEvaluationOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
210
+ export var CreateMLModelInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
211
+ export var CreateMLModelOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
212
+ export var CreateRealtimeEndpointInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
213
+ export var RealtimeEndpointInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
214
+ export var CreateRealtimeEndpointOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
215
+ export var DeleteBatchPredictionInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
216
+ export var DeleteBatchPredictionOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
217
+ export var DeleteDataSourceInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
218
+ export var DeleteDataSourceOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
219
+ export var DeleteEvaluationInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
220
+ export var DeleteEvaluationOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
221
+ export var DeleteMLModelInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
222
+ export var DeleteMLModelOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
223
+ export var DeleteRealtimeEndpointInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
224
+ export var DeleteRealtimeEndpointOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
225
+ export var DeleteTagsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
226
+ export var DeleteTagsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
227
+ export var DescribeBatchPredictionsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
228
+ export var BatchPredictionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
229
+ export var DescribeBatchPredictionsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
230
+ export var DescribeDataSourcesInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
231
+ export var RDSMetadataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
232
+ export var RedshiftMetadataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
233
+ export var DataSourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
234
+ export var DescribeDataSourcesOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
235
+ export var DescribeEvaluationsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
236
+ export var PerformanceMetricsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
237
+ export var EvaluationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
238
+ export var DescribeEvaluationsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
239
+ export var DescribeMLModelsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
240
+ export var MLModelFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
241
+ export var DescribeMLModelsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
242
+ export var DescribeTagsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
243
+ export var DescribeTagsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
244
+ export var GetBatchPredictionInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
245
+ export var GetBatchPredictionOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
246
+ export var GetDataSourceInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
247
+ export var GetDataSourceOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
248
+ export var GetEvaluationInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
249
+ export var GetEvaluationOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
250
+ export var GetMLModelInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
251
+ export var GetMLModelOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
252
+ export var PredictInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
253
+ export var PredictionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
254
+ export var PredictOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
255
+ export var UpdateBatchPredictionInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
256
+ export var UpdateBatchPredictionOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
257
+ export var UpdateDataSourceInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
258
+ export var UpdateDataSourceOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
259
+ export var UpdateEvaluationInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
260
+ export var UpdateEvaluationOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
261
+ export var UpdateMLModelInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
262
+ export var UpdateMLModelOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,32 +1,75 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
1
2
  import { DescribeBatchPredictionsCommand, } from "../commands/DescribeBatchPredictionsCommand";
2
3
  import { MachineLearning } from "../MachineLearning";
3
4
  import { MachineLearningClient } from "../MachineLearningClient";
4
- const makePagedClientRequest = async (client, input, ...args) => {
5
- return await client.send(new DescribeBatchPredictionsCommand(input), ...args);
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new DescribeBatchPredictionsCommand(input)], __read(args), false))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
6
18
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.describeBatchPredictions(input, ...args);
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.describeBatchPredictions.apply(client, __spreadArray([input], __read(args), false))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
9
32
  };
10
- export async function* paginateDescribeBatchPredictions(config, input, ...additionalArguments) {
11
- let token = config.startingToken || undefined;
12
- let hasNext = true;
13
- let page;
14
- while (hasNext) {
15
- input.NextToken = token;
16
- input["Limit"] = config.pageSize;
17
- if (config.client instanceof MachineLearning) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof MachineLearningClient) {
21
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
- }
23
- else {
24
- throw new Error("Invalid client, expected MachineLearning | MachineLearningClient");
25
- }
26
- yield page;
27
- const prevToken = token;
28
- token = page.NextToken;
29
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ export function paginateDescribeBatchPredictions(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
30
37
  }
31
- return undefined;
38
+ return __asyncGenerator(this, arguments, function paginateDescribeBatchPredictions_1() {
39
+ var token, hasNext, page, prevToken;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["Limit"] = config.pageSize;
50
+ if (!(config.client instanceof MachineLearning)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof MachineLearningClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected MachineLearning | MachineLearningClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ prevToken = token;
67
+ token = page.NextToken;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
+ return [3, 1];
70
+ case 9: return [4, __await(undefined)];
71
+ case 10: return [2, _a.sent()];
72
+ }
73
+ });
74
+ });
32
75
  }