@aws-sdk/client-machine-learning 3.186.0 → 3.190.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 +16 -0
- 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 -2292
- 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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __assign, __extends } from "tslib";
|
|
2
1
|
import { MachineLearningServiceException as __BaseException } from "./MachineLearningServiceException";
|
|
3
2
|
export var TaggableResourceType;
|
|
4
3
|
(function (TaggableResourceType) {
|
|
@@ -7,86 +6,86 @@ export var TaggableResourceType;
|
|
|
7
6
|
TaggableResourceType["EVALUATION"] = "Evaluation";
|
|
8
7
|
TaggableResourceType["ML_MODEL"] = "MLModel";
|
|
9
8
|
})(TaggableResourceType || (TaggableResourceType = {}));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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;
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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);
|
|
44
45
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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;
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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);
|
|
69
70
|
}
|
|
70
|
-
|
|
71
|
-
}(__BaseException));
|
|
72
|
-
export { TagLimitExceededException };
|
|
71
|
+
}
|
|
73
72
|
export var Algorithm;
|
|
74
73
|
(function (Algorithm) {
|
|
75
74
|
Algorithm["SGD"] = "sgd";
|
|
76
75
|
})(Algorithm || (Algorithm = {}));
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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;
|
|
86
87
|
}
|
|
87
|
-
|
|
88
|
-
}(__BaseException));
|
|
89
|
-
export { IdempotentParameterMismatchException };
|
|
88
|
+
}
|
|
90
89
|
export var MLModelType;
|
|
91
90
|
(function (MLModelType) {
|
|
92
91
|
MLModelType["BINARY"] = "BINARY";
|
|
@@ -157,106 +156,252 @@ export var MLModelFilterVariable;
|
|
|
157
156
|
MLModelFilterVariable["TRAINING_DATASOURCE_ID"] = "TrainingDataSourceId";
|
|
158
157
|
MLModelFilterVariable["TRAINING_DATA_URI"] = "TrainingDataURI";
|
|
159
158
|
})(MLModelFilterVariable || (MLModelFilterVariable = {}));
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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;
|
|
169
170
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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);
|
|
181
182
|
}
|
|
182
|
-
|
|
183
|
-
}(__BaseException));
|
|
184
|
-
export { PredictorNotMountedException };
|
|
183
|
+
}
|
|
185
184
|
export var DetailsAttributes;
|
|
186
185
|
(function (DetailsAttributes) {
|
|
187
186
|
DetailsAttributes["ALGORITHM"] = "Algorithm";
|
|
188
187
|
DetailsAttributes["PREDICTIVE_MODEL_TYPE"] = "PredictiveModelType";
|
|
189
188
|
})(DetailsAttributes || (DetailsAttributes = {}));
|
|
190
|
-
export
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
export
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
export
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
export
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
export
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
export
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
export
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
export
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
export
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
export
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
export
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
export
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
export
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
export
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
export
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
export
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
export
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
export
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
export
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
export
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
export
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
export
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
export
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
export
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
export
|
|
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
|
+
});
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { DescribeBatchPredictionsCommand, } from "../commands/DescribeBatchPredictionsCommand";
|
|
3
2
|
import { MachineLearning } from "../MachineLearning";
|
|
4
3
|
import { MachineLearningClient } from "../MachineLearningClient";
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeBatchPredictionsCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeBatchPredictions(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateDescribeBatchPredictions(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
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
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|