@aws-sdk/client-machine-learning 3.478.0 → 3.484.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 (117) hide show
  1. package/dist-cjs/commands/AddTagsCommand.js +18 -41
  2. package/dist-cjs/commands/CreateBatchPredictionCommand.js +18 -41
  3. package/dist-cjs/commands/CreateDataSourceFromRDSCommand.js +18 -41
  4. package/dist-cjs/commands/CreateDataSourceFromRedshiftCommand.js +18 -41
  5. package/dist-cjs/commands/CreateDataSourceFromS3Command.js +18 -41
  6. package/dist-cjs/commands/CreateEvaluationCommand.js +18 -41
  7. package/dist-cjs/commands/CreateMLModelCommand.js +18 -41
  8. package/dist-cjs/commands/CreateRealtimeEndpointCommand.js +18 -41
  9. package/dist-cjs/commands/DeleteBatchPredictionCommand.js +18 -41
  10. package/dist-cjs/commands/DeleteDataSourceCommand.js +18 -41
  11. package/dist-cjs/commands/DeleteEvaluationCommand.js +18 -41
  12. package/dist-cjs/commands/DeleteMLModelCommand.js +18 -41
  13. package/dist-cjs/commands/DeleteRealtimeEndpointCommand.js +18 -41
  14. package/dist-cjs/commands/DeleteTagsCommand.js +18 -41
  15. package/dist-cjs/commands/DescribeBatchPredictionsCommand.js +18 -41
  16. package/dist-cjs/commands/DescribeDataSourcesCommand.js +18 -41
  17. package/dist-cjs/commands/DescribeEvaluationsCommand.js +18 -41
  18. package/dist-cjs/commands/DescribeMLModelsCommand.js +18 -41
  19. package/dist-cjs/commands/DescribeTagsCommand.js +18 -41
  20. package/dist-cjs/commands/GetBatchPredictionCommand.js +18 -41
  21. package/dist-cjs/commands/GetDataSourceCommand.js +18 -41
  22. package/dist-cjs/commands/GetEvaluationCommand.js +18 -41
  23. package/dist-cjs/commands/GetMLModelCommand.js +18 -41
  24. package/dist-cjs/commands/PredictCommand.js +19 -42
  25. package/dist-cjs/commands/UpdateBatchPredictionCommand.js +18 -41
  26. package/dist-cjs/commands/UpdateDataSourceCommand.js +18 -41
  27. package/dist-cjs/commands/UpdateEvaluationCommand.js +18 -41
  28. package/dist-cjs/commands/UpdateMLModelCommand.js +18 -41
  29. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  30. package/dist-es/commands/AddTagsCommand.js +18 -41
  31. package/dist-es/commands/CreateBatchPredictionCommand.js +18 -41
  32. package/dist-es/commands/CreateDataSourceFromRDSCommand.js +18 -41
  33. package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js +18 -41
  34. package/dist-es/commands/CreateDataSourceFromS3Command.js +18 -41
  35. package/dist-es/commands/CreateEvaluationCommand.js +18 -41
  36. package/dist-es/commands/CreateMLModelCommand.js +18 -41
  37. package/dist-es/commands/CreateRealtimeEndpointCommand.js +18 -41
  38. package/dist-es/commands/DeleteBatchPredictionCommand.js +18 -41
  39. package/dist-es/commands/DeleteDataSourceCommand.js +18 -41
  40. package/dist-es/commands/DeleteEvaluationCommand.js +18 -41
  41. package/dist-es/commands/DeleteMLModelCommand.js +18 -41
  42. package/dist-es/commands/DeleteRealtimeEndpointCommand.js +18 -41
  43. package/dist-es/commands/DeleteTagsCommand.js +18 -41
  44. package/dist-es/commands/DescribeBatchPredictionsCommand.js +18 -41
  45. package/dist-es/commands/DescribeDataSourcesCommand.js +18 -41
  46. package/dist-es/commands/DescribeEvaluationsCommand.js +18 -41
  47. package/dist-es/commands/DescribeMLModelsCommand.js +18 -41
  48. package/dist-es/commands/DescribeTagsCommand.js +18 -41
  49. package/dist-es/commands/GetBatchPredictionCommand.js +18 -41
  50. package/dist-es/commands/GetDataSourceCommand.js +18 -41
  51. package/dist-es/commands/GetEvaluationCommand.js +18 -41
  52. package/dist-es/commands/GetMLModelCommand.js +18 -41
  53. package/dist-es/commands/PredictCommand.js +19 -42
  54. package/dist-es/commands/UpdateBatchPredictionCommand.js +18 -41
  55. package/dist-es/commands/UpdateDataSourceCommand.js +18 -41
  56. package/dist-es/commands/UpdateEvaluationCommand.js +18 -41
  57. package/dist-es/commands/UpdateMLModelCommand.js +18 -41
  58. package/dist-es/endpoint/EndpointParameters.js +6 -0
  59. package/dist-types/commands/AddTagsCommand.d.ts +6 -21
  60. package/dist-types/commands/CreateBatchPredictionCommand.d.ts +6 -21
  61. package/dist-types/commands/CreateDataSourceFromRDSCommand.d.ts +6 -21
  62. package/dist-types/commands/CreateDataSourceFromRedshiftCommand.d.ts +6 -21
  63. package/dist-types/commands/CreateDataSourceFromS3Command.d.ts +6 -21
  64. package/dist-types/commands/CreateEvaluationCommand.d.ts +6 -21
  65. package/dist-types/commands/CreateMLModelCommand.d.ts +6 -21
  66. package/dist-types/commands/CreateRealtimeEndpointCommand.d.ts +6 -21
  67. package/dist-types/commands/DeleteBatchPredictionCommand.d.ts +6 -21
  68. package/dist-types/commands/DeleteDataSourceCommand.d.ts +6 -21
  69. package/dist-types/commands/DeleteEvaluationCommand.d.ts +6 -21
  70. package/dist-types/commands/DeleteMLModelCommand.d.ts +6 -21
  71. package/dist-types/commands/DeleteRealtimeEndpointCommand.d.ts +6 -21
  72. package/dist-types/commands/DeleteTagsCommand.d.ts +6 -21
  73. package/dist-types/commands/DescribeBatchPredictionsCommand.d.ts +6 -21
  74. package/dist-types/commands/DescribeDataSourcesCommand.d.ts +6 -21
  75. package/dist-types/commands/DescribeEvaluationsCommand.d.ts +6 -21
  76. package/dist-types/commands/DescribeMLModelsCommand.d.ts +6 -21
  77. package/dist-types/commands/DescribeTagsCommand.d.ts +6 -21
  78. package/dist-types/commands/GetBatchPredictionCommand.d.ts +6 -21
  79. package/dist-types/commands/GetDataSourceCommand.d.ts +6 -21
  80. package/dist-types/commands/GetEvaluationCommand.d.ts +6 -21
  81. package/dist-types/commands/GetMLModelCommand.d.ts +6 -21
  82. package/dist-types/commands/PredictCommand.d.ts +6 -21
  83. package/dist-types/commands/UpdateBatchPredictionCommand.d.ts +6 -21
  84. package/dist-types/commands/UpdateDataSourceCommand.d.ts +6 -21
  85. package/dist-types/commands/UpdateEvaluationCommand.d.ts +6 -21
  86. package/dist-types/commands/UpdateMLModelCommand.d.ts +6 -21
  87. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  88. package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +12 -23
  89. package/dist-types/ts3.4/commands/CreateBatchPredictionCommand.d.ts +12 -24
  90. package/dist-types/ts3.4/commands/CreateDataSourceFromRDSCommand.d.ts +12 -24
  91. package/dist-types/ts3.4/commands/CreateDataSourceFromRedshiftCommand.d.ts +12 -24
  92. package/dist-types/ts3.4/commands/CreateDataSourceFromS3Command.d.ts +12 -24
  93. package/dist-types/ts3.4/commands/CreateEvaluationCommand.d.ts +14 -23
  94. package/dist-types/ts3.4/commands/CreateMLModelCommand.d.ts +14 -23
  95. package/dist-types/ts3.4/commands/CreateRealtimeEndpointCommand.d.ts +12 -24
  96. package/dist-types/ts3.4/commands/DeleteBatchPredictionCommand.d.ts +12 -24
  97. package/dist-types/ts3.4/commands/DeleteDataSourceCommand.d.ts +14 -23
  98. package/dist-types/ts3.4/commands/DeleteEvaluationCommand.d.ts +14 -23
  99. package/dist-types/ts3.4/commands/DeleteMLModelCommand.d.ts +14 -23
  100. package/dist-types/ts3.4/commands/DeleteRealtimeEndpointCommand.d.ts +12 -24
  101. package/dist-types/ts3.4/commands/DeleteTagsCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/DescribeBatchPredictionsCommand.d.ts +12 -24
  103. package/dist-types/ts3.4/commands/DescribeDataSourcesCommand.d.ts +14 -23
  104. package/dist-types/ts3.4/commands/DescribeEvaluationsCommand.d.ts +14 -23
  105. package/dist-types/ts3.4/commands/DescribeMLModelsCommand.d.ts +14 -23
  106. package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +14 -23
  107. package/dist-types/ts3.4/commands/GetBatchPredictionCommand.d.ts +14 -23
  108. package/dist-types/ts3.4/commands/GetDataSourceCommand.d.ts +14 -23
  109. package/dist-types/ts3.4/commands/GetEvaluationCommand.d.ts +14 -23
  110. package/dist-types/ts3.4/commands/GetMLModelCommand.d.ts +14 -23
  111. package/dist-types/ts3.4/commands/PredictCommand.d.ts +12 -23
  112. package/dist-types/ts3.4/commands/UpdateBatchPredictionCommand.d.ts +12 -24
  113. package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +14 -23
  114. package/dist-types/ts3.4/commands/UpdateEvaluationCommand.d.ts +14 -23
  115. package/dist-types/ts3.4/commands/UpdateMLModelCommand.d.ts +14 -23
  116. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  117. package/package.json +11 -11
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class UpdateMLModelCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateMLModelCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "MachineLearningClient";
29
- const commandName = "UpdateMLModelCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonML_20141212",
38
- operation: "UpdateMLModel",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_json1_1_1.se_UpdateMLModelCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_json1_1_1.de_UpdateMLModelCommand)(output, context);
49
- }
10
+ class UpdateMLModelCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonML_20141212", "UpdateMLModel", {})
22
+ .n("MachineLearningClient", "UpdateMLModelCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_json1_1_1.se_UpdateMLModelCommand)
25
+ .de(Aws_json1_1_1.de_UpdateMLModelCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateMLModelCommand = UpdateMLModelCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_AddTagsCommand, se_AddTagsCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class AddTagsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, AddTagsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "AddTagsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "AddTags",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_AddTagsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_AddTagsCommand(output, context);
46
- }
7
+ export class AddTagsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonML_20141212", "AddTags", {})
19
+ .n("MachineLearningClient", "AddTagsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_AddTagsCommand)
22
+ .de(de_AddTagsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateBatchPredictionCommand, se_CreateBatchPredictionCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class CreateBatchPredictionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateBatchPredictionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "CreateBatchPredictionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "CreateBatchPrediction",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateBatchPredictionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateBatchPredictionCommand(output, context);
46
- }
7
+ export class CreateBatchPredictionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonML_20141212", "CreateBatchPrediction", {})
19
+ .n("MachineLearningClient", "CreateBatchPredictionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateBatchPredictionCommand)
22
+ .de(de_CreateBatchPredictionCommand)
23
+ .build() {
47
24
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { CreateDataSourceFromRDSInputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_CreateDataSourceFromRDSCommand, se_CreateDataSourceFromRDSCommand } from "../protocols/Aws_json1_1";
7
7
  export { $Command };
8
- export class CreateDataSourceFromRDSCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateDataSourceFromRDSCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "MachineLearningClient";
27
- const commandName = "CreateDataSourceFromRDSCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: CreateDataSourceFromRDSInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonML_20141212",
36
- operation: "CreateDataSourceFromRDS",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_CreateDataSourceFromRDSCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_CreateDataSourceFromRDSCommand(output, context);
47
- }
8
+ export class CreateDataSourceFromRDSCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonML_20141212", "CreateDataSourceFromRDS", {})
20
+ .n("MachineLearningClient", "CreateDataSourceFromRDSCommand")
21
+ .f(CreateDataSourceFromRDSInputFilterSensitiveLog, void 0)
22
+ .ser(se_CreateDataSourceFromRDSCommand)
23
+ .de(de_CreateDataSourceFromRDSCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { CreateDataSourceFromRedshiftInputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_CreateDataSourceFromRedshiftCommand, se_CreateDataSourceFromRedshiftCommand, } from "../protocols/Aws_json1_1";
7
7
  export { $Command };
8
- export class CreateDataSourceFromRedshiftCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateDataSourceFromRedshiftCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "MachineLearningClient";
27
- const commandName = "CreateDataSourceFromRedshiftCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: CreateDataSourceFromRedshiftInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AmazonML_20141212",
36
- operation: "CreateDataSourceFromRedshift",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_CreateDataSourceFromRedshiftCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_CreateDataSourceFromRedshiftCommand(output, context);
47
- }
8
+ export class CreateDataSourceFromRedshiftCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AmazonML_20141212", "CreateDataSourceFromRedshift", {})
20
+ .n("MachineLearningClient", "CreateDataSourceFromRedshiftCommand")
21
+ .f(CreateDataSourceFromRedshiftInputFilterSensitiveLog, void 0)
22
+ .ser(se_CreateDataSourceFromRedshiftCommand)
23
+ .de(de_CreateDataSourceFromRedshiftCommand)
24
+ .build() {
48
25
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateDataSourceFromS3Command, se_CreateDataSourceFromS3Command } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class CreateDataSourceFromS3Command extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateDataSourceFromS3Command.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "CreateDataSourceFromS3Command";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "CreateDataSourceFromS3",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateDataSourceFromS3Command(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateDataSourceFromS3Command(output, context);
46
- }
7
+ export class CreateDataSourceFromS3Command extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonML_20141212", "CreateDataSourceFromS3", {})
19
+ .n("MachineLearningClient", "CreateDataSourceFromS3Command")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateDataSourceFromS3Command)
22
+ .de(de_CreateDataSourceFromS3Command)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateEvaluationCommand, se_CreateEvaluationCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class CreateEvaluationCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateEvaluationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "CreateEvaluationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "CreateEvaluation",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateEvaluationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateEvaluationCommand(output, context);
46
- }
7
+ export class CreateEvaluationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonML_20141212", "CreateEvaluation", {})
19
+ .n("MachineLearningClient", "CreateEvaluationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateEvaluationCommand)
22
+ .de(de_CreateEvaluationCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateMLModelCommand, se_CreateMLModelCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class CreateMLModelCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateMLModelCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "CreateMLModelCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "CreateMLModel",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateMLModelCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateMLModelCommand(output, context);
46
- }
7
+ export class CreateMLModelCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonML_20141212", "CreateMLModel", {})
19
+ .n("MachineLearningClient", "CreateMLModelCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateMLModelCommand)
22
+ .de(de_CreateMLModelCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateRealtimeEndpointCommand, se_CreateRealtimeEndpointCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class CreateRealtimeEndpointCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateRealtimeEndpointCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "CreateRealtimeEndpointCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "CreateRealtimeEndpoint",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateRealtimeEndpointCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateRealtimeEndpointCommand(output, context);
46
- }
7
+ export class CreateRealtimeEndpointCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonML_20141212", "CreateRealtimeEndpoint", {})
19
+ .n("MachineLearningClient", "CreateRealtimeEndpointCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateRealtimeEndpointCommand)
22
+ .de(de_CreateRealtimeEndpointCommand)
23
+ .build() {
47
24
  }