@aws-sdk/client-machine-learning 3.35.0 → 3.36.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 (246) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/MachineLearning.js +0 -1
  3. package/dist-cjs/MachineLearningClient.js +0 -1
  4. package/dist-cjs/commands/AddTagsCommand.js +0 -1
  5. package/dist-cjs/commands/CreateBatchPredictionCommand.js +0 -1
  6. package/dist-cjs/commands/CreateDataSourceFromRDSCommand.js +0 -1
  7. package/dist-cjs/commands/CreateDataSourceFromRedshiftCommand.js +0 -1
  8. package/dist-cjs/commands/CreateDataSourceFromS3Command.js +0 -1
  9. package/dist-cjs/commands/CreateEvaluationCommand.js +0 -1
  10. package/dist-cjs/commands/CreateMLModelCommand.js +0 -1
  11. package/dist-cjs/commands/CreateRealtimeEndpointCommand.js +0 -1
  12. package/dist-cjs/commands/DeleteBatchPredictionCommand.js +0 -1
  13. package/dist-cjs/commands/DeleteDataSourceCommand.js +0 -1
  14. package/dist-cjs/commands/DeleteEvaluationCommand.js +0 -1
  15. package/dist-cjs/commands/DeleteMLModelCommand.js +0 -1
  16. package/dist-cjs/commands/DeleteRealtimeEndpointCommand.js +0 -1
  17. package/dist-cjs/commands/DeleteTagsCommand.js +0 -1
  18. package/dist-cjs/commands/DescribeBatchPredictionsCommand.js +0 -1
  19. package/dist-cjs/commands/DescribeDataSourcesCommand.js +0 -1
  20. package/dist-cjs/commands/DescribeEvaluationsCommand.js +0 -1
  21. package/dist-cjs/commands/DescribeMLModelsCommand.js +0 -1
  22. package/dist-cjs/commands/DescribeTagsCommand.js +0 -1
  23. package/dist-cjs/commands/GetBatchPredictionCommand.js +0 -1
  24. package/dist-cjs/commands/GetDataSourceCommand.js +0 -1
  25. package/dist-cjs/commands/GetEvaluationCommand.js +0 -1
  26. package/dist-cjs/commands/GetMLModelCommand.js +0 -1
  27. package/dist-cjs/commands/PredictCommand.js +0 -1
  28. package/dist-cjs/commands/UpdateBatchPredictionCommand.js +0 -1
  29. package/dist-cjs/commands/UpdateDataSourceCommand.js +0 -1
  30. package/dist-cjs/commands/UpdateEvaluationCommand.js +0 -1
  31. package/dist-cjs/commands/UpdateMLModelCommand.js +0 -1
  32. package/dist-cjs/endpoints.js +0 -1
  33. package/dist-cjs/index.js +0 -1
  34. package/dist-cjs/models/index.js +0 -1
  35. package/dist-cjs/models/models_0.js +0 -1
  36. package/dist-cjs/pagination/DescribeBatchPredictionsPaginator.js +0 -1
  37. package/dist-cjs/pagination/DescribeDataSourcesPaginator.js +0 -1
  38. package/dist-cjs/pagination/DescribeEvaluationsPaginator.js +0 -1
  39. package/dist-cjs/pagination/DescribeMLModelsPaginator.js +0 -1
  40. package/dist-cjs/pagination/Interfaces.js +0 -1
  41. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  42. package/dist-cjs/runtimeConfig.browser.js +2 -3
  43. package/dist-cjs/runtimeConfig.js +3 -4
  44. package/dist-cjs/runtimeConfig.native.js +0 -1
  45. package/dist-cjs/runtimeConfig.shared.js +0 -1
  46. package/dist-cjs/waiters/waitForBatchPredictionAvailable.js +0 -1
  47. package/dist-cjs/waiters/waitForDataSourceAvailable.js +0 -1
  48. package/dist-cjs/waiters/waitForEvaluationAvailable.js +0 -1
  49. package/dist-cjs/waiters/waitForMLModelAvailable.js +0 -1
  50. package/dist-es/MachineLearning.js +0 -1
  51. package/dist-es/MachineLearningClient.js +0 -1
  52. package/dist-es/commands/AddTagsCommand.js +0 -1
  53. package/dist-es/commands/CreateBatchPredictionCommand.js +0 -1
  54. package/dist-es/commands/CreateDataSourceFromRDSCommand.js +0 -1
  55. package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js +0 -1
  56. package/dist-es/commands/CreateDataSourceFromS3Command.js +0 -1
  57. package/dist-es/commands/CreateEvaluationCommand.js +0 -1
  58. package/dist-es/commands/CreateMLModelCommand.js +0 -1
  59. package/dist-es/commands/CreateRealtimeEndpointCommand.js +0 -1
  60. package/dist-es/commands/DeleteBatchPredictionCommand.js +0 -1
  61. package/dist-es/commands/DeleteDataSourceCommand.js +0 -1
  62. package/dist-es/commands/DeleteEvaluationCommand.js +0 -1
  63. package/dist-es/commands/DeleteMLModelCommand.js +0 -1
  64. package/dist-es/commands/DeleteRealtimeEndpointCommand.js +0 -1
  65. package/dist-es/commands/DeleteTagsCommand.js +0 -1
  66. package/dist-es/commands/DescribeBatchPredictionsCommand.js +0 -1
  67. package/dist-es/commands/DescribeDataSourcesCommand.js +0 -1
  68. package/dist-es/commands/DescribeEvaluationsCommand.js +0 -1
  69. package/dist-es/commands/DescribeMLModelsCommand.js +0 -1
  70. package/dist-es/commands/DescribeTagsCommand.js +0 -1
  71. package/dist-es/commands/GetBatchPredictionCommand.js +0 -1
  72. package/dist-es/commands/GetDataSourceCommand.js +0 -1
  73. package/dist-es/commands/GetEvaluationCommand.js +0 -1
  74. package/dist-es/commands/GetMLModelCommand.js +0 -1
  75. package/dist-es/commands/PredictCommand.js +0 -1
  76. package/dist-es/commands/UpdateBatchPredictionCommand.js +0 -1
  77. package/dist-es/commands/UpdateDataSourceCommand.js +0 -1
  78. package/dist-es/commands/UpdateEvaluationCommand.js +0 -1
  79. package/dist-es/commands/UpdateMLModelCommand.js +0 -1
  80. package/dist-es/endpoints.js +0 -1
  81. package/dist-es/index.js +0 -1
  82. package/dist-es/models/index.js +0 -1
  83. package/dist-es/models/models_0.js +0 -1
  84. package/dist-es/pagination/DescribeBatchPredictionsPaginator.js +0 -1
  85. package/dist-es/pagination/DescribeDataSourcesPaginator.js +0 -1
  86. package/dist-es/pagination/DescribeEvaluationsPaginator.js +0 -1
  87. package/dist-es/pagination/DescribeMLModelsPaginator.js +0 -1
  88. package/dist-es/pagination/Interfaces.js +0 -1
  89. package/dist-es/protocols/Aws_json1_1.js +0 -1
  90. package/dist-es/runtimeConfig.browser.js +1 -2
  91. package/dist-es/runtimeConfig.js +2 -3
  92. package/dist-es/runtimeConfig.native.js +0 -1
  93. package/dist-es/runtimeConfig.shared.js +0 -1
  94. package/dist-es/waiters/waitForBatchPredictionAvailable.js +0 -1
  95. package/dist-es/waiters/waitForDataSourceAvailable.js +0 -1
  96. package/dist-es/waiters/waitForEvaluationAvailable.js +0 -1
  97. package/dist-es/waiters/waitForMLModelAvailable.js +0 -1
  98. package/package.json +35 -32
  99. package/dist-cjs/MachineLearning.js.map +0 -1
  100. package/dist-cjs/MachineLearningClient.js.map +0 -1
  101. package/dist-cjs/commands/AddTagsCommand.js.map +0 -1
  102. package/dist-cjs/commands/CreateBatchPredictionCommand.js.map +0 -1
  103. package/dist-cjs/commands/CreateDataSourceFromRDSCommand.js.map +0 -1
  104. package/dist-cjs/commands/CreateDataSourceFromRedshiftCommand.js.map +0 -1
  105. package/dist-cjs/commands/CreateDataSourceFromS3Command.js.map +0 -1
  106. package/dist-cjs/commands/CreateEvaluationCommand.js.map +0 -1
  107. package/dist-cjs/commands/CreateMLModelCommand.js.map +0 -1
  108. package/dist-cjs/commands/CreateRealtimeEndpointCommand.js.map +0 -1
  109. package/dist-cjs/commands/DeleteBatchPredictionCommand.js.map +0 -1
  110. package/dist-cjs/commands/DeleteDataSourceCommand.js.map +0 -1
  111. package/dist-cjs/commands/DeleteEvaluationCommand.js.map +0 -1
  112. package/dist-cjs/commands/DeleteMLModelCommand.js.map +0 -1
  113. package/dist-cjs/commands/DeleteRealtimeEndpointCommand.js.map +0 -1
  114. package/dist-cjs/commands/DeleteTagsCommand.js.map +0 -1
  115. package/dist-cjs/commands/DescribeBatchPredictionsCommand.js.map +0 -1
  116. package/dist-cjs/commands/DescribeDataSourcesCommand.js.map +0 -1
  117. package/dist-cjs/commands/DescribeEvaluationsCommand.js.map +0 -1
  118. package/dist-cjs/commands/DescribeMLModelsCommand.js.map +0 -1
  119. package/dist-cjs/commands/DescribeTagsCommand.js.map +0 -1
  120. package/dist-cjs/commands/GetBatchPredictionCommand.js.map +0 -1
  121. package/dist-cjs/commands/GetDataSourceCommand.js.map +0 -1
  122. package/dist-cjs/commands/GetEvaluationCommand.js.map +0 -1
  123. package/dist-cjs/commands/GetMLModelCommand.js.map +0 -1
  124. package/dist-cjs/commands/PredictCommand.js.map +0 -1
  125. package/dist-cjs/commands/UpdateBatchPredictionCommand.js.map +0 -1
  126. package/dist-cjs/commands/UpdateDataSourceCommand.js.map +0 -1
  127. package/dist-cjs/commands/UpdateEvaluationCommand.js.map +0 -1
  128. package/dist-cjs/commands/UpdateMLModelCommand.js.map +0 -1
  129. package/dist-cjs/endpoints.js.map +0 -1
  130. package/dist-cjs/index.js.map +0 -1
  131. package/dist-cjs/models/index.js.map +0 -1
  132. package/dist-cjs/models/models_0.js.map +0 -1
  133. package/dist-cjs/pagination/DescribeBatchPredictionsPaginator.js.map +0 -1
  134. package/dist-cjs/pagination/DescribeDataSourcesPaginator.js.map +0 -1
  135. package/dist-cjs/pagination/DescribeEvaluationsPaginator.js.map +0 -1
  136. package/dist-cjs/pagination/DescribeMLModelsPaginator.js.map +0 -1
  137. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  138. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  139. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  140. package/dist-cjs/runtimeConfig.js.map +0 -1
  141. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  142. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  143. package/dist-cjs/waiters/waitForBatchPredictionAvailable.js.map +0 -1
  144. package/dist-cjs/waiters/waitForDataSourceAvailable.js.map +0 -1
  145. package/dist-cjs/waiters/waitForEvaluationAvailable.js.map +0 -1
  146. package/dist-cjs/waiters/waitForMLModelAvailable.js.map +0 -1
  147. package/dist-es/MachineLearning.js.map +0 -1
  148. package/dist-es/MachineLearningClient.js.map +0 -1
  149. package/dist-es/commands/AddTagsCommand.js.map +0 -1
  150. package/dist-es/commands/CreateBatchPredictionCommand.js.map +0 -1
  151. package/dist-es/commands/CreateDataSourceFromRDSCommand.js.map +0 -1
  152. package/dist-es/commands/CreateDataSourceFromRedshiftCommand.js.map +0 -1
  153. package/dist-es/commands/CreateDataSourceFromS3Command.js.map +0 -1
  154. package/dist-es/commands/CreateEvaluationCommand.js.map +0 -1
  155. package/dist-es/commands/CreateMLModelCommand.js.map +0 -1
  156. package/dist-es/commands/CreateRealtimeEndpointCommand.js.map +0 -1
  157. package/dist-es/commands/DeleteBatchPredictionCommand.js.map +0 -1
  158. package/dist-es/commands/DeleteDataSourceCommand.js.map +0 -1
  159. package/dist-es/commands/DeleteEvaluationCommand.js.map +0 -1
  160. package/dist-es/commands/DeleteMLModelCommand.js.map +0 -1
  161. package/dist-es/commands/DeleteRealtimeEndpointCommand.js.map +0 -1
  162. package/dist-es/commands/DeleteTagsCommand.js.map +0 -1
  163. package/dist-es/commands/DescribeBatchPredictionsCommand.js.map +0 -1
  164. package/dist-es/commands/DescribeDataSourcesCommand.js.map +0 -1
  165. package/dist-es/commands/DescribeEvaluationsCommand.js.map +0 -1
  166. package/dist-es/commands/DescribeMLModelsCommand.js.map +0 -1
  167. package/dist-es/commands/DescribeTagsCommand.js.map +0 -1
  168. package/dist-es/commands/GetBatchPredictionCommand.js.map +0 -1
  169. package/dist-es/commands/GetDataSourceCommand.js.map +0 -1
  170. package/dist-es/commands/GetEvaluationCommand.js.map +0 -1
  171. package/dist-es/commands/GetMLModelCommand.js.map +0 -1
  172. package/dist-es/commands/PredictCommand.js.map +0 -1
  173. package/dist-es/commands/UpdateBatchPredictionCommand.js.map +0 -1
  174. package/dist-es/commands/UpdateDataSourceCommand.js.map +0 -1
  175. package/dist-es/commands/UpdateEvaluationCommand.js.map +0 -1
  176. package/dist-es/commands/UpdateMLModelCommand.js.map +0 -1
  177. package/dist-es/endpoints.js.map +0 -1
  178. package/dist-es/index.js.map +0 -1
  179. package/dist-es/models/index.js.map +0 -1
  180. package/dist-es/models/models_0.js.map +0 -1
  181. package/dist-es/pagination/DescribeBatchPredictionsPaginator.js.map +0 -1
  182. package/dist-es/pagination/DescribeDataSourcesPaginator.js.map +0 -1
  183. package/dist-es/pagination/DescribeEvaluationsPaginator.js.map +0 -1
  184. package/dist-es/pagination/DescribeMLModelsPaginator.js.map +0 -1
  185. package/dist-es/pagination/Interfaces.js.map +0 -1
  186. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  187. package/dist-es/runtimeConfig.browser.js.map +0 -1
  188. package/dist-es/runtimeConfig.js.map +0 -1
  189. package/dist-es/runtimeConfig.native.js.map +0 -1
  190. package/dist-es/runtimeConfig.shared.js.map +0 -1
  191. package/dist-es/waiters/waitForBatchPredictionAvailable.js.map +0 -1
  192. package/dist-es/waiters/waitForDataSourceAvailable.js.map +0 -1
  193. package/dist-es/waiters/waitForEvaluationAvailable.js.map +0 -1
  194. package/dist-es/waiters/waitForMLModelAvailable.js.map +0 -1
  195. package/jest.config.js +0 -4
  196. package/src/MachineLearning.ts +0 -1150
  197. package/src/MachineLearningClient.ts +0 -354
  198. package/src/commands/AddTagsCommand.ts +0 -94
  199. package/src/commands/CreateBatchPredictionCommand.ts +0 -106
  200. package/src/commands/CreateDataSourceFromRDSCommand.ts +0 -106
  201. package/src/commands/CreateDataSourceFromRedshiftCommand.ts +0 -132
  202. package/src/commands/CreateDataSourceFromS3Command.ts +0 -125
  203. package/src/commands/CreateEvaluationCommand.ts +0 -106
  204. package/src/commands/CreateMLModelCommand.ts +0 -114
  205. package/src/commands/CreateRealtimeEndpointCommand.ts +0 -95
  206. package/src/commands/DeleteBatchPredictionCommand.ts +0 -100
  207. package/src/commands/DeleteDataSourceCommand.ts +0 -98
  208. package/src/commands/DeleteEvaluationCommand.ts +0 -100
  209. package/src/commands/DeleteMLModelCommand.ts +0 -100
  210. package/src/commands/DeleteRealtimeEndpointCommand.ts +0 -95
  211. package/src/commands/DeleteTagsCommand.ts +0 -96
  212. package/src/commands/DescribeBatchPredictionsCommand.ts +0 -95
  213. package/src/commands/DescribeDataSourcesCommand.ts +0 -95
  214. package/src/commands/DescribeEvaluationsCommand.ts +0 -95
  215. package/src/commands/DescribeMLModelsCommand.ts +0 -95
  216. package/src/commands/DescribeTagsCommand.ts +0 -95
  217. package/src/commands/GetBatchPredictionCommand.ts +0 -96
  218. package/src/commands/GetDataSourceCommand.ts +0 -98
  219. package/src/commands/GetEvaluationCommand.ts +0 -95
  220. package/src/commands/GetMLModelCommand.ts +0 -97
  221. package/src/commands/PredictCommand.ts +0 -97
  222. package/src/commands/UpdateBatchPredictionCommand.ts +0 -96
  223. package/src/commands/UpdateDataSourceCommand.ts +0 -96
  224. package/src/commands/UpdateEvaluationCommand.ts +0 -96
  225. package/src/commands/UpdateMLModelCommand.ts +0 -96
  226. package/src/endpoints.ts +0 -57
  227. package/src/index.ts +0 -40
  228. package/src/models/index.ts +0 -1
  229. package/src/models/models_0.ts +0 -4066
  230. package/src/pagination/DescribeBatchPredictionsPaginator.ts +0 -59
  231. package/src/pagination/DescribeDataSourcesPaginator.ts +0 -59
  232. package/src/pagination/DescribeEvaluationsPaginator.ts +0 -59
  233. package/src/pagination/DescribeMLModelsPaginator.ts +0 -59
  234. package/src/pagination/Interfaces.ts +0 -8
  235. package/src/protocols/Aws_json1_1.ts +0 -3958
  236. package/src/runtimeConfig.browser.ts +0 -41
  237. package/src/runtimeConfig.native.ts +0 -17
  238. package/src/runtimeConfig.shared.ts +0 -17
  239. package/src/runtimeConfig.ts +0 -46
  240. package/src/waiters/waitForBatchPredictionAvailable.ts +0 -75
  241. package/src/waiters/waitForDataSourceAvailable.ts +0 -72
  242. package/src/waiters/waitForEvaluationAvailable.ts +0 -72
  243. package/src/waiters/waitForMLModelAvailable.ts +0 -72
  244. package/tsconfig.es.json +0 -10
  245. package/tsconfig.json +0 -33
  246. package/tsconfig.types.json +0 -9
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
15
- import { GetEvaluationInput, GetEvaluationOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1GetEvaluationCommand,
18
- serializeAws_json1_1GetEvaluationCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface GetEvaluationCommandInput extends GetEvaluationInput {}
22
- export interface GetEvaluationCommandOutput extends GetEvaluationOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Returns an <code>Evaluation</code> that includes metadata as well as the current status of the <code>Evaluation</code>.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { MachineLearningClient, GetEvaluationCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
30
- * // const { MachineLearningClient, GetEvaluationCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
31
- * const client = new MachineLearningClient(config);
32
- * const command = new GetEvaluationCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link GetEvaluationCommandInput} for command's `input` shape.
37
- * @see {@link GetEvaluationCommandOutput} for command's `response` shape.
38
- * @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class GetEvaluationCommand extends $Command<
42
- GetEvaluationCommandInput,
43
- GetEvaluationCommandOutput,
44
- MachineLearningClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: GetEvaluationCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: MachineLearningClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<GetEvaluationCommandInput, GetEvaluationCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "MachineLearningClient";
69
- const commandName = "GetEvaluationCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: GetEvaluationInput.filterSensitiveLog,
75
- outputFilterSensitiveLog: GetEvaluationOutput.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: GetEvaluationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1GetEvaluationCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetEvaluationCommandOutput> {
90
- return deserializeAws_json1_1GetEvaluationCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,97 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
15
- import { GetMLModelInput, GetMLModelOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1GetMLModelCommand,
18
- serializeAws_json1_1GetMLModelCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface GetMLModelCommandInput extends GetMLModelInput {}
22
- export interface GetMLModelCommandOutput extends GetMLModelOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Returns an <code>MLModel</code> that includes detailed metadata, data source information, and the current status of the <code>MLModel</code>.</p>
26
- * <p>
27
- * <code>GetMLModel</code> provides results in normal or verbose format. </p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { MachineLearningClient, GetMLModelCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
32
- * // const { MachineLearningClient, GetMLModelCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
33
- * const client = new MachineLearningClient(config);
34
- * const command = new GetMLModelCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link GetMLModelCommandInput} for command's `input` shape.
39
- * @see {@link GetMLModelCommandOutput} for command's `response` shape.
40
- * @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- export class GetMLModelCommand extends $Command<
44
- GetMLModelCommandInput,
45
- GetMLModelCommandOutput,
46
- MachineLearningClientResolvedConfig
47
- > {
48
- // Start section: command_properties
49
- // End section: command_properties
50
-
51
- constructor(readonly input: GetMLModelCommandInput) {
52
- // Start section: command_constructor
53
- super();
54
- // End section: command_constructor
55
- }
56
-
57
- /**
58
- * @internal
59
- */
60
- resolveMiddleware(
61
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
62
- configuration: MachineLearningClientResolvedConfig,
63
- options?: __HttpHandlerOptions
64
- ): Handler<GetMLModelCommandInput, GetMLModelCommandOutput> {
65
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66
-
67
- const stack = clientStack.concat(this.middlewareStack);
68
-
69
- const { logger } = configuration;
70
- const clientName = "MachineLearningClient";
71
- const commandName = "GetMLModelCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: GetMLModelInput.filterSensitiveLog,
77
- outputFilterSensitiveLog: GetMLModelOutput.filterSensitiveLog,
78
- };
79
- const { requestHandler } = configuration;
80
- return stack.resolve(
81
- (request: FinalizeHandlerArguments<any>) =>
82
- requestHandler.handle(request.request as __HttpRequest, options || {}),
83
- handlerExecutionContext
84
- );
85
- }
86
-
87
- private serialize(input: GetMLModelCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
88
- return serializeAws_json1_1GetMLModelCommand(input, context);
89
- }
90
-
91
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetMLModelCommandOutput> {
92
- return deserializeAws_json1_1GetMLModelCommand(output, context);
93
- }
94
-
95
- // Start section: command_body_extra
96
- // End section: command_body_extra
97
- }
@@ -1,97 +0,0 @@
1
- import { getPredictEndpointPlugin } from "@aws-sdk/middleware-sdk-machinelearning";
2
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
4
- import { Command as $Command } from "@aws-sdk/smithy-client";
5
- import {
6
- FinalizeHandlerArguments,
7
- Handler,
8
- HandlerExecutionContext,
9
- HttpHandlerOptions as __HttpHandlerOptions,
10
- MetadataBearer as __MetadataBearer,
11
- MiddlewareStack,
12
- SerdeContext as __SerdeContext,
13
- } from "@aws-sdk/types";
14
-
15
- import { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
16
- import { PredictInput, PredictOutput } from "../models/models_0";
17
- import { deserializeAws_json1_1PredictCommand, serializeAws_json1_1PredictCommand } from "../protocols/Aws_json1_1";
18
-
19
- export interface PredictCommandInput extends PredictInput {}
20
- export interface PredictCommandOutput extends PredictOutput, __MetadataBearer {}
21
-
22
- /**
23
- * <p>Generates a prediction for the observation using the specified <code>ML Model</code>.</p>
24
- * <p>
25
- * <b>Note:</b> Not all response parameters will be populated. Whether a
26
- * response parameter is populated depends on the type of model requested.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { MachineLearningClient, PredictCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
31
- * // const { MachineLearningClient, PredictCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
32
- * const client = new MachineLearningClient(config);
33
- * const command = new PredictCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link PredictCommandInput} for command's `input` shape.
38
- * @see {@link PredictCommandOutput} for command's `response` shape.
39
- * @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class PredictCommand extends $Command<
43
- PredictCommandInput,
44
- PredictCommandOutput,
45
- MachineLearningClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: PredictCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: MachineLearningClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<PredictCommandInput, PredictCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
- this.middlewareStack.use(getPredictEndpointPlugin(configuration));
66
-
67
- const stack = clientStack.concat(this.middlewareStack);
68
-
69
- const { logger } = configuration;
70
- const clientName = "MachineLearningClient";
71
- const commandName = "PredictCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: PredictInput.filterSensitiveLog,
77
- outputFilterSensitiveLog: PredictOutput.filterSensitiveLog,
78
- };
79
- const { requestHandler } = configuration;
80
- return stack.resolve(
81
- (request: FinalizeHandlerArguments<any>) =>
82
- requestHandler.handle(request.request as __HttpRequest, options || {}),
83
- handlerExecutionContext
84
- );
85
- }
86
-
87
- private serialize(input: PredictCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
88
- return serializeAws_json1_1PredictCommand(input, context);
89
- }
90
-
91
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PredictCommandOutput> {
92
- return deserializeAws_json1_1PredictCommand(output, context);
93
- }
94
-
95
- // Start section: command_body_extra
96
- // End section: command_body_extra
97
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
15
- import { UpdateBatchPredictionInput, UpdateBatchPredictionOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1UpdateBatchPredictionCommand,
18
- serializeAws_json1_1UpdateBatchPredictionCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface UpdateBatchPredictionCommandInput extends UpdateBatchPredictionInput {}
22
- export interface UpdateBatchPredictionCommandOutput extends UpdateBatchPredictionOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Updates the <code>BatchPredictionName</code> of a <code>BatchPrediction</code>.</p>
26
- * <p>You can use the <code>GetBatchPrediction</code> operation to view the contents of the updated data element.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { MachineLearningClient, UpdateBatchPredictionCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
31
- * // const { MachineLearningClient, UpdateBatchPredictionCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
32
- * const client = new MachineLearningClient(config);
33
- * const command = new UpdateBatchPredictionCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link UpdateBatchPredictionCommandInput} for command's `input` shape.
38
- * @see {@link UpdateBatchPredictionCommandOutput} for command's `response` shape.
39
- * @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class UpdateBatchPredictionCommand extends $Command<
43
- UpdateBatchPredictionCommandInput,
44
- UpdateBatchPredictionCommandOutput,
45
- MachineLearningClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: UpdateBatchPredictionCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: MachineLearningClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<UpdateBatchPredictionCommandInput, UpdateBatchPredictionCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "MachineLearningClient";
70
- const commandName = "UpdateBatchPredictionCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: UpdateBatchPredictionInput.filterSensitiveLog,
76
- outputFilterSensitiveLog: UpdateBatchPredictionOutput.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: UpdateBatchPredictionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1UpdateBatchPredictionCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateBatchPredictionCommandOutput> {
91
- return deserializeAws_json1_1UpdateBatchPredictionCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
15
- import { UpdateDataSourceInput, UpdateDataSourceOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1UpdateDataSourceCommand,
18
- serializeAws_json1_1UpdateDataSourceCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface UpdateDataSourceCommandInput extends UpdateDataSourceInput {}
22
- export interface UpdateDataSourceCommandOutput extends UpdateDataSourceOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Updates the <code>DataSourceName</code> of a <code>DataSource</code>.</p>
26
- * <p>You can use the <code>GetDataSource</code> operation to view the contents of the updated data element.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { MachineLearningClient, UpdateDataSourceCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
31
- * // const { MachineLearningClient, UpdateDataSourceCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
32
- * const client = new MachineLearningClient(config);
33
- * const command = new UpdateDataSourceCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link UpdateDataSourceCommandInput} for command's `input` shape.
38
- * @see {@link UpdateDataSourceCommandOutput} for command's `response` shape.
39
- * @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class UpdateDataSourceCommand extends $Command<
43
- UpdateDataSourceCommandInput,
44
- UpdateDataSourceCommandOutput,
45
- MachineLearningClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: UpdateDataSourceCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: MachineLearningClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "MachineLearningClient";
70
- const commandName = "UpdateDataSourceCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: UpdateDataSourceInput.filterSensitiveLog,
76
- outputFilterSensitiveLog: UpdateDataSourceOutput.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: UpdateDataSourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1UpdateDataSourceCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateDataSourceCommandOutput> {
91
- return deserializeAws_json1_1UpdateDataSourceCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
15
- import { UpdateEvaluationInput, UpdateEvaluationOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1UpdateEvaluationCommand,
18
- serializeAws_json1_1UpdateEvaluationCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface UpdateEvaluationCommandInput extends UpdateEvaluationInput {}
22
- export interface UpdateEvaluationCommandOutput extends UpdateEvaluationOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Updates the <code>EvaluationName</code> of an <code>Evaluation</code>.</p>
26
- * <p>You can use the <code>GetEvaluation</code> operation to view the contents of the updated data element.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { MachineLearningClient, UpdateEvaluationCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
31
- * // const { MachineLearningClient, UpdateEvaluationCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
32
- * const client = new MachineLearningClient(config);
33
- * const command = new UpdateEvaluationCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link UpdateEvaluationCommandInput} for command's `input` shape.
38
- * @see {@link UpdateEvaluationCommandOutput} for command's `response` shape.
39
- * @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class UpdateEvaluationCommand extends $Command<
43
- UpdateEvaluationCommandInput,
44
- UpdateEvaluationCommandOutput,
45
- MachineLearningClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: UpdateEvaluationCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: MachineLearningClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<UpdateEvaluationCommandInput, UpdateEvaluationCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "MachineLearningClient";
70
- const commandName = "UpdateEvaluationCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: UpdateEvaluationInput.filterSensitiveLog,
76
- outputFilterSensitiveLog: UpdateEvaluationOutput.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: UpdateEvaluationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1UpdateEvaluationCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateEvaluationCommandOutput> {
91
- return deserializeAws_json1_1UpdateEvaluationCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
15
- import { UpdateMLModelInput, UpdateMLModelOutput } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1UpdateMLModelCommand,
18
- serializeAws_json1_1UpdateMLModelCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface UpdateMLModelCommandInput extends UpdateMLModelInput {}
22
- export interface UpdateMLModelCommandOutput extends UpdateMLModelOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Updates the <code>MLModelName</code> and the <code>ScoreThreshold</code> of an <code>MLModel</code>.</p>
26
- * <p>You can use the <code>GetMLModel</code> operation to view the contents of the updated data element.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { MachineLearningClient, UpdateMLModelCommand } from "@aws-sdk/client-machine-learning"; // ES Modules import
31
- * // const { MachineLearningClient, UpdateMLModelCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
32
- * const client = new MachineLearningClient(config);
33
- * const command = new UpdateMLModelCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link UpdateMLModelCommandInput} for command's `input` shape.
38
- * @see {@link UpdateMLModelCommandOutput} for command's `response` shape.
39
- * @see {@link MachineLearningClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class UpdateMLModelCommand extends $Command<
43
- UpdateMLModelCommandInput,
44
- UpdateMLModelCommandOutput,
45
- MachineLearningClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: UpdateMLModelCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: MachineLearningClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<UpdateMLModelCommandInput, UpdateMLModelCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "MachineLearningClient";
70
- const commandName = "UpdateMLModelCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: UpdateMLModelInput.filterSensitiveLog,
76
- outputFilterSensitiveLog: UpdateMLModelOutput.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: UpdateMLModelCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1UpdateMLModelCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateMLModelCommandOutput> {
91
- return deserializeAws_json1_1UpdateMLModelCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }