@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
@@ -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_DescribeMLModelsCommand, se_DescribeMLModelsCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DescribeMLModelsCommand 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, DescribeMLModelsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "DescribeMLModelsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "DescribeMLModels",
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_DescribeMLModelsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DescribeMLModelsCommand(output, context);
46
- }
7
+ export class DescribeMLModelsCommand 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", "DescribeMLModels", {})
19
+ .n("MachineLearningClient", "DescribeMLModelsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribeMLModelsCommand)
22
+ .de(de_DescribeMLModelsCommand)
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_DescribeTagsCommand, se_DescribeTagsCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DescribeTagsCommand 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, DescribeTagsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "DescribeTagsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "DescribeTags",
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_DescribeTagsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DescribeTagsCommand(output, context);
46
- }
7
+ export class DescribeTagsCommand 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", "DescribeTags", {})
19
+ .n("MachineLearningClient", "DescribeTagsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribeTagsCommand)
22
+ .de(de_DescribeTagsCommand)
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_GetBatchPredictionCommand, se_GetBatchPredictionCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetBatchPredictionCommand 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, GetBatchPredictionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "GetBatchPredictionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "GetBatchPrediction",
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_GetBatchPredictionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetBatchPredictionCommand(output, context);
46
- }
7
+ export class GetBatchPredictionCommand 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", "GetBatchPrediction", {})
19
+ .n("MachineLearningClient", "GetBatchPredictionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetBatchPredictionCommand)
22
+ .de(de_GetBatchPredictionCommand)
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_GetDataSourceCommand, se_GetDataSourceCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetDataSourceCommand 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, GetDataSourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "GetDataSourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "GetDataSource",
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_GetDataSourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetDataSourceCommand(output, context);
46
- }
7
+ export class GetDataSourceCommand 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", "GetDataSource", {})
19
+ .n("MachineLearningClient", "GetDataSourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetDataSourceCommand)
22
+ .de(de_GetDataSourceCommand)
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_GetEvaluationCommand, se_GetEvaluationCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetEvaluationCommand 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, GetEvaluationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "GetEvaluationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "GetEvaluation",
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_GetEvaluationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetEvaluationCommand(output, context);
46
- }
7
+ export class GetEvaluationCommand 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", "GetEvaluation", {})
19
+ .n("MachineLearningClient", "GetEvaluationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetEvaluationCommand)
22
+ .de(de_GetEvaluationCommand)
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_GetMLModelCommand, se_GetMLModelCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetMLModelCommand 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, GetMLModelCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "GetMLModelCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "GetMLModel",
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_GetMLModelCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetMLModelCommand(output, context);
46
- }
7
+ export class GetMLModelCommand 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", "GetMLModel", {})
19
+ .n("MachineLearningClient", "GetMLModelCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetMLModelCommand)
22
+ .de(de_GetMLModelCommand)
23
+ .build() {
47
24
  }
@@ -2,48 +2,25 @@ import { getPredictEndpointPlugin } from "@aws-sdk/middleware-sdk-machinelearnin
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { de_PredictCommand, se_PredictCommand } from "../protocols/Aws_json1_1";
7
7
  export { $Command };
8
- export class PredictCommand 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, PredictCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getPredictEndpointPlugin(configuration));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "MachineLearningClient";
28
- const commandName = "PredictCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "AmazonML_20141212",
37
- operation: "Predict",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return se_PredictCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_PredictCommand(output, context);
48
- }
8
+ export class PredictCommand 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
+ getPredictEndpointPlugin(config),
18
+ ];
19
+ })
20
+ .s("AmazonML_20141212", "Predict", {})
21
+ .n("MachineLearningClient", "PredictCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_PredictCommand)
24
+ .de(de_PredictCommand)
25
+ .build() {
49
26
  }
@@ -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_UpdateBatchPredictionCommand, se_UpdateBatchPredictionCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateBatchPredictionCommand 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, UpdateBatchPredictionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "UpdateBatchPredictionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "UpdateBatchPrediction",
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_UpdateBatchPredictionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateBatchPredictionCommand(output, context);
46
- }
7
+ export class UpdateBatchPredictionCommand 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", "UpdateBatchPrediction", {})
19
+ .n("MachineLearningClient", "UpdateBatchPredictionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateBatchPredictionCommand)
22
+ .de(de_UpdateBatchPredictionCommand)
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_UpdateDataSourceCommand, se_UpdateDataSourceCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateDataSourceCommand 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, UpdateDataSourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "UpdateDataSourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "UpdateDataSource",
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_UpdateDataSourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateDataSourceCommand(output, context);
46
- }
7
+ export class UpdateDataSourceCommand 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", "UpdateDataSource", {})
19
+ .n("MachineLearningClient", "UpdateDataSourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateDataSourceCommand)
22
+ .de(de_UpdateDataSourceCommand)
23
+ .build() {
47
24
  }