@aws-sdk/client-machine-learning 3.477.0 → 3.481.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 (133) 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-cjs/pagination/DescribeBatchPredictionsPaginator.js +2 -24
  31. package/dist-cjs/pagination/DescribeDataSourcesPaginator.js +2 -24
  32. package/dist-cjs/pagination/DescribeEvaluationsPaginator.js +2 -24
  33. package/dist-cjs/pagination/DescribeMLModelsPaginator.js +2 -24
  34. package/dist-es/commands/AddTagsCommand.js +18 -41
  35. package/dist-es/commands/CreateBatchPredictionCommand.js +18 -41
  36. package/dist-es/commands/CreateDataSourceFromRDSCommand.js +18 -41
  37. package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js +18 -41
  38. package/dist-es/commands/CreateDataSourceFromS3Command.js +18 -41
  39. package/dist-es/commands/CreateEvaluationCommand.js +18 -41
  40. package/dist-es/commands/CreateMLModelCommand.js +18 -41
  41. package/dist-es/commands/CreateRealtimeEndpointCommand.js +18 -41
  42. package/dist-es/commands/DeleteBatchPredictionCommand.js +18 -41
  43. package/dist-es/commands/DeleteDataSourceCommand.js +18 -41
  44. package/dist-es/commands/DeleteEvaluationCommand.js +18 -41
  45. package/dist-es/commands/DeleteMLModelCommand.js +18 -41
  46. package/dist-es/commands/DeleteRealtimeEndpointCommand.js +18 -41
  47. package/dist-es/commands/DeleteTagsCommand.js +18 -41
  48. package/dist-es/commands/DescribeBatchPredictionsCommand.js +18 -41
  49. package/dist-es/commands/DescribeDataSourcesCommand.js +18 -41
  50. package/dist-es/commands/DescribeEvaluationsCommand.js +18 -41
  51. package/dist-es/commands/DescribeMLModelsCommand.js +18 -41
  52. package/dist-es/commands/DescribeTagsCommand.js +18 -41
  53. package/dist-es/commands/GetBatchPredictionCommand.js +18 -41
  54. package/dist-es/commands/GetDataSourceCommand.js +18 -41
  55. package/dist-es/commands/GetEvaluationCommand.js +18 -41
  56. package/dist-es/commands/GetMLModelCommand.js +18 -41
  57. package/dist-es/commands/PredictCommand.js +19 -42
  58. package/dist-es/commands/UpdateBatchPredictionCommand.js +18 -41
  59. package/dist-es/commands/UpdateDataSourceCommand.js +18 -41
  60. package/dist-es/commands/UpdateEvaluationCommand.js +18 -41
  61. package/dist-es/commands/UpdateMLModelCommand.js +18 -41
  62. package/dist-es/endpoint/EndpointParameters.js +6 -0
  63. package/dist-es/pagination/DescribeBatchPredictionsPaginator.js +2 -23
  64. package/dist-es/pagination/DescribeDataSourcesPaginator.js +2 -23
  65. package/dist-es/pagination/DescribeEvaluationsPaginator.js +2 -23
  66. package/dist-es/pagination/DescribeMLModelsPaginator.js +2 -23
  67. package/dist-types/commands/AddTagsCommand.d.ts +6 -21
  68. package/dist-types/commands/CreateBatchPredictionCommand.d.ts +6 -21
  69. package/dist-types/commands/CreateDataSourceFromRDSCommand.d.ts +6 -21
  70. package/dist-types/commands/CreateDataSourceFromRedshiftCommand.d.ts +6 -21
  71. package/dist-types/commands/CreateDataSourceFromS3Command.d.ts +6 -21
  72. package/dist-types/commands/CreateEvaluationCommand.d.ts +6 -21
  73. package/dist-types/commands/CreateMLModelCommand.d.ts +6 -21
  74. package/dist-types/commands/CreateRealtimeEndpointCommand.d.ts +6 -21
  75. package/dist-types/commands/DeleteBatchPredictionCommand.d.ts +6 -21
  76. package/dist-types/commands/DeleteDataSourceCommand.d.ts +6 -21
  77. package/dist-types/commands/DeleteEvaluationCommand.d.ts +6 -21
  78. package/dist-types/commands/DeleteMLModelCommand.d.ts +6 -21
  79. package/dist-types/commands/DeleteRealtimeEndpointCommand.d.ts +6 -21
  80. package/dist-types/commands/DeleteTagsCommand.d.ts +6 -21
  81. package/dist-types/commands/DescribeBatchPredictionsCommand.d.ts +6 -21
  82. package/dist-types/commands/DescribeDataSourcesCommand.d.ts +6 -21
  83. package/dist-types/commands/DescribeEvaluationsCommand.d.ts +6 -21
  84. package/dist-types/commands/DescribeMLModelsCommand.d.ts +6 -21
  85. package/dist-types/commands/DescribeTagsCommand.d.ts +6 -21
  86. package/dist-types/commands/GetBatchPredictionCommand.d.ts +6 -21
  87. package/dist-types/commands/GetDataSourceCommand.d.ts +6 -21
  88. package/dist-types/commands/GetEvaluationCommand.d.ts +6 -21
  89. package/dist-types/commands/GetMLModelCommand.d.ts +6 -21
  90. package/dist-types/commands/PredictCommand.d.ts +6 -21
  91. package/dist-types/commands/UpdateBatchPredictionCommand.d.ts +6 -21
  92. package/dist-types/commands/UpdateDataSourceCommand.d.ts +6 -21
  93. package/dist-types/commands/UpdateEvaluationCommand.d.ts +6 -21
  94. package/dist-types/commands/UpdateMLModelCommand.d.ts +6 -21
  95. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  96. package/dist-types/pagination/DescribeBatchPredictionsPaginator.d.ts +1 -1
  97. package/dist-types/pagination/DescribeDataSourcesPaginator.d.ts +1 -1
  98. package/dist-types/pagination/DescribeEvaluationsPaginator.d.ts +1 -1
  99. package/dist-types/pagination/DescribeMLModelsPaginator.d.ts +1 -1
  100. package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +12 -23
  101. package/dist-types/ts3.4/commands/CreateBatchPredictionCommand.d.ts +12 -24
  102. package/dist-types/ts3.4/commands/CreateDataSourceFromRDSCommand.d.ts +12 -24
  103. package/dist-types/ts3.4/commands/CreateDataSourceFromRedshiftCommand.d.ts +12 -24
  104. package/dist-types/ts3.4/commands/CreateDataSourceFromS3Command.d.ts +12 -24
  105. package/dist-types/ts3.4/commands/CreateEvaluationCommand.d.ts +14 -23
  106. package/dist-types/ts3.4/commands/CreateMLModelCommand.d.ts +14 -23
  107. package/dist-types/ts3.4/commands/CreateRealtimeEndpointCommand.d.ts +12 -24
  108. package/dist-types/ts3.4/commands/DeleteBatchPredictionCommand.d.ts +12 -24
  109. package/dist-types/ts3.4/commands/DeleteDataSourceCommand.d.ts +14 -23
  110. package/dist-types/ts3.4/commands/DeleteEvaluationCommand.d.ts +14 -23
  111. package/dist-types/ts3.4/commands/DeleteMLModelCommand.d.ts +14 -23
  112. package/dist-types/ts3.4/commands/DeleteRealtimeEndpointCommand.d.ts +12 -24
  113. package/dist-types/ts3.4/commands/DeleteTagsCommand.d.ts +14 -23
  114. package/dist-types/ts3.4/commands/DescribeBatchPredictionsCommand.d.ts +12 -24
  115. package/dist-types/ts3.4/commands/DescribeDataSourcesCommand.d.ts +14 -23
  116. package/dist-types/ts3.4/commands/DescribeEvaluationsCommand.d.ts +14 -23
  117. package/dist-types/ts3.4/commands/DescribeMLModelsCommand.d.ts +14 -23
  118. package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +14 -23
  119. package/dist-types/ts3.4/commands/GetBatchPredictionCommand.d.ts +14 -23
  120. package/dist-types/ts3.4/commands/GetDataSourceCommand.d.ts +14 -23
  121. package/dist-types/ts3.4/commands/GetEvaluationCommand.d.ts +14 -23
  122. package/dist-types/ts3.4/commands/GetMLModelCommand.d.ts +14 -23
  123. package/dist-types/ts3.4/commands/PredictCommand.d.ts +12 -23
  124. package/dist-types/ts3.4/commands/UpdateBatchPredictionCommand.d.ts +12 -24
  125. package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +14 -23
  126. package/dist-types/ts3.4/commands/UpdateEvaluationCommand.d.ts +14 -23
  127. package/dist-types/ts3.4/commands/UpdateMLModelCommand.d.ts +14 -23
  128. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  129. package/dist-types/ts3.4/pagination/DescribeBatchPredictionsPaginator.d.ts +3 -3
  130. package/dist-types/ts3.4/pagination/DescribeDataSourcesPaginator.d.ts +3 -3
  131. package/dist-types/ts3.4/pagination/DescribeEvaluationsPaginator.d.ts +3 -3
  132. package/dist-types/ts3.4/pagination/DescribeMLModelsPaginator.d.ts +3 -3
  133. package/package.json +11 -10
@@ -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
  }
@@ -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_UpdateEvaluationCommand, se_UpdateEvaluationCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateEvaluationCommand 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, UpdateEvaluationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "UpdateEvaluationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "UpdateEvaluation",
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_UpdateEvaluationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateEvaluationCommand(output, context);
46
- }
7
+ export class UpdateEvaluationCommand 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", "UpdateEvaluation", {})
19
+ .n("MachineLearningClient", "UpdateEvaluationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateEvaluationCommand)
22
+ .de(de_UpdateEvaluationCommand)
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_UpdateMLModelCommand, se_UpdateMLModelCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateMLModelCommand 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, UpdateMLModelCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MachineLearningClient";
26
- const commandName = "UpdateMLModelCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonML_20141212",
35
- operation: "UpdateMLModel",
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_UpdateMLModelCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateMLModelCommand(output, context);
46
- }
7
+ export class UpdateMLModelCommand 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", "UpdateMLModel", {})
19
+ .n("MachineLearningClient", "UpdateMLModelCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateMLModelCommand)
22
+ .de(de_UpdateMLModelCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "machinelearning",
7
7
  };
8
8
  };
9
+ export const commonParams = {
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
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeBatchPredictionsCommand, } from "../commands/DescribeBatchPredictionsCommand";
2
3
  import { MachineLearningClient } from "../MachineLearningClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeBatchPredictionsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeBatchPredictions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["Limit"] = config.pageSize;
13
- if (config.client instanceof MachineLearningClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MachineLearning | MachineLearningClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeBatchPredictions = createPaginator(MachineLearningClient, DescribeBatchPredictionsCommand, "NextToken", "NextToken", "Limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeDataSourcesCommand, } from "../commands/DescribeDataSourcesCommand";
2
3
  import { MachineLearningClient } from "../MachineLearningClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeDataSourcesCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeDataSources(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["Limit"] = config.pageSize;
13
- if (config.client instanceof MachineLearningClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MachineLearning | MachineLearningClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeDataSources = createPaginator(MachineLearningClient, DescribeDataSourcesCommand, "NextToken", "NextToken", "Limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeEvaluationsCommand, } from "../commands/DescribeEvaluationsCommand";
2
3
  import { MachineLearningClient } from "../MachineLearningClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeEvaluationsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeEvaluations(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["Limit"] = config.pageSize;
13
- if (config.client instanceof MachineLearningClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MachineLearning | MachineLearningClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeEvaluations = createPaginator(MachineLearningClient, DescribeEvaluationsCommand, "NextToken", "NextToken", "Limit");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { DescribeMLModelsCommand, } from "../commands/DescribeMLModelsCommand";
2
3
  import { MachineLearningClient } from "../MachineLearningClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeMLModelsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeMLModels(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["Limit"] = config.pageSize;
13
- if (config.client instanceof MachineLearningClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MachineLearning | MachineLearningClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateDescribeMLModels = createPaginator(MachineLearningClient, DescribeMLModelsCommand, "NextToken", "NextToken", "Limit");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
5
4
  import { AddTagsInput, AddTagsOutput } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AddTagsCommandInput extends AddTagsInput {
21
20
  */
22
21
  export interface AddTagsCommandOutput extends AddTagsOutput, __MetadataBearer {
23
22
  }
23
+ declare const AddTagsCommand_base: {
24
+ new (input: AddTagsCommandInput): import("@smithy/smithy-client").CommandImpl<AddTagsCommandInput, AddTagsCommandOutput, MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Adds one or more tags to an object, up to a limit of 10. Each tag consists of a key
@@ -74,23 +77,5 @@ export interface AddTagsCommandOutput extends AddTagsOutput, __MetadataBearer {
74
77
  * <p>Base exception class for all service exceptions from MachineLearning service.</p>
75
78
  *
76
79
  */
77
- export declare class AddTagsCommand extends $Command<AddTagsCommandInput, AddTagsCommandOutput, MachineLearningClientResolvedConfig> {
78
- readonly input: AddTagsCommandInput;
79
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
80
- /**
81
- * @public
82
- */
83
- constructor(input: AddTagsCommandInput);
84
- /**
85
- * @internal
86
- */
87
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AddTagsCommandInput, AddTagsCommandOutput>;
88
- /**
89
- * @internal
90
- */
91
- private serialize;
92
- /**
93
- * @internal
94
- */
95
- private deserialize;
80
+ export declare class AddTagsCommand extends AddTagsCommand_base {
96
81
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
5
4
  import { CreateBatchPredictionInput, CreateBatchPredictionOutput } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateBatchPredictionCommandInput extends CreateBatchPrediction
21
20
  */
22
21
  export interface CreateBatchPredictionCommandOutput extends CreateBatchPredictionOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateBatchPredictionCommand_base: {
24
+ new (input: CreateBatchPredictionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateBatchPredictionCommandInput, CreateBatchPredictionCommandOutput, MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Generates predictions for a group of observations. The observations to process exist in one or more data files referenced
@@ -75,23 +78,5 @@ export interface CreateBatchPredictionCommandOutput extends CreateBatchPredictio
75
78
  * <p>Base exception class for all service exceptions from MachineLearning service.</p>
76
79
  *
77
80
  */
78
- export declare class CreateBatchPredictionCommand extends $Command<CreateBatchPredictionCommandInput, CreateBatchPredictionCommandOutput, MachineLearningClientResolvedConfig> {
79
- readonly input: CreateBatchPredictionCommandInput;
80
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
81
- /**
82
- * @public
83
- */
84
- constructor(input: CreateBatchPredictionCommandInput);
85
- /**
86
- * @internal
87
- */
88
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateBatchPredictionCommandInput, CreateBatchPredictionCommandOutput>;
89
- /**
90
- * @internal
91
- */
92
- private serialize;
93
- /**
94
- * @internal
95
- */
96
- private deserialize;
81
+ export declare class CreateBatchPredictionCommand extends CreateBatchPredictionCommand_base {
97
82
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
5
4
  import { CreateDataSourceFromRDSInput, CreateDataSourceFromRDSOutput } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateDataSourceFromRDSCommandInput extends CreateDataSourceFro
21
20
  */
22
21
  export interface CreateDataSourceFromRDSCommandOutput extends CreateDataSourceFromRDSOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateDataSourceFromRDSCommand_base: {
24
+ new (input: CreateDataSourceFromRDSCommandInput): import("@smithy/smithy-client").CommandImpl<CreateDataSourceFromRDSCommandInput, CreateDataSourceFromRDSCommandOutput, MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a <code>DataSource</code> object from an <a href="http://aws.amazon.com/rds/"> Amazon Relational Database Service</a> (Amazon RDS). A <code>DataSource</code> references data that can be used to perform <code>CreateMLModel</code>, <code>CreateEvaluation</code>, or <code>CreateBatchPrediction</code> operations.</p>
@@ -95,23 +98,5 @@ export interface CreateDataSourceFromRDSCommandOutput extends CreateDataSourceFr
95
98
  * <p>Base exception class for all service exceptions from MachineLearning service.</p>
96
99
  *
97
100
  */
98
- export declare class CreateDataSourceFromRDSCommand extends $Command<CreateDataSourceFromRDSCommandInput, CreateDataSourceFromRDSCommandOutput, MachineLearningClientResolvedConfig> {
99
- readonly input: CreateDataSourceFromRDSCommandInput;
100
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
101
- /**
102
- * @public
103
- */
104
- constructor(input: CreateDataSourceFromRDSCommandInput);
105
- /**
106
- * @internal
107
- */
108
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateDataSourceFromRDSCommandInput, CreateDataSourceFromRDSCommandOutput>;
109
- /**
110
- * @internal
111
- */
112
- private serialize;
113
- /**
114
- * @internal
115
- */
116
- private deserialize;
101
+ export declare class CreateDataSourceFromRDSCommand extends CreateDataSourceFromRDSCommand_base {
117
102
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
5
4
  import { CreateDataSourceFromRedshiftInput, CreateDataSourceFromRedshiftOutput } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateDataSourceFromRedshiftCommandInput extends CreateDataSour
21
20
  */
22
21
  export interface CreateDataSourceFromRedshiftCommandOutput extends CreateDataSourceFromRedshiftOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateDataSourceFromRedshiftCommand_base: {
24
+ new (input: CreateDataSourceFromRedshiftCommandInput): import("@smithy/smithy-client").CommandImpl<CreateDataSourceFromRedshiftCommandInput, CreateDataSourceFromRedshiftCommandOutput, MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a <code>DataSource</code> from a database hosted on an Amazon Redshift cluster. A
@@ -110,23 +113,5 @@ export interface CreateDataSourceFromRedshiftCommandOutput extends CreateDataSou
110
113
  * <p>Base exception class for all service exceptions from MachineLearning service.</p>
111
114
  *
112
115
  */
113
- export declare class CreateDataSourceFromRedshiftCommand extends $Command<CreateDataSourceFromRedshiftCommandInput, CreateDataSourceFromRedshiftCommandOutput, MachineLearningClientResolvedConfig> {
114
- readonly input: CreateDataSourceFromRedshiftCommandInput;
115
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
116
- /**
117
- * @public
118
- */
119
- constructor(input: CreateDataSourceFromRedshiftCommandInput);
120
- /**
121
- * @internal
122
- */
123
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateDataSourceFromRedshiftCommandInput, CreateDataSourceFromRedshiftCommandOutput>;
124
- /**
125
- * @internal
126
- */
127
- private serialize;
128
- /**
129
- * @internal
130
- */
131
- private deserialize;
116
+ export declare class CreateDataSourceFromRedshiftCommand extends CreateDataSourceFromRedshiftCommand_base {
132
117
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
5
4
  import { CreateDataSourceFromS3Input, CreateDataSourceFromS3Output } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateDataSourceFromS3CommandInput extends CreateDataSourceFrom
21
20
  */
22
21
  export interface CreateDataSourceFromS3CommandOutput extends CreateDataSourceFromS3Output, __MetadataBearer {
23
22
  }
23
+ declare const CreateDataSourceFromS3Command_base: {
24
+ new (input: CreateDataSourceFromS3CommandInput): import("@smithy/smithy-client").CommandImpl<CreateDataSourceFromS3CommandInput, CreateDataSourceFromS3CommandOutput, MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a <code>DataSource</code> object. A <code>DataSource</code> references data that
@@ -98,23 +101,5 @@ export interface CreateDataSourceFromS3CommandOutput extends CreateDataSourceFro
98
101
  * <p>Base exception class for all service exceptions from MachineLearning service.</p>
99
102
  *
100
103
  */
101
- export declare class CreateDataSourceFromS3Command extends $Command<CreateDataSourceFromS3CommandInput, CreateDataSourceFromS3CommandOutput, MachineLearningClientResolvedConfig> {
102
- readonly input: CreateDataSourceFromS3CommandInput;
103
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
104
- /**
105
- * @public
106
- */
107
- constructor(input: CreateDataSourceFromS3CommandInput);
108
- /**
109
- * @internal
110
- */
111
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MachineLearningClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateDataSourceFromS3CommandInput, CreateDataSourceFromS3CommandOutput>;
112
- /**
113
- * @internal
114
- */
115
- private serialize;
116
- /**
117
- * @internal
118
- */
119
- private deserialize;
104
+ export declare class CreateDataSourceFromS3Command extends CreateDataSourceFromS3Command_base {
120
105
  }