@aws-sdk/client-machine-learning 3.315.0 → 3.316.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MachineLearning = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AddTagsCommand_1 = require("./commands/AddTagsCommand");
|
|
5
6
|
const CreateBatchPredictionCommand_1 = require("./commands/CreateBatchPredictionCommand");
|
|
6
7
|
const CreateDataSourceFromRDSCommand_1 = require("./commands/CreateDataSourceFromRDSCommand");
|
|
@@ -30,398 +31,37 @@ const UpdateDataSourceCommand_1 = require("./commands/UpdateDataSourceCommand");
|
|
|
30
31
|
const UpdateEvaluationCommand_1 = require("./commands/UpdateEvaluationCommand");
|
|
31
32
|
const UpdateMLModelCommand_1 = require("./commands/UpdateMLModelCommand");
|
|
32
33
|
const MachineLearningClient_1 = require("./MachineLearningClient");
|
|
34
|
+
const commands = {
|
|
35
|
+
AddTagsCommand: AddTagsCommand_1.AddTagsCommand,
|
|
36
|
+
CreateBatchPredictionCommand: CreateBatchPredictionCommand_1.CreateBatchPredictionCommand,
|
|
37
|
+
CreateDataSourceFromRDSCommand: CreateDataSourceFromRDSCommand_1.CreateDataSourceFromRDSCommand,
|
|
38
|
+
CreateDataSourceFromRedshiftCommand: CreateDataSourceFromRedshiftCommand_1.CreateDataSourceFromRedshiftCommand,
|
|
39
|
+
CreateDataSourceFromS3Command: CreateDataSourceFromS3Command_1.CreateDataSourceFromS3Command,
|
|
40
|
+
CreateEvaluationCommand: CreateEvaluationCommand_1.CreateEvaluationCommand,
|
|
41
|
+
CreateMLModelCommand: CreateMLModelCommand_1.CreateMLModelCommand,
|
|
42
|
+
CreateRealtimeEndpointCommand: CreateRealtimeEndpointCommand_1.CreateRealtimeEndpointCommand,
|
|
43
|
+
DeleteBatchPredictionCommand: DeleteBatchPredictionCommand_1.DeleteBatchPredictionCommand,
|
|
44
|
+
DeleteDataSourceCommand: DeleteDataSourceCommand_1.DeleteDataSourceCommand,
|
|
45
|
+
DeleteEvaluationCommand: DeleteEvaluationCommand_1.DeleteEvaluationCommand,
|
|
46
|
+
DeleteMLModelCommand: DeleteMLModelCommand_1.DeleteMLModelCommand,
|
|
47
|
+
DeleteRealtimeEndpointCommand: DeleteRealtimeEndpointCommand_1.DeleteRealtimeEndpointCommand,
|
|
48
|
+
DeleteTagsCommand: DeleteTagsCommand_1.DeleteTagsCommand,
|
|
49
|
+
DescribeBatchPredictionsCommand: DescribeBatchPredictionsCommand_1.DescribeBatchPredictionsCommand,
|
|
50
|
+
DescribeDataSourcesCommand: DescribeDataSourcesCommand_1.DescribeDataSourcesCommand,
|
|
51
|
+
DescribeEvaluationsCommand: DescribeEvaluationsCommand_1.DescribeEvaluationsCommand,
|
|
52
|
+
DescribeMLModelsCommand: DescribeMLModelsCommand_1.DescribeMLModelsCommand,
|
|
53
|
+
DescribeTagsCommand: DescribeTagsCommand_1.DescribeTagsCommand,
|
|
54
|
+
GetBatchPredictionCommand: GetBatchPredictionCommand_1.GetBatchPredictionCommand,
|
|
55
|
+
GetDataSourceCommand: GetDataSourceCommand_1.GetDataSourceCommand,
|
|
56
|
+
GetEvaluationCommand: GetEvaluationCommand_1.GetEvaluationCommand,
|
|
57
|
+
GetMLModelCommand: GetMLModelCommand_1.GetMLModelCommand,
|
|
58
|
+
PredictCommand: PredictCommand_1.PredictCommand,
|
|
59
|
+
UpdateBatchPredictionCommand: UpdateBatchPredictionCommand_1.UpdateBatchPredictionCommand,
|
|
60
|
+
UpdateDataSourceCommand: UpdateDataSourceCommand_1.UpdateDataSourceCommand,
|
|
61
|
+
UpdateEvaluationCommand: UpdateEvaluationCommand_1.UpdateEvaluationCommand,
|
|
62
|
+
UpdateMLModelCommand: UpdateMLModelCommand_1.UpdateMLModelCommand,
|
|
63
|
+
};
|
|
33
64
|
class MachineLearning extends MachineLearningClient_1.MachineLearningClient {
|
|
34
|
-
addTags(args, optionsOrCb, cb) {
|
|
35
|
-
const command = new AddTagsCommand_1.AddTagsCommand(args);
|
|
36
|
-
if (typeof optionsOrCb === "function") {
|
|
37
|
-
this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
else if (typeof cb === "function") {
|
|
40
|
-
if (typeof optionsOrCb !== "object")
|
|
41
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
42
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
createBatchPrediction(args, optionsOrCb, cb) {
|
|
49
|
-
const command = new CreateBatchPredictionCommand_1.CreateBatchPredictionCommand(args);
|
|
50
|
-
if (typeof optionsOrCb === "function") {
|
|
51
|
-
this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
else if (typeof cb === "function") {
|
|
54
|
-
if (typeof optionsOrCb !== "object")
|
|
55
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
56
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
return this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
createDataSourceFromRDS(args, optionsOrCb, cb) {
|
|
63
|
-
const command = new CreateDataSourceFromRDSCommand_1.CreateDataSourceFromRDSCommand(args);
|
|
64
|
-
if (typeof optionsOrCb === "function") {
|
|
65
|
-
this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
else if (typeof cb === "function") {
|
|
68
|
-
if (typeof optionsOrCb !== "object")
|
|
69
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
70
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
createDataSourceFromRedshift(args, optionsOrCb, cb) {
|
|
77
|
-
const command = new CreateDataSourceFromRedshiftCommand_1.CreateDataSourceFromRedshiftCommand(args);
|
|
78
|
-
if (typeof optionsOrCb === "function") {
|
|
79
|
-
this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
else if (typeof cb === "function") {
|
|
82
|
-
if (typeof optionsOrCb !== "object")
|
|
83
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
84
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
return this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
createDataSourceFromS3(args, optionsOrCb, cb) {
|
|
91
|
-
const command = new CreateDataSourceFromS3Command_1.CreateDataSourceFromS3Command(args);
|
|
92
|
-
if (typeof optionsOrCb === "function") {
|
|
93
|
-
this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
else if (typeof cb === "function") {
|
|
96
|
-
if (typeof optionsOrCb !== "object")
|
|
97
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
98
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
return this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
createEvaluation(args, optionsOrCb, cb) {
|
|
105
|
-
const command = new CreateEvaluationCommand_1.CreateEvaluationCommand(args);
|
|
106
|
-
if (typeof optionsOrCb === "function") {
|
|
107
|
-
this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
else if (typeof cb === "function") {
|
|
110
|
-
if (typeof optionsOrCb !== "object")
|
|
111
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
112
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
return this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
createMLModel(args, optionsOrCb, cb) {
|
|
119
|
-
const command = new CreateMLModelCommand_1.CreateMLModelCommand(args);
|
|
120
|
-
if (typeof optionsOrCb === "function") {
|
|
121
|
-
this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
else if (typeof cb === "function") {
|
|
124
|
-
if (typeof optionsOrCb !== "object")
|
|
125
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
126
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
return this.send(command, optionsOrCb);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
createRealtimeEndpoint(args, optionsOrCb, cb) {
|
|
133
|
-
const command = new CreateRealtimeEndpointCommand_1.CreateRealtimeEndpointCommand(args);
|
|
134
|
-
if (typeof optionsOrCb === "function") {
|
|
135
|
-
this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
else if (typeof cb === "function") {
|
|
138
|
-
if (typeof optionsOrCb !== "object")
|
|
139
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
140
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
return this.send(command, optionsOrCb);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
deleteBatchPrediction(args, optionsOrCb, cb) {
|
|
147
|
-
const command = new DeleteBatchPredictionCommand_1.DeleteBatchPredictionCommand(args);
|
|
148
|
-
if (typeof optionsOrCb === "function") {
|
|
149
|
-
this.send(command, optionsOrCb);
|
|
150
|
-
}
|
|
151
|
-
else if (typeof cb === "function") {
|
|
152
|
-
if (typeof optionsOrCb !== "object")
|
|
153
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
154
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
return this.send(command, optionsOrCb);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
deleteDataSource(args, optionsOrCb, cb) {
|
|
161
|
-
const command = new DeleteDataSourceCommand_1.DeleteDataSourceCommand(args);
|
|
162
|
-
if (typeof optionsOrCb === "function") {
|
|
163
|
-
this.send(command, optionsOrCb);
|
|
164
|
-
}
|
|
165
|
-
else if (typeof cb === "function") {
|
|
166
|
-
if (typeof optionsOrCb !== "object")
|
|
167
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
168
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
return this.send(command, optionsOrCb);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
deleteEvaluation(args, optionsOrCb, cb) {
|
|
175
|
-
const command = new DeleteEvaluationCommand_1.DeleteEvaluationCommand(args);
|
|
176
|
-
if (typeof optionsOrCb === "function") {
|
|
177
|
-
this.send(command, optionsOrCb);
|
|
178
|
-
}
|
|
179
|
-
else if (typeof cb === "function") {
|
|
180
|
-
if (typeof optionsOrCb !== "object")
|
|
181
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
182
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
return this.send(command, optionsOrCb);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
deleteMLModel(args, optionsOrCb, cb) {
|
|
189
|
-
const command = new DeleteMLModelCommand_1.DeleteMLModelCommand(args);
|
|
190
|
-
if (typeof optionsOrCb === "function") {
|
|
191
|
-
this.send(command, optionsOrCb);
|
|
192
|
-
}
|
|
193
|
-
else if (typeof cb === "function") {
|
|
194
|
-
if (typeof optionsOrCb !== "object")
|
|
195
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
196
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
return this.send(command, optionsOrCb);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
deleteRealtimeEndpoint(args, optionsOrCb, cb) {
|
|
203
|
-
const command = new DeleteRealtimeEndpointCommand_1.DeleteRealtimeEndpointCommand(args);
|
|
204
|
-
if (typeof optionsOrCb === "function") {
|
|
205
|
-
this.send(command, optionsOrCb);
|
|
206
|
-
}
|
|
207
|
-
else if (typeof cb === "function") {
|
|
208
|
-
if (typeof optionsOrCb !== "object")
|
|
209
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
210
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
return this.send(command, optionsOrCb);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
deleteTags(args, optionsOrCb, cb) {
|
|
217
|
-
const command = new DeleteTagsCommand_1.DeleteTagsCommand(args);
|
|
218
|
-
if (typeof optionsOrCb === "function") {
|
|
219
|
-
this.send(command, optionsOrCb);
|
|
220
|
-
}
|
|
221
|
-
else if (typeof cb === "function") {
|
|
222
|
-
if (typeof optionsOrCb !== "object")
|
|
223
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
224
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
return this.send(command, optionsOrCb);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
describeBatchPredictions(args, optionsOrCb, cb) {
|
|
231
|
-
const command = new DescribeBatchPredictionsCommand_1.DescribeBatchPredictionsCommand(args);
|
|
232
|
-
if (typeof optionsOrCb === "function") {
|
|
233
|
-
this.send(command, optionsOrCb);
|
|
234
|
-
}
|
|
235
|
-
else if (typeof cb === "function") {
|
|
236
|
-
if (typeof optionsOrCb !== "object")
|
|
237
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
238
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
return this.send(command, optionsOrCb);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
describeDataSources(args, optionsOrCb, cb) {
|
|
245
|
-
const command = new DescribeDataSourcesCommand_1.DescribeDataSourcesCommand(args);
|
|
246
|
-
if (typeof optionsOrCb === "function") {
|
|
247
|
-
this.send(command, optionsOrCb);
|
|
248
|
-
}
|
|
249
|
-
else if (typeof cb === "function") {
|
|
250
|
-
if (typeof optionsOrCb !== "object")
|
|
251
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
252
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
return this.send(command, optionsOrCb);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
describeEvaluations(args, optionsOrCb, cb) {
|
|
259
|
-
const command = new DescribeEvaluationsCommand_1.DescribeEvaluationsCommand(args);
|
|
260
|
-
if (typeof optionsOrCb === "function") {
|
|
261
|
-
this.send(command, optionsOrCb);
|
|
262
|
-
}
|
|
263
|
-
else if (typeof cb === "function") {
|
|
264
|
-
if (typeof optionsOrCb !== "object")
|
|
265
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
266
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
267
|
-
}
|
|
268
|
-
else {
|
|
269
|
-
return this.send(command, optionsOrCb);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
describeMLModels(args, optionsOrCb, cb) {
|
|
273
|
-
const command = new DescribeMLModelsCommand_1.DescribeMLModelsCommand(args);
|
|
274
|
-
if (typeof optionsOrCb === "function") {
|
|
275
|
-
this.send(command, optionsOrCb);
|
|
276
|
-
}
|
|
277
|
-
else if (typeof cb === "function") {
|
|
278
|
-
if (typeof optionsOrCb !== "object")
|
|
279
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
280
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
return this.send(command, optionsOrCb);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
describeTags(args, optionsOrCb, cb) {
|
|
287
|
-
const command = new DescribeTagsCommand_1.DescribeTagsCommand(args);
|
|
288
|
-
if (typeof optionsOrCb === "function") {
|
|
289
|
-
this.send(command, optionsOrCb);
|
|
290
|
-
}
|
|
291
|
-
else if (typeof cb === "function") {
|
|
292
|
-
if (typeof optionsOrCb !== "object")
|
|
293
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
294
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
295
|
-
}
|
|
296
|
-
else {
|
|
297
|
-
return this.send(command, optionsOrCb);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
getBatchPrediction(args, optionsOrCb, cb) {
|
|
301
|
-
const command = new GetBatchPredictionCommand_1.GetBatchPredictionCommand(args);
|
|
302
|
-
if (typeof optionsOrCb === "function") {
|
|
303
|
-
this.send(command, optionsOrCb);
|
|
304
|
-
}
|
|
305
|
-
else if (typeof cb === "function") {
|
|
306
|
-
if (typeof optionsOrCb !== "object")
|
|
307
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
308
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
return this.send(command, optionsOrCb);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
getDataSource(args, optionsOrCb, cb) {
|
|
315
|
-
const command = new GetDataSourceCommand_1.GetDataSourceCommand(args);
|
|
316
|
-
if (typeof optionsOrCb === "function") {
|
|
317
|
-
this.send(command, optionsOrCb);
|
|
318
|
-
}
|
|
319
|
-
else if (typeof cb === "function") {
|
|
320
|
-
if (typeof optionsOrCb !== "object")
|
|
321
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
322
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
323
|
-
}
|
|
324
|
-
else {
|
|
325
|
-
return this.send(command, optionsOrCb);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
getEvaluation(args, optionsOrCb, cb) {
|
|
329
|
-
const command = new GetEvaluationCommand_1.GetEvaluationCommand(args);
|
|
330
|
-
if (typeof optionsOrCb === "function") {
|
|
331
|
-
this.send(command, optionsOrCb);
|
|
332
|
-
}
|
|
333
|
-
else if (typeof cb === "function") {
|
|
334
|
-
if (typeof optionsOrCb !== "object")
|
|
335
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
336
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
337
|
-
}
|
|
338
|
-
else {
|
|
339
|
-
return this.send(command, optionsOrCb);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
getMLModel(args, optionsOrCb, cb) {
|
|
343
|
-
const command = new GetMLModelCommand_1.GetMLModelCommand(args);
|
|
344
|
-
if (typeof optionsOrCb === "function") {
|
|
345
|
-
this.send(command, optionsOrCb);
|
|
346
|
-
}
|
|
347
|
-
else if (typeof cb === "function") {
|
|
348
|
-
if (typeof optionsOrCb !== "object")
|
|
349
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
350
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
return this.send(command, optionsOrCb);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
predict(args, optionsOrCb, cb) {
|
|
357
|
-
const command = new PredictCommand_1.PredictCommand(args);
|
|
358
|
-
if (typeof optionsOrCb === "function") {
|
|
359
|
-
this.send(command, optionsOrCb);
|
|
360
|
-
}
|
|
361
|
-
else if (typeof cb === "function") {
|
|
362
|
-
if (typeof optionsOrCb !== "object")
|
|
363
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
364
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
365
|
-
}
|
|
366
|
-
else {
|
|
367
|
-
return this.send(command, optionsOrCb);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
updateBatchPrediction(args, optionsOrCb, cb) {
|
|
371
|
-
const command = new UpdateBatchPredictionCommand_1.UpdateBatchPredictionCommand(args);
|
|
372
|
-
if (typeof optionsOrCb === "function") {
|
|
373
|
-
this.send(command, optionsOrCb);
|
|
374
|
-
}
|
|
375
|
-
else if (typeof cb === "function") {
|
|
376
|
-
if (typeof optionsOrCb !== "object")
|
|
377
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
378
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
return this.send(command, optionsOrCb);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
updateDataSource(args, optionsOrCb, cb) {
|
|
385
|
-
const command = new UpdateDataSourceCommand_1.UpdateDataSourceCommand(args);
|
|
386
|
-
if (typeof optionsOrCb === "function") {
|
|
387
|
-
this.send(command, optionsOrCb);
|
|
388
|
-
}
|
|
389
|
-
else if (typeof cb === "function") {
|
|
390
|
-
if (typeof optionsOrCb !== "object")
|
|
391
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
392
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
return this.send(command, optionsOrCb);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
updateEvaluation(args, optionsOrCb, cb) {
|
|
399
|
-
const command = new UpdateEvaluationCommand_1.UpdateEvaluationCommand(args);
|
|
400
|
-
if (typeof optionsOrCb === "function") {
|
|
401
|
-
this.send(command, optionsOrCb);
|
|
402
|
-
}
|
|
403
|
-
else if (typeof cb === "function") {
|
|
404
|
-
if (typeof optionsOrCb !== "object")
|
|
405
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
406
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
407
|
-
}
|
|
408
|
-
else {
|
|
409
|
-
return this.send(command, optionsOrCb);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
updateMLModel(args, optionsOrCb, cb) {
|
|
413
|
-
const command = new UpdateMLModelCommand_1.UpdateMLModelCommand(args);
|
|
414
|
-
if (typeof optionsOrCb === "function") {
|
|
415
|
-
this.send(command, optionsOrCb);
|
|
416
|
-
}
|
|
417
|
-
else if (typeof cb === "function") {
|
|
418
|
-
if (typeof optionsOrCb !== "object")
|
|
419
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
420
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
421
|
-
}
|
|
422
|
-
else {
|
|
423
|
-
return this.send(command, optionsOrCb);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
65
|
}
|
|
427
66
|
exports.MachineLearning = MachineLearning;
|
|
67
|
+
(0, smithy_client_1.createAggregatedClient)(commands, MachineLearning);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { AddTagsCommand } from "./commands/AddTagsCommand";
|
|
2
3
|
import { CreateBatchPredictionCommand, } from "./commands/CreateBatchPredictionCommand";
|
|
3
4
|
import { CreateDataSourceFromRDSCommand, } from "./commands/CreateDataSourceFromRDSCommand";
|
|
@@ -27,397 +28,36 @@ import { UpdateDataSourceCommand, } from "./commands/UpdateDataSourceCommand";
|
|
|
27
28
|
import { UpdateEvaluationCommand, } from "./commands/UpdateEvaluationCommand";
|
|
28
29
|
import { UpdateMLModelCommand, } from "./commands/UpdateMLModelCommand";
|
|
29
30
|
import { MachineLearningClient } from "./MachineLearningClient";
|
|
31
|
+
const commands = {
|
|
32
|
+
AddTagsCommand,
|
|
33
|
+
CreateBatchPredictionCommand,
|
|
34
|
+
CreateDataSourceFromRDSCommand,
|
|
35
|
+
CreateDataSourceFromRedshiftCommand,
|
|
36
|
+
CreateDataSourceFromS3Command,
|
|
37
|
+
CreateEvaluationCommand,
|
|
38
|
+
CreateMLModelCommand,
|
|
39
|
+
CreateRealtimeEndpointCommand,
|
|
40
|
+
DeleteBatchPredictionCommand,
|
|
41
|
+
DeleteDataSourceCommand,
|
|
42
|
+
DeleteEvaluationCommand,
|
|
43
|
+
DeleteMLModelCommand,
|
|
44
|
+
DeleteRealtimeEndpointCommand,
|
|
45
|
+
DeleteTagsCommand,
|
|
46
|
+
DescribeBatchPredictionsCommand,
|
|
47
|
+
DescribeDataSourcesCommand,
|
|
48
|
+
DescribeEvaluationsCommand,
|
|
49
|
+
DescribeMLModelsCommand,
|
|
50
|
+
DescribeTagsCommand,
|
|
51
|
+
GetBatchPredictionCommand,
|
|
52
|
+
GetDataSourceCommand,
|
|
53
|
+
GetEvaluationCommand,
|
|
54
|
+
GetMLModelCommand,
|
|
55
|
+
PredictCommand,
|
|
56
|
+
UpdateBatchPredictionCommand,
|
|
57
|
+
UpdateDataSourceCommand,
|
|
58
|
+
UpdateEvaluationCommand,
|
|
59
|
+
UpdateMLModelCommand,
|
|
60
|
+
};
|
|
30
61
|
export class MachineLearning extends MachineLearningClient {
|
|
31
|
-
addTags(args, optionsOrCb, cb) {
|
|
32
|
-
const command = new AddTagsCommand(args);
|
|
33
|
-
if (typeof optionsOrCb === "function") {
|
|
34
|
-
this.send(command, optionsOrCb);
|
|
35
|
-
}
|
|
36
|
-
else if (typeof cb === "function") {
|
|
37
|
-
if (typeof optionsOrCb !== "object")
|
|
38
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
39
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
return this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
createBatchPrediction(args, optionsOrCb, cb) {
|
|
46
|
-
const command = new CreateBatchPredictionCommand(args);
|
|
47
|
-
if (typeof optionsOrCb === "function") {
|
|
48
|
-
this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
else if (typeof cb === "function") {
|
|
51
|
-
if (typeof optionsOrCb !== "object")
|
|
52
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
53
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
return this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
createDataSourceFromRDS(args, optionsOrCb, cb) {
|
|
60
|
-
const command = new CreateDataSourceFromRDSCommand(args);
|
|
61
|
-
if (typeof optionsOrCb === "function") {
|
|
62
|
-
this.send(command, optionsOrCb);
|
|
63
|
-
}
|
|
64
|
-
else if (typeof cb === "function") {
|
|
65
|
-
if (typeof optionsOrCb !== "object")
|
|
66
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
67
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
return this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
createDataSourceFromRedshift(args, optionsOrCb, cb) {
|
|
74
|
-
const command = new CreateDataSourceFromRedshiftCommand(args);
|
|
75
|
-
if (typeof optionsOrCb === "function") {
|
|
76
|
-
this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
else if (typeof cb === "function") {
|
|
79
|
-
if (typeof optionsOrCb !== "object")
|
|
80
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
81
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
return this.send(command, optionsOrCb);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
createDataSourceFromS3(args, optionsOrCb, cb) {
|
|
88
|
-
const command = new CreateDataSourceFromS3Command(args);
|
|
89
|
-
if (typeof optionsOrCb === "function") {
|
|
90
|
-
this.send(command, optionsOrCb);
|
|
91
|
-
}
|
|
92
|
-
else if (typeof cb === "function") {
|
|
93
|
-
if (typeof optionsOrCb !== "object")
|
|
94
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
95
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
return this.send(command, optionsOrCb);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
createEvaluation(args, optionsOrCb, cb) {
|
|
102
|
-
const command = new CreateEvaluationCommand(args);
|
|
103
|
-
if (typeof optionsOrCb === "function") {
|
|
104
|
-
this.send(command, optionsOrCb);
|
|
105
|
-
}
|
|
106
|
-
else if (typeof cb === "function") {
|
|
107
|
-
if (typeof optionsOrCb !== "object")
|
|
108
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
109
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
return this.send(command, optionsOrCb);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
createMLModel(args, optionsOrCb, cb) {
|
|
116
|
-
const command = new CreateMLModelCommand(args);
|
|
117
|
-
if (typeof optionsOrCb === "function") {
|
|
118
|
-
this.send(command, optionsOrCb);
|
|
119
|
-
}
|
|
120
|
-
else if (typeof cb === "function") {
|
|
121
|
-
if (typeof optionsOrCb !== "object")
|
|
122
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
123
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
return this.send(command, optionsOrCb);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
createRealtimeEndpoint(args, optionsOrCb, cb) {
|
|
130
|
-
const command = new CreateRealtimeEndpointCommand(args);
|
|
131
|
-
if (typeof optionsOrCb === "function") {
|
|
132
|
-
this.send(command, optionsOrCb);
|
|
133
|
-
}
|
|
134
|
-
else if (typeof cb === "function") {
|
|
135
|
-
if (typeof optionsOrCb !== "object")
|
|
136
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
137
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
return this.send(command, optionsOrCb);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
deleteBatchPrediction(args, optionsOrCb, cb) {
|
|
144
|
-
const command = new DeleteBatchPredictionCommand(args);
|
|
145
|
-
if (typeof optionsOrCb === "function") {
|
|
146
|
-
this.send(command, optionsOrCb);
|
|
147
|
-
}
|
|
148
|
-
else if (typeof cb === "function") {
|
|
149
|
-
if (typeof optionsOrCb !== "object")
|
|
150
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
151
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
return this.send(command, optionsOrCb);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
deleteDataSource(args, optionsOrCb, cb) {
|
|
158
|
-
const command = new DeleteDataSourceCommand(args);
|
|
159
|
-
if (typeof optionsOrCb === "function") {
|
|
160
|
-
this.send(command, optionsOrCb);
|
|
161
|
-
}
|
|
162
|
-
else if (typeof cb === "function") {
|
|
163
|
-
if (typeof optionsOrCb !== "object")
|
|
164
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
165
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
return this.send(command, optionsOrCb);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
deleteEvaluation(args, optionsOrCb, cb) {
|
|
172
|
-
const command = new DeleteEvaluationCommand(args);
|
|
173
|
-
if (typeof optionsOrCb === "function") {
|
|
174
|
-
this.send(command, optionsOrCb);
|
|
175
|
-
}
|
|
176
|
-
else if (typeof cb === "function") {
|
|
177
|
-
if (typeof optionsOrCb !== "object")
|
|
178
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
179
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
return this.send(command, optionsOrCb);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
deleteMLModel(args, optionsOrCb, cb) {
|
|
186
|
-
const command = new DeleteMLModelCommand(args);
|
|
187
|
-
if (typeof optionsOrCb === "function") {
|
|
188
|
-
this.send(command, optionsOrCb);
|
|
189
|
-
}
|
|
190
|
-
else if (typeof cb === "function") {
|
|
191
|
-
if (typeof optionsOrCb !== "object")
|
|
192
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
193
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
return this.send(command, optionsOrCb);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
deleteRealtimeEndpoint(args, optionsOrCb, cb) {
|
|
200
|
-
const command = new DeleteRealtimeEndpointCommand(args);
|
|
201
|
-
if (typeof optionsOrCb === "function") {
|
|
202
|
-
this.send(command, optionsOrCb);
|
|
203
|
-
}
|
|
204
|
-
else if (typeof cb === "function") {
|
|
205
|
-
if (typeof optionsOrCb !== "object")
|
|
206
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
207
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
208
|
-
}
|
|
209
|
-
else {
|
|
210
|
-
return this.send(command, optionsOrCb);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
deleteTags(args, optionsOrCb, cb) {
|
|
214
|
-
const command = new DeleteTagsCommand(args);
|
|
215
|
-
if (typeof optionsOrCb === "function") {
|
|
216
|
-
this.send(command, optionsOrCb);
|
|
217
|
-
}
|
|
218
|
-
else if (typeof cb === "function") {
|
|
219
|
-
if (typeof optionsOrCb !== "object")
|
|
220
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
221
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
return this.send(command, optionsOrCb);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
describeBatchPredictions(args, optionsOrCb, cb) {
|
|
228
|
-
const command = new DescribeBatchPredictionsCommand(args);
|
|
229
|
-
if (typeof optionsOrCb === "function") {
|
|
230
|
-
this.send(command, optionsOrCb);
|
|
231
|
-
}
|
|
232
|
-
else if (typeof cb === "function") {
|
|
233
|
-
if (typeof optionsOrCb !== "object")
|
|
234
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
235
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
return this.send(command, optionsOrCb);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
describeDataSources(args, optionsOrCb, cb) {
|
|
242
|
-
const command = new DescribeDataSourcesCommand(args);
|
|
243
|
-
if (typeof optionsOrCb === "function") {
|
|
244
|
-
this.send(command, optionsOrCb);
|
|
245
|
-
}
|
|
246
|
-
else if (typeof cb === "function") {
|
|
247
|
-
if (typeof optionsOrCb !== "object")
|
|
248
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
249
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
return this.send(command, optionsOrCb);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
describeEvaluations(args, optionsOrCb, cb) {
|
|
256
|
-
const command = new DescribeEvaluationsCommand(args);
|
|
257
|
-
if (typeof optionsOrCb === "function") {
|
|
258
|
-
this.send(command, optionsOrCb);
|
|
259
|
-
}
|
|
260
|
-
else if (typeof cb === "function") {
|
|
261
|
-
if (typeof optionsOrCb !== "object")
|
|
262
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
263
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
264
|
-
}
|
|
265
|
-
else {
|
|
266
|
-
return this.send(command, optionsOrCb);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
describeMLModels(args, optionsOrCb, cb) {
|
|
270
|
-
const command = new DescribeMLModelsCommand(args);
|
|
271
|
-
if (typeof optionsOrCb === "function") {
|
|
272
|
-
this.send(command, optionsOrCb);
|
|
273
|
-
}
|
|
274
|
-
else if (typeof cb === "function") {
|
|
275
|
-
if (typeof optionsOrCb !== "object")
|
|
276
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
277
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
278
|
-
}
|
|
279
|
-
else {
|
|
280
|
-
return this.send(command, optionsOrCb);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
describeTags(args, optionsOrCb, cb) {
|
|
284
|
-
const command = new DescribeTagsCommand(args);
|
|
285
|
-
if (typeof optionsOrCb === "function") {
|
|
286
|
-
this.send(command, optionsOrCb);
|
|
287
|
-
}
|
|
288
|
-
else if (typeof cb === "function") {
|
|
289
|
-
if (typeof optionsOrCb !== "object")
|
|
290
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
291
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
292
|
-
}
|
|
293
|
-
else {
|
|
294
|
-
return this.send(command, optionsOrCb);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
getBatchPrediction(args, optionsOrCb, cb) {
|
|
298
|
-
const command = new GetBatchPredictionCommand(args);
|
|
299
|
-
if (typeof optionsOrCb === "function") {
|
|
300
|
-
this.send(command, optionsOrCb);
|
|
301
|
-
}
|
|
302
|
-
else if (typeof cb === "function") {
|
|
303
|
-
if (typeof optionsOrCb !== "object")
|
|
304
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
305
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
306
|
-
}
|
|
307
|
-
else {
|
|
308
|
-
return this.send(command, optionsOrCb);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
getDataSource(args, optionsOrCb, cb) {
|
|
312
|
-
const command = new GetDataSourceCommand(args);
|
|
313
|
-
if (typeof optionsOrCb === "function") {
|
|
314
|
-
this.send(command, optionsOrCb);
|
|
315
|
-
}
|
|
316
|
-
else if (typeof cb === "function") {
|
|
317
|
-
if (typeof optionsOrCb !== "object")
|
|
318
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
319
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
return this.send(command, optionsOrCb);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
getEvaluation(args, optionsOrCb, cb) {
|
|
326
|
-
const command = new GetEvaluationCommand(args);
|
|
327
|
-
if (typeof optionsOrCb === "function") {
|
|
328
|
-
this.send(command, optionsOrCb);
|
|
329
|
-
}
|
|
330
|
-
else if (typeof cb === "function") {
|
|
331
|
-
if (typeof optionsOrCb !== "object")
|
|
332
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
333
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
334
|
-
}
|
|
335
|
-
else {
|
|
336
|
-
return this.send(command, optionsOrCb);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
getMLModel(args, optionsOrCb, cb) {
|
|
340
|
-
const command = new GetMLModelCommand(args);
|
|
341
|
-
if (typeof optionsOrCb === "function") {
|
|
342
|
-
this.send(command, optionsOrCb);
|
|
343
|
-
}
|
|
344
|
-
else if (typeof cb === "function") {
|
|
345
|
-
if (typeof optionsOrCb !== "object")
|
|
346
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
347
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
348
|
-
}
|
|
349
|
-
else {
|
|
350
|
-
return this.send(command, optionsOrCb);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
predict(args, optionsOrCb, cb) {
|
|
354
|
-
const command = new PredictCommand(args);
|
|
355
|
-
if (typeof optionsOrCb === "function") {
|
|
356
|
-
this.send(command, optionsOrCb);
|
|
357
|
-
}
|
|
358
|
-
else if (typeof cb === "function") {
|
|
359
|
-
if (typeof optionsOrCb !== "object")
|
|
360
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
361
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
362
|
-
}
|
|
363
|
-
else {
|
|
364
|
-
return this.send(command, optionsOrCb);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
updateBatchPrediction(args, optionsOrCb, cb) {
|
|
368
|
-
const command = new UpdateBatchPredictionCommand(args);
|
|
369
|
-
if (typeof optionsOrCb === "function") {
|
|
370
|
-
this.send(command, optionsOrCb);
|
|
371
|
-
}
|
|
372
|
-
else if (typeof cb === "function") {
|
|
373
|
-
if (typeof optionsOrCb !== "object")
|
|
374
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
375
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
return this.send(command, optionsOrCb);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
updateDataSource(args, optionsOrCb, cb) {
|
|
382
|
-
const command = new UpdateDataSourceCommand(args);
|
|
383
|
-
if (typeof optionsOrCb === "function") {
|
|
384
|
-
this.send(command, optionsOrCb);
|
|
385
|
-
}
|
|
386
|
-
else if (typeof cb === "function") {
|
|
387
|
-
if (typeof optionsOrCb !== "object")
|
|
388
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
389
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
390
|
-
}
|
|
391
|
-
else {
|
|
392
|
-
return this.send(command, optionsOrCb);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
updateEvaluation(args, optionsOrCb, cb) {
|
|
396
|
-
const command = new UpdateEvaluationCommand(args);
|
|
397
|
-
if (typeof optionsOrCb === "function") {
|
|
398
|
-
this.send(command, optionsOrCb);
|
|
399
|
-
}
|
|
400
|
-
else if (typeof cb === "function") {
|
|
401
|
-
if (typeof optionsOrCb !== "object")
|
|
402
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
403
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
404
|
-
}
|
|
405
|
-
else {
|
|
406
|
-
return this.send(command, optionsOrCb);
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
updateMLModel(args, optionsOrCb, cb) {
|
|
410
|
-
const command = new UpdateMLModelCommand(args);
|
|
411
|
-
if (typeof optionsOrCb === "function") {
|
|
412
|
-
this.send(command, optionsOrCb);
|
|
413
|
-
}
|
|
414
|
-
else if (typeof cb === "function") {
|
|
415
|
-
if (typeof optionsOrCb !== "object")
|
|
416
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
417
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
418
|
-
}
|
|
419
|
-
else {
|
|
420
|
-
return this.send(command, optionsOrCb);
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
62
|
}
|
|
63
|
+
createAggregatedClient(commands, MachineLearning);
|
|
@@ -28,354 +28,180 @@ import { UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput } from "./c
|
|
|
28
28
|
import { UpdateEvaluationCommandInput, UpdateEvaluationCommandOutput } from "./commands/UpdateEvaluationCommand";
|
|
29
29
|
import { UpdateMLModelCommandInput, UpdateMLModelCommandOutput } from "./commands/UpdateMLModelCommand";
|
|
30
30
|
import { MachineLearningClient } from "./MachineLearningClient";
|
|
31
|
-
|
|
32
|
-
* @public
|
|
33
|
-
* Definition of the public APIs
|
|
34
|
-
* exposed by Amazon Machine Learning
|
|
35
|
-
*/
|
|
36
|
-
export declare class MachineLearning extends MachineLearningClient {
|
|
31
|
+
export interface MachineLearning {
|
|
37
32
|
/**
|
|
38
|
-
* @
|
|
39
|
-
* <p>Adds one or more tags to an object, up to a limit of 10. Each tag consists of a key
|
|
40
|
-
* and an optional value. If you add a tag using a key that is already associated with the ML object,
|
|
41
|
-
* <code>AddTags</code> updates the tag's value.</p>
|
|
33
|
+
* @see {@link AddTagsCommand}
|
|
42
34
|
*/
|
|
43
35
|
addTags(args: AddTagsCommandInput, options?: __HttpHandlerOptions): Promise<AddTagsCommandOutput>;
|
|
44
36
|
addTags(args: AddTagsCommandInput, cb: (err: any, data?: AddTagsCommandOutput) => void): void;
|
|
45
37
|
addTags(args: AddTagsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddTagsCommandOutput) => void): void;
|
|
46
38
|
/**
|
|
47
|
-
* @
|
|
48
|
-
* <p>Generates predictions for a group of observations. The observations to process exist in one or more data files referenced
|
|
49
|
-
* by a <code>DataSource</code>. This operation creates a new <code>BatchPrediction</code>, and uses an <code>MLModel</code> and the data
|
|
50
|
-
* files referenced by the <code>DataSource</code> as information sources.
|
|
51
|
-
* </p>
|
|
52
|
-
*
|
|
53
|
-
* <p>
|
|
54
|
-
* <code>CreateBatchPrediction</code> is an asynchronous operation. In response to <code>CreateBatchPrediction</code>,
|
|
55
|
-
* Amazon Machine Learning (Amazon ML) immediately returns and sets the <code>BatchPrediction</code> status to <code>PENDING</code>.
|
|
56
|
-
* After the <code>BatchPrediction</code> completes, Amazon ML sets the status to <code>COMPLETED</code>.
|
|
57
|
-
* </p>
|
|
58
|
-
* <p>You can poll for status updates by using the <a>GetBatchPrediction</a> operation and checking the <code>Status</code> parameter of the result. After the <code>COMPLETED</code> status appears,
|
|
59
|
-
* the results are available in the location specified by the <code>OutputUri</code> parameter.</p>
|
|
39
|
+
* @see {@link CreateBatchPredictionCommand}
|
|
60
40
|
*/
|
|
61
41
|
createBatchPrediction(args: CreateBatchPredictionCommandInput, options?: __HttpHandlerOptions): Promise<CreateBatchPredictionCommandOutput>;
|
|
62
42
|
createBatchPrediction(args: CreateBatchPredictionCommandInput, cb: (err: any, data?: CreateBatchPredictionCommandOutput) => void): void;
|
|
63
43
|
createBatchPrediction(args: CreateBatchPredictionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBatchPredictionCommandOutput) => void): void;
|
|
64
44
|
/**
|
|
65
|
-
* @
|
|
66
|
-
* <p>Creates a <code>DataSource</code> object from an <a href="http://aws.amazon.com/rds/"> Amazon Relational Database Service</a> (Amazon RDS). A <code>DataSource</code> references data that can be used to perform <code>CreateMLModel</code>, <code>CreateEvaluation</code>, or <code>CreateBatchPrediction</code> operations.</p>
|
|
67
|
-
*
|
|
68
|
-
* <p>
|
|
69
|
-
* <code>CreateDataSourceFromRDS</code> is an asynchronous operation. In response to <code>CreateDataSourceFromRDS</code>,
|
|
70
|
-
* Amazon Machine Learning (Amazon ML) immediately returns and sets the <code>DataSource</code> status to <code>PENDING</code>.
|
|
71
|
-
* After the <code>DataSource</code> is created and ready for use, Amazon ML sets the <code>Status</code> parameter to <code>COMPLETED</code>.
|
|
72
|
-
* <code>DataSource</code> in the <code>COMPLETED</code> or <code>PENDING</code> state can
|
|
73
|
-
* be used only to perform <code>>CreateMLModel</code>>, <code>CreateEvaluation</code>, or <code>CreateBatchPrediction</code> operations.
|
|
74
|
-
* </p>
|
|
75
|
-
* <p>
|
|
76
|
-
* If Amazon ML cannot accept the input source, it sets the <code>Status</code> parameter to <code>FAILED</code> and includes an error message in the <code>Message</code> attribute of the <code>GetDataSource</code> operation response.
|
|
77
|
-
* </p>
|
|
45
|
+
* @see {@link CreateDataSourceFromRDSCommand}
|
|
78
46
|
*/
|
|
79
47
|
createDataSourceFromRDS(args: CreateDataSourceFromRDSCommandInput, options?: __HttpHandlerOptions): Promise<CreateDataSourceFromRDSCommandOutput>;
|
|
80
48
|
createDataSourceFromRDS(args: CreateDataSourceFromRDSCommandInput, cb: (err: any, data?: CreateDataSourceFromRDSCommandOutput) => void): void;
|
|
81
49
|
createDataSourceFromRDS(args: CreateDataSourceFromRDSCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDataSourceFromRDSCommandOutput) => void): void;
|
|
82
50
|
/**
|
|
83
|
-
* @
|
|
84
|
-
* <p>Creates a <code>DataSource</code> from a database hosted on an Amazon Redshift cluster. A
|
|
85
|
-
* <code>DataSource</code> references data that can be used to perform either <code>CreateMLModel</code>, <code>CreateEvaluation</code>, or <code>CreateBatchPrediction</code>
|
|
86
|
-
* operations.</p>
|
|
87
|
-
*
|
|
88
|
-
* <p>
|
|
89
|
-
* <code>CreateDataSourceFromRedshift</code> is an asynchronous operation. In response to <code>CreateDataSourceFromRedshift</code>, Amazon Machine Learning (Amazon ML) immediately returns and sets the <code>DataSource</code> status to <code>PENDING</code>.
|
|
90
|
-
* After the <code>DataSource</code> is created and ready for use, Amazon ML sets the <code>Status</code> parameter to <code>COMPLETED</code>.
|
|
91
|
-
* <code>DataSource</code> in <code>COMPLETED</code> or <code>PENDING</code> states can be
|
|
92
|
-
* used to perform only <code>CreateMLModel</code>, <code>CreateEvaluation</code>, or <code>CreateBatchPrediction</code> operations.
|
|
93
|
-
* </p>
|
|
94
|
-
*
|
|
95
|
-
* <p>
|
|
96
|
-
* If Amazon ML can't accept the input source, it sets the <code>Status</code> parameter to <code>FAILED</code> and includes an error message in the <code>Message</code>
|
|
97
|
-
* attribute of the <code>GetDataSource</code> operation response.
|
|
98
|
-
* </p>
|
|
99
|
-
*
|
|
100
|
-
* <p>The observations should be contained in the database hosted on an Amazon Redshift cluster
|
|
101
|
-
* and should be specified by a <code>SelectSqlQuery</code> query. Amazon ML executes an
|
|
102
|
-
* <code>Unload</code> command in Amazon Redshift to transfer the result set of
|
|
103
|
-
* the <code>SelectSqlQuery</code> query to <code>S3StagingLocation</code>.</p>
|
|
104
|
-
*
|
|
105
|
-
* <p>After the <code>DataSource</code> has been created, it's ready for use in evaluations and
|
|
106
|
-
* batch predictions. If you plan to use the <code>DataSource</code> to train an
|
|
107
|
-
* <code>MLModel</code>, the <code>DataSource</code> also requires a recipe. A recipe
|
|
108
|
-
* describes how each input variable will be used in training an <code>MLModel</code>. Will
|
|
109
|
-
* the variable be included or excluded from training? Will the variable be manipulated;
|
|
110
|
-
* for example, will it be combined with another variable or will it be split apart into
|
|
111
|
-
* word combinations? The recipe provides answers to these questions.</p>
|
|
112
|
-
* <p>You can't change an existing datasource, but you can copy and modify the settings from an
|
|
113
|
-
* existing Amazon Redshift datasource to create a new datasource. To do so, call
|
|
114
|
-
* <code>GetDataSource</code> for an existing datasource and copy the values to a
|
|
115
|
-
* <code>CreateDataSource</code> call. Change the settings that you want to change and
|
|
116
|
-
* make sure that all required fields have the appropriate values.</p>
|
|
51
|
+
* @see {@link CreateDataSourceFromRedshiftCommand}
|
|
117
52
|
*/
|
|
118
53
|
createDataSourceFromRedshift(args: CreateDataSourceFromRedshiftCommandInput, options?: __HttpHandlerOptions): Promise<CreateDataSourceFromRedshiftCommandOutput>;
|
|
119
54
|
createDataSourceFromRedshift(args: CreateDataSourceFromRedshiftCommandInput, cb: (err: any, data?: CreateDataSourceFromRedshiftCommandOutput) => void): void;
|
|
120
55
|
createDataSourceFromRedshift(args: CreateDataSourceFromRedshiftCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDataSourceFromRedshiftCommandOutput) => void): void;
|
|
121
56
|
/**
|
|
122
|
-
* @
|
|
123
|
-
* <p>Creates a <code>DataSource</code> object. A <code>DataSource</code> references data that
|
|
124
|
-
* can be used to perform <code>CreateMLModel</code>, <code>CreateEvaluation</code>, or
|
|
125
|
-
* <code>CreateBatchPrediction</code> operations.</p>
|
|
126
|
-
*
|
|
127
|
-
* <p>
|
|
128
|
-
* <code>CreateDataSourceFromS3</code> is an asynchronous operation. In response to
|
|
129
|
-
* <code>CreateDataSourceFromS3</code>, Amazon Machine Learning (Amazon ML) immediately
|
|
130
|
-
* returns and sets the <code>DataSource</code> status to <code>PENDING</code>. After the
|
|
131
|
-
* <code>DataSource</code> has been created and is ready for use, Amazon ML sets the
|
|
132
|
-
* <code>Status</code> parameter to <code>COMPLETED</code>. <code>DataSource</code> in
|
|
133
|
-
* the <code>COMPLETED</code> or <code>PENDING</code> state can be used to perform only
|
|
134
|
-
* <code>CreateMLModel</code>, <code>CreateEvaluation</code> or
|
|
135
|
-
* <code>CreateBatchPrediction</code> operations. </p>
|
|
136
|
-
*
|
|
137
|
-
* <p> If Amazon ML can't accept the input source, it sets the <code>Status</code> parameter to
|
|
138
|
-
* <code>FAILED</code> and includes an error message in the <code>Message</code>
|
|
139
|
-
* attribute of the <code>GetDataSource</code> operation response. </p>
|
|
140
|
-
*
|
|
141
|
-
* <p>The observation data used in a <code>DataSource</code> should be ready to use; that is,
|
|
142
|
-
* it should have a consistent structure, and missing data values should be kept to a
|
|
143
|
-
* minimum. The observation data must reside in one or more .csv files in an Amazon Simple
|
|
144
|
-
* Storage Service (Amazon S3) location, along with a schema that describes the data items
|
|
145
|
-
* by name and type. The same schema must be used for all of the data files referenced by
|
|
146
|
-
* the <code>DataSource</code>. </p>
|
|
147
|
-
* <p>After the <code>DataSource</code> has been created, it's ready to use in evaluations and
|
|
148
|
-
* batch predictions. If you plan to use the <code>DataSource</code> to train an
|
|
149
|
-
* <code>MLModel</code>, the <code>DataSource</code> also needs a recipe. A recipe
|
|
150
|
-
* describes how each input variable will be used in training an <code>MLModel</code>. Will
|
|
151
|
-
* the variable be included or excluded from training? Will the variable be manipulated;
|
|
152
|
-
* for example, will it be combined with another variable or will it be split apart into
|
|
153
|
-
* word combinations? The recipe provides answers to these questions.</p>
|
|
57
|
+
* @see {@link CreateDataSourceFromS3Command}
|
|
154
58
|
*/
|
|
155
59
|
createDataSourceFromS3(args: CreateDataSourceFromS3CommandInput, options?: __HttpHandlerOptions): Promise<CreateDataSourceFromS3CommandOutput>;
|
|
156
60
|
createDataSourceFromS3(args: CreateDataSourceFromS3CommandInput, cb: (err: any, data?: CreateDataSourceFromS3CommandOutput) => void): void;
|
|
157
61
|
createDataSourceFromS3(args: CreateDataSourceFromS3CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDataSourceFromS3CommandOutput) => void): void;
|
|
158
62
|
/**
|
|
159
|
-
* @
|
|
160
|
-
* <p>Creates a new <code>Evaluation</code> of an <code>MLModel</code>. An <code>MLModel</code> is evaluated on a set of observations associated to a <code>DataSource</code>. Like a <code>DataSource</code>
|
|
161
|
-
* for an <code>MLModel</code>, the <code>DataSource</code> for an <code>Evaluation</code> contains values for the <code>Target Variable</code>. The <code>Evaluation</code> compares the predicted result for each observation to the actual outcome and provides a
|
|
162
|
-
* summary so that you know how effective the <code>MLModel</code> functions on the test
|
|
163
|
-
* data. Evaluation generates a relevant performance metric, such as BinaryAUC, RegressionRMSE or MulticlassAvgFScore based on the corresponding <code>MLModelType</code>: <code>BINARY</code>, <code>REGRESSION</code> or <code>MULTICLASS</code>.
|
|
164
|
-
*
|
|
165
|
-
* </p>
|
|
166
|
-
* <p>
|
|
167
|
-
* <code>CreateEvaluation</code> is an asynchronous operation. In response to <code>CreateEvaluation</code>, Amazon Machine Learning (Amazon ML) immediately
|
|
168
|
-
* returns and sets the evaluation status to <code>PENDING</code>. After the <code>Evaluation</code> is created and ready for use,
|
|
169
|
-
* Amazon ML sets the status to <code>COMPLETED</code>.
|
|
170
|
-
* </p>
|
|
171
|
-
* <p>You can use the <code>GetEvaluation</code> operation to check progress of the evaluation during the creation operation.</p>
|
|
63
|
+
* @see {@link CreateEvaluationCommand}
|
|
172
64
|
*/
|
|
173
65
|
createEvaluation(args: CreateEvaluationCommandInput, options?: __HttpHandlerOptions): Promise<CreateEvaluationCommandOutput>;
|
|
174
66
|
createEvaluation(args: CreateEvaluationCommandInput, cb: (err: any, data?: CreateEvaluationCommandOutput) => void): void;
|
|
175
67
|
createEvaluation(args: CreateEvaluationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEvaluationCommandOutput) => void): void;
|
|
176
68
|
/**
|
|
177
|
-
* @
|
|
178
|
-
* <p>Creates a new <code>MLModel</code> using the <code>DataSource</code> and the recipe as
|
|
179
|
-
* information sources. </p>
|
|
180
|
-
* <p>An <code>MLModel</code> is nearly immutable. Users can update only the
|
|
181
|
-
* <code>MLModelName</code> and the <code>ScoreThreshold</code> in an
|
|
182
|
-
* <code>MLModel</code> without creating a new <code>MLModel</code>. </p>
|
|
183
|
-
* <p>
|
|
184
|
-
* <code>CreateMLModel</code> is an asynchronous operation. In response to
|
|
185
|
-
* <code>CreateMLModel</code>, Amazon Machine Learning (Amazon ML) immediately returns
|
|
186
|
-
* and sets the <code>MLModel</code> status to <code>PENDING</code>. After the
|
|
187
|
-
* <code>MLModel</code> has been created and ready is for use, Amazon ML sets the
|
|
188
|
-
* status to <code>COMPLETED</code>. </p>
|
|
189
|
-
* <p>You can use the <code>GetMLModel</code> operation to check the progress of the
|
|
190
|
-
* <code>MLModel</code> during the creation operation.</p>
|
|
191
|
-
*
|
|
192
|
-
* <p>
|
|
193
|
-
* <code>CreateMLModel</code> requires a <code>DataSource</code> with computed statistics,
|
|
194
|
-
* which can be created by setting <code>ComputeStatistics</code> to <code>true</code> in
|
|
195
|
-
* <code>CreateDataSourceFromRDS</code>, <code>CreateDataSourceFromS3</code>, or
|
|
196
|
-
* <code>CreateDataSourceFromRedshift</code> operations.
|
|
197
|
-
* </p>
|
|
69
|
+
* @see {@link CreateMLModelCommand}
|
|
198
70
|
*/
|
|
199
71
|
createMLModel(args: CreateMLModelCommandInput, options?: __HttpHandlerOptions): Promise<CreateMLModelCommandOutput>;
|
|
200
72
|
createMLModel(args: CreateMLModelCommandInput, cb: (err: any, data?: CreateMLModelCommandOutput) => void): void;
|
|
201
73
|
createMLModel(args: CreateMLModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMLModelCommandOutput) => void): void;
|
|
202
74
|
/**
|
|
203
|
-
* @
|
|
204
|
-
* <p>Creates a real-time endpoint for the <code>MLModel</code>. The endpoint contains the URI of the <code>MLModel</code>; that is, the location to send real-time prediction requests for the specified <code>MLModel</code>.</p>
|
|
75
|
+
* @see {@link CreateRealtimeEndpointCommand}
|
|
205
76
|
*/
|
|
206
77
|
createRealtimeEndpoint(args: CreateRealtimeEndpointCommandInput, options?: __HttpHandlerOptions): Promise<CreateRealtimeEndpointCommandOutput>;
|
|
207
78
|
createRealtimeEndpoint(args: CreateRealtimeEndpointCommandInput, cb: (err: any, data?: CreateRealtimeEndpointCommandOutput) => void): void;
|
|
208
79
|
createRealtimeEndpoint(args: CreateRealtimeEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRealtimeEndpointCommandOutput) => void): void;
|
|
209
80
|
/**
|
|
210
|
-
* @
|
|
211
|
-
* <p>Assigns the DELETED status to a <code>BatchPrediction</code>, rendering it unusable.</p>
|
|
212
|
-
* <p>After using the <code>DeleteBatchPrediction</code> operation, you can use the <a>GetBatchPrediction</a>
|
|
213
|
-
* operation to verify that the status of the <code>BatchPrediction</code> changed to DELETED.</p>
|
|
214
|
-
*
|
|
215
|
-
* <p>
|
|
216
|
-
* <b>Caution:</b> The result of the <code>DeleteBatchPrediction</code> operation is irreversible.</p>
|
|
81
|
+
* @see {@link DeleteBatchPredictionCommand}
|
|
217
82
|
*/
|
|
218
83
|
deleteBatchPrediction(args: DeleteBatchPredictionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteBatchPredictionCommandOutput>;
|
|
219
84
|
deleteBatchPrediction(args: DeleteBatchPredictionCommandInput, cb: (err: any, data?: DeleteBatchPredictionCommandOutput) => void): void;
|
|
220
85
|
deleteBatchPrediction(args: DeleteBatchPredictionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBatchPredictionCommandOutput) => void): void;
|
|
221
86
|
/**
|
|
222
|
-
* @
|
|
223
|
-
* <p>Assigns the DELETED status to a <code>DataSource</code>, rendering it unusable.</p>
|
|
224
|
-
* <p>After using the <code>DeleteDataSource</code> operation, you can use the <a>GetDataSource</a> operation to verify that the status of the <code>DataSource</code> changed to DELETED.</p>
|
|
225
|
-
* <p>
|
|
226
|
-
* <b>Caution:</b> The results of the <code>DeleteDataSource</code> operation are irreversible.</p>
|
|
87
|
+
* @see {@link DeleteDataSourceCommand}
|
|
227
88
|
*/
|
|
228
89
|
deleteDataSource(args: DeleteDataSourceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDataSourceCommandOutput>;
|
|
229
90
|
deleteDataSource(args: DeleteDataSourceCommandInput, cb: (err: any, data?: DeleteDataSourceCommandOutput) => void): void;
|
|
230
91
|
deleteDataSource(args: DeleteDataSourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDataSourceCommandOutput) => void): void;
|
|
231
92
|
/**
|
|
232
|
-
* @
|
|
233
|
-
* <p>Assigns the <code>DELETED</code> status to an <code>Evaluation</code>, rendering it unusable.</p>
|
|
234
|
-
*
|
|
235
|
-
* <p>After invoking the <code>DeleteEvaluation</code> operation, you can use the
|
|
236
|
-
* <code>GetEvaluation</code> operation to verify that the status of the <code>Evaluation</code> changed to <code>DELETED</code>.</p>
|
|
237
|
-
* <p>
|
|
238
|
-
* <b>Caution:</b> The results of the <code>DeleteEvaluation</code> operation are irreversible.</p>
|
|
93
|
+
* @see {@link DeleteEvaluationCommand}
|
|
239
94
|
*/
|
|
240
95
|
deleteEvaluation(args: DeleteEvaluationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEvaluationCommandOutput>;
|
|
241
96
|
deleteEvaluation(args: DeleteEvaluationCommandInput, cb: (err: any, data?: DeleteEvaluationCommandOutput) => void): void;
|
|
242
97
|
deleteEvaluation(args: DeleteEvaluationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEvaluationCommandOutput) => void): void;
|
|
243
98
|
/**
|
|
244
|
-
* @
|
|
245
|
-
* <p>Assigns the <code>DELETED</code> status to an <code>MLModel</code>, rendering it unusable.</p>
|
|
246
|
-
* <p>After using the <code>DeleteMLModel</code> operation, you can use the
|
|
247
|
-
* <code>GetMLModel</code> operation to verify that the status of the <code>MLModel</code> changed to DELETED.</p>
|
|
248
|
-
*
|
|
249
|
-
* <p>
|
|
250
|
-
* <b>Caution:</b> The result of the <code>DeleteMLModel</code> operation is irreversible.</p>
|
|
99
|
+
* @see {@link DeleteMLModelCommand}
|
|
251
100
|
*/
|
|
252
101
|
deleteMLModel(args: DeleteMLModelCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMLModelCommandOutput>;
|
|
253
102
|
deleteMLModel(args: DeleteMLModelCommandInput, cb: (err: any, data?: DeleteMLModelCommandOutput) => void): void;
|
|
254
103
|
deleteMLModel(args: DeleteMLModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMLModelCommandOutput) => void): void;
|
|
255
104
|
/**
|
|
256
|
-
* @
|
|
257
|
-
* <p>Deletes a real time endpoint of an <code>MLModel</code>.</p>
|
|
105
|
+
* @see {@link DeleteRealtimeEndpointCommand}
|
|
258
106
|
*/
|
|
259
107
|
deleteRealtimeEndpoint(args: DeleteRealtimeEndpointCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRealtimeEndpointCommandOutput>;
|
|
260
108
|
deleteRealtimeEndpoint(args: DeleteRealtimeEndpointCommandInput, cb: (err: any, data?: DeleteRealtimeEndpointCommandOutput) => void): void;
|
|
261
109
|
deleteRealtimeEndpoint(args: DeleteRealtimeEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRealtimeEndpointCommandOutput) => void): void;
|
|
262
110
|
/**
|
|
263
|
-
* @
|
|
264
|
-
* <p>Deletes the specified tags associated with an ML object. After this operation is complete, you can't recover deleted tags.</p>
|
|
265
|
-
* <p>If you specify a tag that doesn't exist, Amazon ML ignores it.</p>
|
|
111
|
+
* @see {@link DeleteTagsCommand}
|
|
266
112
|
*/
|
|
267
113
|
deleteTags(args: DeleteTagsCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTagsCommandOutput>;
|
|
268
114
|
deleteTags(args: DeleteTagsCommandInput, cb: (err: any, data?: DeleteTagsCommandOutput) => void): void;
|
|
269
115
|
deleteTags(args: DeleteTagsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTagsCommandOutput) => void): void;
|
|
270
116
|
/**
|
|
271
|
-
* @
|
|
272
|
-
* <p>Returns a list of <code>BatchPrediction</code> operations that match the search criteria in the request.</p>
|
|
117
|
+
* @see {@link DescribeBatchPredictionsCommand}
|
|
273
118
|
*/
|
|
274
119
|
describeBatchPredictions(args: DescribeBatchPredictionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeBatchPredictionsCommandOutput>;
|
|
275
120
|
describeBatchPredictions(args: DescribeBatchPredictionsCommandInput, cb: (err: any, data?: DescribeBatchPredictionsCommandOutput) => void): void;
|
|
276
121
|
describeBatchPredictions(args: DescribeBatchPredictionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeBatchPredictionsCommandOutput) => void): void;
|
|
277
122
|
/**
|
|
278
|
-
* @
|
|
279
|
-
* <p>Returns a list of <code>DataSource</code> that match the search criteria in the request.</p>
|
|
123
|
+
* @see {@link DescribeDataSourcesCommand}
|
|
280
124
|
*/
|
|
281
125
|
describeDataSources(args: DescribeDataSourcesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDataSourcesCommandOutput>;
|
|
282
126
|
describeDataSources(args: DescribeDataSourcesCommandInput, cb: (err: any, data?: DescribeDataSourcesCommandOutput) => void): void;
|
|
283
127
|
describeDataSources(args: DescribeDataSourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDataSourcesCommandOutput) => void): void;
|
|
284
128
|
/**
|
|
285
|
-
* @
|
|
286
|
-
* <p>Returns a list of <code>DescribeEvaluations</code> that match the search criteria in the request.</p>
|
|
129
|
+
* @see {@link DescribeEvaluationsCommand}
|
|
287
130
|
*/
|
|
288
131
|
describeEvaluations(args: DescribeEvaluationsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEvaluationsCommandOutput>;
|
|
289
132
|
describeEvaluations(args: DescribeEvaluationsCommandInput, cb: (err: any, data?: DescribeEvaluationsCommandOutput) => void): void;
|
|
290
133
|
describeEvaluations(args: DescribeEvaluationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEvaluationsCommandOutput) => void): void;
|
|
291
134
|
/**
|
|
292
|
-
* @
|
|
293
|
-
* <p>Returns a list of <code>MLModel</code> that match the search criteria in the request.</p>
|
|
135
|
+
* @see {@link DescribeMLModelsCommand}
|
|
294
136
|
*/
|
|
295
137
|
describeMLModels(args: DescribeMLModelsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeMLModelsCommandOutput>;
|
|
296
138
|
describeMLModels(args: DescribeMLModelsCommandInput, cb: (err: any, data?: DescribeMLModelsCommandOutput) => void): void;
|
|
297
139
|
describeMLModels(args: DescribeMLModelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMLModelsCommandOutput) => void): void;
|
|
298
140
|
/**
|
|
299
|
-
* @
|
|
300
|
-
* <p>Describes one or more of the tags for your Amazon ML object.</p>
|
|
141
|
+
* @see {@link DescribeTagsCommand}
|
|
301
142
|
*/
|
|
302
143
|
describeTags(args: DescribeTagsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTagsCommandOutput>;
|
|
303
144
|
describeTags(args: DescribeTagsCommandInput, cb: (err: any, data?: DescribeTagsCommandOutput) => void): void;
|
|
304
145
|
describeTags(args: DescribeTagsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTagsCommandOutput) => void): void;
|
|
305
146
|
/**
|
|
306
|
-
* @
|
|
307
|
-
* <p>Returns a <code>BatchPrediction</code> that includes detailed metadata, status, and data file information for a
|
|
308
|
-
* <code>Batch Prediction</code> request.</p>
|
|
147
|
+
* @see {@link GetBatchPredictionCommand}
|
|
309
148
|
*/
|
|
310
149
|
getBatchPrediction(args: GetBatchPredictionCommandInput, options?: __HttpHandlerOptions): Promise<GetBatchPredictionCommandOutput>;
|
|
311
150
|
getBatchPrediction(args: GetBatchPredictionCommandInput, cb: (err: any, data?: GetBatchPredictionCommandOutput) => void): void;
|
|
312
151
|
getBatchPrediction(args: GetBatchPredictionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBatchPredictionCommandOutput) => void): void;
|
|
313
152
|
/**
|
|
314
|
-
* @
|
|
315
|
-
* <p>Returns a <code>DataSource</code> that includes metadata and data file information, as well as the current status of the <code>DataSource</code>.</p>
|
|
316
|
-
* <p>
|
|
317
|
-
* <code>GetDataSource</code> provides results in normal or verbose format. The verbose format
|
|
318
|
-
* adds the schema description and the list of files pointed to by the DataSource to the normal format.</p>
|
|
153
|
+
* @see {@link GetDataSourceCommand}
|
|
319
154
|
*/
|
|
320
155
|
getDataSource(args: GetDataSourceCommandInput, options?: __HttpHandlerOptions): Promise<GetDataSourceCommandOutput>;
|
|
321
156
|
getDataSource(args: GetDataSourceCommandInput, cb: (err: any, data?: GetDataSourceCommandOutput) => void): void;
|
|
322
157
|
getDataSource(args: GetDataSourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDataSourceCommandOutput) => void): void;
|
|
323
158
|
/**
|
|
324
|
-
* @
|
|
325
|
-
* <p>Returns an <code>Evaluation</code> that includes metadata as well as the current status of the <code>Evaluation</code>.</p>
|
|
159
|
+
* @see {@link GetEvaluationCommand}
|
|
326
160
|
*/
|
|
327
161
|
getEvaluation(args: GetEvaluationCommandInput, options?: __HttpHandlerOptions): Promise<GetEvaluationCommandOutput>;
|
|
328
162
|
getEvaluation(args: GetEvaluationCommandInput, cb: (err: any, data?: GetEvaluationCommandOutput) => void): void;
|
|
329
163
|
getEvaluation(args: GetEvaluationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEvaluationCommandOutput) => void): void;
|
|
330
164
|
/**
|
|
331
|
-
* @
|
|
332
|
-
* <p>Returns an <code>MLModel</code> that includes detailed metadata, data source information, and the current status of the <code>MLModel</code>.</p>
|
|
333
|
-
* <p>
|
|
334
|
-
* <code>GetMLModel</code> provides results in normal or verbose format. </p>
|
|
165
|
+
* @see {@link GetMLModelCommand}
|
|
335
166
|
*/
|
|
336
167
|
getMLModel(args: GetMLModelCommandInput, options?: __HttpHandlerOptions): Promise<GetMLModelCommandOutput>;
|
|
337
168
|
getMLModel(args: GetMLModelCommandInput, cb: (err: any, data?: GetMLModelCommandOutput) => void): void;
|
|
338
169
|
getMLModel(args: GetMLModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMLModelCommandOutput) => void): void;
|
|
339
170
|
/**
|
|
340
|
-
* @
|
|
341
|
-
* <p>Generates a prediction for the observation using the specified <code>ML Model</code>.</p>
|
|
342
|
-
* <p>
|
|
343
|
-
* <b>Note:</b> Not all response parameters will be populated. Whether a
|
|
344
|
-
* response parameter is populated depends on the type of model requested.</p>
|
|
171
|
+
* @see {@link PredictCommand}
|
|
345
172
|
*/
|
|
346
173
|
predict(args: PredictCommandInput, options?: __HttpHandlerOptions): Promise<PredictCommandOutput>;
|
|
347
174
|
predict(args: PredictCommandInput, cb: (err: any, data?: PredictCommandOutput) => void): void;
|
|
348
175
|
predict(args: PredictCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PredictCommandOutput) => void): void;
|
|
349
176
|
/**
|
|
350
|
-
* @
|
|
351
|
-
* <p>Updates the <code>BatchPredictionName</code> of a <code>BatchPrediction</code>.</p>
|
|
352
|
-
* <p>You can use the <code>GetBatchPrediction</code> operation to view the contents of the updated data element.</p>
|
|
177
|
+
* @see {@link UpdateBatchPredictionCommand}
|
|
353
178
|
*/
|
|
354
179
|
updateBatchPrediction(args: UpdateBatchPredictionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBatchPredictionCommandOutput>;
|
|
355
180
|
updateBatchPrediction(args: UpdateBatchPredictionCommandInput, cb: (err: any, data?: UpdateBatchPredictionCommandOutput) => void): void;
|
|
356
181
|
updateBatchPrediction(args: UpdateBatchPredictionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBatchPredictionCommandOutput) => void): void;
|
|
357
182
|
/**
|
|
358
|
-
* @
|
|
359
|
-
* <p>Updates the <code>DataSourceName</code> of a <code>DataSource</code>.</p>
|
|
360
|
-
* <p>You can use the <code>GetDataSource</code> operation to view the contents of the updated data element.</p>
|
|
183
|
+
* @see {@link UpdateDataSourceCommand}
|
|
361
184
|
*/
|
|
362
185
|
updateDataSource(args: UpdateDataSourceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDataSourceCommandOutput>;
|
|
363
186
|
updateDataSource(args: UpdateDataSourceCommandInput, cb: (err: any, data?: UpdateDataSourceCommandOutput) => void): void;
|
|
364
187
|
updateDataSource(args: UpdateDataSourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDataSourceCommandOutput) => void): void;
|
|
365
188
|
/**
|
|
366
|
-
* @
|
|
367
|
-
* <p>Updates the <code>EvaluationName</code> of an <code>Evaluation</code>.</p>
|
|
368
|
-
* <p>You can use the <code>GetEvaluation</code> operation to view the contents of the updated data element.</p>
|
|
189
|
+
* @see {@link UpdateEvaluationCommand}
|
|
369
190
|
*/
|
|
370
191
|
updateEvaluation(args: UpdateEvaluationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEvaluationCommandOutput>;
|
|
371
192
|
updateEvaluation(args: UpdateEvaluationCommandInput, cb: (err: any, data?: UpdateEvaluationCommandOutput) => void): void;
|
|
372
193
|
updateEvaluation(args: UpdateEvaluationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEvaluationCommandOutput) => void): void;
|
|
373
194
|
/**
|
|
374
|
-
* @
|
|
375
|
-
* <p>Updates the <code>MLModelName</code> and the <code>ScoreThreshold</code> of an <code>MLModel</code>.</p>
|
|
376
|
-
* <p>You can use the <code>GetMLModel</code> operation to view the contents of the updated data element.</p>
|
|
195
|
+
* @see {@link UpdateMLModelCommand}
|
|
377
196
|
*/
|
|
378
197
|
updateMLModel(args: UpdateMLModelCommandInput, options?: __HttpHandlerOptions): Promise<UpdateMLModelCommandOutput>;
|
|
379
198
|
updateMLModel(args: UpdateMLModelCommandInput, cb: (err: any, data?: UpdateMLModelCommandOutput) => void): void;
|
|
380
199
|
updateMLModel(args: UpdateMLModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMLModelCommandOutput) => void): void;
|
|
381
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* @public
|
|
203
|
+
* Definition of the public APIs
|
|
204
|
+
* exposed by Amazon Machine Learning
|
|
205
|
+
*/
|
|
206
|
+
export declare class MachineLearning extends MachineLearningClient implements MachineLearning {
|
|
207
|
+
}
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
UpdateMLModelCommandOutput,
|
|
113
113
|
} from "./commands/UpdateMLModelCommand";
|
|
114
114
|
import { MachineLearningClient } from "./MachineLearningClient";
|
|
115
|
-
export
|
|
115
|
+
export interface MachineLearning {
|
|
116
116
|
addTags(
|
|
117
117
|
args: AddTagsCommandInput,
|
|
118
118
|
options?: __HttpHandlerOptions
|
|
@@ -478,3 +478,6 @@ export declare class MachineLearning extends MachineLearningClient {
|
|
|
478
478
|
cb: (err: any, data?: UpdateMLModelCommandOutput) => void
|
|
479
479
|
): void;
|
|
480
480
|
}
|
|
481
|
+
export declare class MachineLearning
|
|
482
|
+
extends MachineLearningClient
|
|
483
|
+
implements MachineLearning {}
|
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.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
42
42
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
43
43
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
44
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
45
45
|
"@aws-sdk/types": "3.310.0",
|
|
46
46
|
"@aws-sdk/url-parser": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-base64": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
49
49
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
50
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
51
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
52
52
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-retry": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|