@aws-sdk/client-machine-learning 3.901.0 → 3.907.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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +1997 -2143
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,2234 +1,2088 @@
1
- "use strict";
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 index_exports = {};
23
- __export(index_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(index_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 Object.assign(options, {
112
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
113
- useFipsEndpoint: options.useFipsEndpoint ?? false,
114
- defaultSigningName: "machinelearning"
115
- });
116
- }, "resolveClientEndpointParameters");
117
- var commonParams = {
118
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
119
- Endpoint: { type: "builtInParams", name: "endpoint" },
120
- Region: { type: "builtInParams", name: "region" },
121
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+ var middlewareSdkMachinelearning = require('@aws-sdk/middleware-sdk-machinelearning');
20
+ var utilWaiter = require('@smithy/util-waiter');
21
+
22
+ const resolveClientEndpointParameters = (options) => {
23
+ return Object.assign(options, {
24
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
25
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
26
+ defaultSigningName: "machinelearning",
27
+ });
28
+ };
29
+ const commonParams = {
30
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
31
+ Endpoint: { type: "builtInParams", name: "endpoint" },
32
+ Region: { type: "builtInParams", name: "region" },
33
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
122
34
  };
123
35
 
124
- // src/MachineLearningClient.ts
125
- var import_runtimeConfig = require("././runtimeConfig");
36
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
37
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
38
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
39
+ let _credentials = runtimeConfig.credentials;
40
+ return {
41
+ setHttpAuthScheme(httpAuthScheme) {
42
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
43
+ if (index === -1) {
44
+ _httpAuthSchemes.push(httpAuthScheme);
45
+ }
46
+ else {
47
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
48
+ }
49
+ },
50
+ httpAuthSchemes() {
51
+ return _httpAuthSchemes;
52
+ },
53
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
54
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
55
+ },
56
+ httpAuthSchemeProvider() {
57
+ return _httpAuthSchemeProvider;
58
+ },
59
+ setCredentials(credentials) {
60
+ _credentials = credentials;
61
+ },
62
+ credentials() {
63
+ return _credentials;
64
+ },
65
+ };
66
+ };
67
+ const resolveHttpAuthRuntimeConfig = (config) => {
68
+ return {
69
+ httpAuthSchemes: config.httpAuthSchemes(),
70
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
71
+ credentials: config.credentials(),
72
+ };
73
+ };
126
74
 
127
- // src/runtimeExtensions.ts
128
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
129
- var import_protocol_http = require("@smithy/protocol-http");
130
- var import_smithy_client = require("@smithy/smithy-client");
75
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
76
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
77
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
78
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
79
+ };
131
80
 
132
- // src/auth/httpAuthExtensionConfiguration.ts
133
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
134
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
135
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
136
- let _credentials = runtimeConfig.credentials;
137
- return {
138
- setHttpAuthScheme(httpAuthScheme) {
139
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
140
- if (index === -1) {
141
- _httpAuthSchemes.push(httpAuthScheme);
142
- } else {
143
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
144
- }
145
- },
146
- httpAuthSchemes() {
147
- return _httpAuthSchemes;
148
- },
149
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
150
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
151
- },
152
- httpAuthSchemeProvider() {
153
- return _httpAuthSchemeProvider;
154
- },
155
- setCredentials(credentials) {
156
- _credentials = credentials;
157
- },
158
- credentials() {
159
- return _credentials;
81
+ class MachineLearningClient extends smithyClient.Client {
82
+ config;
83
+ constructor(...[configuration]) {
84
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
85
+ super(_config_0);
86
+ this.initConfig = _config_0;
87
+ const _config_1 = resolveClientEndpointParameters(_config_0);
88
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
89
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
90
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
91
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
92
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
93
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
94
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
95
+ this.config = _config_8;
96
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
97
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
98
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
99
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
100
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
101
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
102
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
103
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultMachineLearningHttpAuthSchemeParametersProvider,
104
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
105
+ "aws.auth#sigv4": config.credentials,
106
+ }),
107
+ }));
108
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
109
+ }
110
+ destroy() {
111
+ super.destroy();
160
112
  }
161
- };
162
- }, "getHttpAuthExtensionConfiguration");
163
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
164
- return {
165
- httpAuthSchemes: config.httpAuthSchemes(),
166
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
167
- credentials: config.credentials()
168
- };
169
- }, "resolveHttpAuthRuntimeConfig");
113
+ }
170
114
 
171
- // src/runtimeExtensions.ts
172
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
173
- const extensionConfiguration = Object.assign(
174
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
175
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
176
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
177
- getHttpAuthExtensionConfiguration(runtimeConfig)
178
- );
179
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
180
- return Object.assign(
181
- runtimeConfig,
182
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
183
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
184
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
185
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
186
- );
187
- }, "resolveRuntimeExtensions");
115
+ class MachineLearningServiceException extends smithyClient.ServiceException {
116
+ constructor(options) {
117
+ super(options);
118
+ Object.setPrototypeOf(this, MachineLearningServiceException.prototype);
119
+ }
120
+ }
188
121
 
189
- // src/MachineLearningClient.ts
190
- var MachineLearningClient = class extends import_smithy_client.Client {
191
- static {
192
- __name(this, "MachineLearningClient");
193
- }
194
- /**
195
- * The resolved configuration of MachineLearningClient class. This is resolved and normalized from the {@link MachineLearningClientConfig | constructor configuration interface}.
196
- */
197
- config;
198
- constructor(...[configuration]) {
199
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
200
- super(_config_0);
201
- this.initConfig = _config_0;
202
- const _config_1 = resolveClientEndpointParameters(_config_0);
203
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
204
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
205
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
206
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
207
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
208
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
209
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
210
- this.config = _config_8;
211
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
212
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
213
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
214
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
215
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
216
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
217
- this.middlewareStack.use(
218
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
219
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultMachineLearningHttpAuthSchemeParametersProvider,
220
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
221
- "aws.auth#sigv4": config.credentials
222
- }), "identityProviderConfigProvider")
223
- })
224
- );
225
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
226
- }
227
- /**
228
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
229
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
230
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
231
- */
232
- destroy() {
233
- super.destroy();
234
- }
122
+ const TaggableResourceType = {
123
+ BATCH_PREDICTION: "BatchPrediction",
124
+ DATASOURCE: "DataSource",
125
+ EVALUATION: "Evaluation",
126
+ ML_MODEL: "MLModel",
235
127
  };
236
-
237
- // src/MachineLearning.ts
238
-
239
-
240
- // src/commands/AddTagsCommand.ts
241
-
242
- var import_middleware_serde = require("@smithy/middleware-serde");
243
-
244
-
245
- // src/protocols/Aws_json1_1.ts
246
- var import_core2 = require("@aws-sdk/core");
247
-
248
-
249
-
250
- // src/models/MachineLearningServiceException.ts
251
-
252
- var MachineLearningServiceException = class _MachineLearningServiceException extends import_smithy_client.ServiceException {
253
- static {
254
- __name(this, "MachineLearningServiceException");
255
- }
256
- /**
257
- * @internal
258
- */
259
- constructor(options) {
260
- super(options);
261
- Object.setPrototypeOf(this, _MachineLearningServiceException.prototype);
262
- }
128
+ class InternalServerException extends MachineLearningServiceException {
129
+ name = "InternalServerException";
130
+ $fault = "server";
131
+ code;
132
+ constructor(opts) {
133
+ super({
134
+ name: "InternalServerException",
135
+ $fault: "server",
136
+ ...opts,
137
+ });
138
+ Object.setPrototypeOf(this, InternalServerException.prototype);
139
+ this.code = opts.code;
140
+ }
141
+ }
142
+ class InvalidInputException extends MachineLearningServiceException {
143
+ name = "InvalidInputException";
144
+ $fault = "client";
145
+ code;
146
+ constructor(opts) {
147
+ super({
148
+ name: "InvalidInputException",
149
+ $fault: "client",
150
+ ...opts,
151
+ });
152
+ Object.setPrototypeOf(this, InvalidInputException.prototype);
153
+ this.code = opts.code;
154
+ }
155
+ }
156
+ class InvalidTagException extends MachineLearningServiceException {
157
+ name = "InvalidTagException";
158
+ $fault = "client";
159
+ constructor(opts) {
160
+ super({
161
+ name: "InvalidTagException",
162
+ $fault: "client",
163
+ ...opts,
164
+ });
165
+ Object.setPrototypeOf(this, InvalidTagException.prototype);
166
+ }
167
+ }
168
+ class ResourceNotFoundException extends MachineLearningServiceException {
169
+ name = "ResourceNotFoundException";
170
+ $fault = "client";
171
+ code;
172
+ constructor(opts) {
173
+ super({
174
+ name: "ResourceNotFoundException",
175
+ $fault: "client",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
179
+ this.code = opts.code;
180
+ }
181
+ }
182
+ class TagLimitExceededException extends MachineLearningServiceException {
183
+ name = "TagLimitExceededException";
184
+ $fault = "client";
185
+ constructor(opts) {
186
+ super({
187
+ name: "TagLimitExceededException",
188
+ $fault: "client",
189
+ ...opts,
190
+ });
191
+ Object.setPrototypeOf(this, TagLimitExceededException.prototype);
192
+ }
193
+ }
194
+ const Algorithm = {
195
+ SGD: "sgd",
263
196
  };
197
+ class IdempotentParameterMismatchException extends MachineLearningServiceException {
198
+ name = "IdempotentParameterMismatchException";
199
+ $fault = "client";
200
+ code;
201
+ constructor(opts) {
202
+ super({
203
+ name: "IdempotentParameterMismatchException",
204
+ $fault: "client",
205
+ ...opts,
206
+ });
207
+ Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
208
+ this.code = opts.code;
209
+ }
210
+ }
211
+ const MLModelType = {
212
+ BINARY: "BINARY",
213
+ MULTICLASS: "MULTICLASS",
214
+ REGRESSION: "REGRESSION",
215
+ };
216
+ const RealtimeEndpointStatus = {
217
+ FAILED: "FAILED",
218
+ NONE: "NONE",
219
+ READY: "READY",
220
+ UPDATING: "UPDATING",
221
+ };
222
+ const BatchPredictionFilterVariable = {
223
+ CREATED_AT: "CreatedAt",
224
+ DATASOURCE_ID: "DataSourceId",
225
+ DATA_URI: "DataURI",
226
+ IAM_USER: "IAMUser",
227
+ LAST_UPDATED_AT: "LastUpdatedAt",
228
+ ML_MODEL_ID: "MLModelId",
229
+ NAME: "Name",
230
+ STATUS: "Status",
231
+ };
232
+ const SortOrder = {
233
+ ASC: "asc",
234
+ DSC: "dsc",
235
+ };
236
+ const EntityStatus = {
237
+ COMPLETED: "COMPLETED",
238
+ DELETED: "DELETED",
239
+ FAILED: "FAILED",
240
+ INPROGRESS: "INPROGRESS",
241
+ PENDING: "PENDING",
242
+ };
243
+ const DataSourceFilterVariable = {
244
+ CREATED_AT: "CreatedAt",
245
+ DATA_URI: "DataLocationS3",
246
+ IAM_USER: "IAMUser",
247
+ LAST_UPDATED_AT: "LastUpdatedAt",
248
+ NAME: "Name",
249
+ STATUS: "Status",
250
+ };
251
+ const EvaluationFilterVariable = {
252
+ CREATED_AT: "CreatedAt",
253
+ DATASOURCE_ID: "DataSourceId",
254
+ DATA_URI: "DataURI",
255
+ IAM_USER: "IAMUser",
256
+ LAST_UPDATED_AT: "LastUpdatedAt",
257
+ ML_MODEL_ID: "MLModelId",
258
+ NAME: "Name",
259
+ STATUS: "Status",
260
+ };
261
+ const MLModelFilterVariable = {
262
+ ALGORITHM: "Algorithm",
263
+ CREATED_AT: "CreatedAt",
264
+ IAM_USER: "IAMUser",
265
+ LAST_UPDATED_AT: "LastUpdatedAt",
266
+ ML_MODEL_TYPE: "MLModelType",
267
+ NAME: "Name",
268
+ REAL_TIME_ENDPOINT_STATUS: "RealtimeEndpointStatus",
269
+ STATUS: "Status",
270
+ TRAINING_DATASOURCE_ID: "TrainingDataSourceId",
271
+ TRAINING_DATA_URI: "TrainingDataURI",
272
+ };
273
+ class LimitExceededException extends MachineLearningServiceException {
274
+ name = "LimitExceededException";
275
+ $fault = "client";
276
+ code;
277
+ constructor(opts) {
278
+ super({
279
+ name: "LimitExceededException",
280
+ $fault: "client",
281
+ ...opts,
282
+ });
283
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
284
+ this.code = opts.code;
285
+ }
286
+ }
287
+ class PredictorNotMountedException extends MachineLearningServiceException {
288
+ name = "PredictorNotMountedException";
289
+ $fault = "client";
290
+ constructor(opts) {
291
+ super({
292
+ name: "PredictorNotMountedException",
293
+ $fault: "client",
294
+ ...opts,
295
+ });
296
+ Object.setPrototypeOf(this, PredictorNotMountedException.prototype);
297
+ }
298
+ }
299
+ const DetailsAttributes = {
300
+ ALGORITHM: "Algorithm",
301
+ PREDICTIVE_MODEL_TYPE: "PredictiveModelType",
302
+ };
303
+ const RDSDatabaseCredentialsFilterSensitiveLog = (obj) => ({
304
+ ...obj,
305
+ ...(obj.Password && { Password: smithyClient.SENSITIVE_STRING }),
306
+ });
307
+ const RDSDataSpecFilterSensitiveLog = (obj) => ({
308
+ ...obj,
309
+ ...(obj.DatabaseCredentials && {
310
+ DatabaseCredentials: RDSDatabaseCredentialsFilterSensitiveLog(obj.DatabaseCredentials),
311
+ }),
312
+ });
313
+ const CreateDataSourceFromRDSInputFilterSensitiveLog = (obj) => ({
314
+ ...obj,
315
+ ...(obj.RDSData && { RDSData: RDSDataSpecFilterSensitiveLog(obj.RDSData) }),
316
+ });
317
+ const RedshiftDatabaseCredentialsFilterSensitiveLog = (obj) => ({
318
+ ...obj,
319
+ ...(obj.Password && { Password: smithyClient.SENSITIVE_STRING }),
320
+ });
321
+ const RedshiftDataSpecFilterSensitiveLog = (obj) => ({
322
+ ...obj,
323
+ ...(obj.DatabaseCredentials && {
324
+ DatabaseCredentials: RedshiftDatabaseCredentialsFilterSensitiveLog(obj.DatabaseCredentials),
325
+ }),
326
+ });
327
+ const CreateDataSourceFromRedshiftInputFilterSensitiveLog = (obj) => ({
328
+ ...obj,
329
+ ...(obj.DataSpec && { DataSpec: RedshiftDataSpecFilterSensitiveLog(obj.DataSpec) }),
330
+ });
264
331
 
265
- // src/models/models_0.ts
266
-
267
- var TaggableResourceType = {
268
- BATCH_PREDICTION: "BatchPrediction",
269
- DATASOURCE: "DataSource",
270
- EVALUATION: "Evaluation",
271
- ML_MODEL: "MLModel"
272
- };
273
- var InternalServerException = class _InternalServerException extends MachineLearningServiceException {
274
- static {
275
- __name(this, "InternalServerException");
276
- }
277
- name = "InternalServerException";
278
- $fault = "server";
279
- code;
280
- /**
281
- * @internal
282
- */
283
- constructor(opts) {
284
- super({
285
- name: "InternalServerException",
286
- $fault: "server",
287
- ...opts
332
+ const se_AddTagsCommand = async (input, context) => {
333
+ const headers = sharedHeaders("AddTags");
334
+ let body;
335
+ body = JSON.stringify(smithyClient._json(input));
336
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
+ };
338
+ const se_CreateBatchPredictionCommand = async (input, context) => {
339
+ const headers = sharedHeaders("CreateBatchPrediction");
340
+ let body;
341
+ body = JSON.stringify(smithyClient._json(input));
342
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
343
+ };
344
+ const se_CreateDataSourceFromRDSCommand = async (input, context) => {
345
+ const headers = sharedHeaders("CreateDataSourceFromRDS");
346
+ let body;
347
+ body = JSON.stringify(smithyClient._json(input));
348
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
349
+ };
350
+ const se_CreateDataSourceFromRedshiftCommand = async (input, context) => {
351
+ const headers = sharedHeaders("CreateDataSourceFromRedshift");
352
+ let body;
353
+ body = JSON.stringify(smithyClient._json(input));
354
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
355
+ };
356
+ const se_CreateDataSourceFromS3Command = async (input, context) => {
357
+ const headers = sharedHeaders("CreateDataSourceFromS3");
358
+ let body;
359
+ body = JSON.stringify(smithyClient._json(input));
360
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
361
+ };
362
+ const se_CreateEvaluationCommand = async (input, context) => {
363
+ const headers = sharedHeaders("CreateEvaluation");
364
+ let body;
365
+ body = JSON.stringify(smithyClient._json(input));
366
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
367
+ };
368
+ const se_CreateMLModelCommand = async (input, context) => {
369
+ const headers = sharedHeaders("CreateMLModel");
370
+ let body;
371
+ body = JSON.stringify(smithyClient._json(input));
372
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
373
+ };
374
+ const se_CreateRealtimeEndpointCommand = async (input, context) => {
375
+ const headers = sharedHeaders("CreateRealtimeEndpoint");
376
+ let body;
377
+ body = JSON.stringify(smithyClient._json(input));
378
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
379
+ };
380
+ const se_DeleteBatchPredictionCommand = async (input, context) => {
381
+ const headers = sharedHeaders("DeleteBatchPrediction");
382
+ let body;
383
+ body = JSON.stringify(smithyClient._json(input));
384
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
385
+ };
386
+ const se_DeleteDataSourceCommand = async (input, context) => {
387
+ const headers = sharedHeaders("DeleteDataSource");
388
+ let body;
389
+ body = JSON.stringify(smithyClient._json(input));
390
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
391
+ };
392
+ const se_DeleteEvaluationCommand = async (input, context) => {
393
+ const headers = sharedHeaders("DeleteEvaluation");
394
+ let body;
395
+ body = JSON.stringify(smithyClient._json(input));
396
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
397
+ };
398
+ const se_DeleteMLModelCommand = async (input, context) => {
399
+ const headers = sharedHeaders("DeleteMLModel");
400
+ let body;
401
+ body = JSON.stringify(smithyClient._json(input));
402
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
403
+ };
404
+ const se_DeleteRealtimeEndpointCommand = async (input, context) => {
405
+ const headers = sharedHeaders("DeleteRealtimeEndpoint");
406
+ let body;
407
+ body = JSON.stringify(smithyClient._json(input));
408
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
409
+ };
410
+ const se_DeleteTagsCommand = async (input, context) => {
411
+ const headers = sharedHeaders("DeleteTags");
412
+ let body;
413
+ body = JSON.stringify(smithyClient._json(input));
414
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
415
+ };
416
+ const se_DescribeBatchPredictionsCommand = async (input, context) => {
417
+ const headers = sharedHeaders("DescribeBatchPredictions");
418
+ let body;
419
+ body = JSON.stringify(smithyClient._json(input));
420
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
421
+ };
422
+ const se_DescribeDataSourcesCommand = async (input, context) => {
423
+ const headers = sharedHeaders("DescribeDataSources");
424
+ let body;
425
+ body = JSON.stringify(smithyClient._json(input));
426
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
427
+ };
428
+ const se_DescribeEvaluationsCommand = async (input, context) => {
429
+ const headers = sharedHeaders("DescribeEvaluations");
430
+ let body;
431
+ body = JSON.stringify(smithyClient._json(input));
432
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
433
+ };
434
+ const se_DescribeMLModelsCommand = async (input, context) => {
435
+ const headers = sharedHeaders("DescribeMLModels");
436
+ let body;
437
+ body = JSON.stringify(smithyClient._json(input));
438
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
439
+ };
440
+ const se_DescribeTagsCommand = async (input, context) => {
441
+ const headers = sharedHeaders("DescribeTags");
442
+ let body;
443
+ body = JSON.stringify(smithyClient._json(input));
444
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
445
+ };
446
+ const se_GetBatchPredictionCommand = async (input, context) => {
447
+ const headers = sharedHeaders("GetBatchPrediction");
448
+ let body;
449
+ body = JSON.stringify(smithyClient._json(input));
450
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
451
+ };
452
+ const se_GetDataSourceCommand = async (input, context) => {
453
+ const headers = sharedHeaders("GetDataSource");
454
+ let body;
455
+ body = JSON.stringify(smithyClient._json(input));
456
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
457
+ };
458
+ const se_GetEvaluationCommand = async (input, context) => {
459
+ const headers = sharedHeaders("GetEvaluation");
460
+ let body;
461
+ body = JSON.stringify(smithyClient._json(input));
462
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
463
+ };
464
+ const se_GetMLModelCommand = async (input, context) => {
465
+ const headers = sharedHeaders("GetMLModel");
466
+ let body;
467
+ body = JSON.stringify(smithyClient._json(input));
468
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
469
+ };
470
+ const se_PredictCommand = async (input, context) => {
471
+ const headers = sharedHeaders("Predict");
472
+ let body;
473
+ body = JSON.stringify(smithyClient._json(input));
474
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
475
+ };
476
+ const se_UpdateBatchPredictionCommand = async (input, context) => {
477
+ const headers = sharedHeaders("UpdateBatchPrediction");
478
+ let body;
479
+ body = JSON.stringify(smithyClient._json(input));
480
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
481
+ };
482
+ const se_UpdateDataSourceCommand = async (input, context) => {
483
+ const headers = sharedHeaders("UpdateDataSource");
484
+ let body;
485
+ body = JSON.stringify(smithyClient._json(input));
486
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
487
+ };
488
+ const se_UpdateEvaluationCommand = async (input, context) => {
489
+ const headers = sharedHeaders("UpdateEvaluation");
490
+ let body;
491
+ body = JSON.stringify(smithyClient._json(input));
492
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
493
+ };
494
+ const se_UpdateMLModelCommand = async (input, context) => {
495
+ const headers = sharedHeaders("UpdateMLModel");
496
+ let body;
497
+ body = JSON.stringify(se_UpdateMLModelInput(input));
498
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
499
+ };
500
+ const de_AddTagsCommand = async (output, context) => {
501
+ if (output.statusCode >= 300) {
502
+ return de_CommandError(output, context);
503
+ }
504
+ const data = await core$1.parseJsonBody(output.body, context);
505
+ let contents = {};
506
+ contents = smithyClient._json(data);
507
+ const response = {
508
+ $metadata: deserializeMetadata(output),
509
+ ...contents,
510
+ };
511
+ return response;
512
+ };
513
+ const de_CreateBatchPredictionCommand = async (output, context) => {
514
+ if (output.statusCode >= 300) {
515
+ return de_CommandError(output, context);
516
+ }
517
+ const data = await core$1.parseJsonBody(output.body, context);
518
+ let contents = {};
519
+ contents = smithyClient._json(data);
520
+ const response = {
521
+ $metadata: deserializeMetadata(output),
522
+ ...contents,
523
+ };
524
+ return response;
525
+ };
526
+ const de_CreateDataSourceFromRDSCommand = async (output, context) => {
527
+ if (output.statusCode >= 300) {
528
+ return de_CommandError(output, context);
529
+ }
530
+ const data = await core$1.parseJsonBody(output.body, context);
531
+ let contents = {};
532
+ contents = smithyClient._json(data);
533
+ const response = {
534
+ $metadata: deserializeMetadata(output),
535
+ ...contents,
536
+ };
537
+ return response;
538
+ };
539
+ const de_CreateDataSourceFromRedshiftCommand = async (output, context) => {
540
+ if (output.statusCode >= 300) {
541
+ return de_CommandError(output, context);
542
+ }
543
+ const data = await core$1.parseJsonBody(output.body, context);
544
+ let contents = {};
545
+ contents = smithyClient._json(data);
546
+ const response = {
547
+ $metadata: deserializeMetadata(output),
548
+ ...contents,
549
+ };
550
+ return response;
551
+ };
552
+ const de_CreateDataSourceFromS3Command = async (output, context) => {
553
+ if (output.statusCode >= 300) {
554
+ return de_CommandError(output, context);
555
+ }
556
+ const data = await core$1.parseJsonBody(output.body, context);
557
+ let contents = {};
558
+ contents = smithyClient._json(data);
559
+ const response = {
560
+ $metadata: deserializeMetadata(output),
561
+ ...contents,
562
+ };
563
+ return response;
564
+ };
565
+ const de_CreateEvaluationCommand = async (output, context) => {
566
+ if (output.statusCode >= 300) {
567
+ return de_CommandError(output, context);
568
+ }
569
+ const data = await core$1.parseJsonBody(output.body, context);
570
+ let contents = {};
571
+ contents = smithyClient._json(data);
572
+ const response = {
573
+ $metadata: deserializeMetadata(output),
574
+ ...contents,
575
+ };
576
+ return response;
577
+ };
578
+ const de_CreateMLModelCommand = async (output, context) => {
579
+ if (output.statusCode >= 300) {
580
+ return de_CommandError(output, context);
581
+ }
582
+ const data = await core$1.parseJsonBody(output.body, context);
583
+ let contents = {};
584
+ contents = smithyClient._json(data);
585
+ const response = {
586
+ $metadata: deserializeMetadata(output),
587
+ ...contents,
588
+ };
589
+ return response;
590
+ };
591
+ const de_CreateRealtimeEndpointCommand = async (output, context) => {
592
+ if (output.statusCode >= 300) {
593
+ return de_CommandError(output, context);
594
+ }
595
+ const data = await core$1.parseJsonBody(output.body, context);
596
+ let contents = {};
597
+ contents = de_CreateRealtimeEndpointOutput(data);
598
+ const response = {
599
+ $metadata: deserializeMetadata(output),
600
+ ...contents,
601
+ };
602
+ return response;
603
+ };
604
+ const de_DeleteBatchPredictionCommand = async (output, context) => {
605
+ if (output.statusCode >= 300) {
606
+ return de_CommandError(output, context);
607
+ }
608
+ const data = await core$1.parseJsonBody(output.body, context);
609
+ let contents = {};
610
+ contents = smithyClient._json(data);
611
+ const response = {
612
+ $metadata: deserializeMetadata(output),
613
+ ...contents,
614
+ };
615
+ return response;
616
+ };
617
+ const de_DeleteDataSourceCommand = async (output, context) => {
618
+ if (output.statusCode >= 300) {
619
+ return de_CommandError(output, context);
620
+ }
621
+ const data = await core$1.parseJsonBody(output.body, context);
622
+ let contents = {};
623
+ contents = smithyClient._json(data);
624
+ const response = {
625
+ $metadata: deserializeMetadata(output),
626
+ ...contents,
627
+ };
628
+ return response;
629
+ };
630
+ const de_DeleteEvaluationCommand = async (output, context) => {
631
+ if (output.statusCode >= 300) {
632
+ return de_CommandError(output, context);
633
+ }
634
+ const data = await core$1.parseJsonBody(output.body, context);
635
+ let contents = {};
636
+ contents = smithyClient._json(data);
637
+ const response = {
638
+ $metadata: deserializeMetadata(output),
639
+ ...contents,
640
+ };
641
+ return response;
642
+ };
643
+ const de_DeleteMLModelCommand = async (output, context) => {
644
+ if (output.statusCode >= 300) {
645
+ return de_CommandError(output, context);
646
+ }
647
+ const data = await core$1.parseJsonBody(output.body, context);
648
+ let contents = {};
649
+ contents = smithyClient._json(data);
650
+ const response = {
651
+ $metadata: deserializeMetadata(output),
652
+ ...contents,
653
+ };
654
+ return response;
655
+ };
656
+ const de_DeleteRealtimeEndpointCommand = async (output, context) => {
657
+ if (output.statusCode >= 300) {
658
+ return de_CommandError(output, context);
659
+ }
660
+ const data = await core$1.parseJsonBody(output.body, context);
661
+ let contents = {};
662
+ contents = de_DeleteRealtimeEndpointOutput(data);
663
+ const response = {
664
+ $metadata: deserializeMetadata(output),
665
+ ...contents,
666
+ };
667
+ return response;
668
+ };
669
+ const de_DeleteTagsCommand = async (output, context) => {
670
+ if (output.statusCode >= 300) {
671
+ return de_CommandError(output, context);
672
+ }
673
+ const data = await core$1.parseJsonBody(output.body, context);
674
+ let contents = {};
675
+ contents = smithyClient._json(data);
676
+ const response = {
677
+ $metadata: deserializeMetadata(output),
678
+ ...contents,
679
+ };
680
+ return response;
681
+ };
682
+ const de_DescribeBatchPredictionsCommand = async (output, context) => {
683
+ if (output.statusCode >= 300) {
684
+ return de_CommandError(output, context);
685
+ }
686
+ const data = await core$1.parseJsonBody(output.body, context);
687
+ let contents = {};
688
+ contents = de_DescribeBatchPredictionsOutput(data);
689
+ const response = {
690
+ $metadata: deserializeMetadata(output),
691
+ ...contents,
692
+ };
693
+ return response;
694
+ };
695
+ const de_DescribeDataSourcesCommand = async (output, context) => {
696
+ if (output.statusCode >= 300) {
697
+ return de_CommandError(output, context);
698
+ }
699
+ const data = await core$1.parseJsonBody(output.body, context);
700
+ let contents = {};
701
+ contents = de_DescribeDataSourcesOutput(data);
702
+ const response = {
703
+ $metadata: deserializeMetadata(output),
704
+ ...contents,
705
+ };
706
+ return response;
707
+ };
708
+ const de_DescribeEvaluationsCommand = async (output, context) => {
709
+ if (output.statusCode >= 300) {
710
+ return de_CommandError(output, context);
711
+ }
712
+ const data = await core$1.parseJsonBody(output.body, context);
713
+ let contents = {};
714
+ contents = de_DescribeEvaluationsOutput(data);
715
+ const response = {
716
+ $metadata: deserializeMetadata(output),
717
+ ...contents,
718
+ };
719
+ return response;
720
+ };
721
+ const de_DescribeMLModelsCommand = async (output, context) => {
722
+ if (output.statusCode >= 300) {
723
+ return de_CommandError(output, context);
724
+ }
725
+ const data = await core$1.parseJsonBody(output.body, context);
726
+ let contents = {};
727
+ contents = de_DescribeMLModelsOutput(data);
728
+ const response = {
729
+ $metadata: deserializeMetadata(output),
730
+ ...contents,
731
+ };
732
+ return response;
733
+ };
734
+ const de_DescribeTagsCommand = async (output, context) => {
735
+ if (output.statusCode >= 300) {
736
+ return de_CommandError(output, context);
737
+ }
738
+ const data = await core$1.parseJsonBody(output.body, context);
739
+ let contents = {};
740
+ contents = smithyClient._json(data);
741
+ const response = {
742
+ $metadata: deserializeMetadata(output),
743
+ ...contents,
744
+ };
745
+ return response;
746
+ };
747
+ const de_GetBatchPredictionCommand = async (output, context) => {
748
+ if (output.statusCode >= 300) {
749
+ return de_CommandError(output, context);
750
+ }
751
+ const data = await core$1.parseJsonBody(output.body, context);
752
+ let contents = {};
753
+ contents = de_GetBatchPredictionOutput(data);
754
+ const response = {
755
+ $metadata: deserializeMetadata(output),
756
+ ...contents,
757
+ };
758
+ return response;
759
+ };
760
+ const de_GetDataSourceCommand = async (output, context) => {
761
+ if (output.statusCode >= 300) {
762
+ return de_CommandError(output, context);
763
+ }
764
+ const data = await core$1.parseJsonBody(output.body, context);
765
+ let contents = {};
766
+ contents = de_GetDataSourceOutput(data);
767
+ const response = {
768
+ $metadata: deserializeMetadata(output),
769
+ ...contents,
770
+ };
771
+ return response;
772
+ };
773
+ const de_GetEvaluationCommand = async (output, context) => {
774
+ if (output.statusCode >= 300) {
775
+ return de_CommandError(output, context);
776
+ }
777
+ const data = await core$1.parseJsonBody(output.body, context);
778
+ let contents = {};
779
+ contents = de_GetEvaluationOutput(data);
780
+ const response = {
781
+ $metadata: deserializeMetadata(output),
782
+ ...contents,
783
+ };
784
+ return response;
785
+ };
786
+ const de_GetMLModelCommand = async (output, context) => {
787
+ if (output.statusCode >= 300) {
788
+ return de_CommandError(output, context);
789
+ }
790
+ const data = await core$1.parseJsonBody(output.body, context);
791
+ let contents = {};
792
+ contents = de_GetMLModelOutput(data);
793
+ const response = {
794
+ $metadata: deserializeMetadata(output),
795
+ ...contents,
796
+ };
797
+ return response;
798
+ };
799
+ const de_PredictCommand = async (output, context) => {
800
+ if (output.statusCode >= 300) {
801
+ return de_CommandError(output, context);
802
+ }
803
+ const data = await core$1.parseJsonBody(output.body, context);
804
+ let contents = {};
805
+ contents = de_PredictOutput(data);
806
+ const response = {
807
+ $metadata: deserializeMetadata(output),
808
+ ...contents,
809
+ };
810
+ return response;
811
+ };
812
+ const de_UpdateBatchPredictionCommand = async (output, context) => {
813
+ if (output.statusCode >= 300) {
814
+ return de_CommandError(output, context);
815
+ }
816
+ const data = await core$1.parseJsonBody(output.body, context);
817
+ let contents = {};
818
+ contents = smithyClient._json(data);
819
+ const response = {
820
+ $metadata: deserializeMetadata(output),
821
+ ...contents,
822
+ };
823
+ return response;
824
+ };
825
+ const de_UpdateDataSourceCommand = async (output, context) => {
826
+ if (output.statusCode >= 300) {
827
+ return de_CommandError(output, context);
828
+ }
829
+ const data = await core$1.parseJsonBody(output.body, context);
830
+ let contents = {};
831
+ contents = smithyClient._json(data);
832
+ const response = {
833
+ $metadata: deserializeMetadata(output),
834
+ ...contents,
835
+ };
836
+ return response;
837
+ };
838
+ const de_UpdateEvaluationCommand = async (output, context) => {
839
+ if (output.statusCode >= 300) {
840
+ return de_CommandError(output, context);
841
+ }
842
+ const data = await core$1.parseJsonBody(output.body, context);
843
+ let contents = {};
844
+ contents = smithyClient._json(data);
845
+ const response = {
846
+ $metadata: deserializeMetadata(output),
847
+ ...contents,
848
+ };
849
+ return response;
850
+ };
851
+ const de_UpdateMLModelCommand = async (output, context) => {
852
+ if (output.statusCode >= 300) {
853
+ return de_CommandError(output, context);
854
+ }
855
+ const data = await core$1.parseJsonBody(output.body, context);
856
+ let contents = {};
857
+ contents = smithyClient._json(data);
858
+ const response = {
859
+ $metadata: deserializeMetadata(output),
860
+ ...contents,
861
+ };
862
+ return response;
863
+ };
864
+ const de_CommandError = async (output, context) => {
865
+ const parsedOutput = {
866
+ ...output,
867
+ body: await core$1.parseJsonErrorBody(output.body, context),
868
+ };
869
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
870
+ switch (errorCode) {
871
+ case "InternalServerException":
872
+ case "com.amazonaws.machinelearning#InternalServerException":
873
+ throw await de_InternalServerExceptionRes(parsedOutput);
874
+ case "InvalidInputException":
875
+ case "com.amazonaws.machinelearning#InvalidInputException":
876
+ throw await de_InvalidInputExceptionRes(parsedOutput);
877
+ case "InvalidTagException":
878
+ case "com.amazonaws.machinelearning#InvalidTagException":
879
+ throw await de_InvalidTagExceptionRes(parsedOutput);
880
+ case "ResourceNotFoundException":
881
+ case "com.amazonaws.machinelearning#ResourceNotFoundException":
882
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
883
+ case "TagLimitExceededException":
884
+ case "com.amazonaws.machinelearning#TagLimitExceededException":
885
+ throw await de_TagLimitExceededExceptionRes(parsedOutput);
886
+ case "IdempotentParameterMismatchException":
887
+ case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
888
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput);
889
+ case "LimitExceededException":
890
+ case "com.amazonaws.machinelearning#LimitExceededException":
891
+ throw await de_LimitExceededExceptionRes(parsedOutput);
892
+ case "PredictorNotMountedException":
893
+ case "com.amazonaws.machinelearning#PredictorNotMountedException":
894
+ throw await de_PredictorNotMountedExceptionRes(parsedOutput);
895
+ default:
896
+ const parsedBody = parsedOutput.body;
897
+ return throwDefaultError({
898
+ output,
899
+ parsedBody,
900
+ errorCode,
901
+ });
902
+ }
903
+ };
904
+ const de_IdempotentParameterMismatchExceptionRes = async (parsedOutput, context) => {
905
+ const body = parsedOutput.body;
906
+ const deserialized = smithyClient._json(body);
907
+ const exception = new IdempotentParameterMismatchException({
908
+ $metadata: deserializeMetadata(parsedOutput),
909
+ ...deserialized,
288
910
  });
289
- Object.setPrototypeOf(this, _InternalServerException.prototype);
290
- this.code = opts.code;
291
- }
292
- };
293
- var InvalidInputException = class _InvalidInputException extends MachineLearningServiceException {
294
- static {
295
- __name(this, "InvalidInputException");
296
- }
297
- name = "InvalidInputException";
298
- $fault = "client";
299
- code;
300
- /**
301
- * @internal
302
- */
303
- constructor(opts) {
304
- super({
305
- name: "InvalidInputException",
306
- $fault: "client",
307
- ...opts
911
+ return smithyClient.decorateServiceException(exception, body);
912
+ };
913
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
914
+ const body = parsedOutput.body;
915
+ const deserialized = smithyClient._json(body);
916
+ const exception = new InternalServerException({
917
+ $metadata: deserializeMetadata(parsedOutput),
918
+ ...deserialized,
308
919
  });
309
- Object.setPrototypeOf(this, _InvalidInputException.prototype);
310
- this.code = opts.code;
311
- }
312
- };
313
- var InvalidTagException = class _InvalidTagException extends MachineLearningServiceException {
314
- static {
315
- __name(this, "InvalidTagException");
316
- }
317
- name = "InvalidTagException";
318
- $fault = "client";
319
- /**
320
- * @internal
321
- */
322
- constructor(opts) {
323
- super({
324
- name: "InvalidTagException",
325
- $fault: "client",
326
- ...opts
920
+ return smithyClient.decorateServiceException(exception, body);
921
+ };
922
+ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
923
+ const body = parsedOutput.body;
924
+ const deserialized = smithyClient._json(body);
925
+ const exception = new InvalidInputException({
926
+ $metadata: deserializeMetadata(parsedOutput),
927
+ ...deserialized,
327
928
  });
328
- Object.setPrototypeOf(this, _InvalidTagException.prototype);
329
- }
330
- };
331
- var ResourceNotFoundException = class _ResourceNotFoundException extends MachineLearningServiceException {
332
- static {
333
- __name(this, "ResourceNotFoundException");
334
- }
335
- name = "ResourceNotFoundException";
336
- $fault = "client";
337
- code;
338
- /**
339
- * @internal
340
- */
341
- constructor(opts) {
342
- super({
343
- name: "ResourceNotFoundException",
344
- $fault: "client",
345
- ...opts
929
+ return smithyClient.decorateServiceException(exception, body);
930
+ };
931
+ const de_InvalidTagExceptionRes = async (parsedOutput, context) => {
932
+ const body = parsedOutput.body;
933
+ const deserialized = smithyClient._json(body);
934
+ const exception = new InvalidTagException({
935
+ $metadata: deserializeMetadata(parsedOutput),
936
+ ...deserialized,
346
937
  });
347
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
348
- this.code = opts.code;
349
- }
350
- };
351
- var TagLimitExceededException = class _TagLimitExceededException extends MachineLearningServiceException {
352
- static {
353
- __name(this, "TagLimitExceededException");
354
- }
355
- name = "TagLimitExceededException";
356
- $fault = "client";
357
- /**
358
- * @internal
359
- */
360
- constructor(opts) {
361
- super({
362
- name: "TagLimitExceededException",
363
- $fault: "client",
364
- ...opts
938
+ return smithyClient.decorateServiceException(exception, body);
939
+ };
940
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
941
+ const body = parsedOutput.body;
942
+ const deserialized = smithyClient._json(body);
943
+ const exception = new LimitExceededException({
944
+ $metadata: deserializeMetadata(parsedOutput),
945
+ ...deserialized,
365
946
  });
366
- Object.setPrototypeOf(this, _TagLimitExceededException.prototype);
367
- }
368
- };
369
- var Algorithm = {
370
- SGD: "sgd"
371
- };
372
- var IdempotentParameterMismatchException = class _IdempotentParameterMismatchException extends MachineLearningServiceException {
373
- static {
374
- __name(this, "IdempotentParameterMismatchException");
375
- }
376
- name = "IdempotentParameterMismatchException";
377
- $fault = "client";
378
- code;
379
- /**
380
- * @internal
381
- */
382
- constructor(opts) {
383
- super({
384
- name: "IdempotentParameterMismatchException",
385
- $fault: "client",
386
- ...opts
947
+ return smithyClient.decorateServiceException(exception, body);
948
+ };
949
+ const de_PredictorNotMountedExceptionRes = async (parsedOutput, context) => {
950
+ const body = parsedOutput.body;
951
+ const deserialized = smithyClient._json(body);
952
+ const exception = new PredictorNotMountedException({
953
+ $metadata: deserializeMetadata(parsedOutput),
954
+ ...deserialized,
387
955
  });
388
- Object.setPrototypeOf(this, _IdempotentParameterMismatchException.prototype);
389
- this.code = opts.code;
390
- }
391
- };
392
- var MLModelType = {
393
- BINARY: "BINARY",
394
- MULTICLASS: "MULTICLASS",
395
- REGRESSION: "REGRESSION"
396
- };
397
- var RealtimeEndpointStatus = {
398
- FAILED: "FAILED",
399
- NONE: "NONE",
400
- READY: "READY",
401
- UPDATING: "UPDATING"
402
- };
403
- var BatchPredictionFilterVariable = {
404
- CREATED_AT: "CreatedAt",
405
- DATASOURCE_ID: "DataSourceId",
406
- DATA_URI: "DataURI",
407
- IAM_USER: "IAMUser",
408
- LAST_UPDATED_AT: "LastUpdatedAt",
409
- ML_MODEL_ID: "MLModelId",
410
- NAME: "Name",
411
- STATUS: "Status"
412
- };
413
- var SortOrder = {
414
- ASC: "asc",
415
- DSC: "dsc"
416
- };
417
- var EntityStatus = {
418
- COMPLETED: "COMPLETED",
419
- DELETED: "DELETED",
420
- FAILED: "FAILED",
421
- INPROGRESS: "INPROGRESS",
422
- PENDING: "PENDING"
423
- };
424
- var DataSourceFilterVariable = {
425
- CREATED_AT: "CreatedAt",
426
- DATA_URI: "DataLocationS3",
427
- IAM_USER: "IAMUser",
428
- LAST_UPDATED_AT: "LastUpdatedAt",
429
- NAME: "Name",
430
- STATUS: "Status"
431
- };
432
- var EvaluationFilterVariable = {
433
- CREATED_AT: "CreatedAt",
434
- DATASOURCE_ID: "DataSourceId",
435
- DATA_URI: "DataURI",
436
- IAM_USER: "IAMUser",
437
- LAST_UPDATED_AT: "LastUpdatedAt",
438
- ML_MODEL_ID: "MLModelId",
439
- NAME: "Name",
440
- STATUS: "Status"
441
- };
442
- var MLModelFilterVariable = {
443
- ALGORITHM: "Algorithm",
444
- CREATED_AT: "CreatedAt",
445
- IAM_USER: "IAMUser",
446
- LAST_UPDATED_AT: "LastUpdatedAt",
447
- ML_MODEL_TYPE: "MLModelType",
448
- NAME: "Name",
449
- REAL_TIME_ENDPOINT_STATUS: "RealtimeEndpointStatus",
450
- STATUS: "Status",
451
- TRAINING_DATASOURCE_ID: "TrainingDataSourceId",
452
- TRAINING_DATA_URI: "TrainingDataURI"
453
- };
454
- var LimitExceededException = class _LimitExceededException extends MachineLearningServiceException {
455
- static {
456
- __name(this, "LimitExceededException");
457
- }
458
- name = "LimitExceededException";
459
- $fault = "client";
460
- code;
461
- /**
462
- * @internal
463
- */
464
- constructor(opts) {
465
- super({
466
- name: "LimitExceededException",
467
- $fault: "client",
468
- ...opts
956
+ return smithyClient.decorateServiceException(exception, body);
957
+ };
958
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
959
+ const body = parsedOutput.body;
960
+ const deserialized = smithyClient._json(body);
961
+ const exception = new ResourceNotFoundException({
962
+ $metadata: deserializeMetadata(parsedOutput),
963
+ ...deserialized,
469
964
  });
470
- Object.setPrototypeOf(this, _LimitExceededException.prototype);
471
- this.code = opts.code;
472
- }
473
- };
474
- var PredictorNotMountedException = class _PredictorNotMountedException extends MachineLearningServiceException {
475
- static {
476
- __name(this, "PredictorNotMountedException");
477
- }
478
- name = "PredictorNotMountedException";
479
- $fault = "client";
480
- /**
481
- * @internal
482
- */
483
- constructor(opts) {
484
- super({
485
- name: "PredictorNotMountedException",
486
- $fault: "client",
487
- ...opts
965
+ return smithyClient.decorateServiceException(exception, body);
966
+ };
967
+ const de_TagLimitExceededExceptionRes = async (parsedOutput, context) => {
968
+ const body = parsedOutput.body;
969
+ const deserialized = smithyClient._json(body);
970
+ const exception = new TagLimitExceededException({
971
+ $metadata: deserializeMetadata(parsedOutput),
972
+ ...deserialized,
488
973
  });
489
- Object.setPrototypeOf(this, _PredictorNotMountedException.prototype);
490
- }
491
- };
492
- var DetailsAttributes = {
493
- ALGORITHM: "Algorithm",
494
- PREDICTIVE_MODEL_TYPE: "PredictiveModelType"
495
- };
496
- var RDSDatabaseCredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
497
- ...obj,
498
- ...obj.Password && { Password: import_smithy_client.SENSITIVE_STRING }
499
- }), "RDSDatabaseCredentialsFilterSensitiveLog");
500
- var RDSDataSpecFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
501
- ...obj,
502
- ...obj.DatabaseCredentials && {
503
- DatabaseCredentials: RDSDatabaseCredentialsFilterSensitiveLog(obj.DatabaseCredentials)
504
- }
505
- }), "RDSDataSpecFilterSensitiveLog");
506
- var CreateDataSourceFromRDSInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
507
- ...obj,
508
- ...obj.RDSData && { RDSData: RDSDataSpecFilterSensitiveLog(obj.RDSData) }
509
- }), "CreateDataSourceFromRDSInputFilterSensitiveLog");
510
- var RedshiftDatabaseCredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
511
- ...obj,
512
- ...obj.Password && { Password: import_smithy_client.SENSITIVE_STRING }
513
- }), "RedshiftDatabaseCredentialsFilterSensitiveLog");
514
- var RedshiftDataSpecFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
515
- ...obj,
516
- ...obj.DatabaseCredentials && {
517
- DatabaseCredentials: RedshiftDatabaseCredentialsFilterSensitiveLog(obj.DatabaseCredentials)
518
- }
519
- }), "RedshiftDataSpecFilterSensitiveLog");
520
- var CreateDataSourceFromRedshiftInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
521
- ...obj,
522
- ...obj.DataSpec && { DataSpec: RedshiftDataSpecFilterSensitiveLog(obj.DataSpec) }
523
- }), "CreateDataSourceFromRedshiftInputFilterSensitiveLog");
524
-
525
- // src/protocols/Aws_json1_1.ts
526
- var se_AddTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
527
- const headers = sharedHeaders("AddTags");
528
- let body;
529
- body = JSON.stringify((0, import_smithy_client._json)(input));
530
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
531
- }, "se_AddTagsCommand");
532
- var se_CreateBatchPredictionCommand = /* @__PURE__ */ __name(async (input, context) => {
533
- const headers = sharedHeaders("CreateBatchPrediction");
534
- let body;
535
- body = JSON.stringify((0, import_smithy_client._json)(input));
536
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
537
- }, "se_CreateBatchPredictionCommand");
538
- var se_CreateDataSourceFromRDSCommand = /* @__PURE__ */ __name(async (input, context) => {
539
- const headers = sharedHeaders("CreateDataSourceFromRDS");
540
- let body;
541
- body = JSON.stringify((0, import_smithy_client._json)(input));
542
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
543
- }, "se_CreateDataSourceFromRDSCommand");
544
- var se_CreateDataSourceFromRedshiftCommand = /* @__PURE__ */ __name(async (input, context) => {
545
- const headers = sharedHeaders("CreateDataSourceFromRedshift");
546
- let body;
547
- body = JSON.stringify((0, import_smithy_client._json)(input));
548
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
549
- }, "se_CreateDataSourceFromRedshiftCommand");
550
- var se_CreateDataSourceFromS3Command = /* @__PURE__ */ __name(async (input, context) => {
551
- const headers = sharedHeaders("CreateDataSourceFromS3");
552
- let body;
553
- body = JSON.stringify((0, import_smithy_client._json)(input));
554
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
555
- }, "se_CreateDataSourceFromS3Command");
556
- var se_CreateEvaluationCommand = /* @__PURE__ */ __name(async (input, context) => {
557
- const headers = sharedHeaders("CreateEvaluation");
558
- let body;
559
- body = JSON.stringify((0, import_smithy_client._json)(input));
560
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
561
- }, "se_CreateEvaluationCommand");
562
- var se_CreateMLModelCommand = /* @__PURE__ */ __name(async (input, context) => {
563
- const headers = sharedHeaders("CreateMLModel");
564
- let body;
565
- body = JSON.stringify((0, import_smithy_client._json)(input));
566
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
567
- }, "se_CreateMLModelCommand");
568
- var se_CreateRealtimeEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
569
- const headers = sharedHeaders("CreateRealtimeEndpoint");
570
- let body;
571
- body = JSON.stringify((0, import_smithy_client._json)(input));
572
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
573
- }, "se_CreateRealtimeEndpointCommand");
574
- var se_DeleteBatchPredictionCommand = /* @__PURE__ */ __name(async (input, context) => {
575
- const headers = sharedHeaders("DeleteBatchPrediction");
576
- let body;
577
- body = JSON.stringify((0, import_smithy_client._json)(input));
578
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
579
- }, "se_DeleteBatchPredictionCommand");
580
- var se_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
581
- const headers = sharedHeaders("DeleteDataSource");
582
- let body;
583
- body = JSON.stringify((0, import_smithy_client._json)(input));
584
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
585
- }, "se_DeleteDataSourceCommand");
586
- var se_DeleteEvaluationCommand = /* @__PURE__ */ __name(async (input, context) => {
587
- const headers = sharedHeaders("DeleteEvaluation");
588
- let body;
589
- body = JSON.stringify((0, import_smithy_client._json)(input));
590
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
591
- }, "se_DeleteEvaluationCommand");
592
- var se_DeleteMLModelCommand = /* @__PURE__ */ __name(async (input, context) => {
593
- const headers = sharedHeaders("DeleteMLModel");
594
- let body;
595
- body = JSON.stringify((0, import_smithy_client._json)(input));
596
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
597
- }, "se_DeleteMLModelCommand");
598
- var se_DeleteRealtimeEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
599
- const headers = sharedHeaders("DeleteRealtimeEndpoint");
600
- let body;
601
- body = JSON.stringify((0, import_smithy_client._json)(input));
602
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
603
- }, "se_DeleteRealtimeEndpointCommand");
604
- var se_DeleteTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
605
- const headers = sharedHeaders("DeleteTags");
606
- let body;
607
- body = JSON.stringify((0, import_smithy_client._json)(input));
608
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
609
- }, "se_DeleteTagsCommand");
610
- var se_DescribeBatchPredictionsCommand = /* @__PURE__ */ __name(async (input, context) => {
611
- const headers = sharedHeaders("DescribeBatchPredictions");
612
- let body;
613
- body = JSON.stringify((0, import_smithy_client._json)(input));
614
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
615
- }, "se_DescribeBatchPredictionsCommand");
616
- var se_DescribeDataSourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
617
- const headers = sharedHeaders("DescribeDataSources");
618
- let body;
619
- body = JSON.stringify((0, import_smithy_client._json)(input));
620
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
621
- }, "se_DescribeDataSourcesCommand");
622
- var se_DescribeEvaluationsCommand = /* @__PURE__ */ __name(async (input, context) => {
623
- const headers = sharedHeaders("DescribeEvaluations");
624
- let body;
625
- body = JSON.stringify((0, import_smithy_client._json)(input));
626
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
627
- }, "se_DescribeEvaluationsCommand");
628
- var se_DescribeMLModelsCommand = /* @__PURE__ */ __name(async (input, context) => {
629
- const headers = sharedHeaders("DescribeMLModels");
630
- let body;
631
- body = JSON.stringify((0, import_smithy_client._json)(input));
632
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
633
- }, "se_DescribeMLModelsCommand");
634
- var se_DescribeTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
635
- const headers = sharedHeaders("DescribeTags");
636
- let body;
637
- body = JSON.stringify((0, import_smithy_client._json)(input));
638
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
639
- }, "se_DescribeTagsCommand");
640
- var se_GetBatchPredictionCommand = /* @__PURE__ */ __name(async (input, context) => {
641
- const headers = sharedHeaders("GetBatchPrediction");
642
- let body;
643
- body = JSON.stringify((0, import_smithy_client._json)(input));
644
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
645
- }, "se_GetBatchPredictionCommand");
646
- var se_GetDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
647
- const headers = sharedHeaders("GetDataSource");
648
- let body;
649
- body = JSON.stringify((0, import_smithy_client._json)(input));
650
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
651
- }, "se_GetDataSourceCommand");
652
- var se_GetEvaluationCommand = /* @__PURE__ */ __name(async (input, context) => {
653
- const headers = sharedHeaders("GetEvaluation");
654
- let body;
655
- body = JSON.stringify((0, import_smithy_client._json)(input));
656
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
657
- }, "se_GetEvaluationCommand");
658
- var se_GetMLModelCommand = /* @__PURE__ */ __name(async (input, context) => {
659
- const headers = sharedHeaders("GetMLModel");
660
- let body;
661
- body = JSON.stringify((0, import_smithy_client._json)(input));
662
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
663
- }, "se_GetMLModelCommand");
664
- var se_PredictCommand = /* @__PURE__ */ __name(async (input, context) => {
665
- const headers = sharedHeaders("Predict");
666
- let body;
667
- body = JSON.stringify((0, import_smithy_client._json)(input));
668
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
669
- }, "se_PredictCommand");
670
- var se_UpdateBatchPredictionCommand = /* @__PURE__ */ __name(async (input, context) => {
671
- const headers = sharedHeaders("UpdateBatchPrediction");
672
- let body;
673
- body = JSON.stringify((0, import_smithy_client._json)(input));
674
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
675
- }, "se_UpdateBatchPredictionCommand");
676
- var se_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (input, context) => {
677
- const headers = sharedHeaders("UpdateDataSource");
678
- let body;
679
- body = JSON.stringify((0, import_smithy_client._json)(input));
680
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
681
- }, "se_UpdateDataSourceCommand");
682
- var se_UpdateEvaluationCommand = /* @__PURE__ */ __name(async (input, context) => {
683
- const headers = sharedHeaders("UpdateEvaluation");
684
- let body;
685
- body = JSON.stringify((0, import_smithy_client._json)(input));
686
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
687
- }, "se_UpdateEvaluationCommand");
688
- var se_UpdateMLModelCommand = /* @__PURE__ */ __name(async (input, context) => {
689
- const headers = sharedHeaders("UpdateMLModel");
690
- let body;
691
- body = JSON.stringify(se_UpdateMLModelInput(input, context));
692
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
693
- }, "se_UpdateMLModelCommand");
694
- var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
695
- if (output.statusCode >= 300) {
696
- return de_CommandError(output, context);
697
- }
698
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
699
- let contents = {};
700
- contents = (0, import_smithy_client._json)(data);
701
- const response = {
702
- $metadata: deserializeMetadata(output),
703
- ...contents
704
- };
705
- return response;
706
- }, "de_AddTagsCommand");
707
- var de_CreateBatchPredictionCommand = /* @__PURE__ */ __name(async (output, context) => {
708
- if (output.statusCode >= 300) {
709
- return de_CommandError(output, context);
710
- }
711
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
712
- let contents = {};
713
- contents = (0, import_smithy_client._json)(data);
714
- const response = {
715
- $metadata: deserializeMetadata(output),
716
- ...contents
717
- };
718
- return response;
719
- }, "de_CreateBatchPredictionCommand");
720
- var de_CreateDataSourceFromRDSCommand = /* @__PURE__ */ __name(async (output, context) => {
721
- if (output.statusCode >= 300) {
722
- return de_CommandError(output, context);
723
- }
724
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
725
- let contents = {};
726
- contents = (0, import_smithy_client._json)(data);
727
- const response = {
728
- $metadata: deserializeMetadata(output),
729
- ...contents
730
- };
731
- return response;
732
- }, "de_CreateDataSourceFromRDSCommand");
733
- var de_CreateDataSourceFromRedshiftCommand = /* @__PURE__ */ __name(async (output, context) => {
734
- if (output.statusCode >= 300) {
735
- return de_CommandError(output, context);
736
- }
737
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
738
- let contents = {};
739
- contents = (0, import_smithy_client._json)(data);
740
- const response = {
741
- $metadata: deserializeMetadata(output),
742
- ...contents
743
- };
744
- return response;
745
- }, "de_CreateDataSourceFromRedshiftCommand");
746
- var de_CreateDataSourceFromS3Command = /* @__PURE__ */ __name(async (output, context) => {
747
- if (output.statusCode >= 300) {
748
- return de_CommandError(output, context);
749
- }
750
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
751
- let contents = {};
752
- contents = (0, import_smithy_client._json)(data);
753
- const response = {
754
- $metadata: deserializeMetadata(output),
755
- ...contents
756
- };
757
- return response;
758
- }, "de_CreateDataSourceFromS3Command");
759
- var de_CreateEvaluationCommand = /* @__PURE__ */ __name(async (output, context) => {
760
- if (output.statusCode >= 300) {
761
- return de_CommandError(output, context);
762
- }
763
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
764
- let contents = {};
765
- contents = (0, import_smithy_client._json)(data);
766
- const response = {
767
- $metadata: deserializeMetadata(output),
768
- ...contents
769
- };
770
- return response;
771
- }, "de_CreateEvaluationCommand");
772
- var de_CreateMLModelCommand = /* @__PURE__ */ __name(async (output, context) => {
773
- if (output.statusCode >= 300) {
774
- return de_CommandError(output, context);
775
- }
776
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
777
- let contents = {};
778
- contents = (0, import_smithy_client._json)(data);
779
- const response = {
780
- $metadata: deserializeMetadata(output),
781
- ...contents
782
- };
783
- return response;
784
- }, "de_CreateMLModelCommand");
785
- var de_CreateRealtimeEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
786
- if (output.statusCode >= 300) {
787
- return de_CommandError(output, context);
788
- }
789
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
790
- let contents = {};
791
- contents = de_CreateRealtimeEndpointOutput(data, context);
792
- const response = {
793
- $metadata: deserializeMetadata(output),
794
- ...contents
795
- };
796
- return response;
797
- }, "de_CreateRealtimeEndpointCommand");
798
- var de_DeleteBatchPredictionCommand = /* @__PURE__ */ __name(async (output, context) => {
799
- if (output.statusCode >= 300) {
800
- return de_CommandError(output, context);
801
- }
802
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
803
- let contents = {};
804
- contents = (0, import_smithy_client._json)(data);
805
- const response = {
806
- $metadata: deserializeMetadata(output),
807
- ...contents
808
- };
809
- return response;
810
- }, "de_DeleteBatchPredictionCommand");
811
- var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
812
- if (output.statusCode >= 300) {
813
- return de_CommandError(output, context);
814
- }
815
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
816
- let contents = {};
817
- contents = (0, import_smithy_client._json)(data);
818
- const response = {
819
- $metadata: deserializeMetadata(output),
820
- ...contents
821
- };
822
- return response;
823
- }, "de_DeleteDataSourceCommand");
824
- var de_DeleteEvaluationCommand = /* @__PURE__ */ __name(async (output, context) => {
825
- if (output.statusCode >= 300) {
826
- return de_CommandError(output, context);
827
- }
828
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
829
- let contents = {};
830
- contents = (0, import_smithy_client._json)(data);
831
- const response = {
832
- $metadata: deserializeMetadata(output),
833
- ...contents
834
- };
835
- return response;
836
- }, "de_DeleteEvaluationCommand");
837
- var de_DeleteMLModelCommand = /* @__PURE__ */ __name(async (output, context) => {
838
- if (output.statusCode >= 300) {
839
- return de_CommandError(output, context);
840
- }
841
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
842
- let contents = {};
843
- contents = (0, import_smithy_client._json)(data);
844
- const response = {
845
- $metadata: deserializeMetadata(output),
846
- ...contents
847
- };
848
- return response;
849
- }, "de_DeleteMLModelCommand");
850
- var de_DeleteRealtimeEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
851
- if (output.statusCode >= 300) {
852
- return de_CommandError(output, context);
853
- }
854
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
855
- let contents = {};
856
- contents = de_DeleteRealtimeEndpointOutput(data, context);
857
- const response = {
858
- $metadata: deserializeMetadata(output),
859
- ...contents
860
- };
861
- return response;
862
- }, "de_DeleteRealtimeEndpointCommand");
863
- var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
864
- if (output.statusCode >= 300) {
865
- return de_CommandError(output, context);
866
- }
867
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
868
- let contents = {};
869
- contents = (0, import_smithy_client._json)(data);
870
- const response = {
871
- $metadata: deserializeMetadata(output),
872
- ...contents
873
- };
874
- return response;
875
- }, "de_DeleteTagsCommand");
876
- var de_DescribeBatchPredictionsCommand = /* @__PURE__ */ __name(async (output, context) => {
877
- if (output.statusCode >= 300) {
878
- return de_CommandError(output, context);
879
- }
880
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
881
- let contents = {};
882
- contents = de_DescribeBatchPredictionsOutput(data, context);
883
- const response = {
884
- $metadata: deserializeMetadata(output),
885
- ...contents
886
- };
887
- return response;
888
- }, "de_DescribeBatchPredictionsCommand");
889
- var de_DescribeDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
890
- if (output.statusCode >= 300) {
891
- return de_CommandError(output, context);
892
- }
893
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
894
- let contents = {};
895
- contents = de_DescribeDataSourcesOutput(data, context);
896
- const response = {
897
- $metadata: deserializeMetadata(output),
898
- ...contents
899
- };
900
- return response;
901
- }, "de_DescribeDataSourcesCommand");
902
- var de_DescribeEvaluationsCommand = /* @__PURE__ */ __name(async (output, context) => {
903
- if (output.statusCode >= 300) {
904
- return de_CommandError(output, context);
905
- }
906
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
907
- let contents = {};
908
- contents = de_DescribeEvaluationsOutput(data, context);
909
- const response = {
910
- $metadata: deserializeMetadata(output),
911
- ...contents
912
- };
913
- return response;
914
- }, "de_DescribeEvaluationsCommand");
915
- var de_DescribeMLModelsCommand = /* @__PURE__ */ __name(async (output, context) => {
916
- if (output.statusCode >= 300) {
917
- return de_CommandError(output, context);
918
- }
919
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
920
- let contents = {};
921
- contents = de_DescribeMLModelsOutput(data, context);
922
- const response = {
923
- $metadata: deserializeMetadata(output),
924
- ...contents
925
- };
926
- return response;
927
- }, "de_DescribeMLModelsCommand");
928
- var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
929
- if (output.statusCode >= 300) {
930
- return de_CommandError(output, context);
931
- }
932
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
933
- let contents = {};
934
- contents = (0, import_smithy_client._json)(data);
935
- const response = {
936
- $metadata: deserializeMetadata(output),
937
- ...contents
938
- };
939
- return response;
940
- }, "de_DescribeTagsCommand");
941
- var de_GetBatchPredictionCommand = /* @__PURE__ */ __name(async (output, context) => {
942
- if (output.statusCode >= 300) {
943
- return de_CommandError(output, context);
944
- }
945
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
946
- let contents = {};
947
- contents = de_GetBatchPredictionOutput(data, context);
948
- const response = {
949
- $metadata: deserializeMetadata(output),
950
- ...contents
951
- };
952
- return response;
953
- }, "de_GetBatchPredictionCommand");
954
- var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
955
- if (output.statusCode >= 300) {
956
- return de_CommandError(output, context);
957
- }
958
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
959
- let contents = {};
960
- contents = de_GetDataSourceOutput(data, context);
961
- const response = {
962
- $metadata: deserializeMetadata(output),
963
- ...contents
964
- };
965
- return response;
966
- }, "de_GetDataSourceCommand");
967
- var de_GetEvaluationCommand = /* @__PURE__ */ __name(async (output, context) => {
968
- if (output.statusCode >= 300) {
969
- return de_CommandError(output, context);
970
- }
971
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
972
- let contents = {};
973
- contents = de_GetEvaluationOutput(data, context);
974
- const response = {
975
- $metadata: deserializeMetadata(output),
976
- ...contents
977
- };
978
- return response;
979
- }, "de_GetEvaluationCommand");
980
- var de_GetMLModelCommand = /* @__PURE__ */ __name(async (output, context) => {
981
- if (output.statusCode >= 300) {
982
- return de_CommandError(output, context);
983
- }
984
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
985
- let contents = {};
986
- contents = de_GetMLModelOutput(data, context);
987
- const response = {
988
- $metadata: deserializeMetadata(output),
989
- ...contents
990
- };
991
- return response;
992
- }, "de_GetMLModelCommand");
993
- var de_PredictCommand = /* @__PURE__ */ __name(async (output, context) => {
994
- if (output.statusCode >= 300) {
995
- return de_CommandError(output, context);
996
- }
997
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
998
- let contents = {};
999
- contents = de_PredictOutput(data, context);
1000
- const response = {
1001
- $metadata: deserializeMetadata(output),
1002
- ...contents
1003
- };
1004
- return response;
1005
- }, "de_PredictCommand");
1006
- var de_UpdateBatchPredictionCommand = /* @__PURE__ */ __name(async (output, context) => {
1007
- if (output.statusCode >= 300) {
1008
- return de_CommandError(output, context);
1009
- }
1010
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1011
- let contents = {};
1012
- contents = (0, import_smithy_client._json)(data);
1013
- const response = {
1014
- $metadata: deserializeMetadata(output),
1015
- ...contents
1016
- };
1017
- return response;
1018
- }, "de_UpdateBatchPredictionCommand");
1019
- var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1020
- if (output.statusCode >= 300) {
1021
- return de_CommandError(output, context);
1022
- }
1023
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1024
- let contents = {};
1025
- contents = (0, import_smithy_client._json)(data);
1026
- const response = {
1027
- $metadata: deserializeMetadata(output),
1028
- ...contents
1029
- };
1030
- return response;
1031
- }, "de_UpdateDataSourceCommand");
1032
- var de_UpdateEvaluationCommand = /* @__PURE__ */ __name(async (output, context) => {
1033
- if (output.statusCode >= 300) {
1034
- return de_CommandError(output, context);
1035
- }
1036
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1037
- let contents = {};
1038
- contents = (0, import_smithy_client._json)(data);
1039
- const response = {
1040
- $metadata: deserializeMetadata(output),
1041
- ...contents
1042
- };
1043
- return response;
1044
- }, "de_UpdateEvaluationCommand");
1045
- var de_UpdateMLModelCommand = /* @__PURE__ */ __name(async (output, context) => {
1046
- if (output.statusCode >= 300) {
1047
- return de_CommandError(output, context);
1048
- }
1049
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1050
- let contents = {};
1051
- contents = (0, import_smithy_client._json)(data);
1052
- const response = {
1053
- $metadata: deserializeMetadata(output),
1054
- ...contents
1055
- };
1056
- return response;
1057
- }, "de_UpdateMLModelCommand");
1058
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1059
- const parsedOutput = {
1060
- ...output,
1061
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1062
- };
1063
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1064
- switch (errorCode) {
1065
- case "InternalServerException":
1066
- case "com.amazonaws.machinelearning#InternalServerException":
1067
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1068
- case "InvalidInputException":
1069
- case "com.amazonaws.machinelearning#InvalidInputException":
1070
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1071
- case "InvalidTagException":
1072
- case "com.amazonaws.machinelearning#InvalidTagException":
1073
- throw await de_InvalidTagExceptionRes(parsedOutput, context);
1074
- case "ResourceNotFoundException":
1075
- case "com.amazonaws.machinelearning#ResourceNotFoundException":
1076
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1077
- case "TagLimitExceededException":
1078
- case "com.amazonaws.machinelearning#TagLimitExceededException":
1079
- throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
1080
- case "IdempotentParameterMismatchException":
1081
- case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
1082
- throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
1083
- case "LimitExceededException":
1084
- case "com.amazonaws.machinelearning#LimitExceededException":
1085
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1086
- case "PredictorNotMountedException":
1087
- case "com.amazonaws.machinelearning#PredictorNotMountedException":
1088
- throw await de_PredictorNotMountedExceptionRes(parsedOutput, context);
1089
- default:
1090
- const parsedBody = parsedOutput.body;
1091
- return throwDefaultError({
1092
- output,
1093
- parsedBody,
1094
- errorCode
1095
- });
1096
- }
1097
- }, "de_CommandError");
1098
- var de_IdempotentParameterMismatchExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1099
- const body = parsedOutput.body;
1100
- const deserialized = (0, import_smithy_client._json)(body);
1101
- const exception = new IdempotentParameterMismatchException({
1102
- $metadata: deserializeMetadata(parsedOutput),
1103
- ...deserialized
1104
- });
1105
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1106
- }, "de_IdempotentParameterMismatchExceptionRes");
1107
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1108
- const body = parsedOutput.body;
1109
- const deserialized = (0, import_smithy_client._json)(body);
1110
- const exception = new InternalServerException({
1111
- $metadata: deserializeMetadata(parsedOutput),
1112
- ...deserialized
1113
- });
1114
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1115
- }, "de_InternalServerExceptionRes");
1116
- var de_InvalidInputExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1117
- const body = parsedOutput.body;
1118
- const deserialized = (0, import_smithy_client._json)(body);
1119
- const exception = new InvalidInputException({
1120
- $metadata: deserializeMetadata(parsedOutput),
1121
- ...deserialized
1122
- });
1123
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1124
- }, "de_InvalidInputExceptionRes");
1125
- var de_InvalidTagExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1126
- const body = parsedOutput.body;
1127
- const deserialized = (0, import_smithy_client._json)(body);
1128
- const exception = new InvalidTagException({
1129
- $metadata: deserializeMetadata(parsedOutput),
1130
- ...deserialized
1131
- });
1132
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1133
- }, "de_InvalidTagExceptionRes");
1134
- var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1135
- const body = parsedOutput.body;
1136
- const deserialized = (0, import_smithy_client._json)(body);
1137
- const exception = new LimitExceededException({
1138
- $metadata: deserializeMetadata(parsedOutput),
1139
- ...deserialized
1140
- });
1141
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1142
- }, "de_LimitExceededExceptionRes");
1143
- var de_PredictorNotMountedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1144
- const body = parsedOutput.body;
1145
- const deserialized = (0, import_smithy_client._json)(body);
1146
- const exception = new PredictorNotMountedException({
1147
- $metadata: deserializeMetadata(parsedOutput),
1148
- ...deserialized
1149
- });
1150
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1151
- }, "de_PredictorNotMountedExceptionRes");
1152
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1153
- const body = parsedOutput.body;
1154
- const deserialized = (0, import_smithy_client._json)(body);
1155
- const exception = new ResourceNotFoundException({
1156
- $metadata: deserializeMetadata(parsedOutput),
1157
- ...deserialized
1158
- });
1159
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1160
- }, "de_ResourceNotFoundExceptionRes");
1161
- var de_TagLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1162
- const body = parsedOutput.body;
1163
- const deserialized = (0, import_smithy_client._json)(body);
1164
- const exception = new TagLimitExceededException({
1165
- $metadata: deserializeMetadata(parsedOutput),
1166
- ...deserialized
1167
- });
1168
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1169
- }, "de_TagLimitExceededExceptionRes");
1170
- var se_UpdateMLModelInput = /* @__PURE__ */ __name((input, context) => {
1171
- return (0, import_smithy_client.take)(input, {
1172
- MLModelId: [],
1173
- MLModelName: [],
1174
- ScoreThreshold: import_smithy_client.serializeFloat
1175
- });
1176
- }, "se_UpdateMLModelInput");
1177
- var de_BatchPrediction = /* @__PURE__ */ __name((output, context) => {
1178
- return (0, import_smithy_client.take)(output, {
1179
- BatchPredictionDataSourceId: import_smithy_client.expectString,
1180
- BatchPredictionId: import_smithy_client.expectString,
1181
- ComputeTime: import_smithy_client.expectLong,
1182
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1183
- CreatedByIamUser: import_smithy_client.expectString,
1184
- FinishedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "FinishedAt"),
1185
- InputDataLocationS3: import_smithy_client.expectString,
1186
- InvalidRecordCount: import_smithy_client.expectLong,
1187
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1188
- MLModelId: import_smithy_client.expectString,
1189
- Message: import_smithy_client.expectString,
1190
- Name: import_smithy_client.expectString,
1191
- OutputUri: import_smithy_client.expectString,
1192
- StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartedAt"),
1193
- Status: import_smithy_client.expectString,
1194
- TotalRecordCount: import_smithy_client.expectLong
1195
- });
1196
- }, "de_BatchPrediction");
1197
- var de_BatchPredictions = /* @__PURE__ */ __name((output, context) => {
1198
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1199
- return de_BatchPrediction(entry, context);
1200
- });
1201
- return retVal;
1202
- }, "de_BatchPredictions");
1203
- var de_CreateRealtimeEndpointOutput = /* @__PURE__ */ __name((output, context) => {
1204
- return (0, import_smithy_client.take)(output, {
1205
- MLModelId: import_smithy_client.expectString,
1206
- RealtimeEndpointInfo: /* @__PURE__ */ __name((_) => de_RealtimeEndpointInfo(_, context), "RealtimeEndpointInfo")
1207
- });
1208
- }, "de_CreateRealtimeEndpointOutput");
1209
- var de_DataSource = /* @__PURE__ */ __name((output, context) => {
1210
- return (0, import_smithy_client.take)(output, {
1211
- ComputeStatistics: import_smithy_client.expectBoolean,
1212
- ComputeTime: import_smithy_client.expectLong,
1213
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1214
- CreatedByIamUser: import_smithy_client.expectString,
1215
- DataLocationS3: import_smithy_client.expectString,
1216
- DataRearrangement: import_smithy_client.expectString,
1217
- DataSizeInBytes: import_smithy_client.expectLong,
1218
- DataSourceId: import_smithy_client.expectString,
1219
- FinishedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "FinishedAt"),
1220
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1221
- Message: import_smithy_client.expectString,
1222
- Name: import_smithy_client.expectString,
1223
- NumberOfFiles: import_smithy_client.expectLong,
1224
- RDSMetadata: import_smithy_client._json,
1225
- RedshiftMetadata: import_smithy_client._json,
1226
- RoleARN: import_smithy_client.expectString,
1227
- StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartedAt"),
1228
- Status: import_smithy_client.expectString
1229
- });
1230
- }, "de_DataSource");
1231
- var de_DataSources = /* @__PURE__ */ __name((output, context) => {
1232
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1233
- return de_DataSource(entry, context);
1234
- });
1235
- return retVal;
1236
- }, "de_DataSources");
1237
- var de_DeleteRealtimeEndpointOutput = /* @__PURE__ */ __name((output, context) => {
1238
- return (0, import_smithy_client.take)(output, {
1239
- MLModelId: import_smithy_client.expectString,
1240
- RealtimeEndpointInfo: /* @__PURE__ */ __name((_) => de_RealtimeEndpointInfo(_, context), "RealtimeEndpointInfo")
1241
- });
1242
- }, "de_DeleteRealtimeEndpointOutput");
1243
- var de_DescribeBatchPredictionsOutput = /* @__PURE__ */ __name((output, context) => {
1244
- return (0, import_smithy_client.take)(output, {
1245
- NextToken: import_smithy_client.expectString,
1246
- Results: /* @__PURE__ */ __name((_) => de_BatchPredictions(_, context), "Results")
1247
- });
1248
- }, "de_DescribeBatchPredictionsOutput");
1249
- var de_DescribeDataSourcesOutput = /* @__PURE__ */ __name((output, context) => {
1250
- return (0, import_smithy_client.take)(output, {
1251
- NextToken: import_smithy_client.expectString,
1252
- Results: /* @__PURE__ */ __name((_) => de_DataSources(_, context), "Results")
1253
- });
1254
- }, "de_DescribeDataSourcesOutput");
1255
- var de_DescribeEvaluationsOutput = /* @__PURE__ */ __name((output, context) => {
1256
- return (0, import_smithy_client.take)(output, {
1257
- NextToken: import_smithy_client.expectString,
1258
- Results: /* @__PURE__ */ __name((_) => de_Evaluations(_, context), "Results")
1259
- });
1260
- }, "de_DescribeEvaluationsOutput");
1261
- var de_DescribeMLModelsOutput = /* @__PURE__ */ __name((output, context) => {
1262
- return (0, import_smithy_client.take)(output, {
1263
- NextToken: import_smithy_client.expectString,
1264
- Results: /* @__PURE__ */ __name((_) => de_MLModels(_, context), "Results")
1265
- });
1266
- }, "de_DescribeMLModelsOutput");
1267
- var de_Evaluation = /* @__PURE__ */ __name((output, context) => {
1268
- return (0, import_smithy_client.take)(output, {
1269
- ComputeTime: import_smithy_client.expectLong,
1270
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1271
- CreatedByIamUser: import_smithy_client.expectString,
1272
- EvaluationDataSourceId: import_smithy_client.expectString,
1273
- EvaluationId: import_smithy_client.expectString,
1274
- FinishedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "FinishedAt"),
1275
- InputDataLocationS3: import_smithy_client.expectString,
1276
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1277
- MLModelId: import_smithy_client.expectString,
1278
- Message: import_smithy_client.expectString,
1279
- Name: import_smithy_client.expectString,
1280
- PerformanceMetrics: import_smithy_client._json,
1281
- StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartedAt"),
1282
- Status: import_smithy_client.expectString
1283
- });
1284
- }, "de_Evaluation");
1285
- var de_Evaluations = /* @__PURE__ */ __name((output, context) => {
1286
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1287
- return de_Evaluation(entry, context);
1288
- });
1289
- return retVal;
1290
- }, "de_Evaluations");
1291
- var de_GetBatchPredictionOutput = /* @__PURE__ */ __name((output, context) => {
1292
- return (0, import_smithy_client.take)(output, {
1293
- BatchPredictionDataSourceId: import_smithy_client.expectString,
1294
- BatchPredictionId: import_smithy_client.expectString,
1295
- ComputeTime: import_smithy_client.expectLong,
1296
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1297
- CreatedByIamUser: import_smithy_client.expectString,
1298
- FinishedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "FinishedAt"),
1299
- InputDataLocationS3: import_smithy_client.expectString,
1300
- InvalidRecordCount: import_smithy_client.expectLong,
1301
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1302
- LogUri: import_smithy_client.expectString,
1303
- MLModelId: import_smithy_client.expectString,
1304
- Message: import_smithy_client.expectString,
1305
- Name: import_smithy_client.expectString,
1306
- OutputUri: import_smithy_client.expectString,
1307
- StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartedAt"),
1308
- Status: import_smithy_client.expectString,
1309
- TotalRecordCount: import_smithy_client.expectLong
1310
- });
1311
- }, "de_GetBatchPredictionOutput");
1312
- var de_GetDataSourceOutput = /* @__PURE__ */ __name((output, context) => {
1313
- return (0, import_smithy_client.take)(output, {
1314
- ComputeStatistics: import_smithy_client.expectBoolean,
1315
- ComputeTime: import_smithy_client.expectLong,
1316
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1317
- CreatedByIamUser: import_smithy_client.expectString,
1318
- DataLocationS3: import_smithy_client.expectString,
1319
- DataRearrangement: import_smithy_client.expectString,
1320
- DataSizeInBytes: import_smithy_client.expectLong,
1321
- DataSourceId: import_smithy_client.expectString,
1322
- DataSourceSchema: import_smithy_client.expectString,
1323
- FinishedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "FinishedAt"),
1324
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1325
- LogUri: import_smithy_client.expectString,
1326
- Message: import_smithy_client.expectString,
1327
- Name: import_smithy_client.expectString,
1328
- NumberOfFiles: import_smithy_client.expectLong,
1329
- RDSMetadata: import_smithy_client._json,
1330
- RedshiftMetadata: import_smithy_client._json,
1331
- RoleARN: import_smithy_client.expectString,
1332
- StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartedAt"),
1333
- Status: import_smithy_client.expectString
1334
- });
1335
- }, "de_GetDataSourceOutput");
1336
- var de_GetEvaluationOutput = /* @__PURE__ */ __name((output, context) => {
1337
- return (0, import_smithy_client.take)(output, {
1338
- ComputeTime: import_smithy_client.expectLong,
1339
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1340
- CreatedByIamUser: import_smithy_client.expectString,
1341
- EvaluationDataSourceId: import_smithy_client.expectString,
1342
- EvaluationId: import_smithy_client.expectString,
1343
- FinishedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "FinishedAt"),
1344
- InputDataLocationS3: import_smithy_client.expectString,
1345
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1346
- LogUri: import_smithy_client.expectString,
1347
- MLModelId: import_smithy_client.expectString,
1348
- Message: import_smithy_client.expectString,
1349
- Name: import_smithy_client.expectString,
1350
- PerformanceMetrics: import_smithy_client._json,
1351
- StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartedAt"),
1352
- Status: import_smithy_client.expectString
1353
- });
1354
- }, "de_GetEvaluationOutput");
1355
- var de_GetMLModelOutput = /* @__PURE__ */ __name((output, context) => {
1356
- return (0, import_smithy_client.take)(output, {
1357
- ComputeTime: import_smithy_client.expectLong,
1358
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1359
- CreatedByIamUser: import_smithy_client.expectString,
1360
- EndpointInfo: /* @__PURE__ */ __name((_) => de_RealtimeEndpointInfo(_, context), "EndpointInfo"),
1361
- FinishedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "FinishedAt"),
1362
- InputDataLocationS3: import_smithy_client.expectString,
1363
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1364
- LogUri: import_smithy_client.expectString,
1365
- MLModelId: import_smithy_client.expectString,
1366
- MLModelType: import_smithy_client.expectString,
1367
- Message: import_smithy_client.expectString,
1368
- Name: import_smithy_client.expectString,
1369
- Recipe: import_smithy_client.expectString,
1370
- Schema: import_smithy_client.expectString,
1371
- ScoreThreshold: import_smithy_client.limitedParseFloat32,
1372
- ScoreThresholdLastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ScoreThresholdLastUpdatedAt"),
1373
- SizeInBytes: import_smithy_client.expectLong,
1374
- StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartedAt"),
1375
- Status: import_smithy_client.expectString,
1376
- TrainingDataSourceId: import_smithy_client.expectString,
1377
- TrainingParameters: import_smithy_client._json
1378
- });
1379
- }, "de_GetMLModelOutput");
1380
- var de_MLModel = /* @__PURE__ */ __name((output, context) => {
1381
- return (0, import_smithy_client.take)(output, {
1382
- Algorithm: import_smithy_client.expectString,
1383
- ComputeTime: import_smithy_client.expectLong,
1384
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1385
- CreatedByIamUser: import_smithy_client.expectString,
1386
- EndpointInfo: /* @__PURE__ */ __name((_) => de_RealtimeEndpointInfo(_, context), "EndpointInfo"),
1387
- FinishedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "FinishedAt"),
1388
- InputDataLocationS3: import_smithy_client.expectString,
1389
- LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedAt"),
1390
- MLModelId: import_smithy_client.expectString,
1391
- MLModelType: import_smithy_client.expectString,
1392
- Message: import_smithy_client.expectString,
1393
- Name: import_smithy_client.expectString,
1394
- ScoreThreshold: import_smithy_client.limitedParseFloat32,
1395
- ScoreThresholdLastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ScoreThresholdLastUpdatedAt"),
1396
- SizeInBytes: import_smithy_client.expectLong,
1397
- StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartedAt"),
1398
- Status: import_smithy_client.expectString,
1399
- TrainingDataSourceId: import_smithy_client.expectString,
1400
- TrainingParameters: import_smithy_client._json
1401
- });
1402
- }, "de_MLModel");
1403
- var de_MLModels = /* @__PURE__ */ __name((output, context) => {
1404
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1405
- return de_MLModel(entry, context);
1406
- });
1407
- return retVal;
1408
- }, "de_MLModels");
1409
- var de_Prediction = /* @__PURE__ */ __name((output, context) => {
1410
- return (0, import_smithy_client.take)(output, {
1411
- details: import_smithy_client._json,
1412
- predictedLabel: import_smithy_client.expectString,
1413
- predictedScores: /* @__PURE__ */ __name((_) => de_ScoreValuePerLabelMap(_, context), "predictedScores"),
1414
- predictedValue: import_smithy_client.limitedParseFloat32
1415
- });
1416
- }, "de_Prediction");
1417
- var de_PredictOutput = /* @__PURE__ */ __name((output, context) => {
1418
- return (0, import_smithy_client.take)(output, {
1419
- Prediction: /* @__PURE__ */ __name((_) => de_Prediction(_, context), "Prediction")
1420
- });
1421
- }, "de_PredictOutput");
1422
- var de_RealtimeEndpointInfo = /* @__PURE__ */ __name((output, context) => {
1423
- return (0, import_smithy_client.take)(output, {
1424
- CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
1425
- EndpointStatus: import_smithy_client.expectString,
1426
- EndpointUrl: import_smithy_client.expectString,
1427
- PeakRequestsPerSecond: import_smithy_client.expectInt32
1428
- });
1429
- }, "de_RealtimeEndpointInfo");
1430
- var de_ScoreValuePerLabelMap = /* @__PURE__ */ __name((output, context) => {
1431
- return Object.entries(output).reduce((acc, [key, value]) => {
1432
- if (value === null) {
1433
- return acc;
1434
- }
1435
- acc[key] = (0, import_smithy_client.limitedParseFloat32)(value);
1436
- return acc;
1437
- }, {});
1438
- }, "de_ScoreValuePerLabelMap");
1439
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1440
- httpStatusCode: output.statusCode,
1441
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1442
- extendedRequestId: output.headers["x-amz-id-2"],
1443
- cfId: output.headers["x-amz-cf-id"]
1444
- }), "deserializeMetadata");
1445
- var throwDefaultError = (0, import_smithy_client.withBaseException)(MachineLearningServiceException);
1446
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1447
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1448
- const contents = {
1449
- protocol,
1450
- hostname,
1451
- port,
1452
- method: "POST",
1453
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1454
- headers
1455
- };
1456
- if (resolvedHostname !== void 0) {
1457
- contents.hostname = resolvedHostname;
1458
- }
1459
- if (body !== void 0) {
1460
- contents.body = body;
1461
- }
1462
- return new import_protocol_http.HttpRequest(contents);
1463
- }, "buildHttpRpcRequest");
1464
- function sharedHeaders(operation) {
1465
- return {
1466
- "content-type": "application/x-amz-json-1.1",
1467
- "x-amz-target": `AmazonML_20141212.${operation}`
1468
- };
1469
- }
1470
- __name(sharedHeaders, "sharedHeaders");
1471
-
1472
- // src/commands/AddTagsCommand.ts
1473
- var AddTagsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1474
- return [
1475
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1476
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1477
- ];
1478
- }).s("AmazonML_20141212", "AddTags", {}).n("MachineLearningClient", "AddTagsCommand").f(void 0, void 0).ser(se_AddTagsCommand).de(de_AddTagsCommand).build() {
1479
- static {
1480
- __name(this, "AddTagsCommand");
1481
- }
974
+ return smithyClient.decorateServiceException(exception, body);
1482
975
  };
1483
-
1484
- // src/commands/CreateBatchPredictionCommand.ts
1485
-
1486
-
1487
-
1488
- var CreateBatchPredictionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1489
- return [
1490
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1491
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1492
- ];
1493
- }).s("AmazonML_20141212", "CreateBatchPrediction", {}).n("MachineLearningClient", "CreateBatchPredictionCommand").f(void 0, void 0).ser(se_CreateBatchPredictionCommand).de(de_CreateBatchPredictionCommand).build() {
1494
- static {
1495
- __name(this, "CreateBatchPredictionCommand");
1496
- }
976
+ const se_UpdateMLModelInput = (input, context) => {
977
+ return smithyClient.take(input, {
978
+ MLModelId: [],
979
+ MLModelName: [],
980
+ ScoreThreshold: smithyClient.serializeFloat,
981
+ });
1497
982
  };
1498
-
1499
- // src/commands/CreateDataSourceFromRDSCommand.ts
1500
-
1501
-
1502
-
1503
- var CreateDataSourceFromRDSCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1504
- return [
1505
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1506
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1507
- ];
1508
- }).s("AmazonML_20141212", "CreateDataSourceFromRDS", {}).n("MachineLearningClient", "CreateDataSourceFromRDSCommand").f(CreateDataSourceFromRDSInputFilterSensitiveLog, void 0).ser(se_CreateDataSourceFromRDSCommand).de(de_CreateDataSourceFromRDSCommand).build() {
1509
- static {
1510
- __name(this, "CreateDataSourceFromRDSCommand");
1511
- }
983
+ const de_BatchPrediction = (output, context) => {
984
+ return smithyClient.take(output, {
985
+ BatchPredictionDataSourceId: smithyClient.expectString,
986
+ BatchPredictionId: smithyClient.expectString,
987
+ ComputeTime: smithyClient.expectLong,
988
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
989
+ CreatedByIamUser: smithyClient.expectString,
990
+ FinishedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
991
+ InputDataLocationS3: smithyClient.expectString,
992
+ InvalidRecordCount: smithyClient.expectLong,
993
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
994
+ MLModelId: smithyClient.expectString,
995
+ Message: smithyClient.expectString,
996
+ Name: smithyClient.expectString,
997
+ OutputUri: smithyClient.expectString,
998
+ StartedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
999
+ Status: smithyClient.expectString,
1000
+ TotalRecordCount: smithyClient.expectLong,
1001
+ });
1512
1002
  };
1513
-
1514
- // src/commands/CreateDataSourceFromRedshiftCommand.ts
1515
-
1516
-
1517
-
1518
- var CreateDataSourceFromRedshiftCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1519
- return [
1520
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1521
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1522
- ];
1523
- }).s("AmazonML_20141212", "CreateDataSourceFromRedshift", {}).n("MachineLearningClient", "CreateDataSourceFromRedshiftCommand").f(CreateDataSourceFromRedshiftInputFilterSensitiveLog, void 0).ser(se_CreateDataSourceFromRedshiftCommand).de(de_CreateDataSourceFromRedshiftCommand).build() {
1524
- static {
1525
- __name(this, "CreateDataSourceFromRedshiftCommand");
1526
- }
1003
+ const de_BatchPredictions = (output, context) => {
1004
+ const retVal = (output || [])
1005
+ .filter((e) => e != null)
1006
+ .map((entry) => {
1007
+ return de_BatchPrediction(entry);
1008
+ });
1009
+ return retVal;
1527
1010
  };
1528
-
1529
- // src/commands/CreateDataSourceFromS3Command.ts
1530
-
1531
-
1532
-
1533
- var CreateDataSourceFromS3Command = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1534
- return [
1535
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1536
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1537
- ];
1538
- }).s("AmazonML_20141212", "CreateDataSourceFromS3", {}).n("MachineLearningClient", "CreateDataSourceFromS3Command").f(void 0, void 0).ser(se_CreateDataSourceFromS3Command).de(de_CreateDataSourceFromS3Command).build() {
1539
- static {
1540
- __name(this, "CreateDataSourceFromS3Command");
1541
- }
1011
+ const de_CreateRealtimeEndpointOutput = (output, context) => {
1012
+ return smithyClient.take(output, {
1013
+ MLModelId: smithyClient.expectString,
1014
+ RealtimeEndpointInfo: (_) => de_RealtimeEndpointInfo(_),
1015
+ });
1542
1016
  };
1543
-
1544
- // src/commands/CreateEvaluationCommand.ts
1545
-
1546
-
1547
-
1548
- var CreateEvaluationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1549
- return [
1550
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1551
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1552
- ];
1553
- }).s("AmazonML_20141212", "CreateEvaluation", {}).n("MachineLearningClient", "CreateEvaluationCommand").f(void 0, void 0).ser(se_CreateEvaluationCommand).de(de_CreateEvaluationCommand).build() {
1554
- static {
1555
- __name(this, "CreateEvaluationCommand");
1556
- }
1017
+ const de_DataSource = (output, context) => {
1018
+ return smithyClient.take(output, {
1019
+ ComputeStatistics: smithyClient.expectBoolean,
1020
+ ComputeTime: smithyClient.expectLong,
1021
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1022
+ CreatedByIamUser: smithyClient.expectString,
1023
+ DataLocationS3: smithyClient.expectString,
1024
+ DataRearrangement: smithyClient.expectString,
1025
+ DataSizeInBytes: smithyClient.expectLong,
1026
+ DataSourceId: smithyClient.expectString,
1027
+ FinishedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1028
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1029
+ Message: smithyClient.expectString,
1030
+ Name: smithyClient.expectString,
1031
+ NumberOfFiles: smithyClient.expectLong,
1032
+ RDSMetadata: smithyClient._json,
1033
+ RedshiftMetadata: smithyClient._json,
1034
+ RoleARN: smithyClient.expectString,
1035
+ StartedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1036
+ Status: smithyClient.expectString,
1037
+ });
1557
1038
  };
1558
-
1559
- // src/commands/CreateMLModelCommand.ts
1560
-
1561
-
1562
-
1563
- var CreateMLModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1564
- return [
1565
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1566
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1567
- ];
1568
- }).s("AmazonML_20141212", "CreateMLModel", {}).n("MachineLearningClient", "CreateMLModelCommand").f(void 0, void 0).ser(se_CreateMLModelCommand).de(de_CreateMLModelCommand).build() {
1569
- static {
1570
- __name(this, "CreateMLModelCommand");
1571
- }
1039
+ const de_DataSources = (output, context) => {
1040
+ const retVal = (output || [])
1041
+ .filter((e) => e != null)
1042
+ .map((entry) => {
1043
+ return de_DataSource(entry);
1044
+ });
1045
+ return retVal;
1572
1046
  };
1573
-
1574
- // src/commands/CreateRealtimeEndpointCommand.ts
1575
-
1576
-
1577
-
1578
- var CreateRealtimeEndpointCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1579
- return [
1580
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1581
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1582
- ];
1583
- }).s("AmazonML_20141212", "CreateRealtimeEndpoint", {}).n("MachineLearningClient", "CreateRealtimeEndpointCommand").f(void 0, void 0).ser(se_CreateRealtimeEndpointCommand).de(de_CreateRealtimeEndpointCommand).build() {
1584
- static {
1585
- __name(this, "CreateRealtimeEndpointCommand");
1586
- }
1047
+ const de_DeleteRealtimeEndpointOutput = (output, context) => {
1048
+ return smithyClient.take(output, {
1049
+ MLModelId: smithyClient.expectString,
1050
+ RealtimeEndpointInfo: (_) => de_RealtimeEndpointInfo(_),
1051
+ });
1587
1052
  };
1588
-
1589
- // src/commands/DeleteBatchPredictionCommand.ts
1590
-
1591
-
1592
-
1593
- var DeleteBatchPredictionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1594
- return [
1595
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1596
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1597
- ];
1598
- }).s("AmazonML_20141212", "DeleteBatchPrediction", {}).n("MachineLearningClient", "DeleteBatchPredictionCommand").f(void 0, void 0).ser(se_DeleteBatchPredictionCommand).de(de_DeleteBatchPredictionCommand).build() {
1599
- static {
1600
- __name(this, "DeleteBatchPredictionCommand");
1601
- }
1053
+ const de_DescribeBatchPredictionsOutput = (output, context) => {
1054
+ return smithyClient.take(output, {
1055
+ NextToken: smithyClient.expectString,
1056
+ Results: (_) => de_BatchPredictions(_),
1057
+ });
1602
1058
  };
1603
-
1604
- // src/commands/DeleteDataSourceCommand.ts
1605
-
1606
-
1607
-
1608
- var DeleteDataSourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1609
- return [
1610
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1611
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1612
- ];
1613
- }).s("AmazonML_20141212", "DeleteDataSource", {}).n("MachineLearningClient", "DeleteDataSourceCommand").f(void 0, void 0).ser(se_DeleteDataSourceCommand).de(de_DeleteDataSourceCommand).build() {
1614
- static {
1615
- __name(this, "DeleteDataSourceCommand");
1616
- }
1059
+ const de_DescribeDataSourcesOutput = (output, context) => {
1060
+ return smithyClient.take(output, {
1061
+ NextToken: smithyClient.expectString,
1062
+ Results: (_) => de_DataSources(_),
1063
+ });
1617
1064
  };
1618
-
1619
- // src/commands/DeleteEvaluationCommand.ts
1620
-
1621
-
1622
-
1623
- var DeleteEvaluationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1624
- return [
1625
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1626
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1627
- ];
1628
- }).s("AmazonML_20141212", "DeleteEvaluation", {}).n("MachineLearningClient", "DeleteEvaluationCommand").f(void 0, void 0).ser(se_DeleteEvaluationCommand).de(de_DeleteEvaluationCommand).build() {
1629
- static {
1630
- __name(this, "DeleteEvaluationCommand");
1631
- }
1065
+ const de_DescribeEvaluationsOutput = (output, context) => {
1066
+ return smithyClient.take(output, {
1067
+ NextToken: smithyClient.expectString,
1068
+ Results: (_) => de_Evaluations(_),
1069
+ });
1632
1070
  };
1633
-
1634
- // src/commands/DeleteMLModelCommand.ts
1635
-
1636
-
1637
-
1638
- var DeleteMLModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1639
- return [
1640
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1641
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1642
- ];
1643
- }).s("AmazonML_20141212", "DeleteMLModel", {}).n("MachineLearningClient", "DeleteMLModelCommand").f(void 0, void 0).ser(se_DeleteMLModelCommand).de(de_DeleteMLModelCommand).build() {
1644
- static {
1645
- __name(this, "DeleteMLModelCommand");
1646
- }
1071
+ const de_DescribeMLModelsOutput = (output, context) => {
1072
+ return smithyClient.take(output, {
1073
+ NextToken: smithyClient.expectString,
1074
+ Results: (_) => de_MLModels(_),
1075
+ });
1647
1076
  };
1648
-
1649
- // src/commands/DeleteRealtimeEndpointCommand.ts
1650
-
1651
-
1652
-
1653
- var DeleteRealtimeEndpointCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1654
- return [
1655
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1656
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1657
- ];
1658
- }).s("AmazonML_20141212", "DeleteRealtimeEndpoint", {}).n("MachineLearningClient", "DeleteRealtimeEndpointCommand").f(void 0, void 0).ser(se_DeleteRealtimeEndpointCommand).de(de_DeleteRealtimeEndpointCommand).build() {
1659
- static {
1660
- __name(this, "DeleteRealtimeEndpointCommand");
1661
- }
1077
+ const de_Evaluation = (output, context) => {
1078
+ return smithyClient.take(output, {
1079
+ ComputeTime: smithyClient.expectLong,
1080
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1081
+ CreatedByIamUser: smithyClient.expectString,
1082
+ EvaluationDataSourceId: smithyClient.expectString,
1083
+ EvaluationId: smithyClient.expectString,
1084
+ FinishedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1085
+ InputDataLocationS3: smithyClient.expectString,
1086
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1087
+ MLModelId: smithyClient.expectString,
1088
+ Message: smithyClient.expectString,
1089
+ Name: smithyClient.expectString,
1090
+ PerformanceMetrics: smithyClient._json,
1091
+ StartedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1092
+ Status: smithyClient.expectString,
1093
+ });
1662
1094
  };
1663
-
1664
- // src/commands/DeleteTagsCommand.ts
1665
-
1666
-
1667
-
1668
- var DeleteTagsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1669
- return [
1670
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1671
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1672
- ];
1673
- }).s("AmazonML_20141212", "DeleteTags", {}).n("MachineLearningClient", "DeleteTagsCommand").f(void 0, void 0).ser(se_DeleteTagsCommand).de(de_DeleteTagsCommand).build() {
1674
- static {
1675
- __name(this, "DeleteTagsCommand");
1676
- }
1095
+ const de_Evaluations = (output, context) => {
1096
+ const retVal = (output || [])
1097
+ .filter((e) => e != null)
1098
+ .map((entry) => {
1099
+ return de_Evaluation(entry);
1100
+ });
1101
+ return retVal;
1677
1102
  };
1678
-
1679
- // src/commands/DescribeBatchPredictionsCommand.ts
1680
-
1681
-
1682
-
1683
- var DescribeBatchPredictionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1684
- return [
1685
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1686
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1687
- ];
1688
- }).s("AmazonML_20141212", "DescribeBatchPredictions", {}).n("MachineLearningClient", "DescribeBatchPredictionsCommand").f(void 0, void 0).ser(se_DescribeBatchPredictionsCommand).de(de_DescribeBatchPredictionsCommand).build() {
1689
- static {
1690
- __name(this, "DescribeBatchPredictionsCommand");
1691
- }
1103
+ const de_GetBatchPredictionOutput = (output, context) => {
1104
+ return smithyClient.take(output, {
1105
+ BatchPredictionDataSourceId: smithyClient.expectString,
1106
+ BatchPredictionId: smithyClient.expectString,
1107
+ ComputeTime: smithyClient.expectLong,
1108
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1109
+ CreatedByIamUser: smithyClient.expectString,
1110
+ FinishedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1111
+ InputDataLocationS3: smithyClient.expectString,
1112
+ InvalidRecordCount: smithyClient.expectLong,
1113
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1114
+ LogUri: smithyClient.expectString,
1115
+ MLModelId: smithyClient.expectString,
1116
+ Message: smithyClient.expectString,
1117
+ Name: smithyClient.expectString,
1118
+ OutputUri: smithyClient.expectString,
1119
+ StartedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1120
+ Status: smithyClient.expectString,
1121
+ TotalRecordCount: smithyClient.expectLong,
1122
+ });
1692
1123
  };
1693
-
1694
- // src/commands/DescribeDataSourcesCommand.ts
1695
-
1696
-
1697
-
1698
- var DescribeDataSourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1699
- return [
1700
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1701
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1702
- ];
1703
- }).s("AmazonML_20141212", "DescribeDataSources", {}).n("MachineLearningClient", "DescribeDataSourcesCommand").f(void 0, void 0).ser(se_DescribeDataSourcesCommand).de(de_DescribeDataSourcesCommand).build() {
1704
- static {
1705
- __name(this, "DescribeDataSourcesCommand");
1706
- }
1124
+ const de_GetDataSourceOutput = (output, context) => {
1125
+ return smithyClient.take(output, {
1126
+ ComputeStatistics: smithyClient.expectBoolean,
1127
+ ComputeTime: smithyClient.expectLong,
1128
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1129
+ CreatedByIamUser: smithyClient.expectString,
1130
+ DataLocationS3: smithyClient.expectString,
1131
+ DataRearrangement: smithyClient.expectString,
1132
+ DataSizeInBytes: smithyClient.expectLong,
1133
+ DataSourceId: smithyClient.expectString,
1134
+ DataSourceSchema: smithyClient.expectString,
1135
+ FinishedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1136
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1137
+ LogUri: smithyClient.expectString,
1138
+ Message: smithyClient.expectString,
1139
+ Name: smithyClient.expectString,
1140
+ NumberOfFiles: smithyClient.expectLong,
1141
+ RDSMetadata: smithyClient._json,
1142
+ RedshiftMetadata: smithyClient._json,
1143
+ RoleARN: smithyClient.expectString,
1144
+ StartedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1145
+ Status: smithyClient.expectString,
1146
+ });
1707
1147
  };
1708
-
1709
- // src/commands/DescribeEvaluationsCommand.ts
1710
-
1711
-
1712
-
1713
- var DescribeEvaluationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1714
- return [
1715
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1716
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1717
- ];
1718
- }).s("AmazonML_20141212", "DescribeEvaluations", {}).n("MachineLearningClient", "DescribeEvaluationsCommand").f(void 0, void 0).ser(se_DescribeEvaluationsCommand).de(de_DescribeEvaluationsCommand).build() {
1719
- static {
1720
- __name(this, "DescribeEvaluationsCommand");
1721
- }
1148
+ const de_GetEvaluationOutput = (output, context) => {
1149
+ return smithyClient.take(output, {
1150
+ ComputeTime: smithyClient.expectLong,
1151
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1152
+ CreatedByIamUser: smithyClient.expectString,
1153
+ EvaluationDataSourceId: smithyClient.expectString,
1154
+ EvaluationId: smithyClient.expectString,
1155
+ FinishedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1156
+ InputDataLocationS3: smithyClient.expectString,
1157
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1158
+ LogUri: smithyClient.expectString,
1159
+ MLModelId: smithyClient.expectString,
1160
+ Message: smithyClient.expectString,
1161
+ Name: smithyClient.expectString,
1162
+ PerformanceMetrics: smithyClient._json,
1163
+ StartedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1164
+ Status: smithyClient.expectString,
1165
+ });
1722
1166
  };
1723
-
1724
- // src/commands/DescribeMLModelsCommand.ts
1725
-
1726
-
1727
-
1728
- var DescribeMLModelsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1729
- return [
1730
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1731
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1732
- ];
1733
- }).s("AmazonML_20141212", "DescribeMLModels", {}).n("MachineLearningClient", "DescribeMLModelsCommand").f(void 0, void 0).ser(se_DescribeMLModelsCommand).de(de_DescribeMLModelsCommand).build() {
1734
- static {
1735
- __name(this, "DescribeMLModelsCommand");
1736
- }
1167
+ const de_GetMLModelOutput = (output, context) => {
1168
+ return smithyClient.take(output, {
1169
+ ComputeTime: smithyClient.expectLong,
1170
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1171
+ CreatedByIamUser: smithyClient.expectString,
1172
+ EndpointInfo: (_) => de_RealtimeEndpointInfo(_),
1173
+ FinishedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1174
+ InputDataLocationS3: smithyClient.expectString,
1175
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1176
+ LogUri: smithyClient.expectString,
1177
+ MLModelId: smithyClient.expectString,
1178
+ MLModelType: smithyClient.expectString,
1179
+ Message: smithyClient.expectString,
1180
+ Name: smithyClient.expectString,
1181
+ Recipe: smithyClient.expectString,
1182
+ Schema: smithyClient.expectString,
1183
+ ScoreThreshold: smithyClient.limitedParseFloat32,
1184
+ ScoreThresholdLastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1185
+ SizeInBytes: smithyClient.expectLong,
1186
+ StartedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1187
+ Status: smithyClient.expectString,
1188
+ TrainingDataSourceId: smithyClient.expectString,
1189
+ TrainingParameters: smithyClient._json,
1190
+ });
1737
1191
  };
1738
-
1739
- // src/commands/DescribeTagsCommand.ts
1740
-
1741
-
1742
-
1743
- var DescribeTagsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1744
- return [
1745
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1746
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1747
- ];
1748
- }).s("AmazonML_20141212", "DescribeTags", {}).n("MachineLearningClient", "DescribeTagsCommand").f(void 0, void 0).ser(se_DescribeTagsCommand).de(de_DescribeTagsCommand).build() {
1749
- static {
1750
- __name(this, "DescribeTagsCommand");
1751
- }
1192
+ const de_MLModel = (output, context) => {
1193
+ return smithyClient.take(output, {
1194
+ Algorithm: smithyClient.expectString,
1195
+ ComputeTime: smithyClient.expectLong,
1196
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1197
+ CreatedByIamUser: smithyClient.expectString,
1198
+ EndpointInfo: (_) => de_RealtimeEndpointInfo(_),
1199
+ FinishedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1200
+ InputDataLocationS3: smithyClient.expectString,
1201
+ LastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1202
+ MLModelId: smithyClient.expectString,
1203
+ MLModelType: smithyClient.expectString,
1204
+ Message: smithyClient.expectString,
1205
+ Name: smithyClient.expectString,
1206
+ ScoreThreshold: smithyClient.limitedParseFloat32,
1207
+ ScoreThresholdLastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1208
+ SizeInBytes: smithyClient.expectLong,
1209
+ StartedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1210
+ Status: smithyClient.expectString,
1211
+ TrainingDataSourceId: smithyClient.expectString,
1212
+ TrainingParameters: smithyClient._json,
1213
+ });
1752
1214
  };
1753
-
1754
- // src/commands/GetBatchPredictionCommand.ts
1755
-
1756
-
1757
-
1758
- var GetBatchPredictionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1759
- return [
1760
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1761
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1762
- ];
1763
- }).s("AmazonML_20141212", "GetBatchPrediction", {}).n("MachineLearningClient", "GetBatchPredictionCommand").f(void 0, void 0).ser(se_GetBatchPredictionCommand).de(de_GetBatchPredictionCommand).build() {
1764
- static {
1765
- __name(this, "GetBatchPredictionCommand");
1766
- }
1215
+ const de_MLModels = (output, context) => {
1216
+ const retVal = (output || [])
1217
+ .filter((e) => e != null)
1218
+ .map((entry) => {
1219
+ return de_MLModel(entry);
1220
+ });
1221
+ return retVal;
1767
1222
  };
1768
-
1769
- // src/commands/GetDataSourceCommand.ts
1770
-
1771
-
1772
-
1773
- var GetDataSourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1774
- return [
1775
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1776
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1777
- ];
1778
- }).s("AmazonML_20141212", "GetDataSource", {}).n("MachineLearningClient", "GetDataSourceCommand").f(void 0, void 0).ser(se_GetDataSourceCommand).de(de_GetDataSourceCommand).build() {
1779
- static {
1780
- __name(this, "GetDataSourceCommand");
1781
- }
1223
+ const de_Prediction = (output, context) => {
1224
+ return smithyClient.take(output, {
1225
+ details: smithyClient._json,
1226
+ predictedLabel: smithyClient.expectString,
1227
+ predictedScores: (_) => de_ScoreValuePerLabelMap(_),
1228
+ predictedValue: smithyClient.limitedParseFloat32,
1229
+ });
1782
1230
  };
1783
-
1784
- // src/commands/GetEvaluationCommand.ts
1785
-
1786
-
1787
-
1788
- var GetEvaluationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1789
- return [
1790
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1791
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1792
- ];
1793
- }).s("AmazonML_20141212", "GetEvaluation", {}).n("MachineLearningClient", "GetEvaluationCommand").f(void 0, void 0).ser(se_GetEvaluationCommand).de(de_GetEvaluationCommand).build() {
1794
- static {
1795
- __name(this, "GetEvaluationCommand");
1796
- }
1231
+ const de_PredictOutput = (output, context) => {
1232
+ return smithyClient.take(output, {
1233
+ Prediction: (_) => de_Prediction(_),
1234
+ });
1235
+ };
1236
+ const de_RealtimeEndpointInfo = (output, context) => {
1237
+ return smithyClient.take(output, {
1238
+ CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1239
+ EndpointStatus: smithyClient.expectString,
1240
+ EndpointUrl: smithyClient.expectString,
1241
+ PeakRequestsPerSecond: smithyClient.expectInt32,
1242
+ });
1243
+ };
1244
+ const de_ScoreValuePerLabelMap = (output, context) => {
1245
+ return Object.entries(output).reduce((acc, [key, value]) => {
1246
+ if (value === null) {
1247
+ return acc;
1248
+ }
1249
+ acc[key] = smithyClient.limitedParseFloat32(value);
1250
+ return acc;
1251
+ }, {});
1797
1252
  };
1253
+ const deserializeMetadata = (output) => ({
1254
+ httpStatusCode: output.statusCode,
1255
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1256
+ extendedRequestId: output.headers["x-amz-id-2"],
1257
+ cfId: output.headers["x-amz-cf-id"],
1258
+ });
1259
+ const throwDefaultError = smithyClient.withBaseException(MachineLearningServiceException);
1260
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1261
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1262
+ const contents = {
1263
+ protocol,
1264
+ hostname,
1265
+ port,
1266
+ method: "POST",
1267
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1268
+ headers,
1269
+ };
1270
+ if (body !== undefined) {
1271
+ contents.body = body;
1272
+ }
1273
+ return new protocolHttp.HttpRequest(contents);
1274
+ };
1275
+ function sharedHeaders(operation) {
1276
+ return {
1277
+ "content-type": "application/x-amz-json-1.1",
1278
+ "x-amz-target": `AmazonML_20141212.${operation}`,
1279
+ };
1280
+ }
1798
1281
 
1799
- // src/commands/GetMLModelCommand.ts
1282
+ class AddTagsCommand extends smithyClient.Command
1283
+ .classBuilder()
1284
+ .ep(commonParams)
1285
+ .m(function (Command, cs, config, o) {
1286
+ return [
1287
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1288
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1289
+ ];
1290
+ })
1291
+ .s("AmazonML_20141212", "AddTags", {})
1292
+ .n("MachineLearningClient", "AddTagsCommand")
1293
+ .f(void 0, void 0)
1294
+ .ser(se_AddTagsCommand)
1295
+ .de(de_AddTagsCommand)
1296
+ .build() {
1297
+ }
1800
1298
 
1299
+ class CreateBatchPredictionCommand extends smithyClient.Command
1300
+ .classBuilder()
1301
+ .ep(commonParams)
1302
+ .m(function (Command, cs, config, o) {
1303
+ return [
1304
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1305
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1306
+ ];
1307
+ })
1308
+ .s("AmazonML_20141212", "CreateBatchPrediction", {})
1309
+ .n("MachineLearningClient", "CreateBatchPredictionCommand")
1310
+ .f(void 0, void 0)
1311
+ .ser(se_CreateBatchPredictionCommand)
1312
+ .de(de_CreateBatchPredictionCommand)
1313
+ .build() {
1314
+ }
1801
1315
 
1316
+ class CreateDataSourceFromRDSCommand extends smithyClient.Command
1317
+ .classBuilder()
1318
+ .ep(commonParams)
1319
+ .m(function (Command, cs, config, o) {
1320
+ return [
1321
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1322
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1323
+ ];
1324
+ })
1325
+ .s("AmazonML_20141212", "CreateDataSourceFromRDS", {})
1326
+ .n("MachineLearningClient", "CreateDataSourceFromRDSCommand")
1327
+ .f(CreateDataSourceFromRDSInputFilterSensitiveLog, void 0)
1328
+ .ser(se_CreateDataSourceFromRDSCommand)
1329
+ .de(de_CreateDataSourceFromRDSCommand)
1330
+ .build() {
1331
+ }
1802
1332
 
1803
- var GetMLModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1804
- return [
1805
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1806
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1807
- ];
1808
- }).s("AmazonML_20141212", "GetMLModel", {}).n("MachineLearningClient", "GetMLModelCommand").f(void 0, void 0).ser(se_GetMLModelCommand).de(de_GetMLModelCommand).build() {
1809
- static {
1810
- __name(this, "GetMLModelCommand");
1811
- }
1812
- };
1333
+ class CreateDataSourceFromRedshiftCommand extends smithyClient.Command
1334
+ .classBuilder()
1335
+ .ep(commonParams)
1336
+ .m(function (Command, cs, config, o) {
1337
+ return [
1338
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1339
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1340
+ ];
1341
+ })
1342
+ .s("AmazonML_20141212", "CreateDataSourceFromRedshift", {})
1343
+ .n("MachineLearningClient", "CreateDataSourceFromRedshiftCommand")
1344
+ .f(CreateDataSourceFromRedshiftInputFilterSensitiveLog, void 0)
1345
+ .ser(se_CreateDataSourceFromRedshiftCommand)
1346
+ .de(de_CreateDataSourceFromRedshiftCommand)
1347
+ .build() {
1348
+ }
1813
1349
 
1814
- // src/commands/PredictCommand.ts
1815
- var import_middleware_sdk_machinelearning = require("@aws-sdk/middleware-sdk-machinelearning");
1350
+ class CreateDataSourceFromS3Command extends smithyClient.Command
1351
+ .classBuilder()
1352
+ .ep(commonParams)
1353
+ .m(function (Command, cs, config, o) {
1354
+ return [
1355
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1356
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1357
+ ];
1358
+ })
1359
+ .s("AmazonML_20141212", "CreateDataSourceFromS3", {})
1360
+ .n("MachineLearningClient", "CreateDataSourceFromS3Command")
1361
+ .f(void 0, void 0)
1362
+ .ser(se_CreateDataSourceFromS3Command)
1363
+ .de(de_CreateDataSourceFromS3Command)
1364
+ .build() {
1365
+ }
1816
1366
 
1367
+ class CreateEvaluationCommand extends smithyClient.Command
1368
+ .classBuilder()
1369
+ .ep(commonParams)
1370
+ .m(function (Command, cs, config, o) {
1371
+ return [
1372
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1373
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1374
+ ];
1375
+ })
1376
+ .s("AmazonML_20141212", "CreateEvaluation", {})
1377
+ .n("MachineLearningClient", "CreateEvaluationCommand")
1378
+ .f(void 0, void 0)
1379
+ .ser(se_CreateEvaluationCommand)
1380
+ .de(de_CreateEvaluationCommand)
1381
+ .build() {
1382
+ }
1817
1383
 
1384
+ class CreateMLModelCommand extends smithyClient.Command
1385
+ .classBuilder()
1386
+ .ep(commonParams)
1387
+ .m(function (Command, cs, config, o) {
1388
+ return [
1389
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1390
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1391
+ ];
1392
+ })
1393
+ .s("AmazonML_20141212", "CreateMLModel", {})
1394
+ .n("MachineLearningClient", "CreateMLModelCommand")
1395
+ .f(void 0, void 0)
1396
+ .ser(se_CreateMLModelCommand)
1397
+ .de(de_CreateMLModelCommand)
1398
+ .build() {
1399
+ }
1818
1400
 
1819
- var PredictCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1820
- return [
1821
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1822
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
1823
- (0, import_middleware_sdk_machinelearning.getPredictEndpointPlugin)(config)
1824
- ];
1825
- }).s("AmazonML_20141212", "Predict", {}).n("MachineLearningClient", "PredictCommand").f(void 0, void 0).ser(se_PredictCommand).de(de_PredictCommand).build() {
1826
- static {
1827
- __name(this, "PredictCommand");
1828
- }
1829
- };
1401
+ class CreateRealtimeEndpointCommand extends smithyClient.Command
1402
+ .classBuilder()
1403
+ .ep(commonParams)
1404
+ .m(function (Command, cs, config, o) {
1405
+ return [
1406
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1407
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1408
+ ];
1409
+ })
1410
+ .s("AmazonML_20141212", "CreateRealtimeEndpoint", {})
1411
+ .n("MachineLearningClient", "CreateRealtimeEndpointCommand")
1412
+ .f(void 0, void 0)
1413
+ .ser(se_CreateRealtimeEndpointCommand)
1414
+ .de(de_CreateRealtimeEndpointCommand)
1415
+ .build() {
1416
+ }
1830
1417
 
1831
- // src/commands/UpdateBatchPredictionCommand.ts
1418
+ class DeleteBatchPredictionCommand extends smithyClient.Command
1419
+ .classBuilder()
1420
+ .ep(commonParams)
1421
+ .m(function (Command, cs, config, o) {
1422
+ return [
1423
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1424
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1425
+ ];
1426
+ })
1427
+ .s("AmazonML_20141212", "DeleteBatchPrediction", {})
1428
+ .n("MachineLearningClient", "DeleteBatchPredictionCommand")
1429
+ .f(void 0, void 0)
1430
+ .ser(se_DeleteBatchPredictionCommand)
1431
+ .de(de_DeleteBatchPredictionCommand)
1432
+ .build() {
1433
+ }
1832
1434
 
1435
+ class DeleteDataSourceCommand extends smithyClient.Command
1436
+ .classBuilder()
1437
+ .ep(commonParams)
1438
+ .m(function (Command, cs, config, o) {
1439
+ return [
1440
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1441
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1442
+ ];
1443
+ })
1444
+ .s("AmazonML_20141212", "DeleteDataSource", {})
1445
+ .n("MachineLearningClient", "DeleteDataSourceCommand")
1446
+ .f(void 0, void 0)
1447
+ .ser(se_DeleteDataSourceCommand)
1448
+ .de(de_DeleteDataSourceCommand)
1449
+ .build() {
1450
+ }
1833
1451
 
1452
+ class DeleteEvaluationCommand extends smithyClient.Command
1453
+ .classBuilder()
1454
+ .ep(commonParams)
1455
+ .m(function (Command, cs, config, o) {
1456
+ return [
1457
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1458
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1459
+ ];
1460
+ })
1461
+ .s("AmazonML_20141212", "DeleteEvaluation", {})
1462
+ .n("MachineLearningClient", "DeleteEvaluationCommand")
1463
+ .f(void 0, void 0)
1464
+ .ser(se_DeleteEvaluationCommand)
1465
+ .de(de_DeleteEvaluationCommand)
1466
+ .build() {
1467
+ }
1834
1468
 
1835
- var UpdateBatchPredictionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1836
- return [
1837
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1838
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1839
- ];
1840
- }).s("AmazonML_20141212", "UpdateBatchPrediction", {}).n("MachineLearningClient", "UpdateBatchPredictionCommand").f(void 0, void 0).ser(se_UpdateBatchPredictionCommand).de(de_UpdateBatchPredictionCommand).build() {
1841
- static {
1842
- __name(this, "UpdateBatchPredictionCommand");
1843
- }
1844
- };
1469
+ class DeleteMLModelCommand extends smithyClient.Command
1470
+ .classBuilder()
1471
+ .ep(commonParams)
1472
+ .m(function (Command, cs, config, o) {
1473
+ return [
1474
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1475
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1476
+ ];
1477
+ })
1478
+ .s("AmazonML_20141212", "DeleteMLModel", {})
1479
+ .n("MachineLearningClient", "DeleteMLModelCommand")
1480
+ .f(void 0, void 0)
1481
+ .ser(se_DeleteMLModelCommand)
1482
+ .de(de_DeleteMLModelCommand)
1483
+ .build() {
1484
+ }
1845
1485
 
1846
- // src/commands/UpdateDataSourceCommand.ts
1486
+ class DeleteRealtimeEndpointCommand extends smithyClient.Command
1487
+ .classBuilder()
1488
+ .ep(commonParams)
1489
+ .m(function (Command, cs, config, o) {
1490
+ return [
1491
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1492
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1493
+ ];
1494
+ })
1495
+ .s("AmazonML_20141212", "DeleteRealtimeEndpoint", {})
1496
+ .n("MachineLearningClient", "DeleteRealtimeEndpointCommand")
1497
+ .f(void 0, void 0)
1498
+ .ser(se_DeleteRealtimeEndpointCommand)
1499
+ .de(de_DeleteRealtimeEndpointCommand)
1500
+ .build() {
1501
+ }
1847
1502
 
1503
+ class DeleteTagsCommand extends smithyClient.Command
1504
+ .classBuilder()
1505
+ .ep(commonParams)
1506
+ .m(function (Command, cs, config, o) {
1507
+ return [
1508
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1509
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1510
+ ];
1511
+ })
1512
+ .s("AmazonML_20141212", "DeleteTags", {})
1513
+ .n("MachineLearningClient", "DeleteTagsCommand")
1514
+ .f(void 0, void 0)
1515
+ .ser(se_DeleteTagsCommand)
1516
+ .de(de_DeleteTagsCommand)
1517
+ .build() {
1518
+ }
1848
1519
 
1520
+ class DescribeBatchPredictionsCommand extends smithyClient.Command
1521
+ .classBuilder()
1522
+ .ep(commonParams)
1523
+ .m(function (Command, cs, config, o) {
1524
+ return [
1525
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1526
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1527
+ ];
1528
+ })
1529
+ .s("AmazonML_20141212", "DescribeBatchPredictions", {})
1530
+ .n("MachineLearningClient", "DescribeBatchPredictionsCommand")
1531
+ .f(void 0, void 0)
1532
+ .ser(se_DescribeBatchPredictionsCommand)
1533
+ .de(de_DescribeBatchPredictionsCommand)
1534
+ .build() {
1535
+ }
1849
1536
 
1850
- var UpdateDataSourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1851
- return [
1852
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1853
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1854
- ];
1855
- }).s("AmazonML_20141212", "UpdateDataSource", {}).n("MachineLearningClient", "UpdateDataSourceCommand").f(void 0, void 0).ser(se_UpdateDataSourceCommand).de(de_UpdateDataSourceCommand).build() {
1856
- static {
1857
- __name(this, "UpdateDataSourceCommand");
1858
- }
1859
- };
1537
+ class DescribeDataSourcesCommand extends smithyClient.Command
1538
+ .classBuilder()
1539
+ .ep(commonParams)
1540
+ .m(function (Command, cs, config, o) {
1541
+ return [
1542
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1543
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1544
+ ];
1545
+ })
1546
+ .s("AmazonML_20141212", "DescribeDataSources", {})
1547
+ .n("MachineLearningClient", "DescribeDataSourcesCommand")
1548
+ .f(void 0, void 0)
1549
+ .ser(se_DescribeDataSourcesCommand)
1550
+ .de(de_DescribeDataSourcesCommand)
1551
+ .build() {
1552
+ }
1860
1553
 
1861
- // src/commands/UpdateEvaluationCommand.ts
1554
+ class DescribeEvaluationsCommand extends smithyClient.Command
1555
+ .classBuilder()
1556
+ .ep(commonParams)
1557
+ .m(function (Command, cs, config, o) {
1558
+ return [
1559
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1560
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1561
+ ];
1562
+ })
1563
+ .s("AmazonML_20141212", "DescribeEvaluations", {})
1564
+ .n("MachineLearningClient", "DescribeEvaluationsCommand")
1565
+ .f(void 0, void 0)
1566
+ .ser(se_DescribeEvaluationsCommand)
1567
+ .de(de_DescribeEvaluationsCommand)
1568
+ .build() {
1569
+ }
1862
1570
 
1571
+ class DescribeMLModelsCommand extends smithyClient.Command
1572
+ .classBuilder()
1573
+ .ep(commonParams)
1574
+ .m(function (Command, cs, config, o) {
1575
+ return [
1576
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1577
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1578
+ ];
1579
+ })
1580
+ .s("AmazonML_20141212", "DescribeMLModels", {})
1581
+ .n("MachineLearningClient", "DescribeMLModelsCommand")
1582
+ .f(void 0, void 0)
1583
+ .ser(se_DescribeMLModelsCommand)
1584
+ .de(de_DescribeMLModelsCommand)
1585
+ .build() {
1586
+ }
1863
1587
 
1588
+ class DescribeTagsCommand extends smithyClient.Command
1589
+ .classBuilder()
1590
+ .ep(commonParams)
1591
+ .m(function (Command, cs, config, o) {
1592
+ return [
1593
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1594
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1595
+ ];
1596
+ })
1597
+ .s("AmazonML_20141212", "DescribeTags", {})
1598
+ .n("MachineLearningClient", "DescribeTagsCommand")
1599
+ .f(void 0, void 0)
1600
+ .ser(se_DescribeTagsCommand)
1601
+ .de(de_DescribeTagsCommand)
1602
+ .build() {
1603
+ }
1864
1604
 
1865
- var UpdateEvaluationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1866
- return [
1867
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1868
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1869
- ];
1870
- }).s("AmazonML_20141212", "UpdateEvaluation", {}).n("MachineLearningClient", "UpdateEvaluationCommand").f(void 0, void 0).ser(se_UpdateEvaluationCommand).de(de_UpdateEvaluationCommand).build() {
1871
- static {
1872
- __name(this, "UpdateEvaluationCommand");
1873
- }
1874
- };
1605
+ class GetBatchPredictionCommand extends smithyClient.Command
1606
+ .classBuilder()
1607
+ .ep(commonParams)
1608
+ .m(function (Command, cs, config, o) {
1609
+ return [
1610
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1611
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1612
+ ];
1613
+ })
1614
+ .s("AmazonML_20141212", "GetBatchPrediction", {})
1615
+ .n("MachineLearningClient", "GetBatchPredictionCommand")
1616
+ .f(void 0, void 0)
1617
+ .ser(se_GetBatchPredictionCommand)
1618
+ .de(de_GetBatchPredictionCommand)
1619
+ .build() {
1620
+ }
1875
1621
 
1876
- // src/commands/UpdateMLModelCommand.ts
1622
+ class GetDataSourceCommand extends smithyClient.Command
1623
+ .classBuilder()
1624
+ .ep(commonParams)
1625
+ .m(function (Command, cs, config, o) {
1626
+ return [
1627
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1628
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1629
+ ];
1630
+ })
1631
+ .s("AmazonML_20141212", "GetDataSource", {})
1632
+ .n("MachineLearningClient", "GetDataSourceCommand")
1633
+ .f(void 0, void 0)
1634
+ .ser(se_GetDataSourceCommand)
1635
+ .de(de_GetDataSourceCommand)
1636
+ .build() {
1637
+ }
1877
1638
 
1639
+ class GetEvaluationCommand extends smithyClient.Command
1640
+ .classBuilder()
1641
+ .ep(commonParams)
1642
+ .m(function (Command, cs, config, o) {
1643
+ return [
1644
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1645
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1646
+ ];
1647
+ })
1648
+ .s("AmazonML_20141212", "GetEvaluation", {})
1649
+ .n("MachineLearningClient", "GetEvaluationCommand")
1650
+ .f(void 0, void 0)
1651
+ .ser(se_GetEvaluationCommand)
1652
+ .de(de_GetEvaluationCommand)
1653
+ .build() {
1654
+ }
1878
1655
 
1656
+ class GetMLModelCommand extends smithyClient.Command
1657
+ .classBuilder()
1658
+ .ep(commonParams)
1659
+ .m(function (Command, cs, config, o) {
1660
+ return [
1661
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1662
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1663
+ ];
1664
+ })
1665
+ .s("AmazonML_20141212", "GetMLModel", {})
1666
+ .n("MachineLearningClient", "GetMLModelCommand")
1667
+ .f(void 0, void 0)
1668
+ .ser(se_GetMLModelCommand)
1669
+ .de(de_GetMLModelCommand)
1670
+ .build() {
1671
+ }
1879
1672
 
1880
- var UpdateMLModelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1881
- return [
1882
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1883
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1884
- ];
1885
- }).s("AmazonML_20141212", "UpdateMLModel", {}).n("MachineLearningClient", "UpdateMLModelCommand").f(void 0, void 0).ser(se_UpdateMLModelCommand).de(de_UpdateMLModelCommand).build() {
1886
- static {
1887
- __name(this, "UpdateMLModelCommand");
1888
- }
1889
- };
1673
+ class PredictCommand extends smithyClient.Command
1674
+ .classBuilder()
1675
+ .ep(commonParams)
1676
+ .m(function (Command, cs, config, o) {
1677
+ return [
1678
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1679
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1680
+ middlewareSdkMachinelearning.getPredictEndpointPlugin(config),
1681
+ ];
1682
+ })
1683
+ .s("AmazonML_20141212", "Predict", {})
1684
+ .n("MachineLearningClient", "PredictCommand")
1685
+ .f(void 0, void 0)
1686
+ .ser(se_PredictCommand)
1687
+ .de(de_PredictCommand)
1688
+ .build() {
1689
+ }
1890
1690
 
1891
- // src/MachineLearning.ts
1892
- var commands = {
1893
- AddTagsCommand,
1894
- CreateBatchPredictionCommand,
1895
- CreateDataSourceFromRDSCommand,
1896
- CreateDataSourceFromRedshiftCommand,
1897
- CreateDataSourceFromS3Command,
1898
- CreateEvaluationCommand,
1899
- CreateMLModelCommand,
1900
- CreateRealtimeEndpointCommand,
1901
- DeleteBatchPredictionCommand,
1902
- DeleteDataSourceCommand,
1903
- DeleteEvaluationCommand,
1904
- DeleteMLModelCommand,
1905
- DeleteRealtimeEndpointCommand,
1906
- DeleteTagsCommand,
1907
- DescribeBatchPredictionsCommand,
1908
- DescribeDataSourcesCommand,
1909
- DescribeEvaluationsCommand,
1910
- DescribeMLModelsCommand,
1911
- DescribeTagsCommand,
1912
- GetBatchPredictionCommand,
1913
- GetDataSourceCommand,
1914
- GetEvaluationCommand,
1915
- GetMLModelCommand,
1916
- PredictCommand,
1917
- UpdateBatchPredictionCommand,
1918
- UpdateDataSourceCommand,
1919
- UpdateEvaluationCommand,
1920
- UpdateMLModelCommand
1921
- };
1922
- var MachineLearning = class extends MachineLearningClient {
1923
- static {
1924
- __name(this, "MachineLearning");
1925
- }
1926
- };
1927
- (0, import_smithy_client.createAggregatedClient)(commands, MachineLearning);
1691
+ class UpdateBatchPredictionCommand extends smithyClient.Command
1692
+ .classBuilder()
1693
+ .ep(commonParams)
1694
+ .m(function (Command, cs, config, o) {
1695
+ return [
1696
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1697
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1698
+ ];
1699
+ })
1700
+ .s("AmazonML_20141212", "UpdateBatchPrediction", {})
1701
+ .n("MachineLearningClient", "UpdateBatchPredictionCommand")
1702
+ .f(void 0, void 0)
1703
+ .ser(se_UpdateBatchPredictionCommand)
1704
+ .de(de_UpdateBatchPredictionCommand)
1705
+ .build() {
1706
+ }
1928
1707
 
1929
- // src/pagination/DescribeBatchPredictionsPaginator.ts
1708
+ class UpdateDataSourceCommand extends smithyClient.Command
1709
+ .classBuilder()
1710
+ .ep(commonParams)
1711
+ .m(function (Command, cs, config, o) {
1712
+ return [
1713
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1714
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1715
+ ];
1716
+ })
1717
+ .s("AmazonML_20141212", "UpdateDataSource", {})
1718
+ .n("MachineLearningClient", "UpdateDataSourceCommand")
1719
+ .f(void 0, void 0)
1720
+ .ser(se_UpdateDataSourceCommand)
1721
+ .de(de_UpdateDataSourceCommand)
1722
+ .build() {
1723
+ }
1930
1724
 
1931
- var paginateDescribeBatchPredictions = (0, import_core.createPaginator)(MachineLearningClient, DescribeBatchPredictionsCommand, "NextToken", "NextToken", "Limit");
1725
+ class UpdateEvaluationCommand extends smithyClient.Command
1726
+ .classBuilder()
1727
+ .ep(commonParams)
1728
+ .m(function (Command, cs, config, o) {
1729
+ return [
1730
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1731
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1732
+ ];
1733
+ })
1734
+ .s("AmazonML_20141212", "UpdateEvaluation", {})
1735
+ .n("MachineLearningClient", "UpdateEvaluationCommand")
1736
+ .f(void 0, void 0)
1737
+ .ser(se_UpdateEvaluationCommand)
1738
+ .de(de_UpdateEvaluationCommand)
1739
+ .build() {
1740
+ }
1932
1741
 
1933
- // src/pagination/DescribeDataSourcesPaginator.ts
1742
+ class UpdateMLModelCommand extends smithyClient.Command
1743
+ .classBuilder()
1744
+ .ep(commonParams)
1745
+ .m(function (Command, cs, config, o) {
1746
+ return [
1747
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1748
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1749
+ ];
1750
+ })
1751
+ .s("AmazonML_20141212", "UpdateMLModel", {})
1752
+ .n("MachineLearningClient", "UpdateMLModelCommand")
1753
+ .f(void 0, void 0)
1754
+ .ser(se_UpdateMLModelCommand)
1755
+ .de(de_UpdateMLModelCommand)
1756
+ .build() {
1757
+ }
1934
1758
 
1935
- var paginateDescribeDataSources = (0, import_core.createPaginator)(MachineLearningClient, DescribeDataSourcesCommand, "NextToken", "NextToken", "Limit");
1759
+ const commands = {
1760
+ AddTagsCommand,
1761
+ CreateBatchPredictionCommand,
1762
+ CreateDataSourceFromRDSCommand,
1763
+ CreateDataSourceFromRedshiftCommand,
1764
+ CreateDataSourceFromS3Command,
1765
+ CreateEvaluationCommand,
1766
+ CreateMLModelCommand,
1767
+ CreateRealtimeEndpointCommand,
1768
+ DeleteBatchPredictionCommand,
1769
+ DeleteDataSourceCommand,
1770
+ DeleteEvaluationCommand,
1771
+ DeleteMLModelCommand,
1772
+ DeleteRealtimeEndpointCommand,
1773
+ DeleteTagsCommand,
1774
+ DescribeBatchPredictionsCommand,
1775
+ DescribeDataSourcesCommand,
1776
+ DescribeEvaluationsCommand,
1777
+ DescribeMLModelsCommand,
1778
+ DescribeTagsCommand,
1779
+ GetBatchPredictionCommand,
1780
+ GetDataSourceCommand,
1781
+ GetEvaluationCommand,
1782
+ GetMLModelCommand,
1783
+ PredictCommand,
1784
+ UpdateBatchPredictionCommand,
1785
+ UpdateDataSourceCommand,
1786
+ UpdateEvaluationCommand,
1787
+ UpdateMLModelCommand,
1788
+ };
1789
+ class MachineLearning extends MachineLearningClient {
1790
+ }
1791
+ smithyClient.createAggregatedClient(commands, MachineLearning);
1936
1792
 
1937
- // src/pagination/DescribeEvaluationsPaginator.ts
1793
+ const paginateDescribeBatchPredictions = core.createPaginator(MachineLearningClient, DescribeBatchPredictionsCommand, "NextToken", "NextToken", "Limit");
1938
1794
 
1939
- var paginateDescribeEvaluations = (0, import_core.createPaginator)(MachineLearningClient, DescribeEvaluationsCommand, "NextToken", "NextToken", "Limit");
1795
+ const paginateDescribeDataSources = core.createPaginator(MachineLearningClient, DescribeDataSourcesCommand, "NextToken", "NextToken", "Limit");
1940
1796
 
1941
- // src/pagination/DescribeMLModelsPaginator.ts
1797
+ const paginateDescribeEvaluations = core.createPaginator(MachineLearningClient, DescribeEvaluationsCommand, "NextToken", "NextToken", "Limit");
1942
1798
 
1943
- var paginateDescribeMLModels = (0, import_core.createPaginator)(MachineLearningClient, DescribeMLModelsCommand, "NextToken", "NextToken", "Limit");
1799
+ const paginateDescribeMLModels = core.createPaginator(MachineLearningClient, DescribeMLModelsCommand, "NextToken", "NextToken", "Limit");
1944
1800
 
1945
- // src/waiters/waitForBatchPredictionAvailable.ts
1946
- var import_util_waiter = require("@smithy/util-waiter");
1947
- var checkState = /* @__PURE__ */ __name(async (client, input) => {
1948
- let reason;
1949
- try {
1950
- const result = await client.send(new DescribeBatchPredictionsCommand(input));
1951
- reason = result;
1952
- try {
1953
- const returnComparator = /* @__PURE__ */ __name(() => {
1954
- const flat_1 = [].concat(...result.Results);
1955
- const projection_3 = flat_1.map((element_2) => {
1956
- return element_2.Status;
1957
- });
1958
- return projection_3;
1959
- }, "returnComparator");
1960
- let allStringEq_5 = returnComparator().length > 0;
1961
- for (const element_4 of returnComparator()) {
1962
- allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
1963
- }
1964
- if (allStringEq_5) {
1965
- return { state: import_util_waiter.WaiterState.SUCCESS, reason };
1966
- }
1967
- } catch (e) {
1968
- }
1801
+ const checkState$3 = async (client, input) => {
1802
+ let reason;
1969
1803
  try {
1970
- const returnComparator = /* @__PURE__ */ __name(() => {
1971
- const flat_1 = [].concat(...result.Results);
1972
- const projection_3 = flat_1.map((element_2) => {
1973
- return element_2.Status;
1974
- });
1975
- return projection_3;
1976
- }, "returnComparator");
1977
- for (const anyStringEq_4 of returnComparator()) {
1978
- if (anyStringEq_4 == "FAILED") {
1979
- return { state: import_util_waiter.WaiterState.FAILURE, reason };
1804
+ const result = await client.send(new DescribeBatchPredictionsCommand(input));
1805
+ reason = result;
1806
+ try {
1807
+ const returnComparator = () => {
1808
+ const flat_1 = [].concat(...result.Results);
1809
+ const projection_3 = flat_1.map((element_2) => {
1810
+ return element_2.Status;
1811
+ });
1812
+ return projection_3;
1813
+ };
1814
+ let allStringEq_5 = returnComparator().length > 0;
1815
+ for (const element_4 of returnComparator()) {
1816
+ allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
1817
+ }
1818
+ if (allStringEq_5) {
1819
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
1820
+ }
1821
+ }
1822
+ catch (e) { }
1823
+ try {
1824
+ const returnComparator = () => {
1825
+ const flat_1 = [].concat(...result.Results);
1826
+ const projection_3 = flat_1.map((element_2) => {
1827
+ return element_2.Status;
1828
+ });
1829
+ return projection_3;
1830
+ };
1831
+ for (const anyStringEq_4 of returnComparator()) {
1832
+ if (anyStringEq_4 == "FAILED") {
1833
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1834
+ }
1835
+ }
1980
1836
  }
1981
- }
1982
- } catch (e) {
1837
+ catch (e) { }
1983
1838
  }
1984
- } catch (exception) {
1985
- reason = exception;
1986
- }
1987
- return { state: import_util_waiter.WaiterState.RETRY, reason };
1988
- }, "checkState");
1989
- var waitForBatchPredictionAvailable = /* @__PURE__ */ __name(async (params, input) => {
1990
- const serviceDefaults = { minDelay: 30, maxDelay: 120 };
1991
- return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
1992
- }, "waitForBatchPredictionAvailable");
1993
- var waitUntilBatchPredictionAvailable = /* @__PURE__ */ __name(async (params, input) => {
1994
- const serviceDefaults = { minDelay: 30, maxDelay: 120 };
1995
- const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
1996
- return (0, import_util_waiter.checkExceptions)(result);
1997
- }, "waitUntilBatchPredictionAvailable");
1998
-
1999
- // src/waiters/waitForDataSourceAvailable.ts
2000
-
2001
- var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
2002
- let reason;
2003
- try {
2004
- const result = await client.send(new DescribeDataSourcesCommand(input));
2005
- reason = result;
2006
- try {
2007
- const returnComparator = /* @__PURE__ */ __name(() => {
2008
- const flat_1 = [].concat(...result.Results);
2009
- const projection_3 = flat_1.map((element_2) => {
2010
- return element_2.Status;
2011
- });
2012
- return projection_3;
2013
- }, "returnComparator");
2014
- let allStringEq_5 = returnComparator().length > 0;
2015
- for (const element_4 of returnComparator()) {
2016
- allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
2017
- }
2018
- if (allStringEq_5) {
2019
- return { state: import_util_waiter.WaiterState.SUCCESS, reason };
2020
- }
2021
- } catch (e) {
1839
+ catch (exception) {
1840
+ reason = exception;
2022
1841
  }
1842
+ return { state: utilWaiter.WaiterState.RETRY, reason };
1843
+ };
1844
+ const waitForBatchPredictionAvailable = async (params, input) => {
1845
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
1846
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
1847
+ };
1848
+ const waitUntilBatchPredictionAvailable = async (params, input) => {
1849
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
1850
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
1851
+ return utilWaiter.checkExceptions(result);
1852
+ };
1853
+
1854
+ const checkState$2 = async (client, input) => {
1855
+ let reason;
2023
1856
  try {
2024
- const returnComparator = /* @__PURE__ */ __name(() => {
2025
- const flat_1 = [].concat(...result.Results);
2026
- const projection_3 = flat_1.map((element_2) => {
2027
- return element_2.Status;
2028
- });
2029
- return projection_3;
2030
- }, "returnComparator");
2031
- for (const anyStringEq_4 of returnComparator()) {
2032
- if (anyStringEq_4 == "FAILED") {
2033
- return { state: import_util_waiter.WaiterState.FAILURE, reason };
1857
+ const result = await client.send(new DescribeDataSourcesCommand(input));
1858
+ reason = result;
1859
+ try {
1860
+ const returnComparator = () => {
1861
+ const flat_1 = [].concat(...result.Results);
1862
+ const projection_3 = flat_1.map((element_2) => {
1863
+ return element_2.Status;
1864
+ });
1865
+ return projection_3;
1866
+ };
1867
+ let allStringEq_5 = returnComparator().length > 0;
1868
+ for (const element_4 of returnComparator()) {
1869
+ allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
1870
+ }
1871
+ if (allStringEq_5) {
1872
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
1873
+ }
2034
1874
  }
2035
- }
2036
- } catch (e) {
1875
+ catch (e) { }
1876
+ try {
1877
+ const returnComparator = () => {
1878
+ const flat_1 = [].concat(...result.Results);
1879
+ const projection_3 = flat_1.map((element_2) => {
1880
+ return element_2.Status;
1881
+ });
1882
+ return projection_3;
1883
+ };
1884
+ for (const anyStringEq_4 of returnComparator()) {
1885
+ if (anyStringEq_4 == "FAILED") {
1886
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1887
+ }
1888
+ }
1889
+ }
1890
+ catch (e) { }
2037
1891
  }
2038
- } catch (exception) {
2039
- reason = exception;
2040
- }
2041
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2042
- }, "checkState");
2043
- var waitForDataSourceAvailable = /* @__PURE__ */ __name(async (params, input) => {
2044
- const serviceDefaults = { minDelay: 30, maxDelay: 120 };
2045
- return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
2046
- }, "waitForDataSourceAvailable");
2047
- var waitUntilDataSourceAvailable = /* @__PURE__ */ __name(async (params, input) => {
2048
- const serviceDefaults = { minDelay: 30, maxDelay: 120 };
2049
- const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
2050
- return (0, import_util_waiter.checkExceptions)(result);
2051
- }, "waitUntilDataSourceAvailable");
2052
-
2053
- // src/waiters/waitForEvaluationAvailable.ts
2054
-
2055
- var checkState3 = /* @__PURE__ */ __name(async (client, input) => {
2056
- let reason;
2057
- try {
2058
- const result = await client.send(new DescribeEvaluationsCommand(input));
2059
- reason = result;
2060
- try {
2061
- const returnComparator = /* @__PURE__ */ __name(() => {
2062
- const flat_1 = [].concat(...result.Results);
2063
- const projection_3 = flat_1.map((element_2) => {
2064
- return element_2.Status;
2065
- });
2066
- return projection_3;
2067
- }, "returnComparator");
2068
- let allStringEq_5 = returnComparator().length > 0;
2069
- for (const element_4 of returnComparator()) {
2070
- allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
2071
- }
2072
- if (allStringEq_5) {
2073
- return { state: import_util_waiter.WaiterState.SUCCESS, reason };
2074
- }
2075
- } catch (e) {
1892
+ catch (exception) {
1893
+ reason = exception;
2076
1894
  }
1895
+ return { state: utilWaiter.WaiterState.RETRY, reason };
1896
+ };
1897
+ const waitForDataSourceAvailable = async (params, input) => {
1898
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
1899
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
1900
+ };
1901
+ const waitUntilDataSourceAvailable = async (params, input) => {
1902
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
1903
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
1904
+ return utilWaiter.checkExceptions(result);
1905
+ };
1906
+
1907
+ const checkState$1 = async (client, input) => {
1908
+ let reason;
2077
1909
  try {
2078
- const returnComparator = /* @__PURE__ */ __name(() => {
2079
- const flat_1 = [].concat(...result.Results);
2080
- const projection_3 = flat_1.map((element_2) => {
2081
- return element_2.Status;
2082
- });
2083
- return projection_3;
2084
- }, "returnComparator");
2085
- for (const anyStringEq_4 of returnComparator()) {
2086
- if (anyStringEq_4 == "FAILED") {
2087
- return { state: import_util_waiter.WaiterState.FAILURE, reason };
1910
+ const result = await client.send(new DescribeEvaluationsCommand(input));
1911
+ reason = result;
1912
+ try {
1913
+ const returnComparator = () => {
1914
+ const flat_1 = [].concat(...result.Results);
1915
+ const projection_3 = flat_1.map((element_2) => {
1916
+ return element_2.Status;
1917
+ });
1918
+ return projection_3;
1919
+ };
1920
+ let allStringEq_5 = returnComparator().length > 0;
1921
+ for (const element_4 of returnComparator()) {
1922
+ allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
1923
+ }
1924
+ if (allStringEq_5) {
1925
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
1926
+ }
1927
+ }
1928
+ catch (e) { }
1929
+ try {
1930
+ const returnComparator = () => {
1931
+ const flat_1 = [].concat(...result.Results);
1932
+ const projection_3 = flat_1.map((element_2) => {
1933
+ return element_2.Status;
1934
+ });
1935
+ return projection_3;
1936
+ };
1937
+ for (const anyStringEq_4 of returnComparator()) {
1938
+ if (anyStringEq_4 == "FAILED") {
1939
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1940
+ }
1941
+ }
2088
1942
  }
2089
- }
2090
- } catch (e) {
1943
+ catch (e) { }
2091
1944
  }
2092
- } catch (exception) {
2093
- reason = exception;
2094
- }
2095
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2096
- }, "checkState");
2097
- var waitForEvaluationAvailable = /* @__PURE__ */ __name(async (params, input) => {
2098
- const serviceDefaults = { minDelay: 30, maxDelay: 120 };
2099
- return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
2100
- }, "waitForEvaluationAvailable");
2101
- var waitUntilEvaluationAvailable = /* @__PURE__ */ __name(async (params, input) => {
2102
- const serviceDefaults = { minDelay: 30, maxDelay: 120 };
2103
- const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
2104
- return (0, import_util_waiter.checkExceptions)(result);
2105
- }, "waitUntilEvaluationAvailable");
2106
-
2107
- // src/waiters/waitForMLModelAvailable.ts
2108
-
2109
- var checkState4 = /* @__PURE__ */ __name(async (client, input) => {
2110
- let reason;
2111
- try {
2112
- const result = await client.send(new DescribeMLModelsCommand(input));
2113
- reason = result;
2114
- try {
2115
- const returnComparator = /* @__PURE__ */ __name(() => {
2116
- const flat_1 = [].concat(...result.Results);
2117
- const projection_3 = flat_1.map((element_2) => {
2118
- return element_2.Status;
2119
- });
2120
- return projection_3;
2121
- }, "returnComparator");
2122
- let allStringEq_5 = returnComparator().length > 0;
2123
- for (const element_4 of returnComparator()) {
2124
- allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
2125
- }
2126
- if (allStringEq_5) {
2127
- return { state: import_util_waiter.WaiterState.SUCCESS, reason };
2128
- }
2129
- } catch (e) {
1945
+ catch (exception) {
1946
+ reason = exception;
2130
1947
  }
1948
+ return { state: utilWaiter.WaiterState.RETRY, reason };
1949
+ };
1950
+ const waitForEvaluationAvailable = async (params, input) => {
1951
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
1952
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
1953
+ };
1954
+ const waitUntilEvaluationAvailable = async (params, input) => {
1955
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
1956
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
1957
+ return utilWaiter.checkExceptions(result);
1958
+ };
1959
+
1960
+ const checkState = async (client, input) => {
1961
+ let reason;
2131
1962
  try {
2132
- const returnComparator = /* @__PURE__ */ __name(() => {
2133
- const flat_1 = [].concat(...result.Results);
2134
- const projection_3 = flat_1.map((element_2) => {
2135
- return element_2.Status;
2136
- });
2137
- return projection_3;
2138
- }, "returnComparator");
2139
- for (const anyStringEq_4 of returnComparator()) {
2140
- if (anyStringEq_4 == "FAILED") {
2141
- return { state: import_util_waiter.WaiterState.FAILURE, reason };
1963
+ const result = await client.send(new DescribeMLModelsCommand(input));
1964
+ reason = result;
1965
+ try {
1966
+ const returnComparator = () => {
1967
+ const flat_1 = [].concat(...result.Results);
1968
+ const projection_3 = flat_1.map((element_2) => {
1969
+ return element_2.Status;
1970
+ });
1971
+ return projection_3;
1972
+ };
1973
+ let allStringEq_5 = returnComparator().length > 0;
1974
+ for (const element_4 of returnComparator()) {
1975
+ allStringEq_5 = allStringEq_5 && element_4 == "COMPLETED";
1976
+ }
1977
+ if (allStringEq_5) {
1978
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
1979
+ }
1980
+ }
1981
+ catch (e) { }
1982
+ try {
1983
+ const returnComparator = () => {
1984
+ const flat_1 = [].concat(...result.Results);
1985
+ const projection_3 = flat_1.map((element_2) => {
1986
+ return element_2.Status;
1987
+ });
1988
+ return projection_3;
1989
+ };
1990
+ for (const anyStringEq_4 of returnComparator()) {
1991
+ if (anyStringEq_4 == "FAILED") {
1992
+ return { state: utilWaiter.WaiterState.FAILURE, reason };
1993
+ }
1994
+ }
2142
1995
  }
2143
- }
2144
- } catch (e) {
1996
+ catch (e) { }
1997
+ }
1998
+ catch (exception) {
1999
+ reason = exception;
2145
2000
  }
2146
- } catch (exception) {
2147
- reason = exception;
2148
- }
2149
- return { state: import_util_waiter.WaiterState.RETRY, reason };
2150
- }, "checkState");
2151
- var waitForMLModelAvailable = /* @__PURE__ */ __name(async (params, input) => {
2152
- const serviceDefaults = { minDelay: 30, maxDelay: 120 };
2153
- return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
2154
- }, "waitForMLModelAvailable");
2155
- var waitUntilMLModelAvailable = /* @__PURE__ */ __name(async (params, input) => {
2156
- const serviceDefaults = { minDelay: 30, maxDelay: 120 };
2157
- const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState4);
2158
- return (0, import_util_waiter.checkExceptions)(result);
2159
- }, "waitUntilMLModelAvailable");
2160
- // Annotate the CommonJS export names for ESM import in node:
2001
+ return { state: utilWaiter.WaiterState.RETRY, reason };
2002
+ };
2003
+ const waitForMLModelAvailable = async (params, input) => {
2004
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
2005
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
2006
+ };
2007
+ const waitUntilMLModelAvailable = async (params, input) => {
2008
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
2009
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
2010
+ return utilWaiter.checkExceptions(result);
2011
+ };
2161
2012
 
2162
- 0 && (module.exports = {
2163
- MachineLearningServiceException,
2164
- __Client,
2165
- MachineLearningClient,
2166
- MachineLearning,
2167
- $Command,
2168
- AddTagsCommand,
2169
- CreateBatchPredictionCommand,
2170
- CreateDataSourceFromRDSCommand,
2171
- CreateDataSourceFromRedshiftCommand,
2172
- CreateDataSourceFromS3Command,
2173
- CreateEvaluationCommand,
2174
- CreateMLModelCommand,
2175
- CreateRealtimeEndpointCommand,
2176
- DeleteBatchPredictionCommand,
2177
- DeleteDataSourceCommand,
2178
- DeleteEvaluationCommand,
2179
- DeleteMLModelCommand,
2180
- DeleteRealtimeEndpointCommand,
2181
- DeleteTagsCommand,
2182
- DescribeBatchPredictionsCommand,
2183
- DescribeDataSourcesCommand,
2184
- DescribeEvaluationsCommand,
2185
- DescribeMLModelsCommand,
2186
- DescribeTagsCommand,
2187
- GetBatchPredictionCommand,
2188
- GetDataSourceCommand,
2189
- GetEvaluationCommand,
2190
- GetMLModelCommand,
2191
- PredictCommand,
2192
- UpdateBatchPredictionCommand,
2193
- UpdateDataSourceCommand,
2194
- UpdateEvaluationCommand,
2195
- UpdateMLModelCommand,
2196
- paginateDescribeBatchPredictions,
2197
- paginateDescribeDataSources,
2198
- paginateDescribeEvaluations,
2199
- paginateDescribeMLModels,
2200
- waitForBatchPredictionAvailable,
2201
- waitUntilBatchPredictionAvailable,
2202
- waitForDataSourceAvailable,
2203
- waitUntilDataSourceAvailable,
2204
- waitForEvaluationAvailable,
2205
- waitUntilEvaluationAvailable,
2206
- waitForMLModelAvailable,
2207
- waitUntilMLModelAvailable,
2208
- TaggableResourceType,
2209
- InternalServerException,
2210
- InvalidInputException,
2211
- InvalidTagException,
2212
- ResourceNotFoundException,
2213
- TagLimitExceededException,
2214
- Algorithm,
2215
- IdempotentParameterMismatchException,
2216
- MLModelType,
2217
- RealtimeEndpointStatus,
2218
- BatchPredictionFilterVariable,
2219
- SortOrder,
2220
- EntityStatus,
2221
- DataSourceFilterVariable,
2222
- EvaluationFilterVariable,
2223
- MLModelFilterVariable,
2224
- LimitExceededException,
2225
- PredictorNotMountedException,
2226
- DetailsAttributes,
2227
- RDSDatabaseCredentialsFilterSensitiveLog,
2228
- RDSDataSpecFilterSensitiveLog,
2229
- CreateDataSourceFromRDSInputFilterSensitiveLog,
2230
- RedshiftDatabaseCredentialsFilterSensitiveLog,
2231
- RedshiftDataSpecFilterSensitiveLog,
2232
- CreateDataSourceFromRedshiftInputFilterSensitiveLog
2013
+ Object.defineProperty(exports, "$Command", {
2014
+ enumerable: true,
2015
+ get: function () { return smithyClient.Command; }
2233
2016
  });
2234
-
2017
+ Object.defineProperty(exports, "__Client", {
2018
+ enumerable: true,
2019
+ get: function () { return smithyClient.Client; }
2020
+ });
2021
+ exports.AddTagsCommand = AddTagsCommand;
2022
+ exports.Algorithm = Algorithm;
2023
+ exports.BatchPredictionFilterVariable = BatchPredictionFilterVariable;
2024
+ exports.CreateBatchPredictionCommand = CreateBatchPredictionCommand;
2025
+ exports.CreateDataSourceFromRDSCommand = CreateDataSourceFromRDSCommand;
2026
+ exports.CreateDataSourceFromRDSInputFilterSensitiveLog = CreateDataSourceFromRDSInputFilterSensitiveLog;
2027
+ exports.CreateDataSourceFromRedshiftCommand = CreateDataSourceFromRedshiftCommand;
2028
+ exports.CreateDataSourceFromRedshiftInputFilterSensitiveLog = CreateDataSourceFromRedshiftInputFilterSensitiveLog;
2029
+ exports.CreateDataSourceFromS3Command = CreateDataSourceFromS3Command;
2030
+ exports.CreateEvaluationCommand = CreateEvaluationCommand;
2031
+ exports.CreateMLModelCommand = CreateMLModelCommand;
2032
+ exports.CreateRealtimeEndpointCommand = CreateRealtimeEndpointCommand;
2033
+ exports.DataSourceFilterVariable = DataSourceFilterVariable;
2034
+ exports.DeleteBatchPredictionCommand = DeleteBatchPredictionCommand;
2035
+ exports.DeleteDataSourceCommand = DeleteDataSourceCommand;
2036
+ exports.DeleteEvaluationCommand = DeleteEvaluationCommand;
2037
+ exports.DeleteMLModelCommand = DeleteMLModelCommand;
2038
+ exports.DeleteRealtimeEndpointCommand = DeleteRealtimeEndpointCommand;
2039
+ exports.DeleteTagsCommand = DeleteTagsCommand;
2040
+ exports.DescribeBatchPredictionsCommand = DescribeBatchPredictionsCommand;
2041
+ exports.DescribeDataSourcesCommand = DescribeDataSourcesCommand;
2042
+ exports.DescribeEvaluationsCommand = DescribeEvaluationsCommand;
2043
+ exports.DescribeMLModelsCommand = DescribeMLModelsCommand;
2044
+ exports.DescribeTagsCommand = DescribeTagsCommand;
2045
+ exports.DetailsAttributes = DetailsAttributes;
2046
+ exports.EntityStatus = EntityStatus;
2047
+ exports.EvaluationFilterVariable = EvaluationFilterVariable;
2048
+ exports.GetBatchPredictionCommand = GetBatchPredictionCommand;
2049
+ exports.GetDataSourceCommand = GetDataSourceCommand;
2050
+ exports.GetEvaluationCommand = GetEvaluationCommand;
2051
+ exports.GetMLModelCommand = GetMLModelCommand;
2052
+ exports.IdempotentParameterMismatchException = IdempotentParameterMismatchException;
2053
+ exports.InternalServerException = InternalServerException;
2054
+ exports.InvalidInputException = InvalidInputException;
2055
+ exports.InvalidTagException = InvalidTagException;
2056
+ exports.LimitExceededException = LimitExceededException;
2057
+ exports.MLModelFilterVariable = MLModelFilterVariable;
2058
+ exports.MLModelType = MLModelType;
2059
+ exports.MachineLearning = MachineLearning;
2060
+ exports.MachineLearningClient = MachineLearningClient;
2061
+ exports.MachineLearningServiceException = MachineLearningServiceException;
2062
+ exports.PredictCommand = PredictCommand;
2063
+ exports.PredictorNotMountedException = PredictorNotMountedException;
2064
+ exports.RDSDataSpecFilterSensitiveLog = RDSDataSpecFilterSensitiveLog;
2065
+ exports.RDSDatabaseCredentialsFilterSensitiveLog = RDSDatabaseCredentialsFilterSensitiveLog;
2066
+ exports.RealtimeEndpointStatus = RealtimeEndpointStatus;
2067
+ exports.RedshiftDataSpecFilterSensitiveLog = RedshiftDataSpecFilterSensitiveLog;
2068
+ exports.RedshiftDatabaseCredentialsFilterSensitiveLog = RedshiftDatabaseCredentialsFilterSensitiveLog;
2069
+ exports.ResourceNotFoundException = ResourceNotFoundException;
2070
+ exports.SortOrder = SortOrder;
2071
+ exports.TagLimitExceededException = TagLimitExceededException;
2072
+ exports.TaggableResourceType = TaggableResourceType;
2073
+ exports.UpdateBatchPredictionCommand = UpdateBatchPredictionCommand;
2074
+ exports.UpdateDataSourceCommand = UpdateDataSourceCommand;
2075
+ exports.UpdateEvaluationCommand = UpdateEvaluationCommand;
2076
+ exports.UpdateMLModelCommand = UpdateMLModelCommand;
2077
+ exports.paginateDescribeBatchPredictions = paginateDescribeBatchPredictions;
2078
+ exports.paginateDescribeDataSources = paginateDescribeDataSources;
2079
+ exports.paginateDescribeEvaluations = paginateDescribeEvaluations;
2080
+ exports.paginateDescribeMLModels = paginateDescribeMLModels;
2081
+ exports.waitForBatchPredictionAvailable = waitForBatchPredictionAvailable;
2082
+ exports.waitForDataSourceAvailable = waitForDataSourceAvailable;
2083
+ exports.waitForEvaluationAvailable = waitForEvaluationAvailable;
2084
+ exports.waitForMLModelAvailable = waitForMLModelAvailable;
2085
+ exports.waitUntilBatchPredictionAvailable = waitUntilBatchPredictionAvailable;
2086
+ exports.waitUntilDataSourceAvailable = waitUntilDataSourceAvailable;
2087
+ exports.waitUntilEvaluationAvailable = waitUntilEvaluationAvailable;
2088
+ exports.waitUntilMLModelAvailable = waitUntilMLModelAvailable;