@aws-sdk/client-machine-learning 3.186.0 → 3.190.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 (48) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/MachineLearning.js +114 -121
  3. package/dist-es/MachineLearningClient.js +22 -28
  4. package/dist-es/commands/AddTagsCommand.js +21 -28
  5. package/dist-es/commands/CreateBatchPredictionCommand.js +21 -28
  6. package/dist-es/commands/CreateDataSourceFromRDSCommand.js +21 -28
  7. package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js +21 -28
  8. package/dist-es/commands/CreateDataSourceFromS3Command.js +21 -28
  9. package/dist-es/commands/CreateEvaluationCommand.js +21 -28
  10. package/dist-es/commands/CreateMLModelCommand.js +21 -28
  11. package/dist-es/commands/CreateRealtimeEndpointCommand.js +21 -28
  12. package/dist-es/commands/DeleteBatchPredictionCommand.js +21 -28
  13. package/dist-es/commands/DeleteDataSourceCommand.js +21 -28
  14. package/dist-es/commands/DeleteEvaluationCommand.js +21 -28
  15. package/dist-es/commands/DeleteMLModelCommand.js +21 -28
  16. package/dist-es/commands/DeleteRealtimeEndpointCommand.js +21 -28
  17. package/dist-es/commands/DeleteTagsCommand.js +21 -28
  18. package/dist-es/commands/DescribeBatchPredictionsCommand.js +21 -28
  19. package/dist-es/commands/DescribeDataSourcesCommand.js +21 -28
  20. package/dist-es/commands/DescribeEvaluationsCommand.js +21 -28
  21. package/dist-es/commands/DescribeMLModelsCommand.js +21 -28
  22. package/dist-es/commands/DescribeTagsCommand.js +21 -28
  23. package/dist-es/commands/GetBatchPredictionCommand.js +21 -28
  24. package/dist-es/commands/GetDataSourceCommand.js +21 -28
  25. package/dist-es/commands/GetEvaluationCommand.js +21 -28
  26. package/dist-es/commands/GetMLModelCommand.js +21 -28
  27. package/dist-es/commands/PredictCommand.js +21 -28
  28. package/dist-es/commands/UpdateBatchPredictionCommand.js +21 -28
  29. package/dist-es/commands/UpdateDataSourceCommand.js +21 -28
  30. package/dist-es/commands/UpdateEvaluationCommand.js +21 -28
  31. package/dist-es/commands/UpdateMLModelCommand.js +21 -28
  32. package/dist-es/endpoints.js +8 -8
  33. package/dist-es/models/MachineLearningServiceException.js +5 -10
  34. package/dist-es/models/models_0.js +312 -167
  35. package/dist-es/pagination/DescribeBatchPredictionsPaginator.js +25 -68
  36. package/dist-es/pagination/DescribeDataSourcesPaginator.js +25 -68
  37. package/dist-es/pagination/DescribeEvaluationsPaginator.js +25 -68
  38. package/dist-es/pagination/DescribeMLModelsPaginator.js +25 -68
  39. package/dist-es/protocols/Aws_json1_1.js +1831 -2292
  40. package/dist-es/runtimeConfig.browser.js +26 -12
  41. package/dist-es/runtimeConfig.js +30 -12
  42. package/dist-es/runtimeConfig.native.js +8 -5
  43. package/dist-es/runtimeConfig.shared.js +8 -11
  44. package/dist-es/waiters/waitForBatchPredictionAvailable.js +50 -91
  45. package/dist-es/waiters/waitForDataSourceAvailable.js +50 -91
  46. package/dist-es/waiters/waitForEvaluationAvailable.js +50 -91
  47. package/dist-es/waiters/waitForMLModelAvailable.js +50 -91
  48. 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 { AddTagsInputFilterSensitiveLog, AddTagsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1AddTagsCommand, serializeAws_json1_1AddTagsCommand } from "../protocols/Aws_json1_1";
6
- var AddTagsCommand = (function (_super) {
7
- __extends(AddTagsCommand, _super);
8
- function AddTagsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AddTagsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AddTagsCommand.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 = "AddTagsCommand";
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 = "AddTagsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AddTagsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AddTagsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AddTagsCommand.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_1AddTagsCommand(input, context);
33
- };
34
- AddTagsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1AddTagsCommand(output, context);
36
- };
37
- return AddTagsCommand;
38
- }($Command));
39
- export { AddTagsCommand };
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 { CreateBatchPredictionInputFilterSensitiveLog, CreateBatchPredictionOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateBatchPredictionCommand, serializeAws_json1_1CreateBatchPredictionCommand, } from "../protocols/Aws_json1_1";
6
- var CreateBatchPredictionCommand = (function (_super) {
7
- __extends(CreateBatchPredictionCommand, _super);
8
- function CreateBatchPredictionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateBatchPredictionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateBatchPredictionCommand.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 = "CreateBatchPredictionCommand";
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 = "CreateBatchPredictionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateBatchPredictionInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateBatchPredictionOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateBatchPredictionCommand.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_1CreateBatchPredictionCommand(input, context);
33
- };
34
- CreateBatchPredictionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateBatchPredictionCommand(output, context);
36
- };
37
- return CreateBatchPredictionCommand;
38
- }($Command));
39
- export { CreateBatchPredictionCommand };
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 { CreateDataSourceFromRDSInputFilterSensitiveLog, CreateDataSourceFromRDSOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateDataSourceFromRDSCommand, serializeAws_json1_1CreateDataSourceFromRDSCommand, } from "../protocols/Aws_json1_1";
6
- var CreateDataSourceFromRDSCommand = (function (_super) {
7
- __extends(CreateDataSourceFromRDSCommand, _super);
8
- function CreateDataSourceFromRDSCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateDataSourceFromRDSCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateDataSourceFromRDSCommand.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 = "CreateDataSourceFromRDSCommand";
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 = "CreateDataSourceFromRDSCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateDataSourceFromRDSInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateDataSourceFromRDSOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateDataSourceFromRDSCommand.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_1CreateDataSourceFromRDSCommand(input, context);
33
- };
34
- CreateDataSourceFromRDSCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateDataSourceFromRDSCommand(output, context);
36
- };
37
- return CreateDataSourceFromRDSCommand;
38
- }($Command));
39
- export { CreateDataSourceFromRDSCommand };
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 { CreateDataSourceFromRedshiftInputFilterSensitiveLog, CreateDataSourceFromRedshiftOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateDataSourceFromRedshiftCommand, serializeAws_json1_1CreateDataSourceFromRedshiftCommand, } from "../protocols/Aws_json1_1";
6
- var CreateDataSourceFromRedshiftCommand = (function (_super) {
7
- __extends(CreateDataSourceFromRedshiftCommand, _super);
8
- function CreateDataSourceFromRedshiftCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateDataSourceFromRedshiftCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateDataSourceFromRedshiftCommand.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 = "CreateDataSourceFromRedshiftCommand";
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 = "CreateDataSourceFromRedshiftCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateDataSourceFromRedshiftInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateDataSourceFromRedshiftOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateDataSourceFromRedshiftCommand.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_1CreateDataSourceFromRedshiftCommand(input, context);
33
- };
34
- CreateDataSourceFromRedshiftCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateDataSourceFromRedshiftCommand(output, context);
36
- };
37
- return CreateDataSourceFromRedshiftCommand;
38
- }($Command));
39
- export { CreateDataSourceFromRedshiftCommand };
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 { CreateDataSourceFromS3InputFilterSensitiveLog, CreateDataSourceFromS3OutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateDataSourceFromS3Command, serializeAws_json1_1CreateDataSourceFromS3Command, } from "../protocols/Aws_json1_1";
6
- var CreateDataSourceFromS3Command = (function (_super) {
7
- __extends(CreateDataSourceFromS3Command, _super);
8
- function CreateDataSourceFromS3Command(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateDataSourceFromS3Command extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateDataSourceFromS3Command.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 = "CreateDataSourceFromS3Command";
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 = "CreateDataSourceFromS3Command";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateDataSourceFromS3InputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateDataSourceFromS3OutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateDataSourceFromS3Command.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_1CreateDataSourceFromS3Command(input, context);
33
- };
34
- CreateDataSourceFromS3Command.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateDataSourceFromS3Command(output, context);
36
- };
37
- return CreateDataSourceFromS3Command;
38
- }($Command));
39
- export { CreateDataSourceFromS3Command };
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 { CreateEvaluationInputFilterSensitiveLog, CreateEvaluationOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateEvaluationCommand, serializeAws_json1_1CreateEvaluationCommand, } from "../protocols/Aws_json1_1";
6
- var CreateEvaluationCommand = (function (_super) {
7
- __extends(CreateEvaluationCommand, _super);
8
- function CreateEvaluationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateEvaluationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateEvaluationCommand.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 = "CreateEvaluationCommand";
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 = "CreateEvaluationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateEvaluationInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateEvaluationOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateEvaluationCommand.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_1CreateEvaluationCommand(input, context);
33
- };
34
- CreateEvaluationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateEvaluationCommand(output, context);
36
- };
37
- return CreateEvaluationCommand;
38
- }($Command));
39
- export { CreateEvaluationCommand };
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 { CreateMLModelInputFilterSensitiveLog, CreateMLModelOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateMLModelCommand, serializeAws_json1_1CreateMLModelCommand, } from "../protocols/Aws_json1_1";
6
- var CreateMLModelCommand = (function (_super) {
7
- __extends(CreateMLModelCommand, _super);
8
- function CreateMLModelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateMLModelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateMLModelCommand.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 = "CreateMLModelCommand";
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 = "CreateMLModelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateMLModelInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateMLModelOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateMLModelCommand.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_1CreateMLModelCommand(input, context);
33
- };
34
- CreateMLModelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateMLModelCommand(output, context);
36
- };
37
- return CreateMLModelCommand;
38
- }($Command));
39
- export { CreateMLModelCommand };
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 { CreateRealtimeEndpointInputFilterSensitiveLog, CreateRealtimeEndpointOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateRealtimeEndpointCommand, serializeAws_json1_1CreateRealtimeEndpointCommand, } from "../protocols/Aws_json1_1";
6
- var CreateRealtimeEndpointCommand = (function (_super) {
7
- __extends(CreateRealtimeEndpointCommand, _super);
8
- function CreateRealtimeEndpointCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateRealtimeEndpointCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateRealtimeEndpointCommand.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 = "CreateRealtimeEndpointCommand";
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 = "CreateRealtimeEndpointCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateRealtimeEndpointInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateRealtimeEndpointOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateRealtimeEndpointCommand.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_1CreateRealtimeEndpointCommand(input, context);
33
- };
34
- CreateRealtimeEndpointCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateRealtimeEndpointCommand(output, context);
36
- };
37
- return CreateRealtimeEndpointCommand;
38
- }($Command));
39
- export { CreateRealtimeEndpointCommand };
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 { DeleteBatchPredictionInputFilterSensitiveLog, DeleteBatchPredictionOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteBatchPredictionCommand, serializeAws_json1_1DeleteBatchPredictionCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteBatchPredictionCommand = (function (_super) {
7
- __extends(DeleteBatchPredictionCommand, _super);
8
- function DeleteBatchPredictionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteBatchPredictionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteBatchPredictionCommand.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 = "DeleteBatchPredictionCommand";
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 = "DeleteBatchPredictionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteBatchPredictionInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteBatchPredictionOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteBatchPredictionCommand.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_1DeleteBatchPredictionCommand(input, context);
33
- };
34
- DeleteBatchPredictionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteBatchPredictionCommand(output, context);
36
- };
37
- return DeleteBatchPredictionCommand;
38
- }($Command));
39
- export { DeleteBatchPredictionCommand };
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 { DeleteDataSourceInputFilterSensitiveLog, DeleteDataSourceOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteDataSourceCommand, serializeAws_json1_1DeleteDataSourceCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteDataSourceCommand = (function (_super) {
7
- __extends(DeleteDataSourceCommand, _super);
8
- function DeleteDataSourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteDataSourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteDataSourceCommand.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 = "DeleteDataSourceCommand";
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 = "DeleteDataSourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteDataSourceInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteDataSourceOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteDataSourceCommand.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_1DeleteDataSourceCommand(input, context);
33
- };
34
- DeleteDataSourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteDataSourceCommand(output, context);
36
- };
37
- return DeleteDataSourceCommand;
38
- }($Command));
39
- export { DeleteDataSourceCommand };
31
+ }
32
+ }