@aws-sdk/client-machine-learning 3.490.0 → 3.495.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/MachineLearning.js +1 -67
- package/dist-cjs/MachineLearningClient.js +1 -56
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -43
- package/dist-cjs/commands/AddTagsCommand.js +1 -28
- package/dist-cjs/commands/CreateBatchPredictionCommand.js +1 -28
- package/dist-cjs/commands/CreateDataSourceFromRDSCommand.js +1 -29
- package/dist-cjs/commands/CreateDataSourceFromRedshiftCommand.js +1 -29
- package/dist-cjs/commands/CreateDataSourceFromS3Command.js +1 -28
- package/dist-cjs/commands/CreateEvaluationCommand.js +1 -28
- package/dist-cjs/commands/CreateMLModelCommand.js +1 -28
- package/dist-cjs/commands/CreateRealtimeEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeleteBatchPredictionCommand.js +1 -28
- package/dist-cjs/commands/DeleteDataSourceCommand.js +1 -28
- package/dist-cjs/commands/DeleteEvaluationCommand.js +1 -28
- package/dist-cjs/commands/DeleteMLModelCommand.js +1 -28
- package/dist-cjs/commands/DeleteRealtimeEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeleteTagsCommand.js +1 -28
- package/dist-cjs/commands/DescribeBatchPredictionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDataSourcesCommand.js +1 -28
- package/dist-cjs/commands/DescribeEvaluationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeMLModelsCommand.js +1 -28
- package/dist-cjs/commands/DescribeTagsCommand.js +1 -28
- package/dist-cjs/commands/GetBatchPredictionCommand.js +1 -28
- package/dist-cjs/commands/GetDataSourceCommand.js +1 -28
- package/dist-cjs/commands/GetEvaluationCommand.js +1 -28
- package/dist-cjs/commands/GetMLModelCommand.js +1 -28
- package/dist-cjs/commands/PredictCommand.js +1 -30
- package/dist-cjs/commands/UpdateBatchPredictionCommand.js +1 -28
- package/dist-cjs/commands/UpdateDataSourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateEvaluationCommand.js +1 -28
- package/dist-cjs/commands/UpdateMLModelCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -31
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2979 -12
- package/dist-cjs/models/MachineLearningServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -223
- package/dist-cjs/pagination/DescribeBatchPredictionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDataSourcesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeEvaluationsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeMLModelsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_json1_1.js +1 -1720
- package/dist-cjs/runtimeExtensions.js +1 -25
- package/dist-cjs/waiters/index.js +1 -7
- package/dist-cjs/waiters/waitForBatchPredictionAvailable.js +1 -59
- package/dist-cjs/waiters/waitForDataSourceAvailable.js +1 -59
- package/dist-cjs/waiters/waitForEvaluationAvailable.js +1 -59
- package/dist-cjs/waiters/waitForMLModelAvailable.js +1 -59
- package/package.json +42 -42
package/dist-cjs/index.js
CHANGED
|
@@ -1,13 +1,2980 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AddTagsCommand: () => AddTagsCommand,
|
|
25
|
+
Algorithm: () => Algorithm,
|
|
26
|
+
BatchPredictionFilterVariable: () => BatchPredictionFilterVariable,
|
|
27
|
+
CreateBatchPredictionCommand: () => CreateBatchPredictionCommand,
|
|
28
|
+
CreateDataSourceFromRDSCommand: () => CreateDataSourceFromRDSCommand,
|
|
29
|
+
CreateDataSourceFromRDSInputFilterSensitiveLog: () => CreateDataSourceFromRDSInputFilterSensitiveLog,
|
|
30
|
+
CreateDataSourceFromRedshiftCommand: () => CreateDataSourceFromRedshiftCommand,
|
|
31
|
+
CreateDataSourceFromRedshiftInputFilterSensitiveLog: () => CreateDataSourceFromRedshiftInputFilterSensitiveLog,
|
|
32
|
+
CreateDataSourceFromS3Command: () => CreateDataSourceFromS3Command,
|
|
33
|
+
CreateEvaluationCommand: () => CreateEvaluationCommand,
|
|
34
|
+
CreateMLModelCommand: () => CreateMLModelCommand,
|
|
35
|
+
CreateRealtimeEndpointCommand: () => CreateRealtimeEndpointCommand,
|
|
36
|
+
DataSourceFilterVariable: () => DataSourceFilterVariable,
|
|
37
|
+
DeleteBatchPredictionCommand: () => DeleteBatchPredictionCommand,
|
|
38
|
+
DeleteDataSourceCommand: () => DeleteDataSourceCommand,
|
|
39
|
+
DeleteEvaluationCommand: () => DeleteEvaluationCommand,
|
|
40
|
+
DeleteMLModelCommand: () => DeleteMLModelCommand,
|
|
41
|
+
DeleteRealtimeEndpointCommand: () => DeleteRealtimeEndpointCommand,
|
|
42
|
+
DeleteTagsCommand: () => DeleteTagsCommand,
|
|
43
|
+
DescribeBatchPredictionsCommand: () => DescribeBatchPredictionsCommand,
|
|
44
|
+
DescribeDataSourcesCommand: () => DescribeDataSourcesCommand,
|
|
45
|
+
DescribeEvaluationsCommand: () => DescribeEvaluationsCommand,
|
|
46
|
+
DescribeMLModelsCommand: () => DescribeMLModelsCommand,
|
|
47
|
+
DescribeTagsCommand: () => DescribeTagsCommand,
|
|
48
|
+
DetailsAttributes: () => DetailsAttributes,
|
|
49
|
+
EntityStatus: () => EntityStatus,
|
|
50
|
+
EvaluationFilterVariable: () => EvaluationFilterVariable,
|
|
51
|
+
GetBatchPredictionCommand: () => GetBatchPredictionCommand,
|
|
52
|
+
GetDataSourceCommand: () => GetDataSourceCommand,
|
|
53
|
+
GetEvaluationCommand: () => GetEvaluationCommand,
|
|
54
|
+
GetMLModelCommand: () => GetMLModelCommand,
|
|
55
|
+
IdempotentParameterMismatchException: () => IdempotentParameterMismatchException,
|
|
56
|
+
InternalServerException: () => InternalServerException,
|
|
57
|
+
InvalidInputException: () => InvalidInputException,
|
|
58
|
+
InvalidTagException: () => InvalidTagException,
|
|
59
|
+
LimitExceededException: () => LimitExceededException,
|
|
60
|
+
MLModelFilterVariable: () => MLModelFilterVariable,
|
|
61
|
+
MLModelType: () => MLModelType,
|
|
62
|
+
MachineLearning: () => MachineLearning,
|
|
63
|
+
MachineLearningClient: () => MachineLearningClient,
|
|
64
|
+
MachineLearningServiceException: () => MachineLearningServiceException,
|
|
65
|
+
PredictCommand: () => PredictCommand,
|
|
66
|
+
PredictorNotMountedException: () => PredictorNotMountedException,
|
|
67
|
+
RDSDataSpecFilterSensitiveLog: () => RDSDataSpecFilterSensitiveLog,
|
|
68
|
+
RDSDatabaseCredentialsFilterSensitiveLog: () => RDSDatabaseCredentialsFilterSensitiveLog,
|
|
69
|
+
RealtimeEndpointStatus: () => RealtimeEndpointStatus,
|
|
70
|
+
RedshiftDataSpecFilterSensitiveLog: () => RedshiftDataSpecFilterSensitiveLog,
|
|
71
|
+
RedshiftDatabaseCredentialsFilterSensitiveLog: () => RedshiftDatabaseCredentialsFilterSensitiveLog,
|
|
72
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
73
|
+
SortOrder: () => SortOrder,
|
|
74
|
+
TagLimitExceededException: () => TagLimitExceededException,
|
|
75
|
+
TaggableResourceType: () => TaggableResourceType,
|
|
76
|
+
UpdateBatchPredictionCommand: () => UpdateBatchPredictionCommand,
|
|
77
|
+
UpdateDataSourceCommand: () => UpdateDataSourceCommand,
|
|
78
|
+
UpdateEvaluationCommand: () => UpdateEvaluationCommand,
|
|
79
|
+
UpdateMLModelCommand: () => UpdateMLModelCommand,
|
|
80
|
+
__Client: () => import_smithy_client.Client,
|
|
81
|
+
paginateDescribeBatchPredictions: () => paginateDescribeBatchPredictions,
|
|
82
|
+
paginateDescribeDataSources: () => paginateDescribeDataSources,
|
|
83
|
+
paginateDescribeEvaluations: () => paginateDescribeEvaluations,
|
|
84
|
+
paginateDescribeMLModels: () => paginateDescribeMLModels,
|
|
85
|
+
waitForBatchPredictionAvailable: () => waitForBatchPredictionAvailable,
|
|
86
|
+
waitForDataSourceAvailable: () => waitForDataSourceAvailable,
|
|
87
|
+
waitForEvaluationAvailable: () => waitForEvaluationAvailable,
|
|
88
|
+
waitForMLModelAvailable: () => waitForMLModelAvailable,
|
|
89
|
+
waitUntilBatchPredictionAvailable: () => waitUntilBatchPredictionAvailable,
|
|
90
|
+
waitUntilDataSourceAvailable: () => waitUntilDataSourceAvailable,
|
|
91
|
+
waitUntilEvaluationAvailable: () => waitUntilEvaluationAvailable,
|
|
92
|
+
waitUntilMLModelAvailable: () => waitUntilMLModelAvailable
|
|
93
|
+
});
|
|
94
|
+
module.exports = __toCommonJS(src_exports);
|
|
95
|
+
|
|
96
|
+
// src/MachineLearningClient.ts
|
|
97
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
98
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
99
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
100
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
101
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
102
|
+
var import_core = require("@smithy/core");
|
|
103
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
104
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
105
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
106
|
+
|
|
107
|
+
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
108
|
+
|
|
109
|
+
// src/endpoint/EndpointParameters.ts
|
|
110
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
111
|
+
return {
|
|
112
|
+
...options,
|
|
113
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
114
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
115
|
+
defaultSigningName: "machinelearning"
|
|
116
|
+
};
|
|
117
|
+
}, "resolveClientEndpointParameters");
|
|
118
|
+
var commonParams = {
|
|
119
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
120
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
121
|
+
Region: { type: "builtInParams", name: "region" },
|
|
122
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
// src/MachineLearningClient.ts
|
|
126
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
127
|
+
|
|
128
|
+
// src/runtimeExtensions.ts
|
|
129
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
130
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
131
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
132
|
+
|
|
133
|
+
// src/auth/httpAuthExtensionConfiguration.ts
|
|
134
|
+
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
135
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
136
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
137
|
+
let _credentials = runtimeConfig.credentials;
|
|
138
|
+
return {
|
|
139
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
140
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
141
|
+
if (index === -1) {
|
|
142
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
143
|
+
} else {
|
|
144
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
httpAuthSchemes() {
|
|
148
|
+
return _httpAuthSchemes;
|
|
149
|
+
},
|
|
150
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
151
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
152
|
+
},
|
|
153
|
+
httpAuthSchemeProvider() {
|
|
154
|
+
return _httpAuthSchemeProvider;
|
|
155
|
+
},
|
|
156
|
+
setCredentials(credentials) {
|
|
157
|
+
_credentials = credentials;
|
|
158
|
+
},
|
|
159
|
+
credentials() {
|
|
160
|
+
return _credentials;
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
}, "getHttpAuthExtensionConfiguration");
|
|
164
|
+
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
165
|
+
return {
|
|
166
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
167
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
168
|
+
credentials: config.credentials()
|
|
169
|
+
};
|
|
170
|
+
}, "resolveHttpAuthRuntimeConfig");
|
|
171
|
+
|
|
172
|
+
// src/runtimeExtensions.ts
|
|
173
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
174
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
175
|
+
const extensionConfiguration = {
|
|
176
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
177
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
178
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
179
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
|
|
180
|
+
};
|
|
181
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
182
|
+
return {
|
|
183
|
+
...runtimeConfig,
|
|
184
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
185
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
186
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
187
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
188
|
+
};
|
|
189
|
+
}, "resolveRuntimeExtensions");
|
|
190
|
+
|
|
191
|
+
// src/MachineLearningClient.ts
|
|
192
|
+
var _MachineLearningClient = class _MachineLearningClient extends import_smithy_client.Client {
|
|
193
|
+
constructor(...[configuration]) {
|
|
194
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
195
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
196
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
197
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
198
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
199
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
200
|
+
const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
|
|
201
|
+
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
202
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
203
|
+
super(_config_8);
|
|
204
|
+
this.config = _config_8;
|
|
205
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
206
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
207
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
208
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
209
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
210
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
211
|
+
this.middlewareStack.use(
|
|
212
|
+
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
213
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
214
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider()
|
|
215
|
+
})
|
|
216
|
+
);
|
|
217
|
+
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
221
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
222
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
223
|
+
*/
|
|
224
|
+
destroy() {
|
|
225
|
+
super.destroy();
|
|
226
|
+
}
|
|
227
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
228
|
+
return import_httpAuthSchemeProvider.defaultMachineLearningHttpAuthSchemeParametersProvider;
|
|
229
|
+
}
|
|
230
|
+
getIdentityProviderConfigProvider() {
|
|
231
|
+
return async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
232
|
+
"aws.auth#sigv4": config.credentials
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
__name(_MachineLearningClient, "MachineLearningClient");
|
|
237
|
+
var MachineLearningClient = _MachineLearningClient;
|
|
238
|
+
|
|
239
|
+
// src/MachineLearning.ts
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
// src/commands/AddTagsCommand.ts
|
|
243
|
+
|
|
244
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
245
|
+
|
|
246
|
+
var import_types = require("@smithy/types");
|
|
247
|
+
|
|
248
|
+
// src/protocols/Aws_json1_1.ts
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
// src/models/MachineLearningServiceException.ts
|
|
253
|
+
|
|
254
|
+
var _MachineLearningServiceException = class _MachineLearningServiceException extends import_smithy_client.ServiceException {
|
|
255
|
+
/**
|
|
256
|
+
* @internal
|
|
257
|
+
*/
|
|
258
|
+
constructor(options) {
|
|
259
|
+
super(options);
|
|
260
|
+
Object.setPrototypeOf(this, _MachineLearningServiceException.prototype);
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
__name(_MachineLearningServiceException, "MachineLearningServiceException");
|
|
264
|
+
var MachineLearningServiceException = _MachineLearningServiceException;
|
|
265
|
+
|
|
266
|
+
// src/models/models_0.ts
|
|
267
|
+
|
|
268
|
+
var TaggableResourceType = {
|
|
269
|
+
BATCH_PREDICTION: "BatchPrediction",
|
|
270
|
+
DATASOURCE: "DataSource",
|
|
271
|
+
EVALUATION: "Evaluation",
|
|
272
|
+
ML_MODEL: "MLModel"
|
|
273
|
+
};
|
|
274
|
+
var _InternalServerException = class _InternalServerException extends MachineLearningServiceException {
|
|
275
|
+
/**
|
|
276
|
+
* @internal
|
|
277
|
+
*/
|
|
278
|
+
constructor(opts) {
|
|
279
|
+
super({
|
|
280
|
+
name: "InternalServerException",
|
|
281
|
+
$fault: "server",
|
|
282
|
+
...opts
|
|
283
|
+
});
|
|
284
|
+
this.name = "InternalServerException";
|
|
285
|
+
this.$fault = "server";
|
|
286
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
287
|
+
this.code = opts.code;
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
__name(_InternalServerException, "InternalServerException");
|
|
291
|
+
var InternalServerException = _InternalServerException;
|
|
292
|
+
var _InvalidInputException = class _InvalidInputException extends MachineLearningServiceException {
|
|
293
|
+
/**
|
|
294
|
+
* @internal
|
|
295
|
+
*/
|
|
296
|
+
constructor(opts) {
|
|
297
|
+
super({
|
|
298
|
+
name: "InvalidInputException",
|
|
299
|
+
$fault: "client",
|
|
300
|
+
...opts
|
|
301
|
+
});
|
|
302
|
+
this.name = "InvalidInputException";
|
|
303
|
+
this.$fault = "client";
|
|
304
|
+
Object.setPrototypeOf(this, _InvalidInputException.prototype);
|
|
305
|
+
this.code = opts.code;
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
__name(_InvalidInputException, "InvalidInputException");
|
|
309
|
+
var InvalidInputException = _InvalidInputException;
|
|
310
|
+
var _InvalidTagException = class _InvalidTagException extends MachineLearningServiceException {
|
|
311
|
+
/**
|
|
312
|
+
* @internal
|
|
313
|
+
*/
|
|
314
|
+
constructor(opts) {
|
|
315
|
+
super({
|
|
316
|
+
name: "InvalidTagException",
|
|
317
|
+
$fault: "client",
|
|
318
|
+
...opts
|
|
319
|
+
});
|
|
320
|
+
this.name = "InvalidTagException";
|
|
321
|
+
this.$fault = "client";
|
|
322
|
+
Object.setPrototypeOf(this, _InvalidTagException.prototype);
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
__name(_InvalidTagException, "InvalidTagException");
|
|
326
|
+
var InvalidTagException = _InvalidTagException;
|
|
327
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends MachineLearningServiceException {
|
|
328
|
+
/**
|
|
329
|
+
* @internal
|
|
330
|
+
*/
|
|
331
|
+
constructor(opts) {
|
|
332
|
+
super({
|
|
333
|
+
name: "ResourceNotFoundException",
|
|
334
|
+
$fault: "client",
|
|
335
|
+
...opts
|
|
336
|
+
});
|
|
337
|
+
this.name = "ResourceNotFoundException";
|
|
338
|
+
this.$fault = "client";
|
|
339
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
340
|
+
this.code = opts.code;
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
344
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
345
|
+
var _TagLimitExceededException = class _TagLimitExceededException extends MachineLearningServiceException {
|
|
346
|
+
/**
|
|
347
|
+
* @internal
|
|
348
|
+
*/
|
|
349
|
+
constructor(opts) {
|
|
350
|
+
super({
|
|
351
|
+
name: "TagLimitExceededException",
|
|
352
|
+
$fault: "client",
|
|
353
|
+
...opts
|
|
354
|
+
});
|
|
355
|
+
this.name = "TagLimitExceededException";
|
|
356
|
+
this.$fault = "client";
|
|
357
|
+
Object.setPrototypeOf(this, _TagLimitExceededException.prototype);
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
__name(_TagLimitExceededException, "TagLimitExceededException");
|
|
361
|
+
var TagLimitExceededException = _TagLimitExceededException;
|
|
362
|
+
var Algorithm = {
|
|
363
|
+
SGD: "sgd"
|
|
364
|
+
};
|
|
365
|
+
var _IdempotentParameterMismatchException = class _IdempotentParameterMismatchException extends MachineLearningServiceException {
|
|
366
|
+
/**
|
|
367
|
+
* @internal
|
|
368
|
+
*/
|
|
369
|
+
constructor(opts) {
|
|
370
|
+
super({
|
|
371
|
+
name: "IdempotentParameterMismatchException",
|
|
372
|
+
$fault: "client",
|
|
373
|
+
...opts
|
|
374
|
+
});
|
|
375
|
+
this.name = "IdempotentParameterMismatchException";
|
|
376
|
+
this.$fault = "client";
|
|
377
|
+
Object.setPrototypeOf(this, _IdempotentParameterMismatchException.prototype);
|
|
378
|
+
this.code = opts.code;
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
__name(_IdempotentParameterMismatchException, "IdempotentParameterMismatchException");
|
|
382
|
+
var IdempotentParameterMismatchException = _IdempotentParameterMismatchException;
|
|
383
|
+
var MLModelType = {
|
|
384
|
+
BINARY: "BINARY",
|
|
385
|
+
MULTICLASS: "MULTICLASS",
|
|
386
|
+
REGRESSION: "REGRESSION"
|
|
387
|
+
};
|
|
388
|
+
var RealtimeEndpointStatus = {
|
|
389
|
+
FAILED: "FAILED",
|
|
390
|
+
NONE: "NONE",
|
|
391
|
+
READY: "READY",
|
|
392
|
+
UPDATING: "UPDATING"
|
|
393
|
+
};
|
|
394
|
+
var BatchPredictionFilterVariable = {
|
|
395
|
+
CREATED_AT: "CreatedAt",
|
|
396
|
+
DATASOURCE_ID: "DataSourceId",
|
|
397
|
+
DATA_URI: "DataURI",
|
|
398
|
+
IAM_USER: "IAMUser",
|
|
399
|
+
LAST_UPDATED_AT: "LastUpdatedAt",
|
|
400
|
+
ML_MODEL_ID: "MLModelId",
|
|
401
|
+
NAME: "Name",
|
|
402
|
+
STATUS: "Status"
|
|
403
|
+
};
|
|
404
|
+
var SortOrder = {
|
|
405
|
+
ASC: "asc",
|
|
406
|
+
DSC: "dsc"
|
|
407
|
+
};
|
|
408
|
+
var EntityStatus = {
|
|
409
|
+
COMPLETED: "COMPLETED",
|
|
410
|
+
DELETED: "DELETED",
|
|
411
|
+
FAILED: "FAILED",
|
|
412
|
+
INPROGRESS: "INPROGRESS",
|
|
413
|
+
PENDING: "PENDING"
|
|
414
|
+
};
|
|
415
|
+
var DataSourceFilterVariable = {
|
|
416
|
+
CREATED_AT: "CreatedAt",
|
|
417
|
+
DATA_URI: "DataLocationS3",
|
|
418
|
+
IAM_USER: "IAMUser",
|
|
419
|
+
LAST_UPDATED_AT: "LastUpdatedAt",
|
|
420
|
+
NAME: "Name",
|
|
421
|
+
STATUS: "Status"
|
|
422
|
+
};
|
|
423
|
+
var EvaluationFilterVariable = {
|
|
424
|
+
CREATED_AT: "CreatedAt",
|
|
425
|
+
DATASOURCE_ID: "DataSourceId",
|
|
426
|
+
DATA_URI: "DataURI",
|
|
427
|
+
IAM_USER: "IAMUser",
|
|
428
|
+
LAST_UPDATED_AT: "LastUpdatedAt",
|
|
429
|
+
ML_MODEL_ID: "MLModelId",
|
|
430
|
+
NAME: "Name",
|
|
431
|
+
STATUS: "Status"
|
|
432
|
+
};
|
|
433
|
+
var MLModelFilterVariable = {
|
|
434
|
+
ALGORITHM: "Algorithm",
|
|
435
|
+
CREATED_AT: "CreatedAt",
|
|
436
|
+
IAM_USER: "IAMUser",
|
|
437
|
+
LAST_UPDATED_AT: "LastUpdatedAt",
|
|
438
|
+
ML_MODEL_TYPE: "MLModelType",
|
|
439
|
+
NAME: "Name",
|
|
440
|
+
REAL_TIME_ENDPOINT_STATUS: "RealtimeEndpointStatus",
|
|
441
|
+
STATUS: "Status",
|
|
442
|
+
TRAINING_DATASOURCE_ID: "TrainingDataSourceId",
|
|
443
|
+
TRAINING_DATA_URI: "TrainingDataURI"
|
|
444
|
+
};
|
|
445
|
+
var _LimitExceededException = class _LimitExceededException extends MachineLearningServiceException {
|
|
446
|
+
/**
|
|
447
|
+
* @internal
|
|
448
|
+
*/
|
|
449
|
+
constructor(opts) {
|
|
450
|
+
super({
|
|
451
|
+
name: "LimitExceededException",
|
|
452
|
+
$fault: "client",
|
|
453
|
+
...opts
|
|
454
|
+
});
|
|
455
|
+
this.name = "LimitExceededException";
|
|
456
|
+
this.$fault = "client";
|
|
457
|
+
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
458
|
+
this.code = opts.code;
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
__name(_LimitExceededException, "LimitExceededException");
|
|
462
|
+
var LimitExceededException = _LimitExceededException;
|
|
463
|
+
var _PredictorNotMountedException = class _PredictorNotMountedException extends MachineLearningServiceException {
|
|
464
|
+
/**
|
|
465
|
+
* @internal
|
|
466
|
+
*/
|
|
467
|
+
constructor(opts) {
|
|
468
|
+
super({
|
|
469
|
+
name: "PredictorNotMountedException",
|
|
470
|
+
$fault: "client",
|
|
471
|
+
...opts
|
|
472
|
+
});
|
|
473
|
+
this.name = "PredictorNotMountedException";
|
|
474
|
+
this.$fault = "client";
|
|
475
|
+
Object.setPrototypeOf(this, _PredictorNotMountedException.prototype);
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
__name(_PredictorNotMountedException, "PredictorNotMountedException");
|
|
479
|
+
var PredictorNotMountedException = _PredictorNotMountedException;
|
|
480
|
+
var DetailsAttributes = {
|
|
481
|
+
ALGORITHM: "Algorithm",
|
|
482
|
+
PREDICTIVE_MODEL_TYPE: "PredictiveModelType"
|
|
483
|
+
};
|
|
484
|
+
var RDSDatabaseCredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
485
|
+
...obj,
|
|
486
|
+
...obj.Password && { Password: import_smithy_client.SENSITIVE_STRING }
|
|
487
|
+
}), "RDSDatabaseCredentialsFilterSensitiveLog");
|
|
488
|
+
var RDSDataSpecFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
489
|
+
...obj,
|
|
490
|
+
...obj.DatabaseCredentials && {
|
|
491
|
+
DatabaseCredentials: RDSDatabaseCredentialsFilterSensitiveLog(obj.DatabaseCredentials)
|
|
492
|
+
}
|
|
493
|
+
}), "RDSDataSpecFilterSensitiveLog");
|
|
494
|
+
var CreateDataSourceFromRDSInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
495
|
+
...obj,
|
|
496
|
+
...obj.RDSData && { RDSData: RDSDataSpecFilterSensitiveLog(obj.RDSData) }
|
|
497
|
+
}), "CreateDataSourceFromRDSInputFilterSensitiveLog");
|
|
498
|
+
var RedshiftDatabaseCredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
499
|
+
...obj,
|
|
500
|
+
...obj.Password && { Password: import_smithy_client.SENSITIVE_STRING }
|
|
501
|
+
}), "RedshiftDatabaseCredentialsFilterSensitiveLog");
|
|
502
|
+
var RedshiftDataSpecFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
503
|
+
...obj,
|
|
504
|
+
...obj.DatabaseCredentials && {
|
|
505
|
+
DatabaseCredentials: RedshiftDatabaseCredentialsFilterSensitiveLog(obj.DatabaseCredentials)
|
|
506
|
+
}
|
|
507
|
+
}), "RedshiftDataSpecFilterSensitiveLog");
|
|
508
|
+
var CreateDataSourceFromRedshiftInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
509
|
+
...obj,
|
|
510
|
+
...obj.DataSpec && { DataSpec: RedshiftDataSpecFilterSensitiveLog(obj.DataSpec) }
|
|
511
|
+
}), "CreateDataSourceFromRedshiftInputFilterSensitiveLog");
|
|
512
|
+
|
|
513
|
+
// src/protocols/Aws_json1_1.ts
|
|
514
|
+
var se_AddTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
515
|
+
const headers = sharedHeaders("AddTags");
|
|
516
|
+
let body;
|
|
517
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
518
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
519
|
+
}, "se_AddTagsCommand");
|
|
520
|
+
var se_CreateBatchPredictionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
521
|
+
const headers = sharedHeaders("CreateBatchPrediction");
|
|
522
|
+
let body;
|
|
523
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
524
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
525
|
+
}, "se_CreateBatchPredictionCommand");
|
|
526
|
+
var se_CreateDataSourceFromRDSCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
527
|
+
const headers = sharedHeaders("CreateDataSourceFromRDS");
|
|
528
|
+
let body;
|
|
529
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
530
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
531
|
+
}, "se_CreateDataSourceFromRDSCommand");
|
|
532
|
+
var se_CreateDataSourceFromRedshiftCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
533
|
+
const headers = sharedHeaders("CreateDataSourceFromRedshift");
|
|
534
|
+
let body;
|
|
535
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
536
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
537
|
+
}, "se_CreateDataSourceFromRedshiftCommand");
|
|
538
|
+
var se_CreateDataSourceFromS3Command = /* @__PURE__ */ __name(async (input, context) => {
|
|
539
|
+
const headers = sharedHeaders("CreateDataSourceFromS3");
|
|
540
|
+
let body;
|
|
541
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
542
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
543
|
+
}, "se_CreateDataSourceFromS3Command");
|
|
544
|
+
var se_CreateEvaluationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
545
|
+
const headers = sharedHeaders("CreateEvaluation");
|
|
546
|
+
let body;
|
|
547
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
548
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
549
|
+
}, "se_CreateEvaluationCommand");
|
|
550
|
+
var se_CreateMLModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
551
|
+
const headers = sharedHeaders("CreateMLModel");
|
|
552
|
+
let body;
|
|
553
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
554
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
555
|
+
}, "se_CreateMLModelCommand");
|
|
556
|
+
var se_CreateRealtimeEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
557
|
+
const headers = sharedHeaders("CreateRealtimeEndpoint");
|
|
558
|
+
let body;
|
|
559
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
560
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
561
|
+
}, "se_CreateRealtimeEndpointCommand");
|
|
562
|
+
var se_DeleteBatchPredictionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
563
|
+
const headers = sharedHeaders("DeleteBatchPrediction");
|
|
564
|
+
let body;
|
|
565
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
566
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
567
|
+
}, "se_DeleteBatchPredictionCommand");
|
|
568
|
+
var se_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
569
|
+
const headers = sharedHeaders("DeleteDataSource");
|
|
570
|
+
let body;
|
|
571
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
572
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
573
|
+
}, "se_DeleteDataSourceCommand");
|
|
574
|
+
var se_DeleteEvaluationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
575
|
+
const headers = sharedHeaders("DeleteEvaluation");
|
|
576
|
+
let body;
|
|
577
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
578
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
579
|
+
}, "se_DeleteEvaluationCommand");
|
|
580
|
+
var se_DeleteMLModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
581
|
+
const headers = sharedHeaders("DeleteMLModel");
|
|
582
|
+
let body;
|
|
583
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
584
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
585
|
+
}, "se_DeleteMLModelCommand");
|
|
586
|
+
var se_DeleteRealtimeEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
587
|
+
const headers = sharedHeaders("DeleteRealtimeEndpoint");
|
|
588
|
+
let body;
|
|
589
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
590
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
591
|
+
}, "se_DeleteRealtimeEndpointCommand");
|
|
592
|
+
var se_DeleteTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
593
|
+
const headers = sharedHeaders("DeleteTags");
|
|
594
|
+
let body;
|
|
595
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
596
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
597
|
+
}, "se_DeleteTagsCommand");
|
|
598
|
+
var se_DescribeBatchPredictionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
599
|
+
const headers = sharedHeaders("DescribeBatchPredictions");
|
|
600
|
+
let body;
|
|
601
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
602
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
603
|
+
}, "se_DescribeBatchPredictionsCommand");
|
|
604
|
+
var se_DescribeDataSourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
605
|
+
const headers = sharedHeaders("DescribeDataSources");
|
|
606
|
+
let body;
|
|
607
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
608
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
609
|
+
}, "se_DescribeDataSourcesCommand");
|
|
610
|
+
var se_DescribeEvaluationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
611
|
+
const headers = sharedHeaders("DescribeEvaluations");
|
|
612
|
+
let body;
|
|
613
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
614
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
615
|
+
}, "se_DescribeEvaluationsCommand");
|
|
616
|
+
var se_DescribeMLModelsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
617
|
+
const headers = sharedHeaders("DescribeMLModels");
|
|
618
|
+
let body;
|
|
619
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
620
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
621
|
+
}, "se_DescribeMLModelsCommand");
|
|
622
|
+
var se_DescribeTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
623
|
+
const headers = sharedHeaders("DescribeTags");
|
|
624
|
+
let body;
|
|
625
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
626
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
627
|
+
}, "se_DescribeTagsCommand");
|
|
628
|
+
var se_GetBatchPredictionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
629
|
+
const headers = sharedHeaders("GetBatchPrediction");
|
|
630
|
+
let body;
|
|
631
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
632
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
633
|
+
}, "se_GetBatchPredictionCommand");
|
|
634
|
+
var se_GetDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
635
|
+
const headers = sharedHeaders("GetDataSource");
|
|
636
|
+
let body;
|
|
637
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
638
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
639
|
+
}, "se_GetDataSourceCommand");
|
|
640
|
+
var se_GetEvaluationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
641
|
+
const headers = sharedHeaders("GetEvaluation");
|
|
642
|
+
let body;
|
|
643
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
644
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
645
|
+
}, "se_GetEvaluationCommand");
|
|
646
|
+
var se_GetMLModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
647
|
+
const headers = sharedHeaders("GetMLModel");
|
|
648
|
+
let body;
|
|
649
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
650
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
651
|
+
}, "se_GetMLModelCommand");
|
|
652
|
+
var se_PredictCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
653
|
+
const headers = sharedHeaders("Predict");
|
|
654
|
+
let body;
|
|
655
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
656
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
657
|
+
}, "se_PredictCommand");
|
|
658
|
+
var se_UpdateBatchPredictionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
659
|
+
const headers = sharedHeaders("UpdateBatchPrediction");
|
|
660
|
+
let body;
|
|
661
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
662
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
663
|
+
}, "se_UpdateBatchPredictionCommand");
|
|
664
|
+
var se_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
665
|
+
const headers = sharedHeaders("UpdateDataSource");
|
|
666
|
+
let body;
|
|
667
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
668
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
669
|
+
}, "se_UpdateDataSourceCommand");
|
|
670
|
+
var se_UpdateEvaluationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
671
|
+
const headers = sharedHeaders("UpdateEvaluation");
|
|
672
|
+
let body;
|
|
673
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
674
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
675
|
+
}, "se_UpdateEvaluationCommand");
|
|
676
|
+
var se_UpdateMLModelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
677
|
+
const headers = sharedHeaders("UpdateMLModel");
|
|
678
|
+
let body;
|
|
679
|
+
body = JSON.stringify(se_UpdateMLModelInput(input, context));
|
|
680
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
681
|
+
}, "se_UpdateMLModelCommand");
|
|
682
|
+
var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
683
|
+
if (output.statusCode >= 300) {
|
|
684
|
+
return de_AddTagsCommandError(output, context);
|
|
685
|
+
}
|
|
686
|
+
const data = await parseBody(output.body, context);
|
|
687
|
+
let contents = {};
|
|
688
|
+
contents = (0, import_smithy_client._json)(data);
|
|
689
|
+
const response = {
|
|
690
|
+
$metadata: deserializeMetadata(output),
|
|
691
|
+
...contents
|
|
692
|
+
};
|
|
693
|
+
return response;
|
|
694
|
+
}, "de_AddTagsCommand");
|
|
695
|
+
var de_AddTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
696
|
+
const parsedOutput = {
|
|
697
|
+
...output,
|
|
698
|
+
body: await parseErrorBody(output.body, context)
|
|
699
|
+
};
|
|
700
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
+
switch (errorCode) {
|
|
702
|
+
case "InternalServerException":
|
|
703
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
704
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
705
|
+
case "InvalidInputException":
|
|
706
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
707
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
708
|
+
case "InvalidTagException":
|
|
709
|
+
case "com.amazonaws.machinelearning#InvalidTagException":
|
|
710
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
711
|
+
case "ResourceNotFoundException":
|
|
712
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
713
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
714
|
+
case "TagLimitExceededException":
|
|
715
|
+
case "com.amazonaws.machinelearning#TagLimitExceededException":
|
|
716
|
+
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
717
|
+
default:
|
|
718
|
+
const parsedBody = parsedOutput.body;
|
|
719
|
+
return throwDefaultError({
|
|
720
|
+
output,
|
|
721
|
+
parsedBody,
|
|
722
|
+
errorCode
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
}, "de_AddTagsCommandError");
|
|
726
|
+
var de_CreateBatchPredictionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
727
|
+
if (output.statusCode >= 300) {
|
|
728
|
+
return de_CreateBatchPredictionCommandError(output, context);
|
|
729
|
+
}
|
|
730
|
+
const data = await parseBody(output.body, context);
|
|
731
|
+
let contents = {};
|
|
732
|
+
contents = (0, import_smithy_client._json)(data);
|
|
733
|
+
const response = {
|
|
734
|
+
$metadata: deserializeMetadata(output),
|
|
735
|
+
...contents
|
|
736
|
+
};
|
|
737
|
+
return response;
|
|
738
|
+
}, "de_CreateBatchPredictionCommand");
|
|
739
|
+
var de_CreateBatchPredictionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
740
|
+
const parsedOutput = {
|
|
741
|
+
...output,
|
|
742
|
+
body: await parseErrorBody(output.body, context)
|
|
743
|
+
};
|
|
744
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
|
+
switch (errorCode) {
|
|
746
|
+
case "IdempotentParameterMismatchException":
|
|
747
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
748
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
749
|
+
case "InternalServerException":
|
|
750
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
751
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
752
|
+
case "InvalidInputException":
|
|
753
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
754
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
755
|
+
default:
|
|
756
|
+
const parsedBody = parsedOutput.body;
|
|
757
|
+
return throwDefaultError({
|
|
758
|
+
output,
|
|
759
|
+
parsedBody,
|
|
760
|
+
errorCode
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
}, "de_CreateBatchPredictionCommandError");
|
|
764
|
+
var de_CreateDataSourceFromRDSCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
765
|
+
if (output.statusCode >= 300) {
|
|
766
|
+
return de_CreateDataSourceFromRDSCommandError(output, context);
|
|
767
|
+
}
|
|
768
|
+
const data = await parseBody(output.body, context);
|
|
769
|
+
let contents = {};
|
|
770
|
+
contents = (0, import_smithy_client._json)(data);
|
|
771
|
+
const response = {
|
|
772
|
+
$metadata: deserializeMetadata(output),
|
|
773
|
+
...contents
|
|
774
|
+
};
|
|
775
|
+
return response;
|
|
776
|
+
}, "de_CreateDataSourceFromRDSCommand");
|
|
777
|
+
var de_CreateDataSourceFromRDSCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
778
|
+
const parsedOutput = {
|
|
779
|
+
...output,
|
|
780
|
+
body: await parseErrorBody(output.body, context)
|
|
781
|
+
};
|
|
782
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
+
switch (errorCode) {
|
|
784
|
+
case "IdempotentParameterMismatchException":
|
|
785
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
786
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
787
|
+
case "InternalServerException":
|
|
788
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
789
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
790
|
+
case "InvalidInputException":
|
|
791
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
792
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
793
|
+
default:
|
|
794
|
+
const parsedBody = parsedOutput.body;
|
|
795
|
+
return throwDefaultError({
|
|
796
|
+
output,
|
|
797
|
+
parsedBody,
|
|
798
|
+
errorCode
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
}, "de_CreateDataSourceFromRDSCommandError");
|
|
802
|
+
var de_CreateDataSourceFromRedshiftCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
803
|
+
if (output.statusCode >= 300) {
|
|
804
|
+
return de_CreateDataSourceFromRedshiftCommandError(output, context);
|
|
805
|
+
}
|
|
806
|
+
const data = await parseBody(output.body, context);
|
|
807
|
+
let contents = {};
|
|
808
|
+
contents = (0, import_smithy_client._json)(data);
|
|
809
|
+
const response = {
|
|
810
|
+
$metadata: deserializeMetadata(output),
|
|
811
|
+
...contents
|
|
812
|
+
};
|
|
813
|
+
return response;
|
|
814
|
+
}, "de_CreateDataSourceFromRedshiftCommand");
|
|
815
|
+
var de_CreateDataSourceFromRedshiftCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
816
|
+
const parsedOutput = {
|
|
817
|
+
...output,
|
|
818
|
+
body: await parseErrorBody(output.body, context)
|
|
819
|
+
};
|
|
820
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
821
|
+
switch (errorCode) {
|
|
822
|
+
case "IdempotentParameterMismatchException":
|
|
823
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
824
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
825
|
+
case "InternalServerException":
|
|
826
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
827
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
828
|
+
case "InvalidInputException":
|
|
829
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
830
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
831
|
+
default:
|
|
832
|
+
const parsedBody = parsedOutput.body;
|
|
833
|
+
return throwDefaultError({
|
|
834
|
+
output,
|
|
835
|
+
parsedBody,
|
|
836
|
+
errorCode
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
}, "de_CreateDataSourceFromRedshiftCommandError");
|
|
840
|
+
var de_CreateDataSourceFromS3Command = /* @__PURE__ */ __name(async (output, context) => {
|
|
841
|
+
if (output.statusCode >= 300) {
|
|
842
|
+
return de_CreateDataSourceFromS3CommandError(output, context);
|
|
843
|
+
}
|
|
844
|
+
const data = await parseBody(output.body, context);
|
|
845
|
+
let contents = {};
|
|
846
|
+
contents = (0, import_smithy_client._json)(data);
|
|
847
|
+
const response = {
|
|
848
|
+
$metadata: deserializeMetadata(output),
|
|
849
|
+
...contents
|
|
850
|
+
};
|
|
851
|
+
return response;
|
|
852
|
+
}, "de_CreateDataSourceFromS3Command");
|
|
853
|
+
var de_CreateDataSourceFromS3CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
854
|
+
const parsedOutput = {
|
|
855
|
+
...output,
|
|
856
|
+
body: await parseErrorBody(output.body, context)
|
|
857
|
+
};
|
|
858
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
859
|
+
switch (errorCode) {
|
|
860
|
+
case "IdempotentParameterMismatchException":
|
|
861
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
862
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
863
|
+
case "InternalServerException":
|
|
864
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
865
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
866
|
+
case "InvalidInputException":
|
|
867
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
868
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
869
|
+
default:
|
|
870
|
+
const parsedBody = parsedOutput.body;
|
|
871
|
+
return throwDefaultError({
|
|
872
|
+
output,
|
|
873
|
+
parsedBody,
|
|
874
|
+
errorCode
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
}, "de_CreateDataSourceFromS3CommandError");
|
|
878
|
+
var de_CreateEvaluationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
879
|
+
if (output.statusCode >= 300) {
|
|
880
|
+
return de_CreateEvaluationCommandError(output, context);
|
|
881
|
+
}
|
|
882
|
+
const data = await parseBody(output.body, context);
|
|
883
|
+
let contents = {};
|
|
884
|
+
contents = (0, import_smithy_client._json)(data);
|
|
885
|
+
const response = {
|
|
886
|
+
$metadata: deserializeMetadata(output),
|
|
887
|
+
...contents
|
|
888
|
+
};
|
|
889
|
+
return response;
|
|
890
|
+
}, "de_CreateEvaluationCommand");
|
|
891
|
+
var de_CreateEvaluationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
892
|
+
const parsedOutput = {
|
|
893
|
+
...output,
|
|
894
|
+
body: await parseErrorBody(output.body, context)
|
|
895
|
+
};
|
|
896
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
+
switch (errorCode) {
|
|
898
|
+
case "IdempotentParameterMismatchException":
|
|
899
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
900
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
901
|
+
case "InternalServerException":
|
|
902
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
903
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
904
|
+
case "InvalidInputException":
|
|
905
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
906
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
907
|
+
default:
|
|
908
|
+
const parsedBody = parsedOutput.body;
|
|
909
|
+
return throwDefaultError({
|
|
910
|
+
output,
|
|
911
|
+
parsedBody,
|
|
912
|
+
errorCode
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
}, "de_CreateEvaluationCommandError");
|
|
916
|
+
var de_CreateMLModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
917
|
+
if (output.statusCode >= 300) {
|
|
918
|
+
return de_CreateMLModelCommandError(output, context);
|
|
919
|
+
}
|
|
920
|
+
const data = await parseBody(output.body, context);
|
|
921
|
+
let contents = {};
|
|
922
|
+
contents = (0, import_smithy_client._json)(data);
|
|
923
|
+
const response = {
|
|
924
|
+
$metadata: deserializeMetadata(output),
|
|
925
|
+
...contents
|
|
926
|
+
};
|
|
927
|
+
return response;
|
|
928
|
+
}, "de_CreateMLModelCommand");
|
|
929
|
+
var de_CreateMLModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
930
|
+
const parsedOutput = {
|
|
931
|
+
...output,
|
|
932
|
+
body: await parseErrorBody(output.body, context)
|
|
933
|
+
};
|
|
934
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
935
|
+
switch (errorCode) {
|
|
936
|
+
case "IdempotentParameterMismatchException":
|
|
937
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
938
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
939
|
+
case "InternalServerException":
|
|
940
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
941
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
942
|
+
case "InvalidInputException":
|
|
943
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
944
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
945
|
+
default:
|
|
946
|
+
const parsedBody = parsedOutput.body;
|
|
947
|
+
return throwDefaultError({
|
|
948
|
+
output,
|
|
949
|
+
parsedBody,
|
|
950
|
+
errorCode
|
|
951
|
+
});
|
|
952
|
+
}
|
|
953
|
+
}, "de_CreateMLModelCommandError");
|
|
954
|
+
var de_CreateRealtimeEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
955
|
+
if (output.statusCode >= 300) {
|
|
956
|
+
return de_CreateRealtimeEndpointCommandError(output, context);
|
|
957
|
+
}
|
|
958
|
+
const data = await parseBody(output.body, context);
|
|
959
|
+
let contents = {};
|
|
960
|
+
contents = de_CreateRealtimeEndpointOutput(data, context);
|
|
961
|
+
const response = {
|
|
962
|
+
$metadata: deserializeMetadata(output),
|
|
963
|
+
...contents
|
|
964
|
+
};
|
|
965
|
+
return response;
|
|
966
|
+
}, "de_CreateRealtimeEndpointCommand");
|
|
967
|
+
var de_CreateRealtimeEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
968
|
+
const parsedOutput = {
|
|
969
|
+
...output,
|
|
970
|
+
body: await parseErrorBody(output.body, context)
|
|
971
|
+
};
|
|
972
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
|
+
switch (errorCode) {
|
|
974
|
+
case "InternalServerException":
|
|
975
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
976
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
977
|
+
case "InvalidInputException":
|
|
978
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
979
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
980
|
+
case "ResourceNotFoundException":
|
|
981
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
982
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
983
|
+
default:
|
|
984
|
+
const parsedBody = parsedOutput.body;
|
|
985
|
+
return throwDefaultError({
|
|
986
|
+
output,
|
|
987
|
+
parsedBody,
|
|
988
|
+
errorCode
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
}, "de_CreateRealtimeEndpointCommandError");
|
|
992
|
+
var de_DeleteBatchPredictionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
993
|
+
if (output.statusCode >= 300) {
|
|
994
|
+
return de_DeleteBatchPredictionCommandError(output, context);
|
|
995
|
+
}
|
|
996
|
+
const data = await parseBody(output.body, context);
|
|
997
|
+
let contents = {};
|
|
998
|
+
contents = (0, import_smithy_client._json)(data);
|
|
999
|
+
const response = {
|
|
1000
|
+
$metadata: deserializeMetadata(output),
|
|
1001
|
+
...contents
|
|
1002
|
+
};
|
|
1003
|
+
return response;
|
|
1004
|
+
}, "de_DeleteBatchPredictionCommand");
|
|
1005
|
+
var de_DeleteBatchPredictionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1006
|
+
const parsedOutput = {
|
|
1007
|
+
...output,
|
|
1008
|
+
body: await parseErrorBody(output.body, context)
|
|
1009
|
+
};
|
|
1010
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
|
+
switch (errorCode) {
|
|
1012
|
+
case "InternalServerException":
|
|
1013
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1014
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1015
|
+
case "InvalidInputException":
|
|
1016
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1017
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1018
|
+
case "ResourceNotFoundException":
|
|
1019
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1020
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1021
|
+
default:
|
|
1022
|
+
const parsedBody = parsedOutput.body;
|
|
1023
|
+
return throwDefaultError({
|
|
1024
|
+
output,
|
|
1025
|
+
parsedBody,
|
|
1026
|
+
errorCode
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
}, "de_DeleteBatchPredictionCommandError");
|
|
1030
|
+
var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1031
|
+
if (output.statusCode >= 300) {
|
|
1032
|
+
return de_DeleteDataSourceCommandError(output, context);
|
|
1033
|
+
}
|
|
1034
|
+
const data = await parseBody(output.body, context);
|
|
1035
|
+
let contents = {};
|
|
1036
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1037
|
+
const response = {
|
|
1038
|
+
$metadata: deserializeMetadata(output),
|
|
1039
|
+
...contents
|
|
1040
|
+
};
|
|
1041
|
+
return response;
|
|
1042
|
+
}, "de_DeleteDataSourceCommand");
|
|
1043
|
+
var de_DeleteDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1044
|
+
const parsedOutput = {
|
|
1045
|
+
...output,
|
|
1046
|
+
body: await parseErrorBody(output.body, context)
|
|
1047
|
+
};
|
|
1048
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1049
|
+
switch (errorCode) {
|
|
1050
|
+
case "InternalServerException":
|
|
1051
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1052
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1053
|
+
case "InvalidInputException":
|
|
1054
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1055
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1056
|
+
case "ResourceNotFoundException":
|
|
1057
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1058
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1059
|
+
default:
|
|
1060
|
+
const parsedBody = parsedOutput.body;
|
|
1061
|
+
return throwDefaultError({
|
|
1062
|
+
output,
|
|
1063
|
+
parsedBody,
|
|
1064
|
+
errorCode
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
}, "de_DeleteDataSourceCommandError");
|
|
1068
|
+
var de_DeleteEvaluationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1069
|
+
if (output.statusCode >= 300) {
|
|
1070
|
+
return de_DeleteEvaluationCommandError(output, context);
|
|
1071
|
+
}
|
|
1072
|
+
const data = await parseBody(output.body, context);
|
|
1073
|
+
let contents = {};
|
|
1074
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1075
|
+
const response = {
|
|
1076
|
+
$metadata: deserializeMetadata(output),
|
|
1077
|
+
...contents
|
|
1078
|
+
};
|
|
1079
|
+
return response;
|
|
1080
|
+
}, "de_DeleteEvaluationCommand");
|
|
1081
|
+
var de_DeleteEvaluationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1082
|
+
const parsedOutput = {
|
|
1083
|
+
...output,
|
|
1084
|
+
body: await parseErrorBody(output.body, context)
|
|
1085
|
+
};
|
|
1086
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
|
+
switch (errorCode) {
|
|
1088
|
+
case "InternalServerException":
|
|
1089
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1090
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1091
|
+
case "InvalidInputException":
|
|
1092
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1093
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1094
|
+
case "ResourceNotFoundException":
|
|
1095
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1096
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1097
|
+
default:
|
|
1098
|
+
const parsedBody = parsedOutput.body;
|
|
1099
|
+
return throwDefaultError({
|
|
1100
|
+
output,
|
|
1101
|
+
parsedBody,
|
|
1102
|
+
errorCode
|
|
1103
|
+
});
|
|
1104
|
+
}
|
|
1105
|
+
}, "de_DeleteEvaluationCommandError");
|
|
1106
|
+
var de_DeleteMLModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1107
|
+
if (output.statusCode >= 300) {
|
|
1108
|
+
return de_DeleteMLModelCommandError(output, context);
|
|
1109
|
+
}
|
|
1110
|
+
const data = await parseBody(output.body, context);
|
|
1111
|
+
let contents = {};
|
|
1112
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1113
|
+
const response = {
|
|
1114
|
+
$metadata: deserializeMetadata(output),
|
|
1115
|
+
...contents
|
|
1116
|
+
};
|
|
1117
|
+
return response;
|
|
1118
|
+
}, "de_DeleteMLModelCommand");
|
|
1119
|
+
var de_DeleteMLModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
|
+
const parsedOutput = {
|
|
1121
|
+
...output,
|
|
1122
|
+
body: await parseErrorBody(output.body, context)
|
|
1123
|
+
};
|
|
1124
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
+
switch (errorCode) {
|
|
1126
|
+
case "InternalServerException":
|
|
1127
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1128
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1129
|
+
case "InvalidInputException":
|
|
1130
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1131
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1132
|
+
case "ResourceNotFoundException":
|
|
1133
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1134
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1135
|
+
default:
|
|
1136
|
+
const parsedBody = parsedOutput.body;
|
|
1137
|
+
return throwDefaultError({
|
|
1138
|
+
output,
|
|
1139
|
+
parsedBody,
|
|
1140
|
+
errorCode
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1143
|
+
}, "de_DeleteMLModelCommandError");
|
|
1144
|
+
var de_DeleteRealtimeEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1145
|
+
if (output.statusCode >= 300) {
|
|
1146
|
+
return de_DeleteRealtimeEndpointCommandError(output, context);
|
|
1147
|
+
}
|
|
1148
|
+
const data = await parseBody(output.body, context);
|
|
1149
|
+
let contents = {};
|
|
1150
|
+
contents = de_DeleteRealtimeEndpointOutput(data, context);
|
|
1151
|
+
const response = {
|
|
1152
|
+
$metadata: deserializeMetadata(output),
|
|
1153
|
+
...contents
|
|
1154
|
+
};
|
|
1155
|
+
return response;
|
|
1156
|
+
}, "de_DeleteRealtimeEndpointCommand");
|
|
1157
|
+
var de_DeleteRealtimeEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1158
|
+
const parsedOutput = {
|
|
1159
|
+
...output,
|
|
1160
|
+
body: await parseErrorBody(output.body, context)
|
|
1161
|
+
};
|
|
1162
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1163
|
+
switch (errorCode) {
|
|
1164
|
+
case "InternalServerException":
|
|
1165
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1166
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1167
|
+
case "InvalidInputException":
|
|
1168
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1169
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1170
|
+
case "ResourceNotFoundException":
|
|
1171
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1172
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1173
|
+
default:
|
|
1174
|
+
const parsedBody = parsedOutput.body;
|
|
1175
|
+
return throwDefaultError({
|
|
1176
|
+
output,
|
|
1177
|
+
parsedBody,
|
|
1178
|
+
errorCode
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
}, "de_DeleteRealtimeEndpointCommandError");
|
|
1182
|
+
var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1183
|
+
if (output.statusCode >= 300) {
|
|
1184
|
+
return de_DeleteTagsCommandError(output, context);
|
|
1185
|
+
}
|
|
1186
|
+
const data = await parseBody(output.body, context);
|
|
1187
|
+
let contents = {};
|
|
1188
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1189
|
+
const response = {
|
|
1190
|
+
$metadata: deserializeMetadata(output),
|
|
1191
|
+
...contents
|
|
1192
|
+
};
|
|
1193
|
+
return response;
|
|
1194
|
+
}, "de_DeleteTagsCommand");
|
|
1195
|
+
var de_DeleteTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1196
|
+
const parsedOutput = {
|
|
1197
|
+
...output,
|
|
1198
|
+
body: await parseErrorBody(output.body, context)
|
|
1199
|
+
};
|
|
1200
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
|
+
switch (errorCode) {
|
|
1202
|
+
case "InternalServerException":
|
|
1203
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1204
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1205
|
+
case "InvalidInputException":
|
|
1206
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1207
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1208
|
+
case "InvalidTagException":
|
|
1209
|
+
case "com.amazonaws.machinelearning#InvalidTagException":
|
|
1210
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
1211
|
+
case "ResourceNotFoundException":
|
|
1212
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1213
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1214
|
+
default:
|
|
1215
|
+
const parsedBody = parsedOutput.body;
|
|
1216
|
+
return throwDefaultError({
|
|
1217
|
+
output,
|
|
1218
|
+
parsedBody,
|
|
1219
|
+
errorCode
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
}, "de_DeleteTagsCommandError");
|
|
1223
|
+
var de_DescribeBatchPredictionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1224
|
+
if (output.statusCode >= 300) {
|
|
1225
|
+
return de_DescribeBatchPredictionsCommandError(output, context);
|
|
1226
|
+
}
|
|
1227
|
+
const data = await parseBody(output.body, context);
|
|
1228
|
+
let contents = {};
|
|
1229
|
+
contents = de_DescribeBatchPredictionsOutput(data, context);
|
|
1230
|
+
const response = {
|
|
1231
|
+
$metadata: deserializeMetadata(output),
|
|
1232
|
+
...contents
|
|
1233
|
+
};
|
|
1234
|
+
return response;
|
|
1235
|
+
}, "de_DescribeBatchPredictionsCommand");
|
|
1236
|
+
var de_DescribeBatchPredictionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1237
|
+
const parsedOutput = {
|
|
1238
|
+
...output,
|
|
1239
|
+
body: await parseErrorBody(output.body, context)
|
|
1240
|
+
};
|
|
1241
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
|
+
switch (errorCode) {
|
|
1243
|
+
case "InternalServerException":
|
|
1244
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1245
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1246
|
+
case "InvalidInputException":
|
|
1247
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1248
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1249
|
+
default:
|
|
1250
|
+
const parsedBody = parsedOutput.body;
|
|
1251
|
+
return throwDefaultError({
|
|
1252
|
+
output,
|
|
1253
|
+
parsedBody,
|
|
1254
|
+
errorCode
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
}, "de_DescribeBatchPredictionsCommandError");
|
|
1258
|
+
var de_DescribeDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1259
|
+
if (output.statusCode >= 300) {
|
|
1260
|
+
return de_DescribeDataSourcesCommandError(output, context);
|
|
1261
|
+
}
|
|
1262
|
+
const data = await parseBody(output.body, context);
|
|
1263
|
+
let contents = {};
|
|
1264
|
+
contents = de_DescribeDataSourcesOutput(data, context);
|
|
1265
|
+
const response = {
|
|
1266
|
+
$metadata: deserializeMetadata(output),
|
|
1267
|
+
...contents
|
|
1268
|
+
};
|
|
1269
|
+
return response;
|
|
1270
|
+
}, "de_DescribeDataSourcesCommand");
|
|
1271
|
+
var de_DescribeDataSourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1272
|
+
const parsedOutput = {
|
|
1273
|
+
...output,
|
|
1274
|
+
body: await parseErrorBody(output.body, context)
|
|
1275
|
+
};
|
|
1276
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1277
|
+
switch (errorCode) {
|
|
1278
|
+
case "InternalServerException":
|
|
1279
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1280
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1281
|
+
case "InvalidInputException":
|
|
1282
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1283
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1284
|
+
default:
|
|
1285
|
+
const parsedBody = parsedOutput.body;
|
|
1286
|
+
return throwDefaultError({
|
|
1287
|
+
output,
|
|
1288
|
+
parsedBody,
|
|
1289
|
+
errorCode
|
|
1290
|
+
});
|
|
1291
|
+
}
|
|
1292
|
+
}, "de_DescribeDataSourcesCommandError");
|
|
1293
|
+
var de_DescribeEvaluationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1294
|
+
if (output.statusCode >= 300) {
|
|
1295
|
+
return de_DescribeEvaluationsCommandError(output, context);
|
|
1296
|
+
}
|
|
1297
|
+
const data = await parseBody(output.body, context);
|
|
1298
|
+
let contents = {};
|
|
1299
|
+
contents = de_DescribeEvaluationsOutput(data, context);
|
|
1300
|
+
const response = {
|
|
1301
|
+
$metadata: deserializeMetadata(output),
|
|
1302
|
+
...contents
|
|
1303
|
+
};
|
|
1304
|
+
return response;
|
|
1305
|
+
}, "de_DescribeEvaluationsCommand");
|
|
1306
|
+
var de_DescribeEvaluationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1307
|
+
const parsedOutput = {
|
|
1308
|
+
...output,
|
|
1309
|
+
body: await parseErrorBody(output.body, context)
|
|
1310
|
+
};
|
|
1311
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
|
+
switch (errorCode) {
|
|
1313
|
+
case "InternalServerException":
|
|
1314
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1315
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1316
|
+
case "InvalidInputException":
|
|
1317
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1318
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1319
|
+
default:
|
|
1320
|
+
const parsedBody = parsedOutput.body;
|
|
1321
|
+
return throwDefaultError({
|
|
1322
|
+
output,
|
|
1323
|
+
parsedBody,
|
|
1324
|
+
errorCode
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
}, "de_DescribeEvaluationsCommandError");
|
|
1328
|
+
var de_DescribeMLModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1329
|
+
if (output.statusCode >= 300) {
|
|
1330
|
+
return de_DescribeMLModelsCommandError(output, context);
|
|
1331
|
+
}
|
|
1332
|
+
const data = await parseBody(output.body, context);
|
|
1333
|
+
let contents = {};
|
|
1334
|
+
contents = de_DescribeMLModelsOutput(data, context);
|
|
1335
|
+
const response = {
|
|
1336
|
+
$metadata: deserializeMetadata(output),
|
|
1337
|
+
...contents
|
|
1338
|
+
};
|
|
1339
|
+
return response;
|
|
1340
|
+
}, "de_DescribeMLModelsCommand");
|
|
1341
|
+
var de_DescribeMLModelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1342
|
+
const parsedOutput = {
|
|
1343
|
+
...output,
|
|
1344
|
+
body: await parseErrorBody(output.body, context)
|
|
1345
|
+
};
|
|
1346
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1347
|
+
switch (errorCode) {
|
|
1348
|
+
case "InternalServerException":
|
|
1349
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1350
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1351
|
+
case "InvalidInputException":
|
|
1352
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1353
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1354
|
+
default:
|
|
1355
|
+
const parsedBody = parsedOutput.body;
|
|
1356
|
+
return throwDefaultError({
|
|
1357
|
+
output,
|
|
1358
|
+
parsedBody,
|
|
1359
|
+
errorCode
|
|
1360
|
+
});
|
|
1361
|
+
}
|
|
1362
|
+
}, "de_DescribeMLModelsCommandError");
|
|
1363
|
+
var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1364
|
+
if (output.statusCode >= 300) {
|
|
1365
|
+
return de_DescribeTagsCommandError(output, context);
|
|
1366
|
+
}
|
|
1367
|
+
const data = await parseBody(output.body, context);
|
|
1368
|
+
let contents = {};
|
|
1369
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1370
|
+
const response = {
|
|
1371
|
+
$metadata: deserializeMetadata(output),
|
|
1372
|
+
...contents
|
|
1373
|
+
};
|
|
1374
|
+
return response;
|
|
1375
|
+
}, "de_DescribeTagsCommand");
|
|
1376
|
+
var de_DescribeTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1377
|
+
const parsedOutput = {
|
|
1378
|
+
...output,
|
|
1379
|
+
body: await parseErrorBody(output.body, context)
|
|
1380
|
+
};
|
|
1381
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1382
|
+
switch (errorCode) {
|
|
1383
|
+
case "InternalServerException":
|
|
1384
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1385
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1386
|
+
case "InvalidInputException":
|
|
1387
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1388
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1389
|
+
case "ResourceNotFoundException":
|
|
1390
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1391
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1392
|
+
default:
|
|
1393
|
+
const parsedBody = parsedOutput.body;
|
|
1394
|
+
return throwDefaultError({
|
|
1395
|
+
output,
|
|
1396
|
+
parsedBody,
|
|
1397
|
+
errorCode
|
|
1398
|
+
});
|
|
1399
|
+
}
|
|
1400
|
+
}, "de_DescribeTagsCommandError");
|
|
1401
|
+
var de_GetBatchPredictionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1402
|
+
if (output.statusCode >= 300) {
|
|
1403
|
+
return de_GetBatchPredictionCommandError(output, context);
|
|
1404
|
+
}
|
|
1405
|
+
const data = await parseBody(output.body, context);
|
|
1406
|
+
let contents = {};
|
|
1407
|
+
contents = de_GetBatchPredictionOutput(data, context);
|
|
1408
|
+
const response = {
|
|
1409
|
+
$metadata: deserializeMetadata(output),
|
|
1410
|
+
...contents
|
|
1411
|
+
};
|
|
1412
|
+
return response;
|
|
1413
|
+
}, "de_GetBatchPredictionCommand");
|
|
1414
|
+
var de_GetBatchPredictionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1415
|
+
const parsedOutput = {
|
|
1416
|
+
...output,
|
|
1417
|
+
body: await parseErrorBody(output.body, context)
|
|
1418
|
+
};
|
|
1419
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1420
|
+
switch (errorCode) {
|
|
1421
|
+
case "InternalServerException":
|
|
1422
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1423
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1424
|
+
case "InvalidInputException":
|
|
1425
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1426
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1427
|
+
case "ResourceNotFoundException":
|
|
1428
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1429
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1430
|
+
default:
|
|
1431
|
+
const parsedBody = parsedOutput.body;
|
|
1432
|
+
return throwDefaultError({
|
|
1433
|
+
output,
|
|
1434
|
+
parsedBody,
|
|
1435
|
+
errorCode
|
|
1436
|
+
});
|
|
1437
|
+
}
|
|
1438
|
+
}, "de_GetBatchPredictionCommandError");
|
|
1439
|
+
var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1440
|
+
if (output.statusCode >= 300) {
|
|
1441
|
+
return de_GetDataSourceCommandError(output, context);
|
|
1442
|
+
}
|
|
1443
|
+
const data = await parseBody(output.body, context);
|
|
1444
|
+
let contents = {};
|
|
1445
|
+
contents = de_GetDataSourceOutput(data, context);
|
|
1446
|
+
const response = {
|
|
1447
|
+
$metadata: deserializeMetadata(output),
|
|
1448
|
+
...contents
|
|
1449
|
+
};
|
|
1450
|
+
return response;
|
|
1451
|
+
}, "de_GetDataSourceCommand");
|
|
1452
|
+
var de_GetDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1453
|
+
const parsedOutput = {
|
|
1454
|
+
...output,
|
|
1455
|
+
body: await parseErrorBody(output.body, context)
|
|
1456
|
+
};
|
|
1457
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
|
+
switch (errorCode) {
|
|
1459
|
+
case "InternalServerException":
|
|
1460
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1461
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1462
|
+
case "InvalidInputException":
|
|
1463
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1464
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1465
|
+
case "ResourceNotFoundException":
|
|
1466
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1467
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1468
|
+
default:
|
|
1469
|
+
const parsedBody = parsedOutput.body;
|
|
1470
|
+
return throwDefaultError({
|
|
1471
|
+
output,
|
|
1472
|
+
parsedBody,
|
|
1473
|
+
errorCode
|
|
1474
|
+
});
|
|
1475
|
+
}
|
|
1476
|
+
}, "de_GetDataSourceCommandError");
|
|
1477
|
+
var de_GetEvaluationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1478
|
+
if (output.statusCode >= 300) {
|
|
1479
|
+
return de_GetEvaluationCommandError(output, context);
|
|
1480
|
+
}
|
|
1481
|
+
const data = await parseBody(output.body, context);
|
|
1482
|
+
let contents = {};
|
|
1483
|
+
contents = de_GetEvaluationOutput(data, context);
|
|
1484
|
+
const response = {
|
|
1485
|
+
$metadata: deserializeMetadata(output),
|
|
1486
|
+
...contents
|
|
1487
|
+
};
|
|
1488
|
+
return response;
|
|
1489
|
+
}, "de_GetEvaluationCommand");
|
|
1490
|
+
var de_GetEvaluationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1491
|
+
const parsedOutput = {
|
|
1492
|
+
...output,
|
|
1493
|
+
body: await parseErrorBody(output.body, context)
|
|
1494
|
+
};
|
|
1495
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1496
|
+
switch (errorCode) {
|
|
1497
|
+
case "InternalServerException":
|
|
1498
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1499
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1500
|
+
case "InvalidInputException":
|
|
1501
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1502
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1503
|
+
case "ResourceNotFoundException":
|
|
1504
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1505
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1506
|
+
default:
|
|
1507
|
+
const parsedBody = parsedOutput.body;
|
|
1508
|
+
return throwDefaultError({
|
|
1509
|
+
output,
|
|
1510
|
+
parsedBody,
|
|
1511
|
+
errorCode
|
|
1512
|
+
});
|
|
1513
|
+
}
|
|
1514
|
+
}, "de_GetEvaluationCommandError");
|
|
1515
|
+
var de_GetMLModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1516
|
+
if (output.statusCode >= 300) {
|
|
1517
|
+
return de_GetMLModelCommandError(output, context);
|
|
1518
|
+
}
|
|
1519
|
+
const data = await parseBody(output.body, context);
|
|
1520
|
+
let contents = {};
|
|
1521
|
+
contents = de_GetMLModelOutput(data, context);
|
|
1522
|
+
const response = {
|
|
1523
|
+
$metadata: deserializeMetadata(output),
|
|
1524
|
+
...contents
|
|
1525
|
+
};
|
|
1526
|
+
return response;
|
|
1527
|
+
}, "de_GetMLModelCommand");
|
|
1528
|
+
var de_GetMLModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1529
|
+
const parsedOutput = {
|
|
1530
|
+
...output,
|
|
1531
|
+
body: await parseErrorBody(output.body, context)
|
|
1532
|
+
};
|
|
1533
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
|
+
switch (errorCode) {
|
|
1535
|
+
case "InternalServerException":
|
|
1536
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1537
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1538
|
+
case "InvalidInputException":
|
|
1539
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1540
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1541
|
+
case "ResourceNotFoundException":
|
|
1542
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1543
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1544
|
+
default:
|
|
1545
|
+
const parsedBody = parsedOutput.body;
|
|
1546
|
+
return throwDefaultError({
|
|
1547
|
+
output,
|
|
1548
|
+
parsedBody,
|
|
1549
|
+
errorCode
|
|
1550
|
+
});
|
|
1551
|
+
}
|
|
1552
|
+
}, "de_GetMLModelCommandError");
|
|
1553
|
+
var de_PredictCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1554
|
+
if (output.statusCode >= 300) {
|
|
1555
|
+
return de_PredictCommandError(output, context);
|
|
1556
|
+
}
|
|
1557
|
+
const data = await parseBody(output.body, context);
|
|
1558
|
+
let contents = {};
|
|
1559
|
+
contents = de_PredictOutput(data, context);
|
|
1560
|
+
const response = {
|
|
1561
|
+
$metadata: deserializeMetadata(output),
|
|
1562
|
+
...contents
|
|
1563
|
+
};
|
|
1564
|
+
return response;
|
|
1565
|
+
}, "de_PredictCommand");
|
|
1566
|
+
var de_PredictCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1567
|
+
const parsedOutput = {
|
|
1568
|
+
...output,
|
|
1569
|
+
body: await parseErrorBody(output.body, context)
|
|
1570
|
+
};
|
|
1571
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1572
|
+
switch (errorCode) {
|
|
1573
|
+
case "InternalServerException":
|
|
1574
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1575
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1576
|
+
case "InvalidInputException":
|
|
1577
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1578
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1579
|
+
case "LimitExceededException":
|
|
1580
|
+
case "com.amazonaws.machinelearning#LimitExceededException":
|
|
1581
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1582
|
+
case "PredictorNotMountedException":
|
|
1583
|
+
case "com.amazonaws.machinelearning#PredictorNotMountedException":
|
|
1584
|
+
throw await de_PredictorNotMountedExceptionRes(parsedOutput, context);
|
|
1585
|
+
case "ResourceNotFoundException":
|
|
1586
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1587
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1588
|
+
default:
|
|
1589
|
+
const parsedBody = parsedOutput.body;
|
|
1590
|
+
return throwDefaultError({
|
|
1591
|
+
output,
|
|
1592
|
+
parsedBody,
|
|
1593
|
+
errorCode
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
}, "de_PredictCommandError");
|
|
1597
|
+
var de_UpdateBatchPredictionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1598
|
+
if (output.statusCode >= 300) {
|
|
1599
|
+
return de_UpdateBatchPredictionCommandError(output, context);
|
|
1600
|
+
}
|
|
1601
|
+
const data = await parseBody(output.body, context);
|
|
1602
|
+
let contents = {};
|
|
1603
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1604
|
+
const response = {
|
|
1605
|
+
$metadata: deserializeMetadata(output),
|
|
1606
|
+
...contents
|
|
1607
|
+
};
|
|
1608
|
+
return response;
|
|
1609
|
+
}, "de_UpdateBatchPredictionCommand");
|
|
1610
|
+
var de_UpdateBatchPredictionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1611
|
+
const parsedOutput = {
|
|
1612
|
+
...output,
|
|
1613
|
+
body: await parseErrorBody(output.body, context)
|
|
1614
|
+
};
|
|
1615
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1616
|
+
switch (errorCode) {
|
|
1617
|
+
case "InternalServerException":
|
|
1618
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1619
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1620
|
+
case "InvalidInputException":
|
|
1621
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1622
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1623
|
+
case "ResourceNotFoundException":
|
|
1624
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1625
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1626
|
+
default:
|
|
1627
|
+
const parsedBody = parsedOutput.body;
|
|
1628
|
+
return throwDefaultError({
|
|
1629
|
+
output,
|
|
1630
|
+
parsedBody,
|
|
1631
|
+
errorCode
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
}, "de_UpdateBatchPredictionCommandError");
|
|
1635
|
+
var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1636
|
+
if (output.statusCode >= 300) {
|
|
1637
|
+
return de_UpdateDataSourceCommandError(output, context);
|
|
1638
|
+
}
|
|
1639
|
+
const data = await parseBody(output.body, context);
|
|
1640
|
+
let contents = {};
|
|
1641
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1642
|
+
const response = {
|
|
1643
|
+
$metadata: deserializeMetadata(output),
|
|
1644
|
+
...contents
|
|
1645
|
+
};
|
|
1646
|
+
return response;
|
|
1647
|
+
}, "de_UpdateDataSourceCommand");
|
|
1648
|
+
var de_UpdateDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1649
|
+
const parsedOutput = {
|
|
1650
|
+
...output,
|
|
1651
|
+
body: await parseErrorBody(output.body, context)
|
|
1652
|
+
};
|
|
1653
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1654
|
+
switch (errorCode) {
|
|
1655
|
+
case "InternalServerException":
|
|
1656
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1657
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1658
|
+
case "InvalidInputException":
|
|
1659
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1660
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1661
|
+
case "ResourceNotFoundException":
|
|
1662
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1663
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1664
|
+
default:
|
|
1665
|
+
const parsedBody = parsedOutput.body;
|
|
1666
|
+
return throwDefaultError({
|
|
1667
|
+
output,
|
|
1668
|
+
parsedBody,
|
|
1669
|
+
errorCode
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
}, "de_UpdateDataSourceCommandError");
|
|
1673
|
+
var de_UpdateEvaluationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1674
|
+
if (output.statusCode >= 300) {
|
|
1675
|
+
return de_UpdateEvaluationCommandError(output, context);
|
|
1676
|
+
}
|
|
1677
|
+
const data = await parseBody(output.body, context);
|
|
1678
|
+
let contents = {};
|
|
1679
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1680
|
+
const response = {
|
|
1681
|
+
$metadata: deserializeMetadata(output),
|
|
1682
|
+
...contents
|
|
1683
|
+
};
|
|
1684
|
+
return response;
|
|
1685
|
+
}, "de_UpdateEvaluationCommand");
|
|
1686
|
+
var de_UpdateEvaluationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1687
|
+
const parsedOutput = {
|
|
1688
|
+
...output,
|
|
1689
|
+
body: await parseErrorBody(output.body, context)
|
|
1690
|
+
};
|
|
1691
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
|
+
switch (errorCode) {
|
|
1693
|
+
case "InternalServerException":
|
|
1694
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1695
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1696
|
+
case "InvalidInputException":
|
|
1697
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1698
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1699
|
+
case "ResourceNotFoundException":
|
|
1700
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1701
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1702
|
+
default:
|
|
1703
|
+
const parsedBody = parsedOutput.body;
|
|
1704
|
+
return throwDefaultError({
|
|
1705
|
+
output,
|
|
1706
|
+
parsedBody,
|
|
1707
|
+
errorCode
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1710
|
+
}, "de_UpdateEvaluationCommandError");
|
|
1711
|
+
var de_UpdateMLModelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1712
|
+
if (output.statusCode >= 300) {
|
|
1713
|
+
return de_UpdateMLModelCommandError(output, context);
|
|
1714
|
+
}
|
|
1715
|
+
const data = await parseBody(output.body, context);
|
|
1716
|
+
let contents = {};
|
|
1717
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1718
|
+
const response = {
|
|
1719
|
+
$metadata: deserializeMetadata(output),
|
|
1720
|
+
...contents
|
|
1721
|
+
};
|
|
1722
|
+
return response;
|
|
1723
|
+
}, "de_UpdateMLModelCommand");
|
|
1724
|
+
var de_UpdateMLModelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1725
|
+
const parsedOutput = {
|
|
1726
|
+
...output,
|
|
1727
|
+
body: await parseErrorBody(output.body, context)
|
|
1728
|
+
};
|
|
1729
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1730
|
+
switch (errorCode) {
|
|
1731
|
+
case "InternalServerException":
|
|
1732
|
+
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1733
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1734
|
+
case "InvalidInputException":
|
|
1735
|
+
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1736
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1737
|
+
case "ResourceNotFoundException":
|
|
1738
|
+
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1739
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1740
|
+
default:
|
|
1741
|
+
const parsedBody = parsedOutput.body;
|
|
1742
|
+
return throwDefaultError({
|
|
1743
|
+
output,
|
|
1744
|
+
parsedBody,
|
|
1745
|
+
errorCode
|
|
1746
|
+
});
|
|
1747
|
+
}
|
|
1748
|
+
}, "de_UpdateMLModelCommandError");
|
|
1749
|
+
var de_IdempotentParameterMismatchExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1750
|
+
const body = parsedOutput.body;
|
|
1751
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1752
|
+
const exception = new IdempotentParameterMismatchException({
|
|
1753
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1754
|
+
...deserialized
|
|
1755
|
+
});
|
|
1756
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1757
|
+
}, "de_IdempotentParameterMismatchExceptionRes");
|
|
1758
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1759
|
+
const body = parsedOutput.body;
|
|
1760
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1761
|
+
const exception = new InternalServerException({
|
|
1762
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1763
|
+
...deserialized
|
|
1764
|
+
});
|
|
1765
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1766
|
+
}, "de_InternalServerExceptionRes");
|
|
1767
|
+
var de_InvalidInputExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1768
|
+
const body = parsedOutput.body;
|
|
1769
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1770
|
+
const exception = new InvalidInputException({
|
|
1771
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1772
|
+
...deserialized
|
|
1773
|
+
});
|
|
1774
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1775
|
+
}, "de_InvalidInputExceptionRes");
|
|
1776
|
+
var de_InvalidTagExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1777
|
+
const body = parsedOutput.body;
|
|
1778
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1779
|
+
const exception = new InvalidTagException({
|
|
1780
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1781
|
+
...deserialized
|
|
1782
|
+
});
|
|
1783
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1784
|
+
}, "de_InvalidTagExceptionRes");
|
|
1785
|
+
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1786
|
+
const body = parsedOutput.body;
|
|
1787
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1788
|
+
const exception = new LimitExceededException({
|
|
1789
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1790
|
+
...deserialized
|
|
1791
|
+
});
|
|
1792
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1793
|
+
}, "de_LimitExceededExceptionRes");
|
|
1794
|
+
var de_PredictorNotMountedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1795
|
+
const body = parsedOutput.body;
|
|
1796
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1797
|
+
const exception = new PredictorNotMountedException({
|
|
1798
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1799
|
+
...deserialized
|
|
1800
|
+
});
|
|
1801
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1802
|
+
}, "de_PredictorNotMountedExceptionRes");
|
|
1803
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1804
|
+
const body = parsedOutput.body;
|
|
1805
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1806
|
+
const exception = new ResourceNotFoundException({
|
|
1807
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1808
|
+
...deserialized
|
|
1809
|
+
});
|
|
1810
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1811
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1812
|
+
var de_TagLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1813
|
+
const body = parsedOutput.body;
|
|
1814
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1815
|
+
const exception = new TagLimitExceededException({
|
|
1816
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1817
|
+
...deserialized
|
|
1818
|
+
});
|
|
1819
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1820
|
+
}, "de_TagLimitExceededExceptionRes");
|
|
1821
|
+
var se_UpdateMLModelInput = /* @__PURE__ */ __name((input, context) => {
|
|
1822
|
+
return (0, import_smithy_client.take)(input, {
|
|
1823
|
+
MLModelId: [],
|
|
1824
|
+
MLModelName: [],
|
|
1825
|
+
ScoreThreshold: import_smithy_client.serializeFloat
|
|
1826
|
+
});
|
|
1827
|
+
}, "se_UpdateMLModelInput");
|
|
1828
|
+
var de_BatchPrediction = /* @__PURE__ */ __name((output, context) => {
|
|
1829
|
+
return (0, import_smithy_client.take)(output, {
|
|
1830
|
+
BatchPredictionDataSourceId: import_smithy_client.expectString,
|
|
1831
|
+
BatchPredictionId: import_smithy_client.expectString,
|
|
1832
|
+
ComputeTime: import_smithy_client.expectLong,
|
|
1833
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1834
|
+
CreatedByIamUser: import_smithy_client.expectString,
|
|
1835
|
+
FinishedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1836
|
+
InputDataLocationS3: import_smithy_client.expectString,
|
|
1837
|
+
InvalidRecordCount: import_smithy_client.expectLong,
|
|
1838
|
+
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1839
|
+
MLModelId: import_smithy_client.expectString,
|
|
1840
|
+
Message: import_smithy_client.expectString,
|
|
1841
|
+
Name: import_smithy_client.expectString,
|
|
1842
|
+
OutputUri: import_smithy_client.expectString,
|
|
1843
|
+
StartedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1844
|
+
Status: import_smithy_client.expectString,
|
|
1845
|
+
TotalRecordCount: import_smithy_client.expectLong
|
|
1846
|
+
});
|
|
1847
|
+
}, "de_BatchPrediction");
|
|
1848
|
+
var de_BatchPredictions = /* @__PURE__ */ __name((output, context) => {
|
|
1849
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1850
|
+
return de_BatchPrediction(entry, context);
|
|
1851
|
+
});
|
|
1852
|
+
return retVal;
|
|
1853
|
+
}, "de_BatchPredictions");
|
|
1854
|
+
var de_CreateRealtimeEndpointOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1855
|
+
return (0, import_smithy_client.take)(output, {
|
|
1856
|
+
MLModelId: import_smithy_client.expectString,
|
|
1857
|
+
RealtimeEndpointInfo: (_) => de_RealtimeEndpointInfo(_, context)
|
|
1858
|
+
});
|
|
1859
|
+
}, "de_CreateRealtimeEndpointOutput");
|
|
1860
|
+
var de_DataSource = /* @__PURE__ */ __name((output, context) => {
|
|
1861
|
+
return (0, import_smithy_client.take)(output, {
|
|
1862
|
+
ComputeStatistics: import_smithy_client.expectBoolean,
|
|
1863
|
+
ComputeTime: import_smithy_client.expectLong,
|
|
1864
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1865
|
+
CreatedByIamUser: import_smithy_client.expectString,
|
|
1866
|
+
DataLocationS3: import_smithy_client.expectString,
|
|
1867
|
+
DataRearrangement: import_smithy_client.expectString,
|
|
1868
|
+
DataSizeInBytes: import_smithy_client.expectLong,
|
|
1869
|
+
DataSourceId: import_smithy_client.expectString,
|
|
1870
|
+
FinishedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1871
|
+
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1872
|
+
Message: import_smithy_client.expectString,
|
|
1873
|
+
Name: import_smithy_client.expectString,
|
|
1874
|
+
NumberOfFiles: import_smithy_client.expectLong,
|
|
1875
|
+
RDSMetadata: import_smithy_client._json,
|
|
1876
|
+
RedshiftMetadata: import_smithy_client._json,
|
|
1877
|
+
RoleARN: import_smithy_client.expectString,
|
|
1878
|
+
StartedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1879
|
+
Status: import_smithy_client.expectString
|
|
1880
|
+
});
|
|
1881
|
+
}, "de_DataSource");
|
|
1882
|
+
var de_DataSources = /* @__PURE__ */ __name((output, context) => {
|
|
1883
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1884
|
+
return de_DataSource(entry, context);
|
|
1885
|
+
});
|
|
1886
|
+
return retVal;
|
|
1887
|
+
}, "de_DataSources");
|
|
1888
|
+
var de_DeleteRealtimeEndpointOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1889
|
+
return (0, import_smithy_client.take)(output, {
|
|
1890
|
+
MLModelId: import_smithy_client.expectString,
|
|
1891
|
+
RealtimeEndpointInfo: (_) => de_RealtimeEndpointInfo(_, context)
|
|
1892
|
+
});
|
|
1893
|
+
}, "de_DeleteRealtimeEndpointOutput");
|
|
1894
|
+
var de_DescribeBatchPredictionsOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1895
|
+
return (0, import_smithy_client.take)(output, {
|
|
1896
|
+
NextToken: import_smithy_client.expectString,
|
|
1897
|
+
Results: (_) => de_BatchPredictions(_, context)
|
|
1898
|
+
});
|
|
1899
|
+
}, "de_DescribeBatchPredictionsOutput");
|
|
1900
|
+
var de_DescribeDataSourcesOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1901
|
+
return (0, import_smithy_client.take)(output, {
|
|
1902
|
+
NextToken: import_smithy_client.expectString,
|
|
1903
|
+
Results: (_) => de_DataSources(_, context)
|
|
1904
|
+
});
|
|
1905
|
+
}, "de_DescribeDataSourcesOutput");
|
|
1906
|
+
var de_DescribeEvaluationsOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1907
|
+
return (0, import_smithy_client.take)(output, {
|
|
1908
|
+
NextToken: import_smithy_client.expectString,
|
|
1909
|
+
Results: (_) => de_Evaluations(_, context)
|
|
1910
|
+
});
|
|
1911
|
+
}, "de_DescribeEvaluationsOutput");
|
|
1912
|
+
var de_DescribeMLModelsOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1913
|
+
return (0, import_smithy_client.take)(output, {
|
|
1914
|
+
NextToken: import_smithy_client.expectString,
|
|
1915
|
+
Results: (_) => de_MLModels(_, context)
|
|
1916
|
+
});
|
|
1917
|
+
}, "de_DescribeMLModelsOutput");
|
|
1918
|
+
var de_Evaluation = /* @__PURE__ */ __name((output, context) => {
|
|
1919
|
+
return (0, import_smithy_client.take)(output, {
|
|
1920
|
+
ComputeTime: import_smithy_client.expectLong,
|
|
1921
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1922
|
+
CreatedByIamUser: import_smithy_client.expectString,
|
|
1923
|
+
EvaluationDataSourceId: import_smithy_client.expectString,
|
|
1924
|
+
EvaluationId: import_smithy_client.expectString,
|
|
1925
|
+
FinishedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1926
|
+
InputDataLocationS3: import_smithy_client.expectString,
|
|
1927
|
+
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1928
|
+
MLModelId: import_smithy_client.expectString,
|
|
1929
|
+
Message: import_smithy_client.expectString,
|
|
1930
|
+
Name: import_smithy_client.expectString,
|
|
1931
|
+
PerformanceMetrics: import_smithy_client._json,
|
|
1932
|
+
StartedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1933
|
+
Status: import_smithy_client.expectString
|
|
1934
|
+
});
|
|
1935
|
+
}, "de_Evaluation");
|
|
1936
|
+
var de_Evaluations = /* @__PURE__ */ __name((output, context) => {
|
|
1937
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1938
|
+
return de_Evaluation(entry, context);
|
|
1939
|
+
});
|
|
1940
|
+
return retVal;
|
|
1941
|
+
}, "de_Evaluations");
|
|
1942
|
+
var de_GetBatchPredictionOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1943
|
+
return (0, import_smithy_client.take)(output, {
|
|
1944
|
+
BatchPredictionDataSourceId: import_smithy_client.expectString,
|
|
1945
|
+
BatchPredictionId: import_smithy_client.expectString,
|
|
1946
|
+
ComputeTime: import_smithy_client.expectLong,
|
|
1947
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1948
|
+
CreatedByIamUser: import_smithy_client.expectString,
|
|
1949
|
+
FinishedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1950
|
+
InputDataLocationS3: import_smithy_client.expectString,
|
|
1951
|
+
InvalidRecordCount: import_smithy_client.expectLong,
|
|
1952
|
+
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1953
|
+
LogUri: import_smithy_client.expectString,
|
|
1954
|
+
MLModelId: import_smithy_client.expectString,
|
|
1955
|
+
Message: import_smithy_client.expectString,
|
|
1956
|
+
Name: import_smithy_client.expectString,
|
|
1957
|
+
OutputUri: import_smithy_client.expectString,
|
|
1958
|
+
StartedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1959
|
+
Status: import_smithy_client.expectString,
|
|
1960
|
+
TotalRecordCount: import_smithy_client.expectLong
|
|
1961
|
+
});
|
|
1962
|
+
}, "de_GetBatchPredictionOutput");
|
|
1963
|
+
var de_GetDataSourceOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1964
|
+
return (0, import_smithy_client.take)(output, {
|
|
1965
|
+
ComputeStatistics: import_smithy_client.expectBoolean,
|
|
1966
|
+
ComputeTime: import_smithy_client.expectLong,
|
|
1967
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1968
|
+
CreatedByIamUser: import_smithy_client.expectString,
|
|
1969
|
+
DataLocationS3: import_smithy_client.expectString,
|
|
1970
|
+
DataRearrangement: import_smithy_client.expectString,
|
|
1971
|
+
DataSizeInBytes: import_smithy_client.expectLong,
|
|
1972
|
+
DataSourceId: import_smithy_client.expectString,
|
|
1973
|
+
DataSourceSchema: import_smithy_client.expectString,
|
|
1974
|
+
FinishedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1975
|
+
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1976
|
+
LogUri: import_smithy_client.expectString,
|
|
1977
|
+
Message: import_smithy_client.expectString,
|
|
1978
|
+
Name: import_smithy_client.expectString,
|
|
1979
|
+
NumberOfFiles: import_smithy_client.expectLong,
|
|
1980
|
+
RDSMetadata: import_smithy_client._json,
|
|
1981
|
+
RedshiftMetadata: import_smithy_client._json,
|
|
1982
|
+
RoleARN: import_smithy_client.expectString,
|
|
1983
|
+
StartedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1984
|
+
Status: import_smithy_client.expectString
|
|
1985
|
+
});
|
|
1986
|
+
}, "de_GetDataSourceOutput");
|
|
1987
|
+
var de_GetEvaluationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1988
|
+
return (0, import_smithy_client.take)(output, {
|
|
1989
|
+
ComputeTime: import_smithy_client.expectLong,
|
|
1990
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1991
|
+
CreatedByIamUser: import_smithy_client.expectString,
|
|
1992
|
+
EvaluationDataSourceId: import_smithy_client.expectString,
|
|
1993
|
+
EvaluationId: import_smithy_client.expectString,
|
|
1994
|
+
FinishedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1995
|
+
InputDataLocationS3: import_smithy_client.expectString,
|
|
1996
|
+
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1997
|
+
LogUri: import_smithy_client.expectString,
|
|
1998
|
+
MLModelId: import_smithy_client.expectString,
|
|
1999
|
+
Message: import_smithy_client.expectString,
|
|
2000
|
+
Name: import_smithy_client.expectString,
|
|
2001
|
+
PerformanceMetrics: import_smithy_client._json,
|
|
2002
|
+
StartedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2003
|
+
Status: import_smithy_client.expectString
|
|
2004
|
+
});
|
|
2005
|
+
}, "de_GetEvaluationOutput");
|
|
2006
|
+
var de_GetMLModelOutput = /* @__PURE__ */ __name((output, context) => {
|
|
2007
|
+
return (0, import_smithy_client.take)(output, {
|
|
2008
|
+
ComputeTime: import_smithy_client.expectLong,
|
|
2009
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2010
|
+
CreatedByIamUser: import_smithy_client.expectString,
|
|
2011
|
+
EndpointInfo: (_) => de_RealtimeEndpointInfo(_, context),
|
|
2012
|
+
FinishedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2013
|
+
InputDataLocationS3: import_smithy_client.expectString,
|
|
2014
|
+
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2015
|
+
LogUri: import_smithy_client.expectString,
|
|
2016
|
+
MLModelId: import_smithy_client.expectString,
|
|
2017
|
+
MLModelType: import_smithy_client.expectString,
|
|
2018
|
+
Message: import_smithy_client.expectString,
|
|
2019
|
+
Name: import_smithy_client.expectString,
|
|
2020
|
+
Recipe: import_smithy_client.expectString,
|
|
2021
|
+
Schema: import_smithy_client.expectString,
|
|
2022
|
+
ScoreThreshold: import_smithy_client.limitedParseFloat32,
|
|
2023
|
+
ScoreThresholdLastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2024
|
+
SizeInBytes: import_smithy_client.expectLong,
|
|
2025
|
+
StartedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2026
|
+
Status: import_smithy_client.expectString,
|
|
2027
|
+
TrainingDataSourceId: import_smithy_client.expectString,
|
|
2028
|
+
TrainingParameters: import_smithy_client._json
|
|
2029
|
+
});
|
|
2030
|
+
}, "de_GetMLModelOutput");
|
|
2031
|
+
var de_MLModel = /* @__PURE__ */ __name((output, context) => {
|
|
2032
|
+
return (0, import_smithy_client.take)(output, {
|
|
2033
|
+
Algorithm: import_smithy_client.expectString,
|
|
2034
|
+
ComputeTime: import_smithy_client.expectLong,
|
|
2035
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2036
|
+
CreatedByIamUser: import_smithy_client.expectString,
|
|
2037
|
+
EndpointInfo: (_) => de_RealtimeEndpointInfo(_, context),
|
|
2038
|
+
FinishedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2039
|
+
InputDataLocationS3: import_smithy_client.expectString,
|
|
2040
|
+
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2041
|
+
MLModelId: import_smithy_client.expectString,
|
|
2042
|
+
MLModelType: import_smithy_client.expectString,
|
|
2043
|
+
Message: import_smithy_client.expectString,
|
|
2044
|
+
Name: import_smithy_client.expectString,
|
|
2045
|
+
ScoreThreshold: import_smithy_client.limitedParseFloat32,
|
|
2046
|
+
ScoreThresholdLastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2047
|
+
SizeInBytes: import_smithy_client.expectLong,
|
|
2048
|
+
StartedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2049
|
+
Status: import_smithy_client.expectString,
|
|
2050
|
+
TrainingDataSourceId: import_smithy_client.expectString,
|
|
2051
|
+
TrainingParameters: import_smithy_client._json
|
|
2052
|
+
});
|
|
2053
|
+
}, "de_MLModel");
|
|
2054
|
+
var de_MLModels = /* @__PURE__ */ __name((output, context) => {
|
|
2055
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2056
|
+
return de_MLModel(entry, context);
|
|
2057
|
+
});
|
|
2058
|
+
return retVal;
|
|
2059
|
+
}, "de_MLModels");
|
|
2060
|
+
var de_Prediction = /* @__PURE__ */ __name((output, context) => {
|
|
2061
|
+
return (0, import_smithy_client.take)(output, {
|
|
2062
|
+
details: import_smithy_client._json,
|
|
2063
|
+
predictedLabel: import_smithy_client.expectString,
|
|
2064
|
+
predictedScores: (_) => de_ScoreValuePerLabelMap(_, context),
|
|
2065
|
+
predictedValue: import_smithy_client.limitedParseFloat32
|
|
2066
|
+
});
|
|
2067
|
+
}, "de_Prediction");
|
|
2068
|
+
var de_PredictOutput = /* @__PURE__ */ __name((output, context) => {
|
|
2069
|
+
return (0, import_smithy_client.take)(output, {
|
|
2070
|
+
Prediction: (_) => de_Prediction(_, context)
|
|
2071
|
+
});
|
|
2072
|
+
}, "de_PredictOutput");
|
|
2073
|
+
var de_RealtimeEndpointInfo = /* @__PURE__ */ __name((output, context) => {
|
|
2074
|
+
return (0, import_smithy_client.take)(output, {
|
|
2075
|
+
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2076
|
+
EndpointStatus: import_smithy_client.expectString,
|
|
2077
|
+
EndpointUrl: import_smithy_client.expectString,
|
|
2078
|
+
PeakRequestsPerSecond: import_smithy_client.expectInt32
|
|
2079
|
+
});
|
|
2080
|
+
}, "de_RealtimeEndpointInfo");
|
|
2081
|
+
var de_ScoreValuePerLabelMap = /* @__PURE__ */ __name((output, context) => {
|
|
2082
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2083
|
+
if (value === null) {
|
|
2084
|
+
return acc;
|
|
2085
|
+
}
|
|
2086
|
+
acc[key] = (0, import_smithy_client.limitedParseFloat32)(value);
|
|
2087
|
+
return acc;
|
|
2088
|
+
}, {});
|
|
2089
|
+
}, "de_ScoreValuePerLabelMap");
|
|
2090
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
2091
|
+
httpStatusCode: output.statusCode,
|
|
2092
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2093
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2094
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
2095
|
+
}), "deserializeMetadata");
|
|
2096
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2097
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(MachineLearningServiceException);
|
|
2098
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2099
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2100
|
+
const contents = {
|
|
2101
|
+
protocol,
|
|
2102
|
+
hostname,
|
|
2103
|
+
port,
|
|
2104
|
+
method: "POST",
|
|
2105
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2106
|
+
headers
|
|
2107
|
+
};
|
|
2108
|
+
if (resolvedHostname !== void 0) {
|
|
2109
|
+
contents.hostname = resolvedHostname;
|
|
2110
|
+
}
|
|
2111
|
+
if (body !== void 0) {
|
|
2112
|
+
contents.body = body;
|
|
2113
|
+
}
|
|
2114
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
2115
|
+
}, "buildHttpRpcRequest");
|
|
2116
|
+
function sharedHeaders(operation) {
|
|
2117
|
+
return {
|
|
2118
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2119
|
+
"x-amz-target": `AmazonML_20141212.${operation}`
|
|
2120
|
+
};
|
|
2121
|
+
}
|
|
2122
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
2123
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2124
|
+
if (encoded.length) {
|
|
2125
|
+
return JSON.parse(encoded);
|
|
2126
|
+
}
|
|
2127
|
+
return {};
|
|
2128
|
+
}), "parseBody");
|
|
2129
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2130
|
+
const value = await parseBody(errorBody, context);
|
|
2131
|
+
value.message = value.message ?? value.Message;
|
|
2132
|
+
return value;
|
|
2133
|
+
}, "parseErrorBody");
|
|
2134
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2135
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2136
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2137
|
+
let cleanValue = rawValue;
|
|
2138
|
+
if (typeof cleanValue === "number") {
|
|
2139
|
+
cleanValue = cleanValue.toString();
|
|
2140
|
+
}
|
|
2141
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
2142
|
+
cleanValue = cleanValue.split(",")[0];
|
|
2143
|
+
}
|
|
2144
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2145
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2146
|
+
}
|
|
2147
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2148
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2149
|
+
}
|
|
2150
|
+
return cleanValue;
|
|
2151
|
+
}, "sanitizeErrorCode");
|
|
2152
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2153
|
+
if (headerKey !== void 0) {
|
|
2154
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2155
|
+
}
|
|
2156
|
+
if (data.code !== void 0) {
|
|
2157
|
+
return sanitizeErrorCode(data.code);
|
|
2158
|
+
}
|
|
2159
|
+
if (data["__type"] !== void 0) {
|
|
2160
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2161
|
+
}
|
|
2162
|
+
}, "loadRestJsonErrorCode");
|
|
2163
|
+
|
|
2164
|
+
// src/commands/AddTagsCommand.ts
|
|
2165
|
+
var _AddTagsCommand = class _AddTagsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2166
|
+
...commonParams
|
|
2167
|
+
}).m(function(Command, cs, config, o) {
|
|
2168
|
+
return [
|
|
2169
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2170
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2171
|
+
];
|
|
2172
|
+
}).s("AmazonML_20141212", "AddTags", {}).n("MachineLearningClient", "AddTagsCommand").f(void 0, void 0).ser(se_AddTagsCommand).de(de_AddTagsCommand).build() {
|
|
2173
|
+
};
|
|
2174
|
+
__name(_AddTagsCommand, "AddTagsCommand");
|
|
2175
|
+
var AddTagsCommand = _AddTagsCommand;
|
|
2176
|
+
|
|
2177
|
+
// src/commands/CreateBatchPredictionCommand.ts
|
|
2178
|
+
|
|
2179
|
+
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
var _CreateBatchPredictionCommand = class _CreateBatchPredictionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2183
|
+
...commonParams
|
|
2184
|
+
}).m(function(Command, cs, config, o) {
|
|
2185
|
+
return [
|
|
2186
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2187
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2188
|
+
];
|
|
2189
|
+
}).s("AmazonML_20141212", "CreateBatchPrediction", {}).n("MachineLearningClient", "CreateBatchPredictionCommand").f(void 0, void 0).ser(se_CreateBatchPredictionCommand).de(de_CreateBatchPredictionCommand).build() {
|
|
2190
|
+
};
|
|
2191
|
+
__name(_CreateBatchPredictionCommand, "CreateBatchPredictionCommand");
|
|
2192
|
+
var CreateBatchPredictionCommand = _CreateBatchPredictionCommand;
|
|
2193
|
+
|
|
2194
|
+
// src/commands/CreateDataSourceFromRDSCommand.ts
|
|
2195
|
+
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
var _CreateDataSourceFromRDSCommand = class _CreateDataSourceFromRDSCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2200
|
+
...commonParams
|
|
2201
|
+
}).m(function(Command, cs, config, o) {
|
|
2202
|
+
return [
|
|
2203
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2204
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2205
|
+
];
|
|
2206
|
+
}).s("AmazonML_20141212", "CreateDataSourceFromRDS", {}).n("MachineLearningClient", "CreateDataSourceFromRDSCommand").f(CreateDataSourceFromRDSInputFilterSensitiveLog, void 0).ser(se_CreateDataSourceFromRDSCommand).de(de_CreateDataSourceFromRDSCommand).build() {
|
|
2207
|
+
};
|
|
2208
|
+
__name(_CreateDataSourceFromRDSCommand, "CreateDataSourceFromRDSCommand");
|
|
2209
|
+
var CreateDataSourceFromRDSCommand = _CreateDataSourceFromRDSCommand;
|
|
2210
|
+
|
|
2211
|
+
// src/commands/CreateDataSourceFromRedshiftCommand.ts
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
|
|
2215
|
+
|
|
2216
|
+
var _CreateDataSourceFromRedshiftCommand = class _CreateDataSourceFromRedshiftCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2217
|
+
...commonParams
|
|
2218
|
+
}).m(function(Command, cs, config, o) {
|
|
2219
|
+
return [
|
|
2220
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2221
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2222
|
+
];
|
|
2223
|
+
}).s("AmazonML_20141212", "CreateDataSourceFromRedshift", {}).n("MachineLearningClient", "CreateDataSourceFromRedshiftCommand").f(CreateDataSourceFromRedshiftInputFilterSensitiveLog, void 0).ser(se_CreateDataSourceFromRedshiftCommand).de(de_CreateDataSourceFromRedshiftCommand).build() {
|
|
2224
|
+
};
|
|
2225
|
+
__name(_CreateDataSourceFromRedshiftCommand, "CreateDataSourceFromRedshiftCommand");
|
|
2226
|
+
var CreateDataSourceFromRedshiftCommand = _CreateDataSourceFromRedshiftCommand;
|
|
2227
|
+
|
|
2228
|
+
// src/commands/CreateDataSourceFromS3Command.ts
|
|
2229
|
+
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
|
|
2233
|
+
var _CreateDataSourceFromS3Command = class _CreateDataSourceFromS3Command extends import_smithy_client.Command.classBuilder().ep({
|
|
2234
|
+
...commonParams
|
|
2235
|
+
}).m(function(Command, cs, config, o) {
|
|
2236
|
+
return [
|
|
2237
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2238
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2239
|
+
];
|
|
2240
|
+
}).s("AmazonML_20141212", "CreateDataSourceFromS3", {}).n("MachineLearningClient", "CreateDataSourceFromS3Command").f(void 0, void 0).ser(se_CreateDataSourceFromS3Command).de(de_CreateDataSourceFromS3Command).build() {
|
|
2241
|
+
};
|
|
2242
|
+
__name(_CreateDataSourceFromS3Command, "CreateDataSourceFromS3Command");
|
|
2243
|
+
var CreateDataSourceFromS3Command = _CreateDataSourceFromS3Command;
|
|
2244
|
+
|
|
2245
|
+
// src/commands/CreateEvaluationCommand.ts
|
|
2246
|
+
|
|
2247
|
+
|
|
2248
|
+
|
|
2249
|
+
|
|
2250
|
+
var _CreateEvaluationCommand = class _CreateEvaluationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2251
|
+
...commonParams
|
|
2252
|
+
}).m(function(Command, cs, config, o) {
|
|
2253
|
+
return [
|
|
2254
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2255
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2256
|
+
];
|
|
2257
|
+
}).s("AmazonML_20141212", "CreateEvaluation", {}).n("MachineLearningClient", "CreateEvaluationCommand").f(void 0, void 0).ser(se_CreateEvaluationCommand).de(de_CreateEvaluationCommand).build() {
|
|
2258
|
+
};
|
|
2259
|
+
__name(_CreateEvaluationCommand, "CreateEvaluationCommand");
|
|
2260
|
+
var CreateEvaluationCommand = _CreateEvaluationCommand;
|
|
2261
|
+
|
|
2262
|
+
// src/commands/CreateMLModelCommand.ts
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
|
|
2267
|
+
var _CreateMLModelCommand = class _CreateMLModelCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2268
|
+
...commonParams
|
|
2269
|
+
}).m(function(Command, cs, config, o) {
|
|
2270
|
+
return [
|
|
2271
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2272
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2273
|
+
];
|
|
2274
|
+
}).s("AmazonML_20141212", "CreateMLModel", {}).n("MachineLearningClient", "CreateMLModelCommand").f(void 0, void 0).ser(se_CreateMLModelCommand).de(de_CreateMLModelCommand).build() {
|
|
2275
|
+
};
|
|
2276
|
+
__name(_CreateMLModelCommand, "CreateMLModelCommand");
|
|
2277
|
+
var CreateMLModelCommand = _CreateMLModelCommand;
|
|
2278
|
+
|
|
2279
|
+
// src/commands/CreateRealtimeEndpointCommand.ts
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
|
|
2283
|
+
|
|
2284
|
+
var _CreateRealtimeEndpointCommand = class _CreateRealtimeEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2285
|
+
...commonParams
|
|
2286
|
+
}).m(function(Command, cs, config, o) {
|
|
2287
|
+
return [
|
|
2288
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2289
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2290
|
+
];
|
|
2291
|
+
}).s("AmazonML_20141212", "CreateRealtimeEndpoint", {}).n("MachineLearningClient", "CreateRealtimeEndpointCommand").f(void 0, void 0).ser(se_CreateRealtimeEndpointCommand).de(de_CreateRealtimeEndpointCommand).build() {
|
|
2292
|
+
};
|
|
2293
|
+
__name(_CreateRealtimeEndpointCommand, "CreateRealtimeEndpointCommand");
|
|
2294
|
+
var CreateRealtimeEndpointCommand = _CreateRealtimeEndpointCommand;
|
|
2295
|
+
|
|
2296
|
+
// src/commands/DeleteBatchPredictionCommand.ts
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
|
|
2300
|
+
|
|
2301
|
+
var _DeleteBatchPredictionCommand = class _DeleteBatchPredictionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2302
|
+
...commonParams
|
|
2303
|
+
}).m(function(Command, cs, config, o) {
|
|
2304
|
+
return [
|
|
2305
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2306
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2307
|
+
];
|
|
2308
|
+
}).s("AmazonML_20141212", "DeleteBatchPrediction", {}).n("MachineLearningClient", "DeleteBatchPredictionCommand").f(void 0, void 0).ser(se_DeleteBatchPredictionCommand).de(de_DeleteBatchPredictionCommand).build() {
|
|
2309
|
+
};
|
|
2310
|
+
__name(_DeleteBatchPredictionCommand, "DeleteBatchPredictionCommand");
|
|
2311
|
+
var DeleteBatchPredictionCommand = _DeleteBatchPredictionCommand;
|
|
2312
|
+
|
|
2313
|
+
// src/commands/DeleteDataSourceCommand.ts
|
|
2314
|
+
|
|
2315
|
+
|
|
2316
|
+
|
|
2317
|
+
|
|
2318
|
+
var _DeleteDataSourceCommand = class _DeleteDataSourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2319
|
+
...commonParams
|
|
2320
|
+
}).m(function(Command, cs, config, o) {
|
|
2321
|
+
return [
|
|
2322
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2323
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2324
|
+
];
|
|
2325
|
+
}).s("AmazonML_20141212", "DeleteDataSource", {}).n("MachineLearningClient", "DeleteDataSourceCommand").f(void 0, void 0).ser(se_DeleteDataSourceCommand).de(de_DeleteDataSourceCommand).build() {
|
|
2326
|
+
};
|
|
2327
|
+
__name(_DeleteDataSourceCommand, "DeleteDataSourceCommand");
|
|
2328
|
+
var DeleteDataSourceCommand = _DeleteDataSourceCommand;
|
|
2329
|
+
|
|
2330
|
+
// src/commands/DeleteEvaluationCommand.ts
|
|
2331
|
+
|
|
2332
|
+
|
|
2333
|
+
|
|
2334
|
+
|
|
2335
|
+
var _DeleteEvaluationCommand = class _DeleteEvaluationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2336
|
+
...commonParams
|
|
2337
|
+
}).m(function(Command, cs, config, o) {
|
|
2338
|
+
return [
|
|
2339
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2340
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2341
|
+
];
|
|
2342
|
+
}).s("AmazonML_20141212", "DeleteEvaluation", {}).n("MachineLearningClient", "DeleteEvaluationCommand").f(void 0, void 0).ser(se_DeleteEvaluationCommand).de(de_DeleteEvaluationCommand).build() {
|
|
2343
|
+
};
|
|
2344
|
+
__name(_DeleteEvaluationCommand, "DeleteEvaluationCommand");
|
|
2345
|
+
var DeleteEvaluationCommand = _DeleteEvaluationCommand;
|
|
2346
|
+
|
|
2347
|
+
// src/commands/DeleteMLModelCommand.ts
|
|
2348
|
+
|
|
2349
|
+
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
var _DeleteMLModelCommand = class _DeleteMLModelCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2353
|
+
...commonParams
|
|
2354
|
+
}).m(function(Command, cs, config, o) {
|
|
2355
|
+
return [
|
|
2356
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2357
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2358
|
+
];
|
|
2359
|
+
}).s("AmazonML_20141212", "DeleteMLModel", {}).n("MachineLearningClient", "DeleteMLModelCommand").f(void 0, void 0).ser(se_DeleteMLModelCommand).de(de_DeleteMLModelCommand).build() {
|
|
2360
|
+
};
|
|
2361
|
+
__name(_DeleteMLModelCommand, "DeleteMLModelCommand");
|
|
2362
|
+
var DeleteMLModelCommand = _DeleteMLModelCommand;
|
|
2363
|
+
|
|
2364
|
+
// src/commands/DeleteRealtimeEndpointCommand.ts
|
|
2365
|
+
|
|
2366
|
+
|
|
2367
|
+
|
|
2368
|
+
|
|
2369
|
+
var _DeleteRealtimeEndpointCommand = class _DeleteRealtimeEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2370
|
+
...commonParams
|
|
2371
|
+
}).m(function(Command, cs, config, o) {
|
|
2372
|
+
return [
|
|
2373
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2374
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2375
|
+
];
|
|
2376
|
+
}).s("AmazonML_20141212", "DeleteRealtimeEndpoint", {}).n("MachineLearningClient", "DeleteRealtimeEndpointCommand").f(void 0, void 0).ser(se_DeleteRealtimeEndpointCommand).de(de_DeleteRealtimeEndpointCommand).build() {
|
|
2377
|
+
};
|
|
2378
|
+
__name(_DeleteRealtimeEndpointCommand, "DeleteRealtimeEndpointCommand");
|
|
2379
|
+
var DeleteRealtimeEndpointCommand = _DeleteRealtimeEndpointCommand;
|
|
2380
|
+
|
|
2381
|
+
// src/commands/DeleteTagsCommand.ts
|
|
2382
|
+
|
|
2383
|
+
|
|
2384
|
+
|
|
2385
|
+
|
|
2386
|
+
var _DeleteTagsCommand = class _DeleteTagsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2387
|
+
...commonParams
|
|
2388
|
+
}).m(function(Command, cs, config, o) {
|
|
2389
|
+
return [
|
|
2390
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2391
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2392
|
+
];
|
|
2393
|
+
}).s("AmazonML_20141212", "DeleteTags", {}).n("MachineLearningClient", "DeleteTagsCommand").f(void 0, void 0).ser(se_DeleteTagsCommand).de(de_DeleteTagsCommand).build() {
|
|
2394
|
+
};
|
|
2395
|
+
__name(_DeleteTagsCommand, "DeleteTagsCommand");
|
|
2396
|
+
var DeleteTagsCommand = _DeleteTagsCommand;
|
|
2397
|
+
|
|
2398
|
+
// src/commands/DescribeBatchPredictionsCommand.ts
|
|
2399
|
+
|
|
2400
|
+
|
|
2401
|
+
|
|
2402
|
+
|
|
2403
|
+
var _DescribeBatchPredictionsCommand = class _DescribeBatchPredictionsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2404
|
+
...commonParams
|
|
2405
|
+
}).m(function(Command, cs, config, o) {
|
|
2406
|
+
return [
|
|
2407
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2408
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2409
|
+
];
|
|
2410
|
+
}).s("AmazonML_20141212", "DescribeBatchPredictions", {}).n("MachineLearningClient", "DescribeBatchPredictionsCommand").f(void 0, void 0).ser(se_DescribeBatchPredictionsCommand).de(de_DescribeBatchPredictionsCommand).build() {
|
|
2411
|
+
};
|
|
2412
|
+
__name(_DescribeBatchPredictionsCommand, "DescribeBatchPredictionsCommand");
|
|
2413
|
+
var DescribeBatchPredictionsCommand = _DescribeBatchPredictionsCommand;
|
|
2414
|
+
|
|
2415
|
+
// src/commands/DescribeDataSourcesCommand.ts
|
|
2416
|
+
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
|
|
2420
|
+
var _DescribeDataSourcesCommand = class _DescribeDataSourcesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2421
|
+
...commonParams
|
|
2422
|
+
}).m(function(Command, cs, config, o) {
|
|
2423
|
+
return [
|
|
2424
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2425
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2426
|
+
];
|
|
2427
|
+
}).s("AmazonML_20141212", "DescribeDataSources", {}).n("MachineLearningClient", "DescribeDataSourcesCommand").f(void 0, void 0).ser(se_DescribeDataSourcesCommand).de(de_DescribeDataSourcesCommand).build() {
|
|
2428
|
+
};
|
|
2429
|
+
__name(_DescribeDataSourcesCommand, "DescribeDataSourcesCommand");
|
|
2430
|
+
var DescribeDataSourcesCommand = _DescribeDataSourcesCommand;
|
|
2431
|
+
|
|
2432
|
+
// src/commands/DescribeEvaluationsCommand.ts
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
|
|
2437
|
+
var _DescribeEvaluationsCommand = class _DescribeEvaluationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2438
|
+
...commonParams
|
|
2439
|
+
}).m(function(Command, cs, config, o) {
|
|
2440
|
+
return [
|
|
2441
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2442
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2443
|
+
];
|
|
2444
|
+
}).s("AmazonML_20141212", "DescribeEvaluations", {}).n("MachineLearningClient", "DescribeEvaluationsCommand").f(void 0, void 0).ser(se_DescribeEvaluationsCommand).de(de_DescribeEvaluationsCommand).build() {
|
|
2445
|
+
};
|
|
2446
|
+
__name(_DescribeEvaluationsCommand, "DescribeEvaluationsCommand");
|
|
2447
|
+
var DescribeEvaluationsCommand = _DescribeEvaluationsCommand;
|
|
2448
|
+
|
|
2449
|
+
// src/commands/DescribeMLModelsCommand.ts
|
|
2450
|
+
|
|
2451
|
+
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
var _DescribeMLModelsCommand = class _DescribeMLModelsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2455
|
+
...commonParams
|
|
2456
|
+
}).m(function(Command, cs, config, o) {
|
|
2457
|
+
return [
|
|
2458
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2459
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2460
|
+
];
|
|
2461
|
+
}).s("AmazonML_20141212", "DescribeMLModels", {}).n("MachineLearningClient", "DescribeMLModelsCommand").f(void 0, void 0).ser(se_DescribeMLModelsCommand).de(de_DescribeMLModelsCommand).build() {
|
|
2462
|
+
};
|
|
2463
|
+
__name(_DescribeMLModelsCommand, "DescribeMLModelsCommand");
|
|
2464
|
+
var DescribeMLModelsCommand = _DescribeMLModelsCommand;
|
|
2465
|
+
|
|
2466
|
+
// src/commands/DescribeTagsCommand.ts
|
|
2467
|
+
|
|
2468
|
+
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
var _DescribeTagsCommand = class _DescribeTagsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2472
|
+
...commonParams
|
|
2473
|
+
}).m(function(Command, cs, config, o) {
|
|
2474
|
+
return [
|
|
2475
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2476
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2477
|
+
];
|
|
2478
|
+
}).s("AmazonML_20141212", "DescribeTags", {}).n("MachineLearningClient", "DescribeTagsCommand").f(void 0, void 0).ser(se_DescribeTagsCommand).de(de_DescribeTagsCommand).build() {
|
|
2479
|
+
};
|
|
2480
|
+
__name(_DescribeTagsCommand, "DescribeTagsCommand");
|
|
2481
|
+
var DescribeTagsCommand = _DescribeTagsCommand;
|
|
2482
|
+
|
|
2483
|
+
// src/commands/GetBatchPredictionCommand.ts
|
|
2484
|
+
|
|
2485
|
+
|
|
2486
|
+
|
|
2487
|
+
|
|
2488
|
+
var _GetBatchPredictionCommand = class _GetBatchPredictionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2489
|
+
...commonParams
|
|
2490
|
+
}).m(function(Command, cs, config, o) {
|
|
2491
|
+
return [
|
|
2492
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2493
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2494
|
+
];
|
|
2495
|
+
}).s("AmazonML_20141212", "GetBatchPrediction", {}).n("MachineLearningClient", "GetBatchPredictionCommand").f(void 0, void 0).ser(se_GetBatchPredictionCommand).de(de_GetBatchPredictionCommand).build() {
|
|
2496
|
+
};
|
|
2497
|
+
__name(_GetBatchPredictionCommand, "GetBatchPredictionCommand");
|
|
2498
|
+
var GetBatchPredictionCommand = _GetBatchPredictionCommand;
|
|
2499
|
+
|
|
2500
|
+
// src/commands/GetDataSourceCommand.ts
|
|
2501
|
+
|
|
2502
|
+
|
|
2503
|
+
|
|
2504
|
+
|
|
2505
|
+
var _GetDataSourceCommand = class _GetDataSourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2506
|
+
...commonParams
|
|
2507
|
+
}).m(function(Command, cs, config, o) {
|
|
2508
|
+
return [
|
|
2509
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2510
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2511
|
+
];
|
|
2512
|
+
}).s("AmazonML_20141212", "GetDataSource", {}).n("MachineLearningClient", "GetDataSourceCommand").f(void 0, void 0).ser(se_GetDataSourceCommand).de(de_GetDataSourceCommand).build() {
|
|
2513
|
+
};
|
|
2514
|
+
__name(_GetDataSourceCommand, "GetDataSourceCommand");
|
|
2515
|
+
var GetDataSourceCommand = _GetDataSourceCommand;
|
|
2516
|
+
|
|
2517
|
+
// src/commands/GetEvaluationCommand.ts
|
|
2518
|
+
|
|
2519
|
+
|
|
2520
|
+
|
|
2521
|
+
|
|
2522
|
+
var _GetEvaluationCommand = class _GetEvaluationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2523
|
+
...commonParams
|
|
2524
|
+
}).m(function(Command, cs, config, o) {
|
|
2525
|
+
return [
|
|
2526
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2527
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2528
|
+
];
|
|
2529
|
+
}).s("AmazonML_20141212", "GetEvaluation", {}).n("MachineLearningClient", "GetEvaluationCommand").f(void 0, void 0).ser(se_GetEvaluationCommand).de(de_GetEvaluationCommand).build() {
|
|
2530
|
+
};
|
|
2531
|
+
__name(_GetEvaluationCommand, "GetEvaluationCommand");
|
|
2532
|
+
var GetEvaluationCommand = _GetEvaluationCommand;
|
|
2533
|
+
|
|
2534
|
+
// src/commands/GetMLModelCommand.ts
|
|
2535
|
+
|
|
2536
|
+
|
|
2537
|
+
|
|
2538
|
+
|
|
2539
|
+
var _GetMLModelCommand = class _GetMLModelCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2540
|
+
...commonParams
|
|
2541
|
+
}).m(function(Command, cs, config, o) {
|
|
2542
|
+
return [
|
|
2543
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2544
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2545
|
+
];
|
|
2546
|
+
}).s("AmazonML_20141212", "GetMLModel", {}).n("MachineLearningClient", "GetMLModelCommand").f(void 0, void 0).ser(se_GetMLModelCommand).de(de_GetMLModelCommand).build() {
|
|
2547
|
+
};
|
|
2548
|
+
__name(_GetMLModelCommand, "GetMLModelCommand");
|
|
2549
|
+
var GetMLModelCommand = _GetMLModelCommand;
|
|
2550
|
+
|
|
2551
|
+
// src/commands/PredictCommand.ts
|
|
2552
|
+
var import_middleware_sdk_machinelearning = require("@aws-sdk/middleware-sdk-machinelearning");
|
|
2553
|
+
|
|
2554
|
+
|
|
2555
|
+
|
|
2556
|
+
|
|
2557
|
+
var _PredictCommand = class _PredictCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2558
|
+
...commonParams
|
|
2559
|
+
}).m(function(Command, cs, config, o) {
|
|
2560
|
+
return [
|
|
2561
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2562
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
2563
|
+
(0, import_middleware_sdk_machinelearning.getPredictEndpointPlugin)(config)
|
|
2564
|
+
];
|
|
2565
|
+
}).s("AmazonML_20141212", "Predict", {}).n("MachineLearningClient", "PredictCommand").f(void 0, void 0).ser(se_PredictCommand).de(de_PredictCommand).build() {
|
|
2566
|
+
};
|
|
2567
|
+
__name(_PredictCommand, "PredictCommand");
|
|
2568
|
+
var PredictCommand = _PredictCommand;
|
|
2569
|
+
|
|
2570
|
+
// src/commands/UpdateBatchPredictionCommand.ts
|
|
2571
|
+
|
|
2572
|
+
|
|
2573
|
+
|
|
2574
|
+
|
|
2575
|
+
var _UpdateBatchPredictionCommand = class _UpdateBatchPredictionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2576
|
+
...commonParams
|
|
2577
|
+
}).m(function(Command, cs, config, o) {
|
|
2578
|
+
return [
|
|
2579
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2580
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2581
|
+
];
|
|
2582
|
+
}).s("AmazonML_20141212", "UpdateBatchPrediction", {}).n("MachineLearningClient", "UpdateBatchPredictionCommand").f(void 0, void 0).ser(se_UpdateBatchPredictionCommand).de(de_UpdateBatchPredictionCommand).build() {
|
|
2583
|
+
};
|
|
2584
|
+
__name(_UpdateBatchPredictionCommand, "UpdateBatchPredictionCommand");
|
|
2585
|
+
var UpdateBatchPredictionCommand = _UpdateBatchPredictionCommand;
|
|
2586
|
+
|
|
2587
|
+
// src/commands/UpdateDataSourceCommand.ts
|
|
2588
|
+
|
|
2589
|
+
|
|
2590
|
+
|
|
2591
|
+
|
|
2592
|
+
var _UpdateDataSourceCommand = class _UpdateDataSourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2593
|
+
...commonParams
|
|
2594
|
+
}).m(function(Command, cs, config, o) {
|
|
2595
|
+
return [
|
|
2596
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2597
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2598
|
+
];
|
|
2599
|
+
}).s("AmazonML_20141212", "UpdateDataSource", {}).n("MachineLearningClient", "UpdateDataSourceCommand").f(void 0, void 0).ser(se_UpdateDataSourceCommand).de(de_UpdateDataSourceCommand).build() {
|
|
2600
|
+
};
|
|
2601
|
+
__name(_UpdateDataSourceCommand, "UpdateDataSourceCommand");
|
|
2602
|
+
var UpdateDataSourceCommand = _UpdateDataSourceCommand;
|
|
2603
|
+
|
|
2604
|
+
// src/commands/UpdateEvaluationCommand.ts
|
|
2605
|
+
|
|
2606
|
+
|
|
2607
|
+
|
|
2608
|
+
|
|
2609
|
+
var _UpdateEvaluationCommand = class _UpdateEvaluationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2610
|
+
...commonParams
|
|
2611
|
+
}).m(function(Command, cs, config, o) {
|
|
2612
|
+
return [
|
|
2613
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2614
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2615
|
+
];
|
|
2616
|
+
}).s("AmazonML_20141212", "UpdateEvaluation", {}).n("MachineLearningClient", "UpdateEvaluationCommand").f(void 0, void 0).ser(se_UpdateEvaluationCommand).de(de_UpdateEvaluationCommand).build() {
|
|
2617
|
+
};
|
|
2618
|
+
__name(_UpdateEvaluationCommand, "UpdateEvaluationCommand");
|
|
2619
|
+
var UpdateEvaluationCommand = _UpdateEvaluationCommand;
|
|
2620
|
+
|
|
2621
|
+
// src/commands/UpdateMLModelCommand.ts
|
|
2622
|
+
|
|
2623
|
+
|
|
2624
|
+
|
|
2625
|
+
|
|
2626
|
+
var _UpdateMLModelCommand = class _UpdateMLModelCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2627
|
+
...commonParams
|
|
2628
|
+
}).m(function(Command, cs, config, o) {
|
|
2629
|
+
return [
|
|
2630
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2631
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2632
|
+
];
|
|
2633
|
+
}).s("AmazonML_20141212", "UpdateMLModel", {}).n("MachineLearningClient", "UpdateMLModelCommand").f(void 0, void 0).ser(se_UpdateMLModelCommand).de(de_UpdateMLModelCommand).build() {
|
|
2634
|
+
};
|
|
2635
|
+
__name(_UpdateMLModelCommand, "UpdateMLModelCommand");
|
|
2636
|
+
var UpdateMLModelCommand = _UpdateMLModelCommand;
|
|
2637
|
+
|
|
2638
|
+
// src/MachineLearning.ts
|
|
2639
|
+
var commands = {
|
|
2640
|
+
AddTagsCommand,
|
|
2641
|
+
CreateBatchPredictionCommand,
|
|
2642
|
+
CreateDataSourceFromRDSCommand,
|
|
2643
|
+
CreateDataSourceFromRedshiftCommand,
|
|
2644
|
+
CreateDataSourceFromS3Command,
|
|
2645
|
+
CreateEvaluationCommand,
|
|
2646
|
+
CreateMLModelCommand,
|
|
2647
|
+
CreateRealtimeEndpointCommand,
|
|
2648
|
+
DeleteBatchPredictionCommand,
|
|
2649
|
+
DeleteDataSourceCommand,
|
|
2650
|
+
DeleteEvaluationCommand,
|
|
2651
|
+
DeleteMLModelCommand,
|
|
2652
|
+
DeleteRealtimeEndpointCommand,
|
|
2653
|
+
DeleteTagsCommand,
|
|
2654
|
+
DescribeBatchPredictionsCommand,
|
|
2655
|
+
DescribeDataSourcesCommand,
|
|
2656
|
+
DescribeEvaluationsCommand,
|
|
2657
|
+
DescribeMLModelsCommand,
|
|
2658
|
+
DescribeTagsCommand,
|
|
2659
|
+
GetBatchPredictionCommand,
|
|
2660
|
+
GetDataSourceCommand,
|
|
2661
|
+
GetEvaluationCommand,
|
|
2662
|
+
GetMLModelCommand,
|
|
2663
|
+
PredictCommand,
|
|
2664
|
+
UpdateBatchPredictionCommand,
|
|
2665
|
+
UpdateDataSourceCommand,
|
|
2666
|
+
UpdateEvaluationCommand,
|
|
2667
|
+
UpdateMLModelCommand
|
|
2668
|
+
};
|
|
2669
|
+
var _MachineLearning = class _MachineLearning extends MachineLearningClient {
|
|
2670
|
+
};
|
|
2671
|
+
__name(_MachineLearning, "MachineLearning");
|
|
2672
|
+
var MachineLearning = _MachineLearning;
|
|
2673
|
+
(0, import_smithy_client.createAggregatedClient)(commands, MachineLearning);
|
|
2674
|
+
|
|
2675
|
+
// src/pagination/DescribeBatchPredictionsPaginator.ts
|
|
2676
|
+
|
|
2677
|
+
var paginateDescribeBatchPredictions = (0, import_core.createPaginator)(MachineLearningClient, DescribeBatchPredictionsCommand, "NextToken", "NextToken", "Limit");
|
|
2678
|
+
|
|
2679
|
+
// src/pagination/DescribeDataSourcesPaginator.ts
|
|
2680
|
+
|
|
2681
|
+
var paginateDescribeDataSources = (0, import_core.createPaginator)(MachineLearningClient, DescribeDataSourcesCommand, "NextToken", "NextToken", "Limit");
|
|
2682
|
+
|
|
2683
|
+
// src/pagination/DescribeEvaluationsPaginator.ts
|
|
2684
|
+
|
|
2685
|
+
var paginateDescribeEvaluations = (0, import_core.createPaginator)(MachineLearningClient, DescribeEvaluationsCommand, "NextToken", "NextToken", "Limit");
|
|
2686
|
+
|
|
2687
|
+
// src/pagination/DescribeMLModelsPaginator.ts
|
|
2688
|
+
|
|
2689
|
+
var paginateDescribeMLModels = (0, import_core.createPaginator)(MachineLearningClient, DescribeMLModelsCommand, "NextToken", "NextToken", "Limit");
|
|
2690
|
+
|
|
2691
|
+
// src/waiters/waitForBatchPredictionAvailable.ts
|
|
2692
|
+
var import_util_waiter = require("@smithy/util-waiter");
|
|
2693
|
+
var checkState = /* @__PURE__ */ __name(async (client, input) => {
|
|
2694
|
+
let reason;
|
|
2695
|
+
try {
|
|
2696
|
+
const result = await client.send(new DescribeBatchPredictionsCommand(input));
|
|
2697
|
+
reason = result;
|
|
2698
|
+
try {
|
|
2699
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2700
|
+
const flat_1 = [].concat(...result.Results);
|
|
2701
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
2702
|
+
return element_2.Status;
|
|
2703
|
+
});
|
|
2704
|
+
return projection_3;
|
|
2705
|
+
}, "returnComparator");
|
|
2706
|
+
let allStringEq_5 = returnComparator().length > 0;
|
|
2707
|
+
for (const element_4 of returnComparator()) {
|
|
2708
|
+
allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
|
|
2709
|
+
}
|
|
2710
|
+
if (allStringEq_5) {
|
|
2711
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2712
|
+
}
|
|
2713
|
+
} catch (e) {
|
|
2714
|
+
}
|
|
2715
|
+
try {
|
|
2716
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2717
|
+
const flat_1 = [].concat(...result.Results);
|
|
2718
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
2719
|
+
return element_2.Status;
|
|
2720
|
+
});
|
|
2721
|
+
return projection_3;
|
|
2722
|
+
}, "returnComparator");
|
|
2723
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
2724
|
+
if (anyStringEq_4 == "FAILED") {
|
|
2725
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
} catch (e) {
|
|
2729
|
+
}
|
|
2730
|
+
} catch (exception) {
|
|
2731
|
+
reason = exception;
|
|
2732
|
+
}
|
|
2733
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2734
|
+
}, "checkState");
|
|
2735
|
+
var waitForBatchPredictionAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2736
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2737
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
2738
|
+
}, "waitForBatchPredictionAvailable");
|
|
2739
|
+
var waitUntilBatchPredictionAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2740
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2741
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
2742
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2743
|
+
}, "waitUntilBatchPredictionAvailable");
|
|
2744
|
+
|
|
2745
|
+
// src/waiters/waitForDataSourceAvailable.ts
|
|
2746
|
+
|
|
2747
|
+
var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2748
|
+
let reason;
|
|
2749
|
+
try {
|
|
2750
|
+
const result = await client.send(new DescribeDataSourcesCommand(input));
|
|
2751
|
+
reason = result;
|
|
2752
|
+
try {
|
|
2753
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2754
|
+
const flat_1 = [].concat(...result.Results);
|
|
2755
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
2756
|
+
return element_2.Status;
|
|
2757
|
+
});
|
|
2758
|
+
return projection_3;
|
|
2759
|
+
}, "returnComparator");
|
|
2760
|
+
let allStringEq_5 = returnComparator().length > 0;
|
|
2761
|
+
for (const element_4 of returnComparator()) {
|
|
2762
|
+
allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
|
|
2763
|
+
}
|
|
2764
|
+
if (allStringEq_5) {
|
|
2765
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2766
|
+
}
|
|
2767
|
+
} catch (e) {
|
|
2768
|
+
}
|
|
2769
|
+
try {
|
|
2770
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2771
|
+
const flat_1 = [].concat(...result.Results);
|
|
2772
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
2773
|
+
return element_2.Status;
|
|
2774
|
+
});
|
|
2775
|
+
return projection_3;
|
|
2776
|
+
}, "returnComparator");
|
|
2777
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
2778
|
+
if (anyStringEq_4 == "FAILED") {
|
|
2779
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2780
|
+
}
|
|
2781
|
+
}
|
|
2782
|
+
} catch (e) {
|
|
2783
|
+
}
|
|
2784
|
+
} catch (exception) {
|
|
2785
|
+
reason = exception;
|
|
2786
|
+
}
|
|
2787
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2788
|
+
}, "checkState");
|
|
2789
|
+
var waitForDataSourceAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2790
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2791
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
2792
|
+
}, "waitForDataSourceAvailable");
|
|
2793
|
+
var waitUntilDataSourceAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2794
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2795
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
2796
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2797
|
+
}, "waitUntilDataSourceAvailable");
|
|
2798
|
+
|
|
2799
|
+
// src/waiters/waitForEvaluationAvailable.ts
|
|
2800
|
+
|
|
2801
|
+
var checkState3 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2802
|
+
let reason;
|
|
2803
|
+
try {
|
|
2804
|
+
const result = await client.send(new DescribeEvaluationsCommand(input));
|
|
2805
|
+
reason = result;
|
|
2806
|
+
try {
|
|
2807
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2808
|
+
const flat_1 = [].concat(...result.Results);
|
|
2809
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
2810
|
+
return element_2.Status;
|
|
2811
|
+
});
|
|
2812
|
+
return projection_3;
|
|
2813
|
+
}, "returnComparator");
|
|
2814
|
+
let allStringEq_5 = returnComparator().length > 0;
|
|
2815
|
+
for (const element_4 of returnComparator()) {
|
|
2816
|
+
allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
|
|
2817
|
+
}
|
|
2818
|
+
if (allStringEq_5) {
|
|
2819
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2820
|
+
}
|
|
2821
|
+
} catch (e) {
|
|
2822
|
+
}
|
|
2823
|
+
try {
|
|
2824
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2825
|
+
const flat_1 = [].concat(...result.Results);
|
|
2826
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
2827
|
+
return element_2.Status;
|
|
2828
|
+
});
|
|
2829
|
+
return projection_3;
|
|
2830
|
+
}, "returnComparator");
|
|
2831
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
2832
|
+
if (anyStringEq_4 == "FAILED") {
|
|
2833
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2834
|
+
}
|
|
2835
|
+
}
|
|
2836
|
+
} catch (e) {
|
|
2837
|
+
}
|
|
2838
|
+
} catch (exception) {
|
|
2839
|
+
reason = exception;
|
|
2840
|
+
}
|
|
2841
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2842
|
+
}, "checkState");
|
|
2843
|
+
var waitForEvaluationAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2844
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2845
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
|
|
2846
|
+
}, "waitForEvaluationAvailable");
|
|
2847
|
+
var waitUntilEvaluationAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2848
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2849
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
|
|
2850
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2851
|
+
}, "waitUntilEvaluationAvailable");
|
|
2852
|
+
|
|
2853
|
+
// src/waiters/waitForMLModelAvailable.ts
|
|
2854
|
+
|
|
2855
|
+
var checkState4 = /* @__PURE__ */ __name(async (client, input) => {
|
|
2856
|
+
let reason;
|
|
2857
|
+
try {
|
|
2858
|
+
const result = await client.send(new DescribeMLModelsCommand(input));
|
|
2859
|
+
reason = result;
|
|
2860
|
+
try {
|
|
2861
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2862
|
+
const flat_1 = [].concat(...result.Results);
|
|
2863
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
2864
|
+
return element_2.Status;
|
|
2865
|
+
});
|
|
2866
|
+
return projection_3;
|
|
2867
|
+
}, "returnComparator");
|
|
2868
|
+
let allStringEq_5 = returnComparator().length > 0;
|
|
2869
|
+
for (const element_4 of returnComparator()) {
|
|
2870
|
+
allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
|
|
2871
|
+
}
|
|
2872
|
+
if (allStringEq_5) {
|
|
2873
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
2874
|
+
}
|
|
2875
|
+
} catch (e) {
|
|
2876
|
+
}
|
|
2877
|
+
try {
|
|
2878
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
2879
|
+
const flat_1 = [].concat(...result.Results);
|
|
2880
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
2881
|
+
return element_2.Status;
|
|
2882
|
+
});
|
|
2883
|
+
return projection_3;
|
|
2884
|
+
}, "returnComparator");
|
|
2885
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
2886
|
+
if (anyStringEq_4 == "FAILED") {
|
|
2887
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
} catch (e) {
|
|
2891
|
+
}
|
|
2892
|
+
} catch (exception) {
|
|
2893
|
+
reason = exception;
|
|
2894
|
+
}
|
|
2895
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
2896
|
+
}, "checkState");
|
|
2897
|
+
var waitForMLModelAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2898
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2899
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
|
|
2900
|
+
}, "waitForMLModelAvailable");
|
|
2901
|
+
var waitUntilMLModelAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
2902
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
2903
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
|
|
2904
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
2905
|
+
}, "waitUntilMLModelAvailable");
|
|
2906
|
+
|
|
2907
|
+
// src/index.ts
|
|
2908
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2909
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2910
|
+
0 && (module.exports = {
|
|
2911
|
+
AddTagsCommand,
|
|
2912
|
+
Algorithm,
|
|
2913
|
+
BatchPredictionFilterVariable,
|
|
2914
|
+
CreateBatchPredictionCommand,
|
|
2915
|
+
CreateDataSourceFromRDSCommand,
|
|
2916
|
+
CreateDataSourceFromRDSInputFilterSensitiveLog,
|
|
2917
|
+
CreateDataSourceFromRedshiftCommand,
|
|
2918
|
+
CreateDataSourceFromRedshiftInputFilterSensitiveLog,
|
|
2919
|
+
CreateDataSourceFromS3Command,
|
|
2920
|
+
CreateEvaluationCommand,
|
|
2921
|
+
CreateMLModelCommand,
|
|
2922
|
+
CreateRealtimeEndpointCommand,
|
|
2923
|
+
DataSourceFilterVariable,
|
|
2924
|
+
DeleteBatchPredictionCommand,
|
|
2925
|
+
DeleteDataSourceCommand,
|
|
2926
|
+
DeleteEvaluationCommand,
|
|
2927
|
+
DeleteMLModelCommand,
|
|
2928
|
+
DeleteRealtimeEndpointCommand,
|
|
2929
|
+
DeleteTagsCommand,
|
|
2930
|
+
DescribeBatchPredictionsCommand,
|
|
2931
|
+
DescribeDataSourcesCommand,
|
|
2932
|
+
DescribeEvaluationsCommand,
|
|
2933
|
+
DescribeMLModelsCommand,
|
|
2934
|
+
DescribeTagsCommand,
|
|
2935
|
+
DetailsAttributes,
|
|
2936
|
+
EntityStatus,
|
|
2937
|
+
EvaluationFilterVariable,
|
|
2938
|
+
GetBatchPredictionCommand,
|
|
2939
|
+
GetDataSourceCommand,
|
|
2940
|
+
GetEvaluationCommand,
|
|
2941
|
+
GetMLModelCommand,
|
|
2942
|
+
IdempotentParameterMismatchException,
|
|
2943
|
+
InternalServerException,
|
|
2944
|
+
InvalidInputException,
|
|
2945
|
+
InvalidTagException,
|
|
2946
|
+
LimitExceededException,
|
|
2947
|
+
MLModelFilterVariable,
|
|
2948
|
+
MLModelType,
|
|
2949
|
+
MachineLearning,
|
|
2950
|
+
MachineLearningClient,
|
|
2951
|
+
MachineLearningServiceException,
|
|
2952
|
+
PredictCommand,
|
|
2953
|
+
PredictorNotMountedException,
|
|
2954
|
+
RDSDataSpecFilterSensitiveLog,
|
|
2955
|
+
RDSDatabaseCredentialsFilterSensitiveLog,
|
|
2956
|
+
RealtimeEndpointStatus,
|
|
2957
|
+
RedshiftDataSpecFilterSensitiveLog,
|
|
2958
|
+
RedshiftDatabaseCredentialsFilterSensitiveLog,
|
|
2959
|
+
ResourceNotFoundException,
|
|
2960
|
+
SortOrder,
|
|
2961
|
+
TagLimitExceededException,
|
|
2962
|
+
TaggableResourceType,
|
|
2963
|
+
UpdateBatchPredictionCommand,
|
|
2964
|
+
UpdateDataSourceCommand,
|
|
2965
|
+
UpdateEvaluationCommand,
|
|
2966
|
+
UpdateMLModelCommand,
|
|
2967
|
+
__Client,
|
|
2968
|
+
paginateDescribeBatchPredictions,
|
|
2969
|
+
paginateDescribeDataSources,
|
|
2970
|
+
paginateDescribeEvaluations,
|
|
2971
|
+
paginateDescribeMLModels,
|
|
2972
|
+
waitForBatchPredictionAvailable,
|
|
2973
|
+
waitForDataSourceAvailable,
|
|
2974
|
+
waitForEvaluationAvailable,
|
|
2975
|
+
waitForMLModelAvailable,
|
|
2976
|
+
waitUntilBatchPredictionAvailable,
|
|
2977
|
+
waitUntilDataSourceAvailable,
|
|
2978
|
+
waitUntilEvaluationAvailable,
|
|
2979
|
+
waitUntilMLModelAvailable
|
|
2980
|
+
});
|