@aws-sdk/client-machine-learning 3.1068.0 → 3.1070.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/index.js CHANGED
@@ -1,19 +1,22 @@
1
- 'use strict';
2
-
3
- var client$1 = require('@aws-sdk/core/client');
4
- var core = require('@smithy/core');
5
- var client = require('@smithy/core/client');
6
- var config = require('@smithy/core/config');
7
- var endpoints = require('@smithy/core/endpoints');
8
- var protocols = require('@smithy/core/protocols');
9
- var retry = require('@smithy/core/retry');
10
- var schema = require('@smithy/core/schema');
11
- var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
12
- var runtimeConfig = require('./runtimeConfig');
13
- var schemas_0 = require('./schemas/schemas_0');
14
- var middlewareSdkMachinelearning = require('@aws-sdk/middleware-sdk-machinelearning');
15
- var errors = require('./models/errors');
16
- var MachineLearningServiceException = require('./models/MachineLearningServiceException');
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(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
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, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
75
78
  };
76
79
 
77
- class MachineLearningClient extends client.Client {
80
+ class MachineLearningClient extends Client {
78
81
  config;
79
82
  constructor(...[configuration]) {
80
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
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 = client$1.resolveUserAgentConfig(_config_1);
85
- const _config_3 = retry.resolveRetryConfig(_config_2);
86
- const _config_4 = config.resolveRegionConfig(_config_3);
87
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
88
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
89
- const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
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(schema.getSchemaSerdePlugin(this.config));
93
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
94
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
95
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
96
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
97
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
98
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
99
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
100
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultMachineLearningHttpAuthSchemeParametersProvider,
101
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
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(core.getHttpSigningPlugin(this.config));
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 client.Command
115
+ class AddTagsCommand extends Command
113
116
  .classBuilder()
114
117
  .ep(commonParams)
115
118
  .m(function (Command, cs, config, o) {
116
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
119
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
117
120
  })
118
121
  .s("AmazonML_20141212", "AddTags", {})
119
122
  .n("MachineLearningClient", "AddTagsCommand")
120
- .sc(schemas_0.AddTags$)
123
+ .sc(AddTags$)
121
124
  .build() {
122
125
  }
123
126
 
124
- class CreateBatchPredictionCommand extends client.Command
127
+ class CreateBatchPredictionCommand extends Command
125
128
  .classBuilder()
126
129
  .ep(commonParams)
127
130
  .m(function (Command, cs, config, o) {
128
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
131
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
129
132
  })
130
133
  .s("AmazonML_20141212", "CreateBatchPrediction", {})
131
134
  .n("MachineLearningClient", "CreateBatchPredictionCommand")
132
- .sc(schemas_0.CreateBatchPrediction$)
135
+ .sc(CreateBatchPrediction$)
133
136
  .build() {
134
137
  }
135
138
 
136
- class CreateDataSourceFromRDSCommand extends client.Command
139
+ class CreateDataSourceFromRDSCommand extends Command
137
140
  .classBuilder()
138
141
  .ep(commonParams)
139
142
  .m(function (Command, cs, config, o) {
140
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
143
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
141
144
  })
142
145
  .s("AmazonML_20141212", "CreateDataSourceFromRDS", {})
143
146
  .n("MachineLearningClient", "CreateDataSourceFromRDSCommand")
144
- .sc(schemas_0.CreateDataSourceFromRDS$)
147
+ .sc(CreateDataSourceFromRDS$)
145
148
  .build() {
146
149
  }
147
150
 
148
- class CreateDataSourceFromRedshiftCommand extends client.Command
151
+ class CreateDataSourceFromRedshiftCommand extends Command
149
152
  .classBuilder()
150
153
  .ep(commonParams)
151
154
  .m(function (Command, cs, config, o) {
152
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
155
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
153
156
  })
154
157
  .s("AmazonML_20141212", "CreateDataSourceFromRedshift", {})
155
158
  .n("MachineLearningClient", "CreateDataSourceFromRedshiftCommand")
156
- .sc(schemas_0.CreateDataSourceFromRedshift$)
159
+ .sc(CreateDataSourceFromRedshift$)
157
160
  .build() {
158
161
  }
159
162
 
160
- class CreateDataSourceFromS3Command extends client.Command
163
+ class CreateDataSourceFromS3Command extends Command
161
164
  .classBuilder()
162
165
  .ep(commonParams)
163
166
  .m(function (Command, cs, config, o) {
164
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
167
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
165
168
  })
166
169
  .s("AmazonML_20141212", "CreateDataSourceFromS3", {})
167
170
  .n("MachineLearningClient", "CreateDataSourceFromS3Command")
168
- .sc(schemas_0.CreateDataSourceFromS3$)
171
+ .sc(CreateDataSourceFromS3$)
169
172
  .build() {
170
173
  }
171
174
 
172
- class CreateEvaluationCommand extends client.Command
175
+ class CreateEvaluationCommand extends Command
173
176
  .classBuilder()
174
177
  .ep(commonParams)
175
178
  .m(function (Command, cs, config, o) {
176
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
179
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
177
180
  })
178
181
  .s("AmazonML_20141212", "CreateEvaluation", {})
179
182
  .n("MachineLearningClient", "CreateEvaluationCommand")
180
- .sc(schemas_0.CreateEvaluation$)
183
+ .sc(CreateEvaluation$)
181
184
  .build() {
182
185
  }
183
186
 
184
- class CreateMLModelCommand extends client.Command
187
+ class CreateMLModelCommand extends Command
185
188
  .classBuilder()
186
189
  .ep(commonParams)
187
190
  .m(function (Command, cs, config, o) {
188
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
191
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
189
192
  })
190
193
  .s("AmazonML_20141212", "CreateMLModel", {})
191
194
  .n("MachineLearningClient", "CreateMLModelCommand")
192
- .sc(schemas_0.CreateMLModel$)
195
+ .sc(CreateMLModel$)
193
196
  .build() {
194
197
  }
195
198
 
196
- class CreateRealtimeEndpointCommand extends client.Command
199
+ class CreateRealtimeEndpointCommand extends Command
197
200
  .classBuilder()
198
201
  .ep(commonParams)
199
202
  .m(function (Command, cs, config, o) {
200
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
203
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
201
204
  })
202
205
  .s("AmazonML_20141212", "CreateRealtimeEndpoint", {})
203
206
  .n("MachineLearningClient", "CreateRealtimeEndpointCommand")
204
- .sc(schemas_0.CreateRealtimeEndpoint$)
207
+ .sc(CreateRealtimeEndpoint$)
205
208
  .build() {
206
209
  }
207
210
 
208
- class DeleteBatchPredictionCommand extends client.Command
211
+ class DeleteBatchPredictionCommand extends Command
209
212
  .classBuilder()
210
213
  .ep(commonParams)
211
214
  .m(function (Command, cs, config, o) {
212
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
215
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
213
216
  })
214
217
  .s("AmazonML_20141212", "DeleteBatchPrediction", {})
215
218
  .n("MachineLearningClient", "DeleteBatchPredictionCommand")
216
- .sc(schemas_0.DeleteBatchPrediction$)
219
+ .sc(DeleteBatchPrediction$)
217
220
  .build() {
218
221
  }
219
222
 
220
- class DeleteDataSourceCommand extends client.Command
223
+ class DeleteDataSourceCommand extends Command
221
224
  .classBuilder()
222
225
  .ep(commonParams)
223
226
  .m(function (Command, cs, config, o) {
224
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
227
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
225
228
  })
226
229
  .s("AmazonML_20141212", "DeleteDataSource", {})
227
230
  .n("MachineLearningClient", "DeleteDataSourceCommand")
228
- .sc(schemas_0.DeleteDataSource$)
231
+ .sc(DeleteDataSource$)
229
232
  .build() {
230
233
  }
231
234
 
232
- class DeleteEvaluationCommand extends client.Command
235
+ class DeleteEvaluationCommand extends Command
233
236
  .classBuilder()
234
237
  .ep(commonParams)
235
238
  .m(function (Command, cs, config, o) {
236
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
239
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
237
240
  })
238
241
  .s("AmazonML_20141212", "DeleteEvaluation", {})
239
242
  .n("MachineLearningClient", "DeleteEvaluationCommand")
240
- .sc(schemas_0.DeleteEvaluation$)
243
+ .sc(DeleteEvaluation$)
241
244
  .build() {
242
245
  }
243
246
 
244
- class DeleteMLModelCommand extends client.Command
247
+ class DeleteMLModelCommand extends Command
245
248
  .classBuilder()
246
249
  .ep(commonParams)
247
250
  .m(function (Command, cs, config, o) {
248
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
251
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
249
252
  })
250
253
  .s("AmazonML_20141212", "DeleteMLModel", {})
251
254
  .n("MachineLearningClient", "DeleteMLModelCommand")
252
- .sc(schemas_0.DeleteMLModel$)
255
+ .sc(DeleteMLModel$)
253
256
  .build() {
254
257
  }
255
258
 
256
- class DeleteRealtimeEndpointCommand extends client.Command
259
+ class DeleteRealtimeEndpointCommand extends Command
257
260
  .classBuilder()
258
261
  .ep(commonParams)
259
262
  .m(function (Command, cs, config, o) {
260
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
263
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
261
264
  })
262
265
  .s("AmazonML_20141212", "DeleteRealtimeEndpoint", {})
263
266
  .n("MachineLearningClient", "DeleteRealtimeEndpointCommand")
264
- .sc(schemas_0.DeleteRealtimeEndpoint$)
267
+ .sc(DeleteRealtimeEndpoint$)
265
268
  .build() {
266
269
  }
267
270
 
268
- class DeleteTagsCommand extends client.Command
271
+ class DeleteTagsCommand extends Command
269
272
  .classBuilder()
270
273
  .ep(commonParams)
271
274
  .m(function (Command, cs, config, o) {
272
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
275
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
273
276
  })
274
277
  .s("AmazonML_20141212", "DeleteTags", {})
275
278
  .n("MachineLearningClient", "DeleteTagsCommand")
276
- .sc(schemas_0.DeleteTags$)
279
+ .sc(DeleteTags$)
277
280
  .build() {
278
281
  }
279
282
 
280
- class DescribeBatchPredictionsCommand extends client.Command
283
+ class DescribeBatchPredictionsCommand extends Command
281
284
  .classBuilder()
282
285
  .ep(commonParams)
283
286
  .m(function (Command, cs, config, o) {
284
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
287
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
285
288
  })
286
289
  .s("AmazonML_20141212", "DescribeBatchPredictions", {})
287
290
  .n("MachineLearningClient", "DescribeBatchPredictionsCommand")
288
- .sc(schemas_0.DescribeBatchPredictions$)
291
+ .sc(DescribeBatchPredictions$)
289
292
  .build() {
290
293
  }
291
294
 
292
- class DescribeDataSourcesCommand extends client.Command
295
+ class DescribeDataSourcesCommand extends Command
293
296
  .classBuilder()
294
297
  .ep(commonParams)
295
298
  .m(function (Command, cs, config, o) {
296
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
299
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
297
300
  })
298
301
  .s("AmazonML_20141212", "DescribeDataSources", {})
299
302
  .n("MachineLearningClient", "DescribeDataSourcesCommand")
300
- .sc(schemas_0.DescribeDataSources$)
303
+ .sc(DescribeDataSources$)
301
304
  .build() {
302
305
  }
303
306
 
304
- class DescribeEvaluationsCommand extends client.Command
307
+ class DescribeEvaluationsCommand extends Command
305
308
  .classBuilder()
306
309
  .ep(commonParams)
307
310
  .m(function (Command, cs, config, o) {
308
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
311
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
309
312
  })
310
313
  .s("AmazonML_20141212", "DescribeEvaluations", {})
311
314
  .n("MachineLearningClient", "DescribeEvaluationsCommand")
312
- .sc(schemas_0.DescribeEvaluations$)
315
+ .sc(DescribeEvaluations$)
313
316
  .build() {
314
317
  }
315
318
 
316
- class DescribeMLModelsCommand extends client.Command
319
+ class DescribeMLModelsCommand extends Command
317
320
  .classBuilder()
318
321
  .ep(commonParams)
319
322
  .m(function (Command, cs, config, o) {
320
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
323
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
321
324
  })
322
325
  .s("AmazonML_20141212", "DescribeMLModels", {})
323
326
  .n("MachineLearningClient", "DescribeMLModelsCommand")
324
- .sc(schemas_0.DescribeMLModels$)
327
+ .sc(DescribeMLModels$)
325
328
  .build() {
326
329
  }
327
330
 
328
- class DescribeTagsCommand extends client.Command
331
+ class DescribeTagsCommand extends Command
329
332
  .classBuilder()
330
333
  .ep(commonParams)
331
334
  .m(function (Command, cs, config, o) {
332
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
335
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
333
336
  })
334
337
  .s("AmazonML_20141212", "DescribeTags", {})
335
338
  .n("MachineLearningClient", "DescribeTagsCommand")
336
- .sc(schemas_0.DescribeTags$)
339
+ .sc(DescribeTags$)
337
340
  .build() {
338
341
  }
339
342
 
340
- class GetBatchPredictionCommand extends client.Command
343
+ class GetBatchPredictionCommand extends Command
341
344
  .classBuilder()
342
345
  .ep(commonParams)
343
346
  .m(function (Command, cs, config, o) {
344
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
347
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
345
348
  })
346
349
  .s("AmazonML_20141212", "GetBatchPrediction", {})
347
350
  .n("MachineLearningClient", "GetBatchPredictionCommand")
348
- .sc(schemas_0.GetBatchPrediction$)
351
+ .sc(GetBatchPrediction$)
349
352
  .build() {
350
353
  }
351
354
 
352
- class GetDataSourceCommand extends client.Command
355
+ class GetDataSourceCommand extends Command
353
356
  .classBuilder()
354
357
  .ep(commonParams)
355
358
  .m(function (Command, cs, config, o) {
356
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
359
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
357
360
  })
358
361
  .s("AmazonML_20141212", "GetDataSource", {})
359
362
  .n("MachineLearningClient", "GetDataSourceCommand")
360
- .sc(schemas_0.GetDataSource$)
363
+ .sc(GetDataSource$)
361
364
  .build() {
362
365
  }
363
366
 
364
- class GetEvaluationCommand extends client.Command
367
+ class GetEvaluationCommand extends Command
365
368
  .classBuilder()
366
369
  .ep(commonParams)
367
370
  .m(function (Command, cs, config, o) {
368
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
371
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
369
372
  })
370
373
  .s("AmazonML_20141212", "GetEvaluation", {})
371
374
  .n("MachineLearningClient", "GetEvaluationCommand")
372
- .sc(schemas_0.GetEvaluation$)
375
+ .sc(GetEvaluation$)
373
376
  .build() {
374
377
  }
375
378
 
376
- class GetMLModelCommand extends client.Command
379
+ class GetMLModelCommand extends Command
377
380
  .classBuilder()
378
381
  .ep(commonParams)
379
382
  .m(function (Command, cs, config, o) {
380
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
383
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
381
384
  })
382
385
  .s("AmazonML_20141212", "GetMLModel", {})
383
386
  .n("MachineLearningClient", "GetMLModelCommand")
384
- .sc(schemas_0.GetMLModel$)
387
+ .sc(GetMLModel$)
385
388
  .build() {
386
389
  }
387
390
 
388
- class PredictCommand extends client.Command
391
+ class PredictCommand extends Command
389
392
  .classBuilder()
390
393
  .ep(commonParams)
391
394
  .m(function (Command, cs, config, o) {
392
395
  return [
393
- endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
394
- middlewareSdkMachinelearning.getPredictEndpointPlugin(config),
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(schemas_0.Predict$)
402
+ .sc(Predict$)
400
403
  .build() {
401
404
  }
402
405
 
403
- class UpdateBatchPredictionCommand extends client.Command
406
+ class UpdateBatchPredictionCommand extends Command
404
407
  .classBuilder()
405
408
  .ep(commonParams)
406
409
  .m(function (Command, cs, config, o) {
407
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
410
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
408
411
  })
409
412
  .s("AmazonML_20141212", "UpdateBatchPrediction", {})
410
413
  .n("MachineLearningClient", "UpdateBatchPredictionCommand")
411
- .sc(schemas_0.UpdateBatchPrediction$)
414
+ .sc(UpdateBatchPrediction$)
412
415
  .build() {
413
416
  }
414
417
 
415
- class UpdateDataSourceCommand extends client.Command
418
+ class UpdateDataSourceCommand extends Command
416
419
  .classBuilder()
417
420
  .ep(commonParams)
418
421
  .m(function (Command, cs, config, o) {
419
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
422
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
420
423
  })
421
424
  .s("AmazonML_20141212", "UpdateDataSource", {})
422
425
  .n("MachineLearningClient", "UpdateDataSourceCommand")
423
- .sc(schemas_0.UpdateDataSource$)
426
+ .sc(UpdateDataSource$)
424
427
  .build() {
425
428
  }
426
429
 
427
- class UpdateEvaluationCommand extends client.Command
430
+ class UpdateEvaluationCommand extends Command
428
431
  .classBuilder()
429
432
  .ep(commonParams)
430
433
  .m(function (Command, cs, config, o) {
431
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
434
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
432
435
  })
433
436
  .s("AmazonML_20141212", "UpdateEvaluation", {})
434
437
  .n("MachineLearningClient", "UpdateEvaluationCommand")
435
- .sc(schemas_0.UpdateEvaluation$)
438
+ .sc(UpdateEvaluation$)
436
439
  .build() {
437
440
  }
438
441
 
439
- class UpdateMLModelCommand extends client.Command
442
+ class UpdateMLModelCommand extends Command
440
443
  .classBuilder()
441
444
  .ep(commonParams)
442
445
  .m(function (Command, cs, config, o) {
443
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
446
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
444
447
  })
445
448
  .s("AmazonML_20141212", "UpdateMLModel", {})
446
449
  .n("MachineLearningClient", "UpdateMLModelCommand")
447
- .sc(schemas_0.UpdateMLModel$)
450
+ .sc(UpdateMLModel$)
448
451
  .build() {
449
452
  }
450
453
 
451
- const paginateDescribeBatchPredictions = core.createPaginator(MachineLearningClient, DescribeBatchPredictionsCommand, "NextToken", "NextToken", "Limit");
454
+ const paginateDescribeBatchPredictions = createPaginator(MachineLearningClient, DescribeBatchPredictionsCommand, "NextToken", "NextToken", "Limit");
452
455
 
453
- const paginateDescribeDataSources = core.createPaginator(MachineLearningClient, DescribeDataSourcesCommand, "NextToken", "NextToken", "Limit");
456
+ const paginateDescribeDataSources = createPaginator(MachineLearningClient, DescribeDataSourcesCommand, "NextToken", "NextToken", "Limit");
454
457
 
455
- const paginateDescribeEvaluations = core.createPaginator(MachineLearningClient, DescribeEvaluationsCommand, "NextToken", "NextToken", "Limit");
458
+ const paginateDescribeEvaluations = createPaginator(MachineLearningClient, DescribeEvaluationsCommand, "NextToken", "NextToken", "Limit");
456
459
 
457
- const paginateDescribeMLModels = core.createPaginator(MachineLearningClient, DescribeMLModelsCommand, "NextToken", "NextToken", "Limit");
460
+ const paginateDescribeMLModels = createPaginator(MachineLearningClient, DescribeMLModelsCommand, "NextToken", "NextToken", "Limit");
458
461
 
459
- const checkState$3 = async (client$1, input) => {
462
+ const checkState$3 = async (client, input) => {
460
463
  let reason;
461
464
  try {
462
- let result = await client$1.send(new DescribeBatchPredictionsCommand(input));
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: client.WaiterState.SUCCESS, reason };
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: client.WaiterState.FAILURE, reason };
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: client.WaiterState.RETRY, reason };
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 client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
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 client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
509
- return client.checkExceptions(result);
511
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
512
+ return checkExceptions(result);
510
513
  };
511
514
 
512
- const checkState$2 = async (client$1, input) => {
515
+ const checkState$2 = async (client, input) => {
513
516
  let reason;
514
517
  try {
515
- let result = await client$1.send(new DescribeDataSourcesCommand(input));
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: client.WaiterState.SUCCESS, reason };
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: client.WaiterState.FAILURE, reason };
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: client.WaiterState.RETRY, reason };
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 client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
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 client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
562
- return client.checkExceptions(result);
564
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
565
+ return checkExceptions(result);
563
566
  };
564
567
 
565
- const checkState$1 = async (client$1, input) => {
568
+ const checkState$1 = async (client, input) => {
566
569
  let reason;
567
570
  try {
568
- let result = await client$1.send(new DescribeEvaluationsCommand(input));
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: client.WaiterState.SUCCESS, reason };
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: client.WaiterState.FAILURE, reason };
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: client.WaiterState.RETRY, reason };
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 client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
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 client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
615
- return client.checkExceptions(result);
617
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
618
+ return checkExceptions(result);
616
619
  };
617
620
 
618
- const checkState = async (client$1, input) => {
621
+ const checkState = async (client, input) => {
619
622
  let reason;
620
623
  try {
621
- let result = await client$1.send(new DescribeMLModelsCommand(input));
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: client.WaiterState.SUCCESS, reason };
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: client.WaiterState.FAILURE, reason };
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: client.WaiterState.RETRY, reason };
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 client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
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 client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
668
- return client.checkExceptions(result);
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
- client.createAggregatedClient(commands, MachineLearning, { paginators, waiters });
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
- });