@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,1150 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import { AddTagsCommand, AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
4
- import {
5
- CreateBatchPredictionCommand,
6
- CreateBatchPredictionCommandInput,
7
- CreateBatchPredictionCommandOutput,
8
- } from "./commands/CreateBatchPredictionCommand";
9
- import {
10
- CreateDataSourceFromRDSCommand,
11
- CreateDataSourceFromRDSCommandInput,
12
- CreateDataSourceFromRDSCommandOutput,
13
- } from "./commands/CreateDataSourceFromRDSCommand";
14
- import {
15
- CreateDataSourceFromRedshiftCommand,
16
- CreateDataSourceFromRedshiftCommandInput,
17
- CreateDataSourceFromRedshiftCommandOutput,
18
- } from "./commands/CreateDataSourceFromRedshiftCommand";
19
- import {
20
- CreateDataSourceFromS3Command,
21
- CreateDataSourceFromS3CommandInput,
22
- CreateDataSourceFromS3CommandOutput,
23
- } from "./commands/CreateDataSourceFromS3Command";
24
- import {
25
- CreateEvaluationCommand,
26
- CreateEvaluationCommandInput,
27
- CreateEvaluationCommandOutput,
28
- } from "./commands/CreateEvaluationCommand";
29
- import {
30
- CreateMLModelCommand,
31
- CreateMLModelCommandInput,
32
- CreateMLModelCommandOutput,
33
- } from "./commands/CreateMLModelCommand";
34
- import {
35
- CreateRealtimeEndpointCommand,
36
- CreateRealtimeEndpointCommandInput,
37
- CreateRealtimeEndpointCommandOutput,
38
- } from "./commands/CreateRealtimeEndpointCommand";
39
- import {
40
- DeleteBatchPredictionCommand,
41
- DeleteBatchPredictionCommandInput,
42
- DeleteBatchPredictionCommandOutput,
43
- } from "./commands/DeleteBatchPredictionCommand";
44
- import {
45
- DeleteDataSourceCommand,
46
- DeleteDataSourceCommandInput,
47
- DeleteDataSourceCommandOutput,
48
- } from "./commands/DeleteDataSourceCommand";
49
- import {
50
- DeleteEvaluationCommand,
51
- DeleteEvaluationCommandInput,
52
- DeleteEvaluationCommandOutput,
53
- } from "./commands/DeleteEvaluationCommand";
54
- import {
55
- DeleteMLModelCommand,
56
- DeleteMLModelCommandInput,
57
- DeleteMLModelCommandOutput,
58
- } from "./commands/DeleteMLModelCommand";
59
- import {
60
- DeleteRealtimeEndpointCommand,
61
- DeleteRealtimeEndpointCommandInput,
62
- DeleteRealtimeEndpointCommandOutput,
63
- } from "./commands/DeleteRealtimeEndpointCommand";
64
- import { DeleteTagsCommand, DeleteTagsCommandInput, DeleteTagsCommandOutput } from "./commands/DeleteTagsCommand";
65
- import {
66
- DescribeBatchPredictionsCommand,
67
- DescribeBatchPredictionsCommandInput,
68
- DescribeBatchPredictionsCommandOutput,
69
- } from "./commands/DescribeBatchPredictionsCommand";
70
- import {
71
- DescribeDataSourcesCommand,
72
- DescribeDataSourcesCommandInput,
73
- DescribeDataSourcesCommandOutput,
74
- } from "./commands/DescribeDataSourcesCommand";
75
- import {
76
- DescribeEvaluationsCommand,
77
- DescribeEvaluationsCommandInput,
78
- DescribeEvaluationsCommandOutput,
79
- } from "./commands/DescribeEvaluationsCommand";
80
- import {
81
- DescribeMLModelsCommand,
82
- DescribeMLModelsCommandInput,
83
- DescribeMLModelsCommandOutput,
84
- } from "./commands/DescribeMLModelsCommand";
85
- import {
86
- DescribeTagsCommand,
87
- DescribeTagsCommandInput,
88
- DescribeTagsCommandOutput,
89
- } from "./commands/DescribeTagsCommand";
90
- import {
91
- GetBatchPredictionCommand,
92
- GetBatchPredictionCommandInput,
93
- GetBatchPredictionCommandOutput,
94
- } from "./commands/GetBatchPredictionCommand";
95
- import {
96
- GetDataSourceCommand,
97
- GetDataSourceCommandInput,
98
- GetDataSourceCommandOutput,
99
- } from "./commands/GetDataSourceCommand";
100
- import {
101
- GetEvaluationCommand,
102
- GetEvaluationCommandInput,
103
- GetEvaluationCommandOutput,
104
- } from "./commands/GetEvaluationCommand";
105
- import { GetMLModelCommand, GetMLModelCommandInput, GetMLModelCommandOutput } from "./commands/GetMLModelCommand";
106
- import { PredictCommand, PredictCommandInput, PredictCommandOutput } from "./commands/PredictCommand";
107
- import {
108
- UpdateBatchPredictionCommand,
109
- UpdateBatchPredictionCommandInput,
110
- UpdateBatchPredictionCommandOutput,
111
- } from "./commands/UpdateBatchPredictionCommand";
112
- import {
113
- UpdateDataSourceCommand,
114
- UpdateDataSourceCommandInput,
115
- UpdateDataSourceCommandOutput,
116
- } from "./commands/UpdateDataSourceCommand";
117
- import {
118
- UpdateEvaluationCommand,
119
- UpdateEvaluationCommandInput,
120
- UpdateEvaluationCommandOutput,
121
- } from "./commands/UpdateEvaluationCommand";
122
- import {
123
- UpdateMLModelCommand,
124
- UpdateMLModelCommandInput,
125
- UpdateMLModelCommandOutput,
126
- } from "./commands/UpdateMLModelCommand";
127
- import { MachineLearningClient } from "./MachineLearningClient";
128
-
129
- /**
130
- * Definition of the public APIs
131
- * exposed by Amazon Machine Learning
132
- */
133
- export class MachineLearning extends MachineLearningClient {
134
- /**
135
- * <p>Adds one or more tags to an object, up to a limit of 10. Each tag consists of a key
136
- * and an optional value. If you add a tag using a key that is already associated with the ML object,
137
- * <code>AddTags</code> updates the tag's value.</p>
138
- */
139
- public addTags(args: AddTagsCommandInput, options?: __HttpHandlerOptions): Promise<AddTagsCommandOutput>;
140
- public addTags(args: AddTagsCommandInput, cb: (err: any, data?: AddTagsCommandOutput) => void): void;
141
- public addTags(
142
- args: AddTagsCommandInput,
143
- options: __HttpHandlerOptions,
144
- cb: (err: any, data?: AddTagsCommandOutput) => void
145
- ): void;
146
- public addTags(
147
- args: AddTagsCommandInput,
148
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AddTagsCommandOutput) => void),
149
- cb?: (err: any, data?: AddTagsCommandOutput) => void
150
- ): Promise<AddTagsCommandOutput> | void {
151
- const command = new AddTagsCommand(args);
152
- if (typeof optionsOrCb === "function") {
153
- this.send(command, optionsOrCb);
154
- } else if (typeof cb === "function") {
155
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
- this.send(command, optionsOrCb || {}, cb);
157
- } else {
158
- return this.send(command, optionsOrCb);
159
- }
160
- }
161
-
162
- /**
163
- * <p>Generates predictions for a group of observations. The observations to process exist in one or more data files referenced
164
- * by a <code>DataSource</code>. This operation creates a new <code>BatchPrediction</code>, and uses an <code>MLModel</code> and the data
165
- * files referenced by the <code>DataSource</code> as information sources.
166
- * </p>
167
- *
168
- * <p>
169
- * <code>CreateBatchPrediction</code> is an asynchronous operation. In response to <code>CreateBatchPrediction</code>,
170
- * Amazon Machine Learning (Amazon ML) immediately returns and sets the <code>BatchPrediction</code> status to <code>PENDING</code>.
171
- * After the <code>BatchPrediction</code> completes, Amazon ML sets the status to <code>COMPLETED</code>.
172
- * </p>
173
- * <p>You can poll for status updates by using the <a>GetBatchPrediction</a> operation and checking the <code>Status</code> parameter of the result. After the <code>COMPLETED</code> status appears,
174
- * the results are available in the location specified by the <code>OutputUri</code> parameter.</p>
175
- */
176
- public createBatchPrediction(
177
- args: CreateBatchPredictionCommandInput,
178
- options?: __HttpHandlerOptions
179
- ): Promise<CreateBatchPredictionCommandOutput>;
180
- public createBatchPrediction(
181
- args: CreateBatchPredictionCommandInput,
182
- cb: (err: any, data?: CreateBatchPredictionCommandOutput) => void
183
- ): void;
184
- public createBatchPrediction(
185
- args: CreateBatchPredictionCommandInput,
186
- options: __HttpHandlerOptions,
187
- cb: (err: any, data?: CreateBatchPredictionCommandOutput) => void
188
- ): void;
189
- public createBatchPrediction(
190
- args: CreateBatchPredictionCommandInput,
191
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateBatchPredictionCommandOutput) => void),
192
- cb?: (err: any, data?: CreateBatchPredictionCommandOutput) => void
193
- ): Promise<CreateBatchPredictionCommandOutput> | void {
194
- const command = new CreateBatchPredictionCommand(args);
195
- if (typeof optionsOrCb === "function") {
196
- this.send(command, optionsOrCb);
197
- } else if (typeof cb === "function") {
198
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
199
- this.send(command, optionsOrCb || {}, cb);
200
- } else {
201
- return this.send(command, optionsOrCb);
202
- }
203
- }
204
-
205
- /**
206
- * <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>
207
- *
208
- * <p>
209
- * <code>CreateDataSourceFromRDS</code> is an asynchronous operation. In response to <code>CreateDataSourceFromRDS</code>,
210
- * Amazon Machine Learning (Amazon ML) immediately returns and sets the <code>DataSource</code> status to <code>PENDING</code>.
211
- * After the <code>DataSource</code> is created and ready for use, Amazon ML sets the <code>Status</code> parameter to <code>COMPLETED</code>.
212
- * <code>DataSource</code> in the <code>COMPLETED</code> or <code>PENDING</code> state can
213
- * be used only to perform <code>>CreateMLModel</code>>, <code>CreateEvaluation</code>, or <code>CreateBatchPrediction</code> operations.
214
- * </p>
215
- * <p>
216
- * If Amazon ML cannot accept the input source, it sets the <code>Status</code> parameter to <code>FAILED</code> and includes an error message in the <code>Message</code> attribute of the <code>GetDataSource</code> operation response.
217
- * </p>
218
- */
219
- public createDataSourceFromRDS(
220
- args: CreateDataSourceFromRDSCommandInput,
221
- options?: __HttpHandlerOptions
222
- ): Promise<CreateDataSourceFromRDSCommandOutput>;
223
- public createDataSourceFromRDS(
224
- args: CreateDataSourceFromRDSCommandInput,
225
- cb: (err: any, data?: CreateDataSourceFromRDSCommandOutput) => void
226
- ): void;
227
- public createDataSourceFromRDS(
228
- args: CreateDataSourceFromRDSCommandInput,
229
- options: __HttpHandlerOptions,
230
- cb: (err: any, data?: CreateDataSourceFromRDSCommandOutput) => void
231
- ): void;
232
- public createDataSourceFromRDS(
233
- args: CreateDataSourceFromRDSCommandInput,
234
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDataSourceFromRDSCommandOutput) => void),
235
- cb?: (err: any, data?: CreateDataSourceFromRDSCommandOutput) => void
236
- ): Promise<CreateDataSourceFromRDSCommandOutput> | void {
237
- const command = new CreateDataSourceFromRDSCommand(args);
238
- if (typeof optionsOrCb === "function") {
239
- this.send(command, optionsOrCb);
240
- } else if (typeof cb === "function") {
241
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
242
- this.send(command, optionsOrCb || {}, cb);
243
- } else {
244
- return this.send(command, optionsOrCb);
245
- }
246
- }
247
-
248
- /**
249
- * <p>Creates a <code>DataSource</code> from a database hosted on an Amazon Redshift cluster. A
250
- * <code>DataSource</code> references data that can be used to perform either <code>CreateMLModel</code>, <code>CreateEvaluation</code>, or <code>CreateBatchPrediction</code>
251
- * operations.</p>
252
- *
253
- * <p>
254
- * <code>CreateDataSourceFromRedshift</code> is an asynchronous operation. In response to <code>CreateDataSourceFromRedshift</code>, Amazon Machine Learning (Amazon ML) immediately returns and sets the <code>DataSource</code> status to <code>PENDING</code>.
255
- * After the <code>DataSource</code> is created and ready for use, Amazon ML sets the <code>Status</code> parameter to <code>COMPLETED</code>.
256
- * <code>DataSource</code> in <code>COMPLETED</code> or <code>PENDING</code> states can be
257
- * used to perform only <code>CreateMLModel</code>, <code>CreateEvaluation</code>, or <code>CreateBatchPrediction</code> operations.
258
- * </p>
259
- *
260
- * <p>
261
- * If Amazon ML can't accept the input source, it sets the <code>Status</code> parameter to <code>FAILED</code> and includes an error message in the <code>Message</code>
262
- * attribute of the <code>GetDataSource</code> operation response.
263
- * </p>
264
- *
265
- * <p>The observations should be contained in the database hosted on an Amazon Redshift cluster
266
- * and should be specified by a <code>SelectSqlQuery</code> query. Amazon ML executes an
267
- * <code>Unload</code> command in Amazon Redshift to transfer the result set of
268
- * the <code>SelectSqlQuery</code> query to <code>S3StagingLocation</code>.</p>
269
- *
270
- * <p>After the <code>DataSource</code> has been created, it's ready for use in evaluations and
271
- * batch predictions. If you plan to use the <code>DataSource</code> to train an
272
- * <code>MLModel</code>, the <code>DataSource</code> also requires a recipe. A recipe
273
- * describes how each input variable will be used in training an <code>MLModel</code>. Will
274
- * the variable be included or excluded from training? Will the variable be manipulated;
275
- * for example, will it be combined with another variable or will it be split apart into
276
- * word combinations? The recipe provides answers to these questions.</p>
277
- * <p>You can't change an existing datasource, but you can copy and modify the settings from an
278
- * existing Amazon Redshift datasource to create a new datasource. To do so, call
279
- * <code>GetDataSource</code> for an existing datasource and copy the values to a
280
- * <code>CreateDataSource</code> call. Change the settings that you want to change and
281
- * make sure that all required fields have the appropriate values.</p>
282
- */
283
- public createDataSourceFromRedshift(
284
- args: CreateDataSourceFromRedshiftCommandInput,
285
- options?: __HttpHandlerOptions
286
- ): Promise<CreateDataSourceFromRedshiftCommandOutput>;
287
- public createDataSourceFromRedshift(
288
- args: CreateDataSourceFromRedshiftCommandInput,
289
- cb: (err: any, data?: CreateDataSourceFromRedshiftCommandOutput) => void
290
- ): void;
291
- public createDataSourceFromRedshift(
292
- args: CreateDataSourceFromRedshiftCommandInput,
293
- options: __HttpHandlerOptions,
294
- cb: (err: any, data?: CreateDataSourceFromRedshiftCommandOutput) => void
295
- ): void;
296
- public createDataSourceFromRedshift(
297
- args: CreateDataSourceFromRedshiftCommandInput,
298
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDataSourceFromRedshiftCommandOutput) => void),
299
- cb?: (err: any, data?: CreateDataSourceFromRedshiftCommandOutput) => void
300
- ): Promise<CreateDataSourceFromRedshiftCommandOutput> | void {
301
- const command = new CreateDataSourceFromRedshiftCommand(args);
302
- if (typeof optionsOrCb === "function") {
303
- this.send(command, optionsOrCb);
304
- } else if (typeof cb === "function") {
305
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
- this.send(command, optionsOrCb || {}, cb);
307
- } else {
308
- return this.send(command, optionsOrCb);
309
- }
310
- }
311
-
312
- /**
313
- * <p>Creates a <code>DataSource</code> object. A <code>DataSource</code> references data that
314
- * can be used to perform <code>CreateMLModel</code>, <code>CreateEvaluation</code>, or
315
- * <code>CreateBatchPrediction</code> operations.</p>
316
- *
317
- * <p>
318
- * <code>CreateDataSourceFromS3</code> is an asynchronous operation. In response to
319
- * <code>CreateDataSourceFromS3</code>, Amazon Machine Learning (Amazon ML) immediately
320
- * returns and sets the <code>DataSource</code> status to <code>PENDING</code>. After the
321
- * <code>DataSource</code> has been created and is ready for use, Amazon ML sets the
322
- * <code>Status</code> parameter to <code>COMPLETED</code>. <code>DataSource</code> in
323
- * the <code>COMPLETED</code> or <code>PENDING</code> state can be used to perform only
324
- * <code>CreateMLModel</code>, <code>CreateEvaluation</code> or
325
- * <code>CreateBatchPrediction</code> operations. </p>
326
- *
327
- * <p> If Amazon ML can't accept the input source, it sets the <code>Status</code> parameter to
328
- * <code>FAILED</code> and includes an error message in the <code>Message</code>
329
- * attribute of the <code>GetDataSource</code> operation response. </p>
330
- *
331
- * <p>The observation data used in a <code>DataSource</code> should be ready to use; that is,
332
- * it should have a consistent structure, and missing data values should be kept to a
333
- * minimum. The observation data must reside in one or more .csv files in an Amazon Simple
334
- * Storage Service (Amazon S3) location, along with a schema that describes the data items
335
- * by name and type. The same schema must be used for all of the data files referenced by
336
- * the <code>DataSource</code>. </p>
337
- * <p>After the <code>DataSource</code> has been created, it's ready to use in evaluations and
338
- * batch predictions. If you plan to use the <code>DataSource</code> to train an
339
- * <code>MLModel</code>, the <code>DataSource</code> also needs a recipe. A recipe
340
- * describes how each input variable will be used in training an <code>MLModel</code>. Will
341
- * the variable be included or excluded from training? Will the variable be manipulated;
342
- * for example, will it be combined with another variable or will it be split apart into
343
- * word combinations? The recipe provides answers to these questions.</p>
344
- */
345
- public createDataSourceFromS3(
346
- args: CreateDataSourceFromS3CommandInput,
347
- options?: __HttpHandlerOptions
348
- ): Promise<CreateDataSourceFromS3CommandOutput>;
349
- public createDataSourceFromS3(
350
- args: CreateDataSourceFromS3CommandInput,
351
- cb: (err: any, data?: CreateDataSourceFromS3CommandOutput) => void
352
- ): void;
353
- public createDataSourceFromS3(
354
- args: CreateDataSourceFromS3CommandInput,
355
- options: __HttpHandlerOptions,
356
- cb: (err: any, data?: CreateDataSourceFromS3CommandOutput) => void
357
- ): void;
358
- public createDataSourceFromS3(
359
- args: CreateDataSourceFromS3CommandInput,
360
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDataSourceFromS3CommandOutput) => void),
361
- cb?: (err: any, data?: CreateDataSourceFromS3CommandOutput) => void
362
- ): Promise<CreateDataSourceFromS3CommandOutput> | void {
363
- const command = new CreateDataSourceFromS3Command(args);
364
- if (typeof optionsOrCb === "function") {
365
- this.send(command, optionsOrCb);
366
- } else if (typeof cb === "function") {
367
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
368
- this.send(command, optionsOrCb || {}, cb);
369
- } else {
370
- return this.send(command, optionsOrCb);
371
- }
372
- }
373
-
374
- /**
375
- * <p>Creates a new <code>Evaluation</code> of an <code>MLModel</code>. An <code>MLModel</code> is evaluated on a set of observations associated to a <code>DataSource</code>. Like a <code>DataSource</code>
376
- * for an <code>MLModel</code>, the <code>DataSource</code> for an <code>Evaluation</code> contains values for the <code>Target Variable</code>. The <code>Evaluation</code> compares the predicted result for each observation to the actual outcome and provides a
377
- * summary so that you know how effective the <code>MLModel</code> functions on the test
378
- * data. Evaluation generates a relevant performance metric, such as BinaryAUC, RegressionRMSE or MulticlassAvgFScore based on the corresponding <code>MLModelType</code>: <code>BINARY</code>, <code>REGRESSION</code> or <code>MULTICLASS</code>.
379
- *
380
- * </p>
381
- * <p>
382
- * <code>CreateEvaluation</code> is an asynchronous operation. In response to <code>CreateEvaluation</code>, Amazon Machine Learning (Amazon ML) immediately
383
- * returns and sets the evaluation status to <code>PENDING</code>. After the <code>Evaluation</code> is created and ready for use,
384
- * Amazon ML sets the status to <code>COMPLETED</code>.
385
- * </p>
386
- * <p>You can use the <code>GetEvaluation</code> operation to check progress of the evaluation during the creation operation.</p>
387
- */
388
- public createEvaluation(
389
- args: CreateEvaluationCommandInput,
390
- options?: __HttpHandlerOptions
391
- ): Promise<CreateEvaluationCommandOutput>;
392
- public createEvaluation(
393
- args: CreateEvaluationCommandInput,
394
- cb: (err: any, data?: CreateEvaluationCommandOutput) => void
395
- ): void;
396
- public createEvaluation(
397
- args: CreateEvaluationCommandInput,
398
- options: __HttpHandlerOptions,
399
- cb: (err: any, data?: CreateEvaluationCommandOutput) => void
400
- ): void;
401
- public createEvaluation(
402
- args: CreateEvaluationCommandInput,
403
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateEvaluationCommandOutput) => void),
404
- cb?: (err: any, data?: CreateEvaluationCommandOutput) => void
405
- ): Promise<CreateEvaluationCommandOutput> | void {
406
- const command = new CreateEvaluationCommand(args);
407
- if (typeof optionsOrCb === "function") {
408
- this.send(command, optionsOrCb);
409
- } else if (typeof cb === "function") {
410
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
411
- this.send(command, optionsOrCb || {}, cb);
412
- } else {
413
- return this.send(command, optionsOrCb);
414
- }
415
- }
416
-
417
- /**
418
- * <p>Creates a new <code>MLModel</code> using the <code>DataSource</code> and the recipe as
419
- * information sources. </p>
420
- * <p>An <code>MLModel</code> is nearly immutable. Users can update only the
421
- * <code>MLModelName</code> and the <code>ScoreThreshold</code> in an
422
- * <code>MLModel</code> without creating a new <code>MLModel</code>. </p>
423
- * <p>
424
- * <code>CreateMLModel</code> is an asynchronous operation. In response to
425
- * <code>CreateMLModel</code>, Amazon Machine Learning (Amazon ML) immediately returns
426
- * and sets the <code>MLModel</code> status to <code>PENDING</code>. After the
427
- * <code>MLModel</code> has been created and ready is for use, Amazon ML sets the
428
- * status to <code>COMPLETED</code>. </p>
429
- * <p>You can use the <code>GetMLModel</code> operation to check the progress of the
430
- * <code>MLModel</code> during the creation operation.</p>
431
- *
432
- * <p>
433
- * <code>CreateMLModel</code> requires a <code>DataSource</code> with computed statistics,
434
- * which can be created by setting <code>ComputeStatistics</code> to <code>true</code> in
435
- * <code>CreateDataSourceFromRDS</code>, <code>CreateDataSourceFromS3</code>, or
436
- * <code>CreateDataSourceFromRedshift</code> operations.
437
- * </p>
438
- */
439
- public createMLModel(
440
- args: CreateMLModelCommandInput,
441
- options?: __HttpHandlerOptions
442
- ): Promise<CreateMLModelCommandOutput>;
443
- public createMLModel(
444
- args: CreateMLModelCommandInput,
445
- cb: (err: any, data?: CreateMLModelCommandOutput) => void
446
- ): void;
447
- public createMLModel(
448
- args: CreateMLModelCommandInput,
449
- options: __HttpHandlerOptions,
450
- cb: (err: any, data?: CreateMLModelCommandOutput) => void
451
- ): void;
452
- public createMLModel(
453
- args: CreateMLModelCommandInput,
454
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateMLModelCommandOutput) => void),
455
- cb?: (err: any, data?: CreateMLModelCommandOutput) => void
456
- ): Promise<CreateMLModelCommandOutput> | void {
457
- const command = new CreateMLModelCommand(args);
458
- if (typeof optionsOrCb === "function") {
459
- this.send(command, optionsOrCb);
460
- } else if (typeof cb === "function") {
461
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
462
- this.send(command, optionsOrCb || {}, cb);
463
- } else {
464
- return this.send(command, optionsOrCb);
465
- }
466
- }
467
-
468
- /**
469
- * <p>Creates a real-time endpoint for the <code>MLModel</code>. The endpoint contains the URI of the <code>MLModel</code>; that is, the location to send real-time prediction requests for the specified <code>MLModel</code>.</p>
470
- */
471
- public createRealtimeEndpoint(
472
- args: CreateRealtimeEndpointCommandInput,
473
- options?: __HttpHandlerOptions
474
- ): Promise<CreateRealtimeEndpointCommandOutput>;
475
- public createRealtimeEndpoint(
476
- args: CreateRealtimeEndpointCommandInput,
477
- cb: (err: any, data?: CreateRealtimeEndpointCommandOutput) => void
478
- ): void;
479
- public createRealtimeEndpoint(
480
- args: CreateRealtimeEndpointCommandInput,
481
- options: __HttpHandlerOptions,
482
- cb: (err: any, data?: CreateRealtimeEndpointCommandOutput) => void
483
- ): void;
484
- public createRealtimeEndpoint(
485
- args: CreateRealtimeEndpointCommandInput,
486
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateRealtimeEndpointCommandOutput) => void),
487
- cb?: (err: any, data?: CreateRealtimeEndpointCommandOutput) => void
488
- ): Promise<CreateRealtimeEndpointCommandOutput> | void {
489
- const command = new CreateRealtimeEndpointCommand(args);
490
- if (typeof optionsOrCb === "function") {
491
- this.send(command, optionsOrCb);
492
- } else if (typeof cb === "function") {
493
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
494
- this.send(command, optionsOrCb || {}, cb);
495
- } else {
496
- return this.send(command, optionsOrCb);
497
- }
498
- }
499
-
500
- /**
501
- * <p>Assigns the DELETED status to a <code>BatchPrediction</code>, rendering it unusable.</p>
502
- * <p>After using the <code>DeleteBatchPrediction</code> operation, you can use the <a>GetBatchPrediction</a>
503
- * operation to verify that the status of the <code>BatchPrediction</code> changed to DELETED.</p>
504
- *
505
- * <p>
506
- * <b>Caution:</b> The result of the <code>DeleteBatchPrediction</code> operation is irreversible.</p>
507
- */
508
- public deleteBatchPrediction(
509
- args: DeleteBatchPredictionCommandInput,
510
- options?: __HttpHandlerOptions
511
- ): Promise<DeleteBatchPredictionCommandOutput>;
512
- public deleteBatchPrediction(
513
- args: DeleteBatchPredictionCommandInput,
514
- cb: (err: any, data?: DeleteBatchPredictionCommandOutput) => void
515
- ): void;
516
- public deleteBatchPrediction(
517
- args: DeleteBatchPredictionCommandInput,
518
- options: __HttpHandlerOptions,
519
- cb: (err: any, data?: DeleteBatchPredictionCommandOutput) => void
520
- ): void;
521
- public deleteBatchPrediction(
522
- args: DeleteBatchPredictionCommandInput,
523
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteBatchPredictionCommandOutput) => void),
524
- cb?: (err: any, data?: DeleteBatchPredictionCommandOutput) => void
525
- ): Promise<DeleteBatchPredictionCommandOutput> | void {
526
- const command = new DeleteBatchPredictionCommand(args);
527
- if (typeof optionsOrCb === "function") {
528
- this.send(command, optionsOrCb);
529
- } else if (typeof cb === "function") {
530
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
531
- this.send(command, optionsOrCb || {}, cb);
532
- } else {
533
- return this.send(command, optionsOrCb);
534
- }
535
- }
536
-
537
- /**
538
- * <p>Assigns the DELETED status to a <code>DataSource</code>, rendering it unusable.</p>
539
- * <p>After using the <code>DeleteDataSource</code> operation, you can use the <a>GetDataSource</a> operation to verify that the status of the <code>DataSource</code> changed to DELETED.</p>
540
- * <p>
541
- * <b>Caution:</b> The results of the <code>DeleteDataSource</code> operation are irreversible.</p>
542
- */
543
- public deleteDataSource(
544
- args: DeleteDataSourceCommandInput,
545
- options?: __HttpHandlerOptions
546
- ): Promise<DeleteDataSourceCommandOutput>;
547
- public deleteDataSource(
548
- args: DeleteDataSourceCommandInput,
549
- cb: (err: any, data?: DeleteDataSourceCommandOutput) => void
550
- ): void;
551
- public deleteDataSource(
552
- args: DeleteDataSourceCommandInput,
553
- options: __HttpHandlerOptions,
554
- cb: (err: any, data?: DeleteDataSourceCommandOutput) => void
555
- ): void;
556
- public deleteDataSource(
557
- args: DeleteDataSourceCommandInput,
558
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteDataSourceCommandOutput) => void),
559
- cb?: (err: any, data?: DeleteDataSourceCommandOutput) => void
560
- ): Promise<DeleteDataSourceCommandOutput> | void {
561
- const command = new DeleteDataSourceCommand(args);
562
- if (typeof optionsOrCb === "function") {
563
- this.send(command, optionsOrCb);
564
- } else if (typeof cb === "function") {
565
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
566
- this.send(command, optionsOrCb || {}, cb);
567
- } else {
568
- return this.send(command, optionsOrCb);
569
- }
570
- }
571
-
572
- /**
573
- * <p>Assigns the <code>DELETED</code> status to an <code>Evaluation</code>, rendering it unusable.</p>
574
- *
575
- * <p>After invoking the <code>DeleteEvaluation</code> operation, you can use the
576
- * <code>GetEvaluation</code> operation to verify that the status of the <code>Evaluation</code> changed to <code>DELETED</code>.</p>
577
- * <p>
578
- * <b>Caution:</b> The results of the <code>DeleteEvaluation</code> operation are irreversible.</p>
579
- */
580
- public deleteEvaluation(
581
- args: DeleteEvaluationCommandInput,
582
- options?: __HttpHandlerOptions
583
- ): Promise<DeleteEvaluationCommandOutput>;
584
- public deleteEvaluation(
585
- args: DeleteEvaluationCommandInput,
586
- cb: (err: any, data?: DeleteEvaluationCommandOutput) => void
587
- ): void;
588
- public deleteEvaluation(
589
- args: DeleteEvaluationCommandInput,
590
- options: __HttpHandlerOptions,
591
- cb: (err: any, data?: DeleteEvaluationCommandOutput) => void
592
- ): void;
593
- public deleteEvaluation(
594
- args: DeleteEvaluationCommandInput,
595
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteEvaluationCommandOutput) => void),
596
- cb?: (err: any, data?: DeleteEvaluationCommandOutput) => void
597
- ): Promise<DeleteEvaluationCommandOutput> | void {
598
- const command = new DeleteEvaluationCommand(args);
599
- if (typeof optionsOrCb === "function") {
600
- this.send(command, optionsOrCb);
601
- } else if (typeof cb === "function") {
602
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
603
- this.send(command, optionsOrCb || {}, cb);
604
- } else {
605
- return this.send(command, optionsOrCb);
606
- }
607
- }
608
-
609
- /**
610
- * <p>Assigns the <code>DELETED</code> status to an <code>MLModel</code>, rendering it unusable.</p>
611
- * <p>After using the <code>DeleteMLModel</code> operation, you can use the
612
- * <code>GetMLModel</code> operation to verify that the status of the <code>MLModel</code> changed to DELETED.</p>
613
- *
614
- * <p>
615
- * <b>Caution:</b> The result of the <code>DeleteMLModel</code> operation is irreversible.</p>
616
- */
617
- public deleteMLModel(
618
- args: DeleteMLModelCommandInput,
619
- options?: __HttpHandlerOptions
620
- ): Promise<DeleteMLModelCommandOutput>;
621
- public deleteMLModel(
622
- args: DeleteMLModelCommandInput,
623
- cb: (err: any, data?: DeleteMLModelCommandOutput) => void
624
- ): void;
625
- public deleteMLModel(
626
- args: DeleteMLModelCommandInput,
627
- options: __HttpHandlerOptions,
628
- cb: (err: any, data?: DeleteMLModelCommandOutput) => void
629
- ): void;
630
- public deleteMLModel(
631
- args: DeleteMLModelCommandInput,
632
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteMLModelCommandOutput) => void),
633
- cb?: (err: any, data?: DeleteMLModelCommandOutput) => void
634
- ): Promise<DeleteMLModelCommandOutput> | void {
635
- const command = new DeleteMLModelCommand(args);
636
- if (typeof optionsOrCb === "function") {
637
- this.send(command, optionsOrCb);
638
- } else if (typeof cb === "function") {
639
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
640
- this.send(command, optionsOrCb || {}, cb);
641
- } else {
642
- return this.send(command, optionsOrCb);
643
- }
644
- }
645
-
646
- /**
647
- * <p>Deletes a real time endpoint of an <code>MLModel</code>.</p>
648
- */
649
- public deleteRealtimeEndpoint(
650
- args: DeleteRealtimeEndpointCommandInput,
651
- options?: __HttpHandlerOptions
652
- ): Promise<DeleteRealtimeEndpointCommandOutput>;
653
- public deleteRealtimeEndpoint(
654
- args: DeleteRealtimeEndpointCommandInput,
655
- cb: (err: any, data?: DeleteRealtimeEndpointCommandOutput) => void
656
- ): void;
657
- public deleteRealtimeEndpoint(
658
- args: DeleteRealtimeEndpointCommandInput,
659
- options: __HttpHandlerOptions,
660
- cb: (err: any, data?: DeleteRealtimeEndpointCommandOutput) => void
661
- ): void;
662
- public deleteRealtimeEndpoint(
663
- args: DeleteRealtimeEndpointCommandInput,
664
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteRealtimeEndpointCommandOutput) => void),
665
- cb?: (err: any, data?: DeleteRealtimeEndpointCommandOutput) => void
666
- ): Promise<DeleteRealtimeEndpointCommandOutput> | void {
667
- const command = new DeleteRealtimeEndpointCommand(args);
668
- if (typeof optionsOrCb === "function") {
669
- this.send(command, optionsOrCb);
670
- } else if (typeof cb === "function") {
671
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
672
- this.send(command, optionsOrCb || {}, cb);
673
- } else {
674
- return this.send(command, optionsOrCb);
675
- }
676
- }
677
-
678
- /**
679
- * <p>Deletes the specified tags associated with an ML object. After this operation is complete, you can't recover deleted tags.</p>
680
- * <p>If you specify a tag that doesn't exist, Amazon ML ignores it.</p>
681
- */
682
- public deleteTags(args: DeleteTagsCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTagsCommandOutput>;
683
- public deleteTags(args: DeleteTagsCommandInput, cb: (err: any, data?: DeleteTagsCommandOutput) => void): void;
684
- public deleteTags(
685
- args: DeleteTagsCommandInput,
686
- options: __HttpHandlerOptions,
687
- cb: (err: any, data?: DeleteTagsCommandOutput) => void
688
- ): void;
689
- public deleteTags(
690
- args: DeleteTagsCommandInput,
691
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteTagsCommandOutput) => void),
692
- cb?: (err: any, data?: DeleteTagsCommandOutput) => void
693
- ): Promise<DeleteTagsCommandOutput> | void {
694
- const command = new DeleteTagsCommand(args);
695
- if (typeof optionsOrCb === "function") {
696
- this.send(command, optionsOrCb);
697
- } else if (typeof cb === "function") {
698
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
699
- this.send(command, optionsOrCb || {}, cb);
700
- } else {
701
- return this.send(command, optionsOrCb);
702
- }
703
- }
704
-
705
- /**
706
- * <p>Returns a list of <code>BatchPrediction</code> operations that match the search criteria in the request.</p>
707
- */
708
- public describeBatchPredictions(
709
- args: DescribeBatchPredictionsCommandInput,
710
- options?: __HttpHandlerOptions
711
- ): Promise<DescribeBatchPredictionsCommandOutput>;
712
- public describeBatchPredictions(
713
- args: DescribeBatchPredictionsCommandInput,
714
- cb: (err: any, data?: DescribeBatchPredictionsCommandOutput) => void
715
- ): void;
716
- public describeBatchPredictions(
717
- args: DescribeBatchPredictionsCommandInput,
718
- options: __HttpHandlerOptions,
719
- cb: (err: any, data?: DescribeBatchPredictionsCommandOutput) => void
720
- ): void;
721
- public describeBatchPredictions(
722
- args: DescribeBatchPredictionsCommandInput,
723
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeBatchPredictionsCommandOutput) => void),
724
- cb?: (err: any, data?: DescribeBatchPredictionsCommandOutput) => void
725
- ): Promise<DescribeBatchPredictionsCommandOutput> | void {
726
- const command = new DescribeBatchPredictionsCommand(args);
727
- if (typeof optionsOrCb === "function") {
728
- this.send(command, optionsOrCb);
729
- } else if (typeof cb === "function") {
730
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
731
- this.send(command, optionsOrCb || {}, cb);
732
- } else {
733
- return this.send(command, optionsOrCb);
734
- }
735
- }
736
-
737
- /**
738
- * <p>Returns a list of <code>DataSource</code> that match the search criteria in the request.</p>
739
- */
740
- public describeDataSources(
741
- args: DescribeDataSourcesCommandInput,
742
- options?: __HttpHandlerOptions
743
- ): Promise<DescribeDataSourcesCommandOutput>;
744
- public describeDataSources(
745
- args: DescribeDataSourcesCommandInput,
746
- cb: (err: any, data?: DescribeDataSourcesCommandOutput) => void
747
- ): void;
748
- public describeDataSources(
749
- args: DescribeDataSourcesCommandInput,
750
- options: __HttpHandlerOptions,
751
- cb: (err: any, data?: DescribeDataSourcesCommandOutput) => void
752
- ): void;
753
- public describeDataSources(
754
- args: DescribeDataSourcesCommandInput,
755
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeDataSourcesCommandOutput) => void),
756
- cb?: (err: any, data?: DescribeDataSourcesCommandOutput) => void
757
- ): Promise<DescribeDataSourcesCommandOutput> | void {
758
- const command = new DescribeDataSourcesCommand(args);
759
- if (typeof optionsOrCb === "function") {
760
- this.send(command, optionsOrCb);
761
- } else if (typeof cb === "function") {
762
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
763
- this.send(command, optionsOrCb || {}, cb);
764
- } else {
765
- return this.send(command, optionsOrCb);
766
- }
767
- }
768
-
769
- /**
770
- * <p>Returns a list of <code>DescribeEvaluations</code> that match the search criteria in the request.</p>
771
- */
772
- public describeEvaluations(
773
- args: DescribeEvaluationsCommandInput,
774
- options?: __HttpHandlerOptions
775
- ): Promise<DescribeEvaluationsCommandOutput>;
776
- public describeEvaluations(
777
- args: DescribeEvaluationsCommandInput,
778
- cb: (err: any, data?: DescribeEvaluationsCommandOutput) => void
779
- ): void;
780
- public describeEvaluations(
781
- args: DescribeEvaluationsCommandInput,
782
- options: __HttpHandlerOptions,
783
- cb: (err: any, data?: DescribeEvaluationsCommandOutput) => void
784
- ): void;
785
- public describeEvaluations(
786
- args: DescribeEvaluationsCommandInput,
787
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeEvaluationsCommandOutput) => void),
788
- cb?: (err: any, data?: DescribeEvaluationsCommandOutput) => void
789
- ): Promise<DescribeEvaluationsCommandOutput> | void {
790
- const command = new DescribeEvaluationsCommand(args);
791
- if (typeof optionsOrCb === "function") {
792
- this.send(command, optionsOrCb);
793
- } else if (typeof cb === "function") {
794
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
795
- this.send(command, optionsOrCb || {}, cb);
796
- } else {
797
- return this.send(command, optionsOrCb);
798
- }
799
- }
800
-
801
- /**
802
- * <p>Returns a list of <code>MLModel</code> that match the search criteria in the request.</p>
803
- */
804
- public describeMLModels(
805
- args: DescribeMLModelsCommandInput,
806
- options?: __HttpHandlerOptions
807
- ): Promise<DescribeMLModelsCommandOutput>;
808
- public describeMLModels(
809
- args: DescribeMLModelsCommandInput,
810
- cb: (err: any, data?: DescribeMLModelsCommandOutput) => void
811
- ): void;
812
- public describeMLModels(
813
- args: DescribeMLModelsCommandInput,
814
- options: __HttpHandlerOptions,
815
- cb: (err: any, data?: DescribeMLModelsCommandOutput) => void
816
- ): void;
817
- public describeMLModels(
818
- args: DescribeMLModelsCommandInput,
819
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeMLModelsCommandOutput) => void),
820
- cb?: (err: any, data?: DescribeMLModelsCommandOutput) => void
821
- ): Promise<DescribeMLModelsCommandOutput> | void {
822
- const command = new DescribeMLModelsCommand(args);
823
- if (typeof optionsOrCb === "function") {
824
- this.send(command, optionsOrCb);
825
- } else if (typeof cb === "function") {
826
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
827
- this.send(command, optionsOrCb || {}, cb);
828
- } else {
829
- return this.send(command, optionsOrCb);
830
- }
831
- }
832
-
833
- /**
834
- * <p>Describes one or more of the tags for your Amazon ML object.</p>
835
- */
836
- public describeTags(
837
- args: DescribeTagsCommandInput,
838
- options?: __HttpHandlerOptions
839
- ): Promise<DescribeTagsCommandOutput>;
840
- public describeTags(args: DescribeTagsCommandInput, cb: (err: any, data?: DescribeTagsCommandOutput) => void): void;
841
- public describeTags(
842
- args: DescribeTagsCommandInput,
843
- options: __HttpHandlerOptions,
844
- cb: (err: any, data?: DescribeTagsCommandOutput) => void
845
- ): void;
846
- public describeTags(
847
- args: DescribeTagsCommandInput,
848
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeTagsCommandOutput) => void),
849
- cb?: (err: any, data?: DescribeTagsCommandOutput) => void
850
- ): Promise<DescribeTagsCommandOutput> | void {
851
- const command = new DescribeTagsCommand(args);
852
- if (typeof optionsOrCb === "function") {
853
- this.send(command, optionsOrCb);
854
- } else if (typeof cb === "function") {
855
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
856
- this.send(command, optionsOrCb || {}, cb);
857
- } else {
858
- return this.send(command, optionsOrCb);
859
- }
860
- }
861
-
862
- /**
863
- * <p>Returns a <code>BatchPrediction</code> that includes detailed metadata, status, and data file information for a
864
- * <code>Batch Prediction</code> request.</p>
865
- */
866
- public getBatchPrediction(
867
- args: GetBatchPredictionCommandInput,
868
- options?: __HttpHandlerOptions
869
- ): Promise<GetBatchPredictionCommandOutput>;
870
- public getBatchPrediction(
871
- args: GetBatchPredictionCommandInput,
872
- cb: (err: any, data?: GetBatchPredictionCommandOutput) => void
873
- ): void;
874
- public getBatchPrediction(
875
- args: GetBatchPredictionCommandInput,
876
- options: __HttpHandlerOptions,
877
- cb: (err: any, data?: GetBatchPredictionCommandOutput) => void
878
- ): void;
879
- public getBatchPrediction(
880
- args: GetBatchPredictionCommandInput,
881
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetBatchPredictionCommandOutput) => void),
882
- cb?: (err: any, data?: GetBatchPredictionCommandOutput) => void
883
- ): Promise<GetBatchPredictionCommandOutput> | void {
884
- const command = new GetBatchPredictionCommand(args);
885
- if (typeof optionsOrCb === "function") {
886
- this.send(command, optionsOrCb);
887
- } else if (typeof cb === "function") {
888
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
889
- this.send(command, optionsOrCb || {}, cb);
890
- } else {
891
- return this.send(command, optionsOrCb);
892
- }
893
- }
894
-
895
- /**
896
- * <p>Returns a <code>DataSource</code> that includes metadata and data file information, as well as the current status of the <code>DataSource</code>.</p>
897
- * <p>
898
- * <code>GetDataSource</code> provides results in normal or verbose format. The verbose format
899
- * adds the schema description and the list of files pointed to by the DataSource to the normal format.</p>
900
- */
901
- public getDataSource(
902
- args: GetDataSourceCommandInput,
903
- options?: __HttpHandlerOptions
904
- ): Promise<GetDataSourceCommandOutput>;
905
- public getDataSource(
906
- args: GetDataSourceCommandInput,
907
- cb: (err: any, data?: GetDataSourceCommandOutput) => void
908
- ): void;
909
- public getDataSource(
910
- args: GetDataSourceCommandInput,
911
- options: __HttpHandlerOptions,
912
- cb: (err: any, data?: GetDataSourceCommandOutput) => void
913
- ): void;
914
- public getDataSource(
915
- args: GetDataSourceCommandInput,
916
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDataSourceCommandOutput) => void),
917
- cb?: (err: any, data?: GetDataSourceCommandOutput) => void
918
- ): Promise<GetDataSourceCommandOutput> | void {
919
- const command = new GetDataSourceCommand(args);
920
- if (typeof optionsOrCb === "function") {
921
- this.send(command, optionsOrCb);
922
- } else if (typeof cb === "function") {
923
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
924
- this.send(command, optionsOrCb || {}, cb);
925
- } else {
926
- return this.send(command, optionsOrCb);
927
- }
928
- }
929
-
930
- /**
931
- * <p>Returns an <code>Evaluation</code> that includes metadata as well as the current status of the <code>Evaluation</code>.</p>
932
- */
933
- public getEvaluation(
934
- args: GetEvaluationCommandInput,
935
- options?: __HttpHandlerOptions
936
- ): Promise<GetEvaluationCommandOutput>;
937
- public getEvaluation(
938
- args: GetEvaluationCommandInput,
939
- cb: (err: any, data?: GetEvaluationCommandOutput) => void
940
- ): void;
941
- public getEvaluation(
942
- args: GetEvaluationCommandInput,
943
- options: __HttpHandlerOptions,
944
- cb: (err: any, data?: GetEvaluationCommandOutput) => void
945
- ): void;
946
- public getEvaluation(
947
- args: GetEvaluationCommandInput,
948
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetEvaluationCommandOutput) => void),
949
- cb?: (err: any, data?: GetEvaluationCommandOutput) => void
950
- ): Promise<GetEvaluationCommandOutput> | void {
951
- const command = new GetEvaluationCommand(args);
952
- if (typeof optionsOrCb === "function") {
953
- this.send(command, optionsOrCb);
954
- } else if (typeof cb === "function") {
955
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
956
- this.send(command, optionsOrCb || {}, cb);
957
- } else {
958
- return this.send(command, optionsOrCb);
959
- }
960
- }
961
-
962
- /**
963
- * <p>Returns an <code>MLModel</code> that includes detailed metadata, data source information, and the current status of the <code>MLModel</code>.</p>
964
- * <p>
965
- * <code>GetMLModel</code> provides results in normal or verbose format. </p>
966
- */
967
- public getMLModel(args: GetMLModelCommandInput, options?: __HttpHandlerOptions): Promise<GetMLModelCommandOutput>;
968
- public getMLModel(args: GetMLModelCommandInput, cb: (err: any, data?: GetMLModelCommandOutput) => void): void;
969
- public getMLModel(
970
- args: GetMLModelCommandInput,
971
- options: __HttpHandlerOptions,
972
- cb: (err: any, data?: GetMLModelCommandOutput) => void
973
- ): void;
974
- public getMLModel(
975
- args: GetMLModelCommandInput,
976
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetMLModelCommandOutput) => void),
977
- cb?: (err: any, data?: GetMLModelCommandOutput) => void
978
- ): Promise<GetMLModelCommandOutput> | void {
979
- const command = new GetMLModelCommand(args);
980
- if (typeof optionsOrCb === "function") {
981
- this.send(command, optionsOrCb);
982
- } else if (typeof cb === "function") {
983
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
984
- this.send(command, optionsOrCb || {}, cb);
985
- } else {
986
- return this.send(command, optionsOrCb);
987
- }
988
- }
989
-
990
- /**
991
- * <p>Generates a prediction for the observation using the specified <code>ML Model</code>.</p>
992
- * <p>
993
- * <b>Note:</b> Not all response parameters will be populated. Whether a
994
- * response parameter is populated depends on the type of model requested.</p>
995
- */
996
- public predict(args: PredictCommandInput, options?: __HttpHandlerOptions): Promise<PredictCommandOutput>;
997
- public predict(args: PredictCommandInput, cb: (err: any, data?: PredictCommandOutput) => void): void;
998
- public predict(
999
- args: PredictCommandInput,
1000
- options: __HttpHandlerOptions,
1001
- cb: (err: any, data?: PredictCommandOutput) => void
1002
- ): void;
1003
- public predict(
1004
- args: PredictCommandInput,
1005
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PredictCommandOutput) => void),
1006
- cb?: (err: any, data?: PredictCommandOutput) => void
1007
- ): Promise<PredictCommandOutput> | void {
1008
- const command = new PredictCommand(args);
1009
- if (typeof optionsOrCb === "function") {
1010
- this.send(command, optionsOrCb);
1011
- } else if (typeof cb === "function") {
1012
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1013
- this.send(command, optionsOrCb || {}, cb);
1014
- } else {
1015
- return this.send(command, optionsOrCb);
1016
- }
1017
- }
1018
-
1019
- /**
1020
- * <p>Updates the <code>BatchPredictionName</code> of a <code>BatchPrediction</code>.</p>
1021
- * <p>You can use the <code>GetBatchPrediction</code> operation to view the contents of the updated data element.</p>
1022
- */
1023
- public updateBatchPrediction(
1024
- args: UpdateBatchPredictionCommandInput,
1025
- options?: __HttpHandlerOptions
1026
- ): Promise<UpdateBatchPredictionCommandOutput>;
1027
- public updateBatchPrediction(
1028
- args: UpdateBatchPredictionCommandInput,
1029
- cb: (err: any, data?: UpdateBatchPredictionCommandOutput) => void
1030
- ): void;
1031
- public updateBatchPrediction(
1032
- args: UpdateBatchPredictionCommandInput,
1033
- options: __HttpHandlerOptions,
1034
- cb: (err: any, data?: UpdateBatchPredictionCommandOutput) => void
1035
- ): void;
1036
- public updateBatchPrediction(
1037
- args: UpdateBatchPredictionCommandInput,
1038
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateBatchPredictionCommandOutput) => void),
1039
- cb?: (err: any, data?: UpdateBatchPredictionCommandOutput) => void
1040
- ): Promise<UpdateBatchPredictionCommandOutput> | void {
1041
- const command = new UpdateBatchPredictionCommand(args);
1042
- if (typeof optionsOrCb === "function") {
1043
- this.send(command, optionsOrCb);
1044
- } else if (typeof cb === "function") {
1045
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1046
- this.send(command, optionsOrCb || {}, cb);
1047
- } else {
1048
- return this.send(command, optionsOrCb);
1049
- }
1050
- }
1051
-
1052
- /**
1053
- * <p>Updates the <code>DataSourceName</code> of a <code>DataSource</code>.</p>
1054
- * <p>You can use the <code>GetDataSource</code> operation to view the contents of the updated data element.</p>
1055
- */
1056
- public updateDataSource(
1057
- args: UpdateDataSourceCommandInput,
1058
- options?: __HttpHandlerOptions
1059
- ): Promise<UpdateDataSourceCommandOutput>;
1060
- public updateDataSource(
1061
- args: UpdateDataSourceCommandInput,
1062
- cb: (err: any, data?: UpdateDataSourceCommandOutput) => void
1063
- ): void;
1064
- public updateDataSource(
1065
- args: UpdateDataSourceCommandInput,
1066
- options: __HttpHandlerOptions,
1067
- cb: (err: any, data?: UpdateDataSourceCommandOutput) => void
1068
- ): void;
1069
- public updateDataSource(
1070
- args: UpdateDataSourceCommandInput,
1071
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateDataSourceCommandOutput) => void),
1072
- cb?: (err: any, data?: UpdateDataSourceCommandOutput) => void
1073
- ): Promise<UpdateDataSourceCommandOutput> | void {
1074
- const command = new UpdateDataSourceCommand(args);
1075
- if (typeof optionsOrCb === "function") {
1076
- this.send(command, optionsOrCb);
1077
- } else if (typeof cb === "function") {
1078
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1079
- this.send(command, optionsOrCb || {}, cb);
1080
- } else {
1081
- return this.send(command, optionsOrCb);
1082
- }
1083
- }
1084
-
1085
- /**
1086
- * <p>Updates the <code>EvaluationName</code> of an <code>Evaluation</code>.</p>
1087
- * <p>You can use the <code>GetEvaluation</code> operation to view the contents of the updated data element.</p>
1088
- */
1089
- public updateEvaluation(
1090
- args: UpdateEvaluationCommandInput,
1091
- options?: __HttpHandlerOptions
1092
- ): Promise<UpdateEvaluationCommandOutput>;
1093
- public updateEvaluation(
1094
- args: UpdateEvaluationCommandInput,
1095
- cb: (err: any, data?: UpdateEvaluationCommandOutput) => void
1096
- ): void;
1097
- public updateEvaluation(
1098
- args: UpdateEvaluationCommandInput,
1099
- options: __HttpHandlerOptions,
1100
- cb: (err: any, data?: UpdateEvaluationCommandOutput) => void
1101
- ): void;
1102
- public updateEvaluation(
1103
- args: UpdateEvaluationCommandInput,
1104
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateEvaluationCommandOutput) => void),
1105
- cb?: (err: any, data?: UpdateEvaluationCommandOutput) => void
1106
- ): Promise<UpdateEvaluationCommandOutput> | void {
1107
- const command = new UpdateEvaluationCommand(args);
1108
- if (typeof optionsOrCb === "function") {
1109
- this.send(command, optionsOrCb);
1110
- } else if (typeof cb === "function") {
1111
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1112
- this.send(command, optionsOrCb || {}, cb);
1113
- } else {
1114
- return this.send(command, optionsOrCb);
1115
- }
1116
- }
1117
-
1118
- /**
1119
- * <p>Updates the <code>MLModelName</code> and the <code>ScoreThreshold</code> of an <code>MLModel</code>.</p>
1120
- * <p>You can use the <code>GetMLModel</code> operation to view the contents of the updated data element.</p>
1121
- */
1122
- public updateMLModel(
1123
- args: UpdateMLModelCommandInput,
1124
- options?: __HttpHandlerOptions
1125
- ): Promise<UpdateMLModelCommandOutput>;
1126
- public updateMLModel(
1127
- args: UpdateMLModelCommandInput,
1128
- cb: (err: any, data?: UpdateMLModelCommandOutput) => void
1129
- ): void;
1130
- public updateMLModel(
1131
- args: UpdateMLModelCommandInput,
1132
- options: __HttpHandlerOptions,
1133
- cb: (err: any, data?: UpdateMLModelCommandOutput) => void
1134
- ): void;
1135
- public updateMLModel(
1136
- args: UpdateMLModelCommandInput,
1137
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateMLModelCommandOutput) => void),
1138
- cb?: (err: any, data?: UpdateMLModelCommandOutput) => void
1139
- ): Promise<UpdateMLModelCommandOutput> | void {
1140
- const command = new UpdateMLModelCommand(args);
1141
- if (typeof optionsOrCb === "function") {
1142
- this.send(command, optionsOrCb);
1143
- } else if (typeof cb === "function") {
1144
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1145
- this.send(command, optionsOrCb || {}, cb);
1146
- } else {
1147
- return this.send(command, optionsOrCb);
1148
- }
1149
- }
1150
- }