@aws-sdk/client-machine-learning 3.180.0 → 3.183.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 (49) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +34 -28
  3. package/dist-es/MachineLearning.js +114 -121
  4. package/dist-es/MachineLearningClient.js +22 -28
  5. package/dist-es/commands/AddTagsCommand.js +21 -28
  6. package/dist-es/commands/CreateBatchPredictionCommand.js +21 -28
  7. package/dist-es/commands/CreateDataSourceFromRDSCommand.js +21 -28
  8. package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js +21 -28
  9. package/dist-es/commands/CreateDataSourceFromS3Command.js +21 -28
  10. package/dist-es/commands/CreateEvaluationCommand.js +21 -28
  11. package/dist-es/commands/CreateMLModelCommand.js +21 -28
  12. package/dist-es/commands/CreateRealtimeEndpointCommand.js +21 -28
  13. package/dist-es/commands/DeleteBatchPredictionCommand.js +21 -28
  14. package/dist-es/commands/DeleteDataSourceCommand.js +21 -28
  15. package/dist-es/commands/DeleteEvaluationCommand.js +21 -28
  16. package/dist-es/commands/DeleteMLModelCommand.js +21 -28
  17. package/dist-es/commands/DeleteRealtimeEndpointCommand.js +21 -28
  18. package/dist-es/commands/DeleteTagsCommand.js +21 -28
  19. package/dist-es/commands/DescribeBatchPredictionsCommand.js +21 -28
  20. package/dist-es/commands/DescribeDataSourcesCommand.js +21 -28
  21. package/dist-es/commands/DescribeEvaluationsCommand.js +21 -28
  22. package/dist-es/commands/DescribeMLModelsCommand.js +21 -28
  23. package/dist-es/commands/DescribeTagsCommand.js +21 -28
  24. package/dist-es/commands/GetBatchPredictionCommand.js +21 -28
  25. package/dist-es/commands/GetDataSourceCommand.js +21 -28
  26. package/dist-es/commands/GetEvaluationCommand.js +21 -28
  27. package/dist-es/commands/GetMLModelCommand.js +21 -28
  28. package/dist-es/commands/PredictCommand.js +21 -28
  29. package/dist-es/commands/UpdateBatchPredictionCommand.js +21 -28
  30. package/dist-es/commands/UpdateDataSourceCommand.js +21 -28
  31. package/dist-es/commands/UpdateEvaluationCommand.js +21 -28
  32. package/dist-es/commands/UpdateMLModelCommand.js +21 -28
  33. package/dist-es/endpoints.js +8 -8
  34. package/dist-es/models/MachineLearningServiceException.js +5 -10
  35. package/dist-es/models/models_0.js +312 -167
  36. package/dist-es/pagination/DescribeBatchPredictionsPaginator.js +25 -68
  37. package/dist-es/pagination/DescribeDataSourcesPaginator.js +25 -68
  38. package/dist-es/pagination/DescribeEvaluationsPaginator.js +25 -68
  39. package/dist-es/pagination/DescribeMLModelsPaginator.js +25 -68
  40. package/dist-es/protocols/Aws_json1_1.js +1831 -2279
  41. package/dist-es/runtimeConfig.browser.js +26 -12
  42. package/dist-es/runtimeConfig.js +30 -12
  43. package/dist-es/runtimeConfig.native.js +8 -5
  44. package/dist-es/runtimeConfig.shared.js +8 -11
  45. package/dist-es/waiters/waitForBatchPredictionAvailable.js +50 -91
  46. package/dist-es/waiters/waitForDataSourceAvailable.js +50 -91
  47. package/dist-es/waiters/waitForEvaluationAvailable.js +50 -91
  48. package/dist-es/waiters/waitForMLModelAvailable.js +50 -91
  49. package/package.json +35 -35
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteMLModelInputFilterSensitiveLog, DeleteMLModelOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteMLModelCommand, serializeAws_json1_1DeleteMLModelCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteMLModelCommand = (function (_super) {
7
- __extends(DeleteMLModelCommand, _super);
8
- function DeleteMLModelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteMLModelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteMLModelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MachineLearningClient";
18
- var commandName = "DeleteMLModelCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MachineLearningClient";
15
+ const commandName = "DeleteMLModelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteMLModelInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteMLModelOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteMLModelCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DeleteMLModelCommand(input, context);
33
- };
34
- DeleteMLModelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteMLModelCommand(output, context);
36
- };
37
- return DeleteMLModelCommand;
38
- }($Command));
39
- export { DeleteMLModelCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteRealtimeEndpointInputFilterSensitiveLog, DeleteRealtimeEndpointOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteRealtimeEndpointCommand, serializeAws_json1_1DeleteRealtimeEndpointCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteRealtimeEndpointCommand = (function (_super) {
7
- __extends(DeleteRealtimeEndpointCommand, _super);
8
- function DeleteRealtimeEndpointCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteRealtimeEndpointCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteRealtimeEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MachineLearningClient";
18
- var commandName = "DeleteRealtimeEndpointCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MachineLearningClient";
15
+ const commandName = "DeleteRealtimeEndpointCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteRealtimeEndpointInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteRealtimeEndpointOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteRealtimeEndpointCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DeleteRealtimeEndpointCommand(input, context);
33
- };
34
- DeleteRealtimeEndpointCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteRealtimeEndpointCommand(output, context);
36
- };
37
- return DeleteRealtimeEndpointCommand;
38
- }($Command));
39
- export { DeleteRealtimeEndpointCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteTagsInputFilterSensitiveLog, DeleteTagsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteTagsCommand, serializeAws_json1_1DeleteTagsCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteTagsCommand = (function (_super) {
7
- __extends(DeleteTagsCommand, _super);
8
- function DeleteTagsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteTagsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteTagsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MachineLearningClient";
18
- var commandName = "DeleteTagsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MachineLearningClient";
15
+ const commandName = "DeleteTagsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteTagsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteTagsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteTagsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DeleteTagsCommand(input, context);
33
- };
34
- DeleteTagsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteTagsCommand(output, context);
36
- };
37
- return DeleteTagsCommand;
38
- }($Command));
39
- export { DeleteTagsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeBatchPredictionsInputFilterSensitiveLog, DescribeBatchPredictionsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeBatchPredictionsCommand, serializeAws_json1_1DescribeBatchPredictionsCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeBatchPredictionsCommand = (function (_super) {
7
- __extends(DescribeBatchPredictionsCommand, _super);
8
- function DescribeBatchPredictionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeBatchPredictionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeBatchPredictionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MachineLearningClient";
18
- var commandName = "DescribeBatchPredictionsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MachineLearningClient";
15
+ const commandName = "DescribeBatchPredictionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeBatchPredictionsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeBatchPredictionsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeBatchPredictionsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeBatchPredictionsCommand(input, context);
33
- };
34
- DescribeBatchPredictionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeBatchPredictionsCommand(output, context);
36
- };
37
- return DescribeBatchPredictionsCommand;
38
- }($Command));
39
- export { DescribeBatchPredictionsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeDataSourcesInputFilterSensitiveLog, DescribeDataSourcesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeDataSourcesCommand, serializeAws_json1_1DescribeDataSourcesCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeDataSourcesCommand = (function (_super) {
7
- __extends(DescribeDataSourcesCommand, _super);
8
- function DescribeDataSourcesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeDataSourcesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeDataSourcesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MachineLearningClient";
18
- var commandName = "DescribeDataSourcesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MachineLearningClient";
15
+ const commandName = "DescribeDataSourcesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeDataSourcesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeDataSourcesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeDataSourcesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeDataSourcesCommand(input, context);
33
- };
34
- DescribeDataSourcesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeDataSourcesCommand(output, context);
36
- };
37
- return DescribeDataSourcesCommand;
38
- }($Command));
39
- export { DescribeDataSourcesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeEvaluationsInputFilterSensitiveLog, DescribeEvaluationsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeEvaluationsCommand, serializeAws_json1_1DescribeEvaluationsCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeEvaluationsCommand = (function (_super) {
7
- __extends(DescribeEvaluationsCommand, _super);
8
- function DescribeEvaluationsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeEvaluationsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEvaluationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MachineLearningClient";
18
- var commandName = "DescribeEvaluationsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MachineLearningClient";
15
+ const commandName = "DescribeEvaluationsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeEvaluationsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEvaluationsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeEvaluationsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeEvaluationsCommand(input, context);
33
- };
34
- DescribeEvaluationsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeEvaluationsCommand(output, context);
36
- };
37
- return DescribeEvaluationsCommand;
38
- }($Command));
39
- export { DescribeEvaluationsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeMLModelsInputFilterSensitiveLog, DescribeMLModelsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeMLModelsCommand, serializeAws_json1_1DescribeMLModelsCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeMLModelsCommand = (function (_super) {
7
- __extends(DescribeMLModelsCommand, _super);
8
- function DescribeMLModelsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeMLModelsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeMLModelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MachineLearningClient";
18
- var commandName = "DescribeMLModelsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MachineLearningClient";
15
+ const commandName = "DescribeMLModelsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeMLModelsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeMLModelsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeMLModelsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeMLModelsCommand(input, context);
33
- };
34
- DescribeMLModelsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeMLModelsCommand(output, context);
36
- };
37
- return DescribeMLModelsCommand;
38
- }($Command));
39
- export { DescribeMLModelsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeTagsInputFilterSensitiveLog, DescribeTagsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeTagsCommand, serializeAws_json1_1DescribeTagsCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeTagsCommand = (function (_super) {
7
- __extends(DescribeTagsCommand, _super);
8
- function DescribeTagsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeTagsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeTagsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MachineLearningClient";
18
- var commandName = "DescribeTagsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MachineLearningClient";
15
+ const commandName = "DescribeTagsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeTagsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeTagsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeTagsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeTagsCommand(input, context);
33
- };
34
- DescribeTagsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeTagsCommand(output, context);
36
- };
37
- return DescribeTagsCommand;
38
- }($Command));
39
- export { DescribeTagsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetBatchPredictionInputFilterSensitiveLog, GetBatchPredictionOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetBatchPredictionCommand, serializeAws_json1_1GetBatchPredictionCommand, } from "../protocols/Aws_json1_1";
6
- var GetBatchPredictionCommand = (function (_super) {
7
- __extends(GetBatchPredictionCommand, _super);
8
- function GetBatchPredictionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetBatchPredictionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetBatchPredictionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MachineLearningClient";
18
- var commandName = "GetBatchPredictionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MachineLearningClient";
15
+ const commandName = "GetBatchPredictionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetBatchPredictionInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetBatchPredictionOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetBatchPredictionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GetBatchPredictionCommand(input, context);
33
- };
34
- GetBatchPredictionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetBatchPredictionCommand(output, context);
36
- };
37
- return GetBatchPredictionCommand;
38
- }($Command));
39
- export { GetBatchPredictionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetDataSourceInputFilterSensitiveLog, GetDataSourceOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetDataSourceCommand, serializeAws_json1_1GetDataSourceCommand, } from "../protocols/Aws_json1_1";
6
- var GetDataSourceCommand = (function (_super) {
7
- __extends(GetDataSourceCommand, _super);
8
- function GetDataSourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetDataSourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetDataSourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "MachineLearningClient";
18
- var commandName = "GetDataSourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "MachineLearningClient";
15
+ const commandName = "GetDataSourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetDataSourceInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetDataSourceOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetDataSourceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1GetDataSourceCommand(input, context);
33
- };
34
- GetDataSourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetDataSourceCommand(output, context);
36
- };
37
- return GetDataSourceCommand;
38
- }($Command));
39
- export { GetDataSourceCommand };
31
+ }
32
+ }