@aws-sdk/client-machine-learning 3.1068.0 → 3.1069.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/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +162 -182
- package/dist-cjs/models/MachineLearningServiceException.js +4 -8
- package/dist-cjs/models/errors.js +17 -28
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +227 -150
- package/package.json +9 -9
package/dist-cjs/index.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveHttpAuthSchemeConfig, defaultMachineLearningHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
13
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
14
|
+
const { AddTags$, CreateBatchPrediction$, CreateDataSourceFromRDS$, CreateDataSourceFromRedshift$, CreateDataSourceFromS3$, CreateEvaluation$, CreateMLModel$, CreateRealtimeEndpoint$, DeleteBatchPrediction$, DeleteDataSource$, DeleteEvaluation$, DeleteMLModel$, DeleteRealtimeEndpoint$, DeleteTags$, DescribeBatchPredictions$, DescribeDataSources$, DescribeEvaluations$, DescribeMLModels$, DescribeTags$, GetBatchPrediction$, GetDataSource$, GetEvaluation$, GetMLModel$, Predict$, UpdateBatchPrediction$, UpdateDataSource$, UpdateEvaluation$, UpdateMLModel$ } = require("./schemas/schemas_0");
|
|
15
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
16
|
+
const { getPredictEndpointPlugin } = require("@aws-sdk/middleware-sdk-machinelearning");
|
|
17
|
+
__exportStar(require("./models/errors"), exports);
|
|
18
|
+
const { MachineLearningServiceException } = require("./models/MachineLearningServiceException");
|
|
19
|
+
exports.MachineLearningServiceException = MachineLearningServiceException;
|
|
17
20
|
|
|
18
21
|
const resolveClientEndpointParameters = (options) => {
|
|
19
22
|
return Object.assign(options, {
|
|
@@ -69,397 +72,397 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
69
72
|
};
|
|
70
73
|
|
|
71
74
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
72
|
-
const extensionConfiguration = Object.assign(
|
|
75
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
73
76
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
74
|
-
return Object.assign(runtimeConfig,
|
|
77
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
75
78
|
};
|
|
76
79
|
|
|
77
|
-
class MachineLearningClient extends
|
|
80
|
+
class MachineLearningClient extends Client {
|
|
78
81
|
config;
|
|
79
82
|
constructor(...[configuration]) {
|
|
80
|
-
const _config_0 =
|
|
83
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
81
84
|
super(_config_0);
|
|
82
85
|
this.initConfig = _config_0;
|
|
83
86
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
84
|
-
const _config_2 =
|
|
85
|
-
const _config_3 =
|
|
86
|
-
const _config_4 =
|
|
87
|
-
const _config_5 =
|
|
88
|
-
const _config_6 =
|
|
89
|
-
const _config_7 =
|
|
87
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
90
93
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
91
94
|
this.config = _config_8;
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
this.middlewareStack.use(
|
|
100
|
-
httpAuthSchemeParametersProvider:
|
|
101
|
-
identityProviderConfigProvider: async (config) => new
|
|
95
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
103
|
+
httpAuthSchemeParametersProvider: defaultMachineLearningHttpAuthSchemeParametersProvider,
|
|
104
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
102
105
|
"aws.auth#sigv4": config.credentials,
|
|
103
106
|
}),
|
|
104
107
|
}));
|
|
105
|
-
this.middlewareStack.use(
|
|
108
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
106
109
|
}
|
|
107
110
|
destroy() {
|
|
108
111
|
super.destroy();
|
|
109
112
|
}
|
|
110
113
|
}
|
|
111
114
|
|
|
112
|
-
class AddTagsCommand extends
|
|
115
|
+
class AddTagsCommand extends Command
|
|
113
116
|
.classBuilder()
|
|
114
117
|
.ep(commonParams)
|
|
115
118
|
.m(function (Command, cs, config, o) {
|
|
116
|
-
return [
|
|
119
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
117
120
|
})
|
|
118
121
|
.s("AmazonML_20141212", "AddTags", {})
|
|
119
122
|
.n("MachineLearningClient", "AddTagsCommand")
|
|
120
|
-
.sc(
|
|
123
|
+
.sc(AddTags$)
|
|
121
124
|
.build() {
|
|
122
125
|
}
|
|
123
126
|
|
|
124
|
-
class CreateBatchPredictionCommand extends
|
|
127
|
+
class CreateBatchPredictionCommand extends Command
|
|
125
128
|
.classBuilder()
|
|
126
129
|
.ep(commonParams)
|
|
127
130
|
.m(function (Command, cs, config, o) {
|
|
128
|
-
return [
|
|
131
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
129
132
|
})
|
|
130
133
|
.s("AmazonML_20141212", "CreateBatchPrediction", {})
|
|
131
134
|
.n("MachineLearningClient", "CreateBatchPredictionCommand")
|
|
132
|
-
.sc(
|
|
135
|
+
.sc(CreateBatchPrediction$)
|
|
133
136
|
.build() {
|
|
134
137
|
}
|
|
135
138
|
|
|
136
|
-
class CreateDataSourceFromRDSCommand extends
|
|
139
|
+
class CreateDataSourceFromRDSCommand extends Command
|
|
137
140
|
.classBuilder()
|
|
138
141
|
.ep(commonParams)
|
|
139
142
|
.m(function (Command, cs, config, o) {
|
|
140
|
-
return [
|
|
143
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
141
144
|
})
|
|
142
145
|
.s("AmazonML_20141212", "CreateDataSourceFromRDS", {})
|
|
143
146
|
.n("MachineLearningClient", "CreateDataSourceFromRDSCommand")
|
|
144
|
-
.sc(
|
|
147
|
+
.sc(CreateDataSourceFromRDS$)
|
|
145
148
|
.build() {
|
|
146
149
|
}
|
|
147
150
|
|
|
148
|
-
class CreateDataSourceFromRedshiftCommand extends
|
|
151
|
+
class CreateDataSourceFromRedshiftCommand extends Command
|
|
149
152
|
.classBuilder()
|
|
150
153
|
.ep(commonParams)
|
|
151
154
|
.m(function (Command, cs, config, o) {
|
|
152
|
-
return [
|
|
155
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
153
156
|
})
|
|
154
157
|
.s("AmazonML_20141212", "CreateDataSourceFromRedshift", {})
|
|
155
158
|
.n("MachineLearningClient", "CreateDataSourceFromRedshiftCommand")
|
|
156
|
-
.sc(
|
|
159
|
+
.sc(CreateDataSourceFromRedshift$)
|
|
157
160
|
.build() {
|
|
158
161
|
}
|
|
159
162
|
|
|
160
|
-
class CreateDataSourceFromS3Command extends
|
|
163
|
+
class CreateDataSourceFromS3Command extends Command
|
|
161
164
|
.classBuilder()
|
|
162
165
|
.ep(commonParams)
|
|
163
166
|
.m(function (Command, cs, config, o) {
|
|
164
|
-
return [
|
|
167
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
165
168
|
})
|
|
166
169
|
.s("AmazonML_20141212", "CreateDataSourceFromS3", {})
|
|
167
170
|
.n("MachineLearningClient", "CreateDataSourceFromS3Command")
|
|
168
|
-
.sc(
|
|
171
|
+
.sc(CreateDataSourceFromS3$)
|
|
169
172
|
.build() {
|
|
170
173
|
}
|
|
171
174
|
|
|
172
|
-
class CreateEvaluationCommand extends
|
|
175
|
+
class CreateEvaluationCommand extends Command
|
|
173
176
|
.classBuilder()
|
|
174
177
|
.ep(commonParams)
|
|
175
178
|
.m(function (Command, cs, config, o) {
|
|
176
|
-
return [
|
|
179
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
177
180
|
})
|
|
178
181
|
.s("AmazonML_20141212", "CreateEvaluation", {})
|
|
179
182
|
.n("MachineLearningClient", "CreateEvaluationCommand")
|
|
180
|
-
.sc(
|
|
183
|
+
.sc(CreateEvaluation$)
|
|
181
184
|
.build() {
|
|
182
185
|
}
|
|
183
186
|
|
|
184
|
-
class CreateMLModelCommand extends
|
|
187
|
+
class CreateMLModelCommand extends Command
|
|
185
188
|
.classBuilder()
|
|
186
189
|
.ep(commonParams)
|
|
187
190
|
.m(function (Command, cs, config, o) {
|
|
188
|
-
return [
|
|
191
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
189
192
|
})
|
|
190
193
|
.s("AmazonML_20141212", "CreateMLModel", {})
|
|
191
194
|
.n("MachineLearningClient", "CreateMLModelCommand")
|
|
192
|
-
.sc(
|
|
195
|
+
.sc(CreateMLModel$)
|
|
193
196
|
.build() {
|
|
194
197
|
}
|
|
195
198
|
|
|
196
|
-
class CreateRealtimeEndpointCommand extends
|
|
199
|
+
class CreateRealtimeEndpointCommand extends Command
|
|
197
200
|
.classBuilder()
|
|
198
201
|
.ep(commonParams)
|
|
199
202
|
.m(function (Command, cs, config, o) {
|
|
200
|
-
return [
|
|
203
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
201
204
|
})
|
|
202
205
|
.s("AmazonML_20141212", "CreateRealtimeEndpoint", {})
|
|
203
206
|
.n("MachineLearningClient", "CreateRealtimeEndpointCommand")
|
|
204
|
-
.sc(
|
|
207
|
+
.sc(CreateRealtimeEndpoint$)
|
|
205
208
|
.build() {
|
|
206
209
|
}
|
|
207
210
|
|
|
208
|
-
class DeleteBatchPredictionCommand extends
|
|
211
|
+
class DeleteBatchPredictionCommand extends Command
|
|
209
212
|
.classBuilder()
|
|
210
213
|
.ep(commonParams)
|
|
211
214
|
.m(function (Command, cs, config, o) {
|
|
212
|
-
return [
|
|
215
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
213
216
|
})
|
|
214
217
|
.s("AmazonML_20141212", "DeleteBatchPrediction", {})
|
|
215
218
|
.n("MachineLearningClient", "DeleteBatchPredictionCommand")
|
|
216
|
-
.sc(
|
|
219
|
+
.sc(DeleteBatchPrediction$)
|
|
217
220
|
.build() {
|
|
218
221
|
}
|
|
219
222
|
|
|
220
|
-
class DeleteDataSourceCommand extends
|
|
223
|
+
class DeleteDataSourceCommand extends Command
|
|
221
224
|
.classBuilder()
|
|
222
225
|
.ep(commonParams)
|
|
223
226
|
.m(function (Command, cs, config, o) {
|
|
224
|
-
return [
|
|
227
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
225
228
|
})
|
|
226
229
|
.s("AmazonML_20141212", "DeleteDataSource", {})
|
|
227
230
|
.n("MachineLearningClient", "DeleteDataSourceCommand")
|
|
228
|
-
.sc(
|
|
231
|
+
.sc(DeleteDataSource$)
|
|
229
232
|
.build() {
|
|
230
233
|
}
|
|
231
234
|
|
|
232
|
-
class DeleteEvaluationCommand extends
|
|
235
|
+
class DeleteEvaluationCommand extends Command
|
|
233
236
|
.classBuilder()
|
|
234
237
|
.ep(commonParams)
|
|
235
238
|
.m(function (Command, cs, config, o) {
|
|
236
|
-
return [
|
|
239
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
237
240
|
})
|
|
238
241
|
.s("AmazonML_20141212", "DeleteEvaluation", {})
|
|
239
242
|
.n("MachineLearningClient", "DeleteEvaluationCommand")
|
|
240
|
-
.sc(
|
|
243
|
+
.sc(DeleteEvaluation$)
|
|
241
244
|
.build() {
|
|
242
245
|
}
|
|
243
246
|
|
|
244
|
-
class DeleteMLModelCommand extends
|
|
247
|
+
class DeleteMLModelCommand extends Command
|
|
245
248
|
.classBuilder()
|
|
246
249
|
.ep(commonParams)
|
|
247
250
|
.m(function (Command, cs, config, o) {
|
|
248
|
-
return [
|
|
251
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
249
252
|
})
|
|
250
253
|
.s("AmazonML_20141212", "DeleteMLModel", {})
|
|
251
254
|
.n("MachineLearningClient", "DeleteMLModelCommand")
|
|
252
|
-
.sc(
|
|
255
|
+
.sc(DeleteMLModel$)
|
|
253
256
|
.build() {
|
|
254
257
|
}
|
|
255
258
|
|
|
256
|
-
class DeleteRealtimeEndpointCommand extends
|
|
259
|
+
class DeleteRealtimeEndpointCommand extends Command
|
|
257
260
|
.classBuilder()
|
|
258
261
|
.ep(commonParams)
|
|
259
262
|
.m(function (Command, cs, config, o) {
|
|
260
|
-
return [
|
|
263
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
261
264
|
})
|
|
262
265
|
.s("AmazonML_20141212", "DeleteRealtimeEndpoint", {})
|
|
263
266
|
.n("MachineLearningClient", "DeleteRealtimeEndpointCommand")
|
|
264
|
-
.sc(
|
|
267
|
+
.sc(DeleteRealtimeEndpoint$)
|
|
265
268
|
.build() {
|
|
266
269
|
}
|
|
267
270
|
|
|
268
|
-
class DeleteTagsCommand extends
|
|
271
|
+
class DeleteTagsCommand extends Command
|
|
269
272
|
.classBuilder()
|
|
270
273
|
.ep(commonParams)
|
|
271
274
|
.m(function (Command, cs, config, o) {
|
|
272
|
-
return [
|
|
275
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
273
276
|
})
|
|
274
277
|
.s("AmazonML_20141212", "DeleteTags", {})
|
|
275
278
|
.n("MachineLearningClient", "DeleteTagsCommand")
|
|
276
|
-
.sc(
|
|
279
|
+
.sc(DeleteTags$)
|
|
277
280
|
.build() {
|
|
278
281
|
}
|
|
279
282
|
|
|
280
|
-
class DescribeBatchPredictionsCommand extends
|
|
283
|
+
class DescribeBatchPredictionsCommand extends Command
|
|
281
284
|
.classBuilder()
|
|
282
285
|
.ep(commonParams)
|
|
283
286
|
.m(function (Command, cs, config, o) {
|
|
284
|
-
return [
|
|
287
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
285
288
|
})
|
|
286
289
|
.s("AmazonML_20141212", "DescribeBatchPredictions", {})
|
|
287
290
|
.n("MachineLearningClient", "DescribeBatchPredictionsCommand")
|
|
288
|
-
.sc(
|
|
291
|
+
.sc(DescribeBatchPredictions$)
|
|
289
292
|
.build() {
|
|
290
293
|
}
|
|
291
294
|
|
|
292
|
-
class DescribeDataSourcesCommand extends
|
|
295
|
+
class DescribeDataSourcesCommand extends Command
|
|
293
296
|
.classBuilder()
|
|
294
297
|
.ep(commonParams)
|
|
295
298
|
.m(function (Command, cs, config, o) {
|
|
296
|
-
return [
|
|
299
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
297
300
|
})
|
|
298
301
|
.s("AmazonML_20141212", "DescribeDataSources", {})
|
|
299
302
|
.n("MachineLearningClient", "DescribeDataSourcesCommand")
|
|
300
|
-
.sc(
|
|
303
|
+
.sc(DescribeDataSources$)
|
|
301
304
|
.build() {
|
|
302
305
|
}
|
|
303
306
|
|
|
304
|
-
class DescribeEvaluationsCommand extends
|
|
307
|
+
class DescribeEvaluationsCommand extends Command
|
|
305
308
|
.classBuilder()
|
|
306
309
|
.ep(commonParams)
|
|
307
310
|
.m(function (Command, cs, config, o) {
|
|
308
|
-
return [
|
|
311
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
309
312
|
})
|
|
310
313
|
.s("AmazonML_20141212", "DescribeEvaluations", {})
|
|
311
314
|
.n("MachineLearningClient", "DescribeEvaluationsCommand")
|
|
312
|
-
.sc(
|
|
315
|
+
.sc(DescribeEvaluations$)
|
|
313
316
|
.build() {
|
|
314
317
|
}
|
|
315
318
|
|
|
316
|
-
class DescribeMLModelsCommand extends
|
|
319
|
+
class DescribeMLModelsCommand extends Command
|
|
317
320
|
.classBuilder()
|
|
318
321
|
.ep(commonParams)
|
|
319
322
|
.m(function (Command, cs, config, o) {
|
|
320
|
-
return [
|
|
323
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
321
324
|
})
|
|
322
325
|
.s("AmazonML_20141212", "DescribeMLModels", {})
|
|
323
326
|
.n("MachineLearningClient", "DescribeMLModelsCommand")
|
|
324
|
-
.sc(
|
|
327
|
+
.sc(DescribeMLModels$)
|
|
325
328
|
.build() {
|
|
326
329
|
}
|
|
327
330
|
|
|
328
|
-
class DescribeTagsCommand extends
|
|
331
|
+
class DescribeTagsCommand extends Command
|
|
329
332
|
.classBuilder()
|
|
330
333
|
.ep(commonParams)
|
|
331
334
|
.m(function (Command, cs, config, o) {
|
|
332
|
-
return [
|
|
335
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
333
336
|
})
|
|
334
337
|
.s("AmazonML_20141212", "DescribeTags", {})
|
|
335
338
|
.n("MachineLearningClient", "DescribeTagsCommand")
|
|
336
|
-
.sc(
|
|
339
|
+
.sc(DescribeTags$)
|
|
337
340
|
.build() {
|
|
338
341
|
}
|
|
339
342
|
|
|
340
|
-
class GetBatchPredictionCommand extends
|
|
343
|
+
class GetBatchPredictionCommand extends Command
|
|
341
344
|
.classBuilder()
|
|
342
345
|
.ep(commonParams)
|
|
343
346
|
.m(function (Command, cs, config, o) {
|
|
344
|
-
return [
|
|
347
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
345
348
|
})
|
|
346
349
|
.s("AmazonML_20141212", "GetBatchPrediction", {})
|
|
347
350
|
.n("MachineLearningClient", "GetBatchPredictionCommand")
|
|
348
|
-
.sc(
|
|
351
|
+
.sc(GetBatchPrediction$)
|
|
349
352
|
.build() {
|
|
350
353
|
}
|
|
351
354
|
|
|
352
|
-
class GetDataSourceCommand extends
|
|
355
|
+
class GetDataSourceCommand extends Command
|
|
353
356
|
.classBuilder()
|
|
354
357
|
.ep(commonParams)
|
|
355
358
|
.m(function (Command, cs, config, o) {
|
|
356
|
-
return [
|
|
359
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
357
360
|
})
|
|
358
361
|
.s("AmazonML_20141212", "GetDataSource", {})
|
|
359
362
|
.n("MachineLearningClient", "GetDataSourceCommand")
|
|
360
|
-
.sc(
|
|
363
|
+
.sc(GetDataSource$)
|
|
361
364
|
.build() {
|
|
362
365
|
}
|
|
363
366
|
|
|
364
|
-
class GetEvaluationCommand extends
|
|
367
|
+
class GetEvaluationCommand extends Command
|
|
365
368
|
.classBuilder()
|
|
366
369
|
.ep(commonParams)
|
|
367
370
|
.m(function (Command, cs, config, o) {
|
|
368
|
-
return [
|
|
371
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
369
372
|
})
|
|
370
373
|
.s("AmazonML_20141212", "GetEvaluation", {})
|
|
371
374
|
.n("MachineLearningClient", "GetEvaluationCommand")
|
|
372
|
-
.sc(
|
|
375
|
+
.sc(GetEvaluation$)
|
|
373
376
|
.build() {
|
|
374
377
|
}
|
|
375
378
|
|
|
376
|
-
class GetMLModelCommand extends
|
|
379
|
+
class GetMLModelCommand extends Command
|
|
377
380
|
.classBuilder()
|
|
378
381
|
.ep(commonParams)
|
|
379
382
|
.m(function (Command, cs, config, o) {
|
|
380
|
-
return [
|
|
383
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
381
384
|
})
|
|
382
385
|
.s("AmazonML_20141212", "GetMLModel", {})
|
|
383
386
|
.n("MachineLearningClient", "GetMLModelCommand")
|
|
384
|
-
.sc(
|
|
387
|
+
.sc(GetMLModel$)
|
|
385
388
|
.build() {
|
|
386
389
|
}
|
|
387
390
|
|
|
388
|
-
class PredictCommand extends
|
|
391
|
+
class PredictCommand extends Command
|
|
389
392
|
.classBuilder()
|
|
390
393
|
.ep(commonParams)
|
|
391
394
|
.m(function (Command, cs, config, o) {
|
|
392
395
|
return [
|
|
393
|
-
|
|
394
|
-
|
|
396
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
397
|
+
getPredictEndpointPlugin(config),
|
|
395
398
|
];
|
|
396
399
|
})
|
|
397
400
|
.s("AmazonML_20141212", "Predict", {})
|
|
398
401
|
.n("MachineLearningClient", "PredictCommand")
|
|
399
|
-
.sc(
|
|
402
|
+
.sc(Predict$)
|
|
400
403
|
.build() {
|
|
401
404
|
}
|
|
402
405
|
|
|
403
|
-
class UpdateBatchPredictionCommand extends
|
|
406
|
+
class UpdateBatchPredictionCommand extends Command
|
|
404
407
|
.classBuilder()
|
|
405
408
|
.ep(commonParams)
|
|
406
409
|
.m(function (Command, cs, config, o) {
|
|
407
|
-
return [
|
|
410
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
408
411
|
})
|
|
409
412
|
.s("AmazonML_20141212", "UpdateBatchPrediction", {})
|
|
410
413
|
.n("MachineLearningClient", "UpdateBatchPredictionCommand")
|
|
411
|
-
.sc(
|
|
414
|
+
.sc(UpdateBatchPrediction$)
|
|
412
415
|
.build() {
|
|
413
416
|
}
|
|
414
417
|
|
|
415
|
-
class UpdateDataSourceCommand extends
|
|
418
|
+
class UpdateDataSourceCommand extends Command
|
|
416
419
|
.classBuilder()
|
|
417
420
|
.ep(commonParams)
|
|
418
421
|
.m(function (Command, cs, config, o) {
|
|
419
|
-
return [
|
|
422
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
420
423
|
})
|
|
421
424
|
.s("AmazonML_20141212", "UpdateDataSource", {})
|
|
422
425
|
.n("MachineLearningClient", "UpdateDataSourceCommand")
|
|
423
|
-
.sc(
|
|
426
|
+
.sc(UpdateDataSource$)
|
|
424
427
|
.build() {
|
|
425
428
|
}
|
|
426
429
|
|
|
427
|
-
class UpdateEvaluationCommand extends
|
|
430
|
+
class UpdateEvaluationCommand extends Command
|
|
428
431
|
.classBuilder()
|
|
429
432
|
.ep(commonParams)
|
|
430
433
|
.m(function (Command, cs, config, o) {
|
|
431
|
-
return [
|
|
434
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
432
435
|
})
|
|
433
436
|
.s("AmazonML_20141212", "UpdateEvaluation", {})
|
|
434
437
|
.n("MachineLearningClient", "UpdateEvaluationCommand")
|
|
435
|
-
.sc(
|
|
438
|
+
.sc(UpdateEvaluation$)
|
|
436
439
|
.build() {
|
|
437
440
|
}
|
|
438
441
|
|
|
439
|
-
class UpdateMLModelCommand extends
|
|
442
|
+
class UpdateMLModelCommand extends Command
|
|
440
443
|
.classBuilder()
|
|
441
444
|
.ep(commonParams)
|
|
442
445
|
.m(function (Command, cs, config, o) {
|
|
443
|
-
return [
|
|
446
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
444
447
|
})
|
|
445
448
|
.s("AmazonML_20141212", "UpdateMLModel", {})
|
|
446
449
|
.n("MachineLearningClient", "UpdateMLModelCommand")
|
|
447
|
-
.sc(
|
|
450
|
+
.sc(UpdateMLModel$)
|
|
448
451
|
.build() {
|
|
449
452
|
}
|
|
450
453
|
|
|
451
|
-
const paginateDescribeBatchPredictions =
|
|
454
|
+
const paginateDescribeBatchPredictions = createPaginator(MachineLearningClient, DescribeBatchPredictionsCommand, "NextToken", "NextToken", "Limit");
|
|
452
455
|
|
|
453
|
-
const paginateDescribeDataSources =
|
|
456
|
+
const paginateDescribeDataSources = createPaginator(MachineLearningClient, DescribeDataSourcesCommand, "NextToken", "NextToken", "Limit");
|
|
454
457
|
|
|
455
|
-
const paginateDescribeEvaluations =
|
|
458
|
+
const paginateDescribeEvaluations = createPaginator(MachineLearningClient, DescribeEvaluationsCommand, "NextToken", "NextToken", "Limit");
|
|
456
459
|
|
|
457
|
-
const paginateDescribeMLModels =
|
|
460
|
+
const paginateDescribeMLModels = createPaginator(MachineLearningClient, DescribeMLModelsCommand, "NextToken", "NextToken", "Limit");
|
|
458
461
|
|
|
459
|
-
const checkState$3 = async (client
|
|
462
|
+
const checkState$3 = async (client, input) => {
|
|
460
463
|
let reason;
|
|
461
464
|
try {
|
|
462
|
-
let result = await client
|
|
465
|
+
let result = await client.send(new DescribeBatchPredictionsCommand(input));
|
|
463
466
|
reason = result;
|
|
464
467
|
try {
|
|
465
468
|
const returnComparator = () => {
|
|
@@ -474,7 +477,7 @@ const checkState$3 = async (client$1, input) => {
|
|
|
474
477
|
allStringEq_5 = allStringEq_5 && (element_4 == "COMPLETED");
|
|
475
478
|
}
|
|
476
479
|
if (allStringEq_5) {
|
|
477
|
-
return { state:
|
|
480
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
478
481
|
}
|
|
479
482
|
}
|
|
480
483
|
catch (e) { }
|
|
@@ -488,7 +491,7 @@ const checkState$3 = async (client$1, input) => {
|
|
|
488
491
|
};
|
|
489
492
|
for (let anyStringEq_4 of returnComparator()) {
|
|
490
493
|
if (anyStringEq_4 == "FAILED") {
|
|
491
|
-
return { state:
|
|
494
|
+
return { state: WaiterState.FAILURE, reason };
|
|
492
495
|
}
|
|
493
496
|
}
|
|
494
497
|
}
|
|
@@ -497,22 +500,22 @@ const checkState$3 = async (client$1, input) => {
|
|
|
497
500
|
catch (exception) {
|
|
498
501
|
reason = exception;
|
|
499
502
|
}
|
|
500
|
-
return { state:
|
|
503
|
+
return { state: WaiterState.RETRY, reason };
|
|
501
504
|
};
|
|
502
505
|
const waitForBatchPredictionAvailable = async (params, input) => {
|
|
503
506
|
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
504
|
-
return
|
|
507
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
505
508
|
};
|
|
506
509
|
const waitUntilBatchPredictionAvailable = async (params, input) => {
|
|
507
510
|
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
508
|
-
const result = await
|
|
509
|
-
return
|
|
511
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
|
|
512
|
+
return checkExceptions(result);
|
|
510
513
|
};
|
|
511
514
|
|
|
512
|
-
const checkState$2 = async (client
|
|
515
|
+
const checkState$2 = async (client, input) => {
|
|
513
516
|
let reason;
|
|
514
517
|
try {
|
|
515
|
-
let result = await client
|
|
518
|
+
let result = await client.send(new DescribeDataSourcesCommand(input));
|
|
516
519
|
reason = result;
|
|
517
520
|
try {
|
|
518
521
|
const returnComparator = () => {
|
|
@@ -527,7 +530,7 @@ const checkState$2 = async (client$1, input) => {
|
|
|
527
530
|
allStringEq_5 = allStringEq_5 && (element_4 == "COMPLETED");
|
|
528
531
|
}
|
|
529
532
|
if (allStringEq_5) {
|
|
530
|
-
return { state:
|
|
533
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
531
534
|
}
|
|
532
535
|
}
|
|
533
536
|
catch (e) { }
|
|
@@ -541,7 +544,7 @@ const checkState$2 = async (client$1, input) => {
|
|
|
541
544
|
};
|
|
542
545
|
for (let anyStringEq_4 of returnComparator()) {
|
|
543
546
|
if (anyStringEq_4 == "FAILED") {
|
|
544
|
-
return { state:
|
|
547
|
+
return { state: WaiterState.FAILURE, reason };
|
|
545
548
|
}
|
|
546
549
|
}
|
|
547
550
|
}
|
|
@@ -550,22 +553,22 @@ const checkState$2 = async (client$1, input) => {
|
|
|
550
553
|
catch (exception) {
|
|
551
554
|
reason = exception;
|
|
552
555
|
}
|
|
553
|
-
return { state:
|
|
556
|
+
return { state: WaiterState.RETRY, reason };
|
|
554
557
|
};
|
|
555
558
|
const waitForDataSourceAvailable = async (params, input) => {
|
|
556
559
|
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
557
|
-
return
|
|
560
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
558
561
|
};
|
|
559
562
|
const waitUntilDataSourceAvailable = async (params, input) => {
|
|
560
563
|
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
561
|
-
const result = await
|
|
562
|
-
return
|
|
564
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
565
|
+
return checkExceptions(result);
|
|
563
566
|
};
|
|
564
567
|
|
|
565
|
-
const checkState$1 = async (client
|
|
568
|
+
const checkState$1 = async (client, input) => {
|
|
566
569
|
let reason;
|
|
567
570
|
try {
|
|
568
|
-
let result = await client
|
|
571
|
+
let result = await client.send(new DescribeEvaluationsCommand(input));
|
|
569
572
|
reason = result;
|
|
570
573
|
try {
|
|
571
574
|
const returnComparator = () => {
|
|
@@ -580,7 +583,7 @@ const checkState$1 = async (client$1, input) => {
|
|
|
580
583
|
allStringEq_5 = allStringEq_5 && (element_4 == "COMPLETED");
|
|
581
584
|
}
|
|
582
585
|
if (allStringEq_5) {
|
|
583
|
-
return { state:
|
|
586
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
584
587
|
}
|
|
585
588
|
}
|
|
586
589
|
catch (e) { }
|
|
@@ -594,7 +597,7 @@ const checkState$1 = async (client$1, input) => {
|
|
|
594
597
|
};
|
|
595
598
|
for (let anyStringEq_4 of returnComparator()) {
|
|
596
599
|
if (anyStringEq_4 == "FAILED") {
|
|
597
|
-
return { state:
|
|
600
|
+
return { state: WaiterState.FAILURE, reason };
|
|
598
601
|
}
|
|
599
602
|
}
|
|
600
603
|
}
|
|
@@ -603,22 +606,22 @@ const checkState$1 = async (client$1, input) => {
|
|
|
603
606
|
catch (exception) {
|
|
604
607
|
reason = exception;
|
|
605
608
|
}
|
|
606
|
-
return { state:
|
|
609
|
+
return { state: WaiterState.RETRY, reason };
|
|
607
610
|
};
|
|
608
611
|
const waitForEvaluationAvailable = async (params, input) => {
|
|
609
612
|
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
610
|
-
return
|
|
613
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
611
614
|
};
|
|
612
615
|
const waitUntilEvaluationAvailable = async (params, input) => {
|
|
613
616
|
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
614
|
-
const result = await
|
|
615
|
-
return
|
|
617
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
618
|
+
return checkExceptions(result);
|
|
616
619
|
};
|
|
617
620
|
|
|
618
|
-
const checkState = async (client
|
|
621
|
+
const checkState = async (client, input) => {
|
|
619
622
|
let reason;
|
|
620
623
|
try {
|
|
621
|
-
let result = await client
|
|
624
|
+
let result = await client.send(new DescribeMLModelsCommand(input));
|
|
622
625
|
reason = result;
|
|
623
626
|
try {
|
|
624
627
|
const returnComparator = () => {
|
|
@@ -633,7 +636,7 @@ const checkState = async (client$1, input) => {
|
|
|
633
636
|
allStringEq_5 = allStringEq_5 && (element_4 == "COMPLETED");
|
|
634
637
|
}
|
|
635
638
|
if (allStringEq_5) {
|
|
636
|
-
return { state:
|
|
639
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
637
640
|
}
|
|
638
641
|
}
|
|
639
642
|
catch (e) { }
|
|
@@ -647,7 +650,7 @@ const checkState = async (client$1, input) => {
|
|
|
647
650
|
};
|
|
648
651
|
for (let anyStringEq_4 of returnComparator()) {
|
|
649
652
|
if (anyStringEq_4 == "FAILED") {
|
|
650
|
-
return { state:
|
|
653
|
+
return { state: WaiterState.FAILURE, reason };
|
|
651
654
|
}
|
|
652
655
|
}
|
|
653
656
|
}
|
|
@@ -656,16 +659,16 @@ const checkState = async (client$1, input) => {
|
|
|
656
659
|
catch (exception) {
|
|
657
660
|
reason = exception;
|
|
658
661
|
}
|
|
659
|
-
return { state:
|
|
662
|
+
return { state: WaiterState.RETRY, reason };
|
|
660
663
|
};
|
|
661
664
|
const waitForMLModelAvailable = async (params, input) => {
|
|
662
665
|
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
663
|
-
return
|
|
666
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
664
667
|
};
|
|
665
668
|
const waitUntilMLModelAvailable = async (params, input) => {
|
|
666
669
|
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
667
|
-
const result = await
|
|
668
|
-
return
|
|
670
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
671
|
+
return checkExceptions(result);
|
|
669
672
|
};
|
|
670
673
|
|
|
671
674
|
const commands = {
|
|
@@ -712,7 +715,7 @@ const waiters = {
|
|
|
712
715
|
};
|
|
713
716
|
class MachineLearning extends MachineLearningClient {
|
|
714
717
|
}
|
|
715
|
-
|
|
718
|
+
createAggregatedClient(commands, MachineLearning, { paginators, waiters });
|
|
716
719
|
|
|
717
720
|
const TaggableResourceType = {
|
|
718
721
|
BATCH_PREDICTION: "BatchPrediction",
|
|
@@ -790,9 +793,6 @@ const DetailsAttributes = {
|
|
|
790
793
|
PREDICTIVE_MODEL_TYPE: "PredictiveModelType",
|
|
791
794
|
};
|
|
792
795
|
|
|
793
|
-
exports.$Command = client.Command;
|
|
794
|
-
exports.__Client = client.Client;
|
|
795
|
-
exports.MachineLearningServiceException = MachineLearningServiceException.MachineLearningServiceException;
|
|
796
796
|
exports.AddTagsCommand = AddTagsCommand;
|
|
797
797
|
exports.Algorithm = Algorithm;
|
|
798
798
|
exports.BatchPredictionFilterVariable = BatchPredictionFilterVariable;
|
|
@@ -846,23 +846,3 @@ exports.waitUntilBatchPredictionAvailable = waitUntilBatchPredictionAvailable;
|
|
|
846
846
|
exports.waitUntilDataSourceAvailable = waitUntilDataSourceAvailable;
|
|
847
847
|
exports.waitUntilEvaluationAvailable = waitUntilEvaluationAvailable;
|
|
848
848
|
exports.waitUntilMLModelAvailable = waitUntilMLModelAvailable;
|
|
849
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
850
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
851
|
-
Object.defineProperty(exports, '__proto__', {
|
|
852
|
-
enumerable: true,
|
|
853
|
-
value: schemas_0['__proto__']
|
|
854
|
-
});
|
|
855
|
-
|
|
856
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
857
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
858
|
-
});
|
|
859
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
860
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
861
|
-
Object.defineProperty(exports, '__proto__', {
|
|
862
|
-
enumerable: true,
|
|
863
|
-
value: errors['__proto__']
|
|
864
|
-
});
|
|
865
|
-
|
|
866
|
-
Object.keys(errors).forEach(function (k) {
|
|
867
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
868
|
-
});
|