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