@aws-sdk/client-migration-hub 3.33.0 → 3.36.1

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 (268) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/MigrationHub.js +1 -10
  3. package/{dist/cjs → dist-cjs}/MigrationHubClient.js +8 -22
  4. package/dist-cjs/commands/AssociateCreatedArtifactCommand.js +36 -0
  5. package/{dist/cjs → dist-cjs}/commands/AssociateDiscoveredResourceCommand.js +2 -28
  6. package/{dist/cjs → dist-cjs}/commands/CreateProgressUpdateStreamCommand.js +2 -31
  7. package/dist-cjs/commands/DeleteProgressUpdateStreamCommand.js +36 -0
  8. package/{dist/cjs → dist-cjs}/commands/DescribeApplicationStateCommand.js +2 -27
  9. package/{dist/cjs → dist-cjs}/commands/DescribeMigrationTaskCommand.js +2 -27
  10. package/dist-cjs/commands/DisassociateCreatedArtifactCommand.js +36 -0
  11. package/{dist/cjs → dist-cjs}/commands/DisassociateDiscoveredResourceCommand.js +2 -28
  12. package/{dist/cjs → dist-cjs}/commands/ImportMigrationTaskCommand.js +2 -30
  13. package/{dist/cjs → dist-cjs}/commands/ListApplicationStatesCommand.js +2 -29
  14. package/{dist/cjs → dist-cjs}/commands/ListCreatedArtifactsCommand.js +2 -41
  15. package/{dist/cjs → dist-cjs}/commands/ListDiscoveredResourcesCommand.js +2 -27
  16. package/{dist/cjs → dist-cjs}/commands/ListMigrationTasksCommand.js +2 -40
  17. package/{dist/cjs → dist-cjs}/commands/ListProgressUpdateStreamsCommand.js +2 -27
  18. package/{dist/cjs → dist-cjs}/commands/NotifyApplicationStateCommand.js +2 -30
  19. package/dist-cjs/commands/NotifyMigrationTaskStateCommand.js +36 -0
  20. package/dist-cjs/commands/PutResourceAttributesCommand.js +36 -0
  21. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  22. package/{dist/cjs → dist-cjs}/index.js +0 -1
  23. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  24. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -157
  25. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  26. package/{dist/cjs → dist-cjs}/pagination/ListApplicationStatesPaginator.js +1 -12
  27. package/{dist/cjs → dist-cjs}/pagination/ListCreatedArtifactsPaginator.js +1 -12
  28. package/{dist/cjs → dist-cjs}/pagination/ListDiscoveredResourcesPaginator.js +1 -12
  29. package/{dist/cjs → dist-cjs}/pagination/ListMigrationTasksPaginator.js +1 -12
  30. package/{dist/cjs → dist-cjs}/pagination/ListProgressUpdateStreamsPaginator.js +1 -12
  31. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  32. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  33. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  34. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  35. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  36. package/{dist/es → dist-es}/MigrationHub.js +2 -11
  37. package/{dist/es → dist-es}/MigrationHubClient.js +2 -16
  38. package/dist-es/commands/AssociateCreatedArtifactCommand.js +39 -0
  39. package/{dist/es → dist-es}/commands/AssociateDiscoveredResourceCommand.js +4 -31
  40. package/{dist/es → dist-es}/commands/CreateProgressUpdateStreamCommand.js +4 -34
  41. package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +39 -0
  42. package/{dist/es → dist-es}/commands/DescribeApplicationStateCommand.js +4 -30
  43. package/{dist/es → dist-es}/commands/DescribeMigrationTaskCommand.js +4 -30
  44. package/dist-es/commands/DisassociateCreatedArtifactCommand.js +39 -0
  45. package/{dist/es → dist-es}/commands/DisassociateDiscoveredResourceCommand.js +4 -31
  46. package/{dist/es → dist-es}/commands/ImportMigrationTaskCommand.js +4 -33
  47. package/{dist/es → dist-es}/commands/ListApplicationStatesCommand.js +4 -32
  48. package/{dist/es → dist-es}/commands/ListCreatedArtifactsCommand.js +4 -44
  49. package/{dist/es → dist-es}/commands/ListDiscoveredResourcesCommand.js +4 -30
  50. package/{dist/es → dist-es}/commands/ListMigrationTasksCommand.js +4 -43
  51. package/{dist/es → dist-es}/commands/ListProgressUpdateStreamsCommand.js +4 -30
  52. package/{dist/es → dist-es}/commands/NotifyApplicationStateCommand.js +4 -33
  53. package/{dist/es → dist-es}/commands/NotifyMigrationTaskStateCommand.js +4 -47
  54. package/dist-es/commands/PutResourceAttributesCommand.js +39 -0
  55. package/{dist/es → dist-es}/endpoints.js +1 -2
  56. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  57. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  58. package/{dist/es → dist-es}/models/models_0.js +0 -157
  59. package/dist-es/pagination/Interfaces.js +1 -0
  60. package/{dist/es → dist-es}/pagination/ListApplicationStatesPaginator.js +17 -30
  61. package/{dist/es → dist-es}/pagination/ListCreatedArtifactsPaginator.js +17 -30
  62. package/{dist/es → dist-es}/pagination/ListDiscoveredResourcesPaginator.js +17 -30
  63. package/{dist/es → dist-es}/pagination/ListMigrationTasksPaginator.js +17 -30
  64. package/{dist/es → dist-es}/pagination/ListProgressUpdateStreamsPaginator.js +17 -30
  65. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +691 -697
  66. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  67. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  68. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  69. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  70. package/{dist/types → dist-types}/MigrationHub.d.ts +2 -2
  71. package/{dist/types → dist-types}/MigrationHubClient.d.ts +8 -8
  72. package/{dist/types → dist-types}/commands/AssociateCreatedArtifactCommand.d.ts +2 -2
  73. package/{dist/types → dist-types}/commands/AssociateDiscoveredResourceCommand.d.ts +2 -2
  74. package/{dist/types → dist-types}/commands/CreateProgressUpdateStreamCommand.d.ts +2 -2
  75. package/{dist/types → dist-types}/commands/DeleteProgressUpdateStreamCommand.d.ts +2 -2
  76. package/{dist/types → dist-types}/commands/DescribeApplicationStateCommand.d.ts +2 -2
  77. package/{dist/types → dist-types}/commands/DescribeMigrationTaskCommand.d.ts +2 -2
  78. package/{dist/types → dist-types}/commands/DisassociateCreatedArtifactCommand.d.ts +2 -2
  79. package/{dist/types → dist-types}/commands/DisassociateDiscoveredResourceCommand.d.ts +2 -2
  80. package/{dist/types → dist-types}/commands/ImportMigrationTaskCommand.d.ts +2 -2
  81. package/{dist/types → dist-types}/commands/ListApplicationStatesCommand.d.ts +2 -2
  82. package/{dist/types → dist-types}/commands/ListCreatedArtifactsCommand.d.ts +2 -2
  83. package/{dist/types → dist-types}/commands/ListDiscoveredResourcesCommand.d.ts +2 -2
  84. package/{dist/types → dist-types}/commands/ListMigrationTasksCommand.d.ts +2 -2
  85. package/{dist/types → dist-types}/commands/ListProgressUpdateStreamsCommand.d.ts +2 -2
  86. package/{dist/types → dist-types}/commands/NotifyApplicationStateCommand.d.ts +2 -2
  87. package/{dist/types → dist-types}/commands/NotifyMigrationTaskStateCommand.d.ts +2 -2
  88. package/{dist/types → dist-types}/commands/PutResourceAttributesCommand.d.ts +2 -2
  89. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  90. package/{index.ts → dist-types/index.d.ts} +0 -0
  91. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  92. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  93. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  94. package/{dist/types → dist-types}/pagination/ListApplicationStatesPaginator.d.ts +1 -1
  95. package/{dist/types → dist-types}/pagination/ListCreatedArtifactsPaginator.d.ts +1 -1
  96. package/{dist/types → dist-types}/pagination/ListDiscoveredResourcesPaginator.d.ts +1 -1
  97. package/{dist/types → dist-types}/pagination/ListMigrationTasksPaginator.d.ts +1 -1
  98. package/{dist/types → dist-types}/pagination/ListProgressUpdateStreamsPaginator.d.ts +1 -1
  99. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  100. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  101. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  102. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  103. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  104. package/dist-types/ts3.4/MigrationHub.d.ts +90 -0
  105. package/{dist/types → dist-types}/ts3.4/MigrationHubClient.d.ts +32 -102
  106. package/dist-types/ts3.4/commands/AssociateCreatedArtifactCommand.d.ts +17 -0
  107. package/{dist/types → dist-types}/ts3.4/commands/AssociateDiscoveredResourceCommand.d.ts +4 -23
  108. package/dist-types/ts3.4/commands/CreateProgressUpdateStreamCommand.d.ts +17 -0
  109. package/dist-types/ts3.4/commands/DeleteProgressUpdateStreamCommand.d.ts +17 -0
  110. package/{dist/types → dist-types}/ts3.4/commands/DescribeApplicationStateCommand.d.ts +4 -22
  111. package/{dist/types → dist-types}/ts3.4/commands/DescribeMigrationTaskCommand.d.ts +4 -22
  112. package/dist-types/ts3.4/commands/DisassociateCreatedArtifactCommand.d.ts +17 -0
  113. package/{dist/types → dist-types}/ts3.4/commands/DisassociateDiscoveredResourceCommand.d.ts +4 -23
  114. package/dist-types/ts3.4/commands/ImportMigrationTaskCommand.d.ts +17 -0
  115. package/dist-types/ts3.4/commands/ListApplicationStatesCommand.d.ts +17 -0
  116. package/dist-types/ts3.4/commands/ListCreatedArtifactsCommand.d.ts +17 -0
  117. package/{dist/types → dist-types}/ts3.4/commands/ListDiscoveredResourcesCommand.d.ts +4 -22
  118. package/dist-types/ts3.4/commands/ListMigrationTasksCommand.d.ts +17 -0
  119. package/{dist/types → dist-types}/ts3.4/commands/ListProgressUpdateStreamsCommand.d.ts +4 -22
  120. package/dist-types/ts3.4/commands/NotifyApplicationStateCommand.d.ts +17 -0
  121. package/dist-types/ts3.4/commands/NotifyMigrationTaskStateCommand.d.ts +17 -0
  122. package/dist-types/ts3.4/commands/PutResourceAttributesCommand.d.ts +17 -0
  123. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  124. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  125. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  126. package/dist-types/ts3.4/models/models_0.d.ts +573 -0
  127. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  128. package/{dist/types → dist-types}/ts3.4/pagination/ListApplicationStatesPaginator.d.ts +1 -1
  129. package/{dist/types → dist-types}/ts3.4/pagination/ListCreatedArtifactsPaginator.d.ts +1 -1
  130. package/{dist/types → dist-types}/ts3.4/pagination/ListDiscoveredResourcesPaginator.d.ts +1 -1
  131. package/{dist/types → dist-types}/ts3.4/pagination/ListMigrationTasksPaginator.d.ts +1 -1
  132. package/{dist/types → dist-types}/ts3.4/pagination/ListProgressUpdateStreamsPaginator.d.ts +1 -1
  133. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  134. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  135. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  136. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  137. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  138. package/package.json +52 -49
  139. package/MigrationHub.ts +0 -787
  140. package/MigrationHubClient.ts +0 -339
  141. package/commands/AssociateCreatedArtifactCommand.ts +0 -111
  142. package/commands/AssociateDiscoveredResourceCommand.ts +0 -98
  143. package/commands/CreateProgressUpdateStreamCommand.ts +0 -101
  144. package/commands/DeleteProgressUpdateStreamCommand.ts +0 -127
  145. package/commands/DescribeApplicationStateCommand.ts +0 -94
  146. package/commands/DescribeMigrationTaskCommand.ts +0 -94
  147. package/commands/DisassociateCreatedArtifactCommand.ts +0 -113
  148. package/commands/DisassociateDiscoveredResourceCommand.ts +0 -103
  149. package/commands/ImportMigrationTaskCommand.ts +0 -97
  150. package/commands/ListApplicationStatesCommand.ts +0 -96
  151. package/commands/ListCreatedArtifactsCommand.ts +0 -108
  152. package/commands/ListDiscoveredResourcesCommand.ts +0 -94
  153. package/commands/ListMigrationTasksCommand.ts +0 -107
  154. package/commands/ListProgressUpdateStreamsCommand.ts +0 -97
  155. package/commands/NotifyApplicationStateCommand.ts +0 -97
  156. package/commands/NotifyMigrationTaskStateCommand.ts +0 -111
  157. package/commands/PutResourceAttributesCommand.ts +0 -119
  158. package/dist/cjs/MigrationHub.js.map +0 -1
  159. package/dist/cjs/MigrationHubClient.js.map +0 -1
  160. package/dist/cjs/commands/AssociateCreatedArtifactCommand.js +0 -78
  161. package/dist/cjs/commands/AssociateCreatedArtifactCommand.js.map +0 -1
  162. package/dist/cjs/commands/AssociateDiscoveredResourceCommand.js.map +0 -1
  163. package/dist/cjs/commands/CreateProgressUpdateStreamCommand.js.map +0 -1
  164. package/dist/cjs/commands/DeleteProgressUpdateStreamCommand.js +0 -91
  165. package/dist/cjs/commands/DeleteProgressUpdateStreamCommand.js.map +0 -1
  166. package/dist/cjs/commands/DescribeApplicationStateCommand.js.map +0 -1
  167. package/dist/cjs/commands/DescribeMigrationTaskCommand.js.map +0 -1
  168. package/dist/cjs/commands/DisassociateCreatedArtifactCommand.js +0 -77
  169. package/dist/cjs/commands/DisassociateCreatedArtifactCommand.js.map +0 -1
  170. package/dist/cjs/commands/DisassociateDiscoveredResourceCommand.js.map +0 -1
  171. package/dist/cjs/commands/ImportMigrationTaskCommand.js.map +0 -1
  172. package/dist/cjs/commands/ListApplicationStatesCommand.js.map +0 -1
  173. package/dist/cjs/commands/ListCreatedArtifactsCommand.js.map +0 -1
  174. package/dist/cjs/commands/ListDiscoveredResourcesCommand.js.map +0 -1
  175. package/dist/cjs/commands/ListMigrationTasksCommand.js.map +0 -1
  176. package/dist/cjs/commands/ListProgressUpdateStreamsCommand.js.map +0 -1
  177. package/dist/cjs/commands/NotifyApplicationStateCommand.js.map +0 -1
  178. package/dist/cjs/commands/NotifyMigrationTaskStateCommand.js +0 -78
  179. package/dist/cjs/commands/NotifyMigrationTaskStateCommand.js.map +0 -1
  180. package/dist/cjs/commands/PutResourceAttributesCommand.js +0 -86
  181. package/dist/cjs/commands/PutResourceAttributesCommand.js.map +0 -1
  182. package/dist/cjs/endpoints.js.map +0 -1
  183. package/dist/cjs/index.js.map +0 -1
  184. package/dist/cjs/models/index.js.map +0 -1
  185. package/dist/cjs/models/models_0.js.map +0 -1
  186. package/dist/cjs/package.json +0 -91
  187. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  188. package/dist/cjs/pagination/ListApplicationStatesPaginator.js.map +0 -1
  189. package/dist/cjs/pagination/ListCreatedArtifactsPaginator.js.map +0 -1
  190. package/dist/cjs/pagination/ListDiscoveredResourcesPaginator.js.map +0 -1
  191. package/dist/cjs/pagination/ListMigrationTasksPaginator.js.map +0 -1
  192. package/dist/cjs/pagination/ListProgressUpdateStreamsPaginator.js.map +0 -1
  193. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  194. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  195. package/dist/cjs/runtimeConfig.js.map +0 -1
  196. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  197. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  198. package/dist/es/MigrationHub.js.map +0 -1
  199. package/dist/es/MigrationHubClient.js.map +0 -1
  200. package/dist/es/commands/AssociateCreatedArtifactCommand.js +0 -82
  201. package/dist/es/commands/AssociateCreatedArtifactCommand.js.map +0 -1
  202. package/dist/es/commands/AssociateDiscoveredResourceCommand.js.map +0 -1
  203. package/dist/es/commands/CreateProgressUpdateStreamCommand.js.map +0 -1
  204. package/dist/es/commands/DeleteProgressUpdateStreamCommand.js +0 -95
  205. package/dist/es/commands/DeleteProgressUpdateStreamCommand.js.map +0 -1
  206. package/dist/es/commands/DescribeApplicationStateCommand.js.map +0 -1
  207. package/dist/es/commands/DescribeMigrationTaskCommand.js.map +0 -1
  208. package/dist/es/commands/DisassociateCreatedArtifactCommand.js +0 -81
  209. package/dist/es/commands/DisassociateCreatedArtifactCommand.js.map +0 -1
  210. package/dist/es/commands/DisassociateDiscoveredResourceCommand.js.map +0 -1
  211. package/dist/es/commands/ImportMigrationTaskCommand.js.map +0 -1
  212. package/dist/es/commands/ListApplicationStatesCommand.js.map +0 -1
  213. package/dist/es/commands/ListCreatedArtifactsCommand.js.map +0 -1
  214. package/dist/es/commands/ListDiscoveredResourcesCommand.js.map +0 -1
  215. package/dist/es/commands/ListMigrationTasksCommand.js.map +0 -1
  216. package/dist/es/commands/ListProgressUpdateStreamsCommand.js.map +0 -1
  217. package/dist/es/commands/NotifyApplicationStateCommand.js.map +0 -1
  218. package/dist/es/commands/NotifyMigrationTaskStateCommand.js.map +0 -1
  219. package/dist/es/commands/PutResourceAttributesCommand.js +0 -90
  220. package/dist/es/commands/PutResourceAttributesCommand.js.map +0 -1
  221. package/dist/es/endpoints.js.map +0 -1
  222. package/dist/es/index.js +0 -27
  223. package/dist/es/index.js.map +0 -1
  224. package/dist/es/models/index.js +0 -2
  225. package/dist/es/models/index.js.map +0 -1
  226. package/dist/es/models/models_0.js.map +0 -1
  227. package/dist/es/package.json +0 -91
  228. package/dist/es/pagination/Interfaces.js +0 -2
  229. package/dist/es/pagination/Interfaces.js.map +0 -1
  230. package/dist/es/pagination/ListApplicationStatesPaginator.js.map +0 -1
  231. package/dist/es/pagination/ListCreatedArtifactsPaginator.js.map +0 -1
  232. package/dist/es/pagination/ListDiscoveredResourcesPaginator.js.map +0 -1
  233. package/dist/es/pagination/ListMigrationTasksPaginator.js.map +0 -1
  234. package/dist/es/pagination/ListProgressUpdateStreamsPaginator.js.map +0 -1
  235. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  236. package/dist/es/runtimeConfig.browser.js.map +0 -1
  237. package/dist/es/runtimeConfig.js.map +0 -1
  238. package/dist/es/runtimeConfig.native.js.map +0 -1
  239. package/dist/es/runtimeConfig.shared.js.map +0 -1
  240. package/dist/types/ts3.4/MigrationHub.d.ts +0 -277
  241. package/dist/types/ts3.4/commands/AssociateCreatedArtifactCommand.d.ts +0 -52
  242. package/dist/types/ts3.4/commands/CreateProgressUpdateStreamCommand.d.ts +0 -39
  243. package/dist/types/ts3.4/commands/DeleteProgressUpdateStreamCommand.d.ts +0 -65
  244. package/dist/types/ts3.4/commands/DisassociateCreatedArtifactCommand.d.ts +0 -51
  245. package/dist/types/ts3.4/commands/ImportMigrationTaskCommand.d.ts +0 -38
  246. package/dist/types/ts3.4/commands/ListApplicationStatesCommand.d.ts +0 -37
  247. package/dist/types/ts3.4/commands/ListCreatedArtifactsCommand.d.ts +0 -49
  248. package/dist/types/ts3.4/commands/ListMigrationTasksCommand.d.ts +0 -48
  249. package/dist/types/ts3.4/commands/NotifyApplicationStateCommand.d.ts +0 -38
  250. package/dist/types/ts3.4/commands/NotifyMigrationTaskStateCommand.d.ts +0 -52
  251. package/dist/types/ts3.4/commands/PutResourceAttributesCommand.d.ts +0 -60
  252. package/dist/types/ts3.4/models/models_0.d.ts +0 -1056
  253. package/endpoints.ts +0 -57
  254. package/jest.config.js +0 -4
  255. package/models/models_0.ts +0 -1319
  256. package/pagination/Interfaces.ts +0 -7
  257. package/pagination/ListApplicationStatesPaginator.ts +0 -58
  258. package/pagination/ListCreatedArtifactsPaginator.ts +0 -58
  259. package/pagination/ListDiscoveredResourcesPaginator.ts +0 -58
  260. package/pagination/ListMigrationTasksPaginator.ts +0 -58
  261. package/pagination/ListProgressUpdateStreamsPaginator.ts +0 -58
  262. package/protocols/Aws_json1_1.ts +0 -3162
  263. package/runtimeConfig.browser.ts +0 -40
  264. package/runtimeConfig.native.ts +0 -16
  265. package/runtimeConfig.shared.ts +0 -16
  266. package/runtimeConfig.ts +0 -45
  267. package/tsconfig.es.json +0 -12
  268. package/tsconfig.json +0 -32
package/MigrationHub.ts DELETED
@@ -1,787 +0,0 @@
1
- import { MigrationHubClient } from "./MigrationHubClient";
2
- import {
3
- AssociateCreatedArtifactCommand,
4
- AssociateCreatedArtifactCommandInput,
5
- AssociateCreatedArtifactCommandOutput,
6
- } from "./commands/AssociateCreatedArtifactCommand";
7
- import {
8
- AssociateDiscoveredResourceCommand,
9
- AssociateDiscoveredResourceCommandInput,
10
- AssociateDiscoveredResourceCommandOutput,
11
- } from "./commands/AssociateDiscoveredResourceCommand";
12
- import {
13
- CreateProgressUpdateStreamCommand,
14
- CreateProgressUpdateStreamCommandInput,
15
- CreateProgressUpdateStreamCommandOutput,
16
- } from "./commands/CreateProgressUpdateStreamCommand";
17
- import {
18
- DeleteProgressUpdateStreamCommand,
19
- DeleteProgressUpdateStreamCommandInput,
20
- DeleteProgressUpdateStreamCommandOutput,
21
- } from "./commands/DeleteProgressUpdateStreamCommand";
22
- import {
23
- DescribeApplicationStateCommand,
24
- DescribeApplicationStateCommandInput,
25
- DescribeApplicationStateCommandOutput,
26
- } from "./commands/DescribeApplicationStateCommand";
27
- import {
28
- DescribeMigrationTaskCommand,
29
- DescribeMigrationTaskCommandInput,
30
- DescribeMigrationTaskCommandOutput,
31
- } from "./commands/DescribeMigrationTaskCommand";
32
- import {
33
- DisassociateCreatedArtifactCommand,
34
- DisassociateCreatedArtifactCommandInput,
35
- DisassociateCreatedArtifactCommandOutput,
36
- } from "./commands/DisassociateCreatedArtifactCommand";
37
- import {
38
- DisassociateDiscoveredResourceCommand,
39
- DisassociateDiscoveredResourceCommandInput,
40
- DisassociateDiscoveredResourceCommandOutput,
41
- } from "./commands/DisassociateDiscoveredResourceCommand";
42
- import {
43
- ImportMigrationTaskCommand,
44
- ImportMigrationTaskCommandInput,
45
- ImportMigrationTaskCommandOutput,
46
- } from "./commands/ImportMigrationTaskCommand";
47
- import {
48
- ListApplicationStatesCommand,
49
- ListApplicationStatesCommandInput,
50
- ListApplicationStatesCommandOutput,
51
- } from "./commands/ListApplicationStatesCommand";
52
- import {
53
- ListCreatedArtifactsCommand,
54
- ListCreatedArtifactsCommandInput,
55
- ListCreatedArtifactsCommandOutput,
56
- } from "./commands/ListCreatedArtifactsCommand";
57
- import {
58
- ListDiscoveredResourcesCommand,
59
- ListDiscoveredResourcesCommandInput,
60
- ListDiscoveredResourcesCommandOutput,
61
- } from "./commands/ListDiscoveredResourcesCommand";
62
- import {
63
- ListMigrationTasksCommand,
64
- ListMigrationTasksCommandInput,
65
- ListMigrationTasksCommandOutput,
66
- } from "./commands/ListMigrationTasksCommand";
67
- import {
68
- ListProgressUpdateStreamsCommand,
69
- ListProgressUpdateStreamsCommandInput,
70
- ListProgressUpdateStreamsCommandOutput,
71
- } from "./commands/ListProgressUpdateStreamsCommand";
72
- import {
73
- NotifyApplicationStateCommand,
74
- NotifyApplicationStateCommandInput,
75
- NotifyApplicationStateCommandOutput,
76
- } from "./commands/NotifyApplicationStateCommand";
77
- import {
78
- NotifyMigrationTaskStateCommand,
79
- NotifyMigrationTaskStateCommandInput,
80
- NotifyMigrationTaskStateCommandOutput,
81
- } from "./commands/NotifyMigrationTaskStateCommand";
82
- import {
83
- PutResourceAttributesCommand,
84
- PutResourceAttributesCommandInput,
85
- PutResourceAttributesCommandOutput,
86
- } from "./commands/PutResourceAttributesCommand";
87
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
88
-
89
- /**
90
- * <p>The AWS Migration Hub API methods help to obtain server and application migration status
91
- * and integrate your resource-specific migration tool by providing a programmatic interface
92
- * to Migration Hub.</p>
93
- * <p>Remember that you must set your AWS Migration Hub home region before you call any of
94
- * these APIs, or a <code>HomeRegionNotSetException</code> error will be returned. Also, you
95
- * must make the API calls while in your home region.</p>
96
- */
97
- export class MigrationHub extends MigrationHubClient {
98
- /**
99
- * <p>Associates a created artifact of an AWS cloud resource, the target receiving the
100
- * migration, with the migration task performed by a migration tool. This API has the
101
- * following traits:</p>
102
- * <ul>
103
- * <li>
104
- * <p>Migration tools can call the <code>AssociateCreatedArtifact</code> operation to
105
- * indicate which AWS artifact is associated with a migration task.</p>
106
- * </li>
107
- * <li>
108
- * <p>The created artifact name must be provided in ARN (Amazon Resource Name) format
109
- * which will contain information about type and region; for example:
110
- * <code>arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b</code>.</p>
111
- * </li>
112
- * <li>
113
- * <p>Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance,
114
- * or DMS endpoint, etc.</p>
115
- * </li>
116
- * </ul>
117
- */
118
- public associateCreatedArtifact(
119
- args: AssociateCreatedArtifactCommandInput,
120
- options?: __HttpHandlerOptions
121
- ): Promise<AssociateCreatedArtifactCommandOutput>;
122
- public associateCreatedArtifact(
123
- args: AssociateCreatedArtifactCommandInput,
124
- cb: (err: any, data?: AssociateCreatedArtifactCommandOutput) => void
125
- ): void;
126
- public associateCreatedArtifact(
127
- args: AssociateCreatedArtifactCommandInput,
128
- options: __HttpHandlerOptions,
129
- cb: (err: any, data?: AssociateCreatedArtifactCommandOutput) => void
130
- ): void;
131
- public associateCreatedArtifact(
132
- args: AssociateCreatedArtifactCommandInput,
133
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AssociateCreatedArtifactCommandOutput) => void),
134
- cb?: (err: any, data?: AssociateCreatedArtifactCommandOutput) => void
135
- ): Promise<AssociateCreatedArtifactCommandOutput> | void {
136
- const command = new AssociateCreatedArtifactCommand(args);
137
- if (typeof optionsOrCb === "function") {
138
- this.send(command, optionsOrCb);
139
- } else if (typeof cb === "function") {
140
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
141
- this.send(command, optionsOrCb || {}, cb);
142
- } else {
143
- return this.send(command, optionsOrCb);
144
- }
145
- }
146
-
147
- /**
148
- * <p>Associates a discovered resource ID from Application Discovery Service with a migration
149
- * task.</p>
150
- */
151
- public associateDiscoveredResource(
152
- args: AssociateDiscoveredResourceCommandInput,
153
- options?: __HttpHandlerOptions
154
- ): Promise<AssociateDiscoveredResourceCommandOutput>;
155
- public associateDiscoveredResource(
156
- args: AssociateDiscoveredResourceCommandInput,
157
- cb: (err: any, data?: AssociateDiscoveredResourceCommandOutput) => void
158
- ): void;
159
- public associateDiscoveredResource(
160
- args: AssociateDiscoveredResourceCommandInput,
161
- options: __HttpHandlerOptions,
162
- cb: (err: any, data?: AssociateDiscoveredResourceCommandOutput) => void
163
- ): void;
164
- public associateDiscoveredResource(
165
- args: AssociateDiscoveredResourceCommandInput,
166
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AssociateDiscoveredResourceCommandOutput) => void),
167
- cb?: (err: any, data?: AssociateDiscoveredResourceCommandOutput) => void
168
- ): Promise<AssociateDiscoveredResourceCommandOutput> | void {
169
- const command = new AssociateDiscoveredResourceCommand(args);
170
- if (typeof optionsOrCb === "function") {
171
- this.send(command, optionsOrCb);
172
- } else if (typeof cb === "function") {
173
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
174
- this.send(command, optionsOrCb || {}, cb);
175
- } else {
176
- return this.send(command, optionsOrCb);
177
- }
178
- }
179
-
180
- /**
181
- * <p>Creates a progress update stream which is an AWS resource used for access control as
182
- * well as a namespace for migration task names that is implicitly linked to your AWS account.
183
- * It must uniquely identify the migration tool as it is used for all updates made by the
184
- * tool; however, it does not need to be unique for each AWS account because it is scoped to
185
- * the AWS account.</p>
186
- */
187
- public createProgressUpdateStream(
188
- args: CreateProgressUpdateStreamCommandInput,
189
- options?: __HttpHandlerOptions
190
- ): Promise<CreateProgressUpdateStreamCommandOutput>;
191
- public createProgressUpdateStream(
192
- args: CreateProgressUpdateStreamCommandInput,
193
- cb: (err: any, data?: CreateProgressUpdateStreamCommandOutput) => void
194
- ): void;
195
- public createProgressUpdateStream(
196
- args: CreateProgressUpdateStreamCommandInput,
197
- options: __HttpHandlerOptions,
198
- cb: (err: any, data?: CreateProgressUpdateStreamCommandOutput) => void
199
- ): void;
200
- public createProgressUpdateStream(
201
- args: CreateProgressUpdateStreamCommandInput,
202
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateProgressUpdateStreamCommandOutput) => void),
203
- cb?: (err: any, data?: CreateProgressUpdateStreamCommandOutput) => void
204
- ): Promise<CreateProgressUpdateStreamCommandOutput> | void {
205
- const command = new CreateProgressUpdateStreamCommand(args);
206
- if (typeof optionsOrCb === "function") {
207
- this.send(command, optionsOrCb);
208
- } else if (typeof cb === "function") {
209
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
210
- this.send(command, optionsOrCb || {}, cb);
211
- } else {
212
- return this.send(command, optionsOrCb);
213
- }
214
- }
215
-
216
- /**
217
- * <p>Deletes a progress update stream, including all of its tasks, which was previously
218
- * created as an AWS resource used for access control. This API has the following
219
- * traits:</p>
220
- * <ul>
221
- * <li>
222
- * <p>The only parameter needed for <code>DeleteProgressUpdateStream</code> is the
223
- * stream name (same as a <code>CreateProgressUpdateStream</code> call).</p>
224
- * </li>
225
- * <li>
226
- * <p>The call will return, and a background process will asynchronously delete the
227
- * stream and all of its resources (tasks, associated resources, resource attributes,
228
- * created artifacts).</p>
229
- * </li>
230
- * <li>
231
- * <p>If the stream takes time to be deleted, it might still show up on a
232
- * <code>ListProgressUpdateStreams</code> call.</p>
233
- * </li>
234
- * <li>
235
- * <p>
236
- * <code>CreateProgressUpdateStream</code>, <code>ImportMigrationTask</code>,
237
- * <code>NotifyMigrationTaskState</code>, and all Associate[*] APIs related to the
238
- * tasks belonging to the stream will throw "InvalidInputException" if the stream of the
239
- * same name is in the process of being deleted.</p>
240
- * </li>
241
- * <li>
242
- * <p>Once the stream and all of its resources are deleted,
243
- * <code>CreateProgressUpdateStream</code> for a stream of the same name will
244
- * succeed, and that stream will be an entirely new logical resource (without any
245
- * resources associated with the old stream).</p>
246
- * </li>
247
- * </ul>
248
- */
249
- public deleteProgressUpdateStream(
250
- args: DeleteProgressUpdateStreamCommandInput,
251
- options?: __HttpHandlerOptions
252
- ): Promise<DeleteProgressUpdateStreamCommandOutput>;
253
- public deleteProgressUpdateStream(
254
- args: DeleteProgressUpdateStreamCommandInput,
255
- cb: (err: any, data?: DeleteProgressUpdateStreamCommandOutput) => void
256
- ): void;
257
- public deleteProgressUpdateStream(
258
- args: DeleteProgressUpdateStreamCommandInput,
259
- options: __HttpHandlerOptions,
260
- cb: (err: any, data?: DeleteProgressUpdateStreamCommandOutput) => void
261
- ): void;
262
- public deleteProgressUpdateStream(
263
- args: DeleteProgressUpdateStreamCommandInput,
264
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteProgressUpdateStreamCommandOutput) => void),
265
- cb?: (err: any, data?: DeleteProgressUpdateStreamCommandOutput) => void
266
- ): Promise<DeleteProgressUpdateStreamCommandOutput> | void {
267
- const command = new DeleteProgressUpdateStreamCommand(args);
268
- if (typeof optionsOrCb === "function") {
269
- this.send(command, optionsOrCb);
270
- } else if (typeof cb === "function") {
271
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
272
- this.send(command, optionsOrCb || {}, cb);
273
- } else {
274
- return this.send(command, optionsOrCb);
275
- }
276
- }
277
-
278
- /**
279
- * <p>Gets the migration status of an application.</p>
280
- */
281
- public describeApplicationState(
282
- args: DescribeApplicationStateCommandInput,
283
- options?: __HttpHandlerOptions
284
- ): Promise<DescribeApplicationStateCommandOutput>;
285
- public describeApplicationState(
286
- args: DescribeApplicationStateCommandInput,
287
- cb: (err: any, data?: DescribeApplicationStateCommandOutput) => void
288
- ): void;
289
- public describeApplicationState(
290
- args: DescribeApplicationStateCommandInput,
291
- options: __HttpHandlerOptions,
292
- cb: (err: any, data?: DescribeApplicationStateCommandOutput) => void
293
- ): void;
294
- public describeApplicationState(
295
- args: DescribeApplicationStateCommandInput,
296
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeApplicationStateCommandOutput) => void),
297
- cb?: (err: any, data?: DescribeApplicationStateCommandOutput) => void
298
- ): Promise<DescribeApplicationStateCommandOutput> | void {
299
- const command = new DescribeApplicationStateCommand(args);
300
- if (typeof optionsOrCb === "function") {
301
- this.send(command, optionsOrCb);
302
- } else if (typeof cb === "function") {
303
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
304
- this.send(command, optionsOrCb || {}, cb);
305
- } else {
306
- return this.send(command, optionsOrCb);
307
- }
308
- }
309
-
310
- /**
311
- * <p>Retrieves a list of all attributes associated with a specific migration task.</p>
312
- */
313
- public describeMigrationTask(
314
- args: DescribeMigrationTaskCommandInput,
315
- options?: __HttpHandlerOptions
316
- ): Promise<DescribeMigrationTaskCommandOutput>;
317
- public describeMigrationTask(
318
- args: DescribeMigrationTaskCommandInput,
319
- cb: (err: any, data?: DescribeMigrationTaskCommandOutput) => void
320
- ): void;
321
- public describeMigrationTask(
322
- args: DescribeMigrationTaskCommandInput,
323
- options: __HttpHandlerOptions,
324
- cb: (err: any, data?: DescribeMigrationTaskCommandOutput) => void
325
- ): void;
326
- public describeMigrationTask(
327
- args: DescribeMigrationTaskCommandInput,
328
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeMigrationTaskCommandOutput) => void),
329
- cb?: (err: any, data?: DescribeMigrationTaskCommandOutput) => void
330
- ): Promise<DescribeMigrationTaskCommandOutput> | void {
331
- const command = new DescribeMigrationTaskCommand(args);
332
- if (typeof optionsOrCb === "function") {
333
- this.send(command, optionsOrCb);
334
- } else if (typeof cb === "function") {
335
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
336
- this.send(command, optionsOrCb || {}, cb);
337
- } else {
338
- return this.send(command, optionsOrCb);
339
- }
340
- }
341
-
342
- /**
343
- * <p>Disassociates a created artifact of an AWS resource with a migration task performed by a
344
- * migration tool that was previously associated. This API has the following traits:</p>
345
- * <ul>
346
- * <li>
347
- * <p>A migration user can call the <code>DisassociateCreatedArtifacts</code> operation
348
- * to disassociate a created AWS Artifact from a migration task.</p>
349
- * </li>
350
- * <li>
351
- * <p>The created artifact name must be provided in ARN (Amazon Resource Name) format
352
- * which will contain information about type and region; for example:
353
- * <code>arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b</code>.</p>
354
- * </li>
355
- * <li>
356
- * <p>Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance,
357
- * or RDS instance, etc.</p>
358
- * </li>
359
- * </ul>
360
- */
361
- public disassociateCreatedArtifact(
362
- args: DisassociateCreatedArtifactCommandInput,
363
- options?: __HttpHandlerOptions
364
- ): Promise<DisassociateCreatedArtifactCommandOutput>;
365
- public disassociateCreatedArtifact(
366
- args: DisassociateCreatedArtifactCommandInput,
367
- cb: (err: any, data?: DisassociateCreatedArtifactCommandOutput) => void
368
- ): void;
369
- public disassociateCreatedArtifact(
370
- args: DisassociateCreatedArtifactCommandInput,
371
- options: __HttpHandlerOptions,
372
- cb: (err: any, data?: DisassociateCreatedArtifactCommandOutput) => void
373
- ): void;
374
- public disassociateCreatedArtifact(
375
- args: DisassociateCreatedArtifactCommandInput,
376
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DisassociateCreatedArtifactCommandOutput) => void),
377
- cb?: (err: any, data?: DisassociateCreatedArtifactCommandOutput) => void
378
- ): Promise<DisassociateCreatedArtifactCommandOutput> | void {
379
- const command = new DisassociateCreatedArtifactCommand(args);
380
- if (typeof optionsOrCb === "function") {
381
- this.send(command, optionsOrCb);
382
- } else if (typeof cb === "function") {
383
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
384
- this.send(command, optionsOrCb || {}, cb);
385
- } else {
386
- return this.send(command, optionsOrCb);
387
- }
388
- }
389
-
390
- /**
391
- * <p>Disassociate an Application Discovery Service discovered resource from a migration
392
- * task.</p>
393
- */
394
- public disassociateDiscoveredResource(
395
- args: DisassociateDiscoveredResourceCommandInput,
396
- options?: __HttpHandlerOptions
397
- ): Promise<DisassociateDiscoveredResourceCommandOutput>;
398
- public disassociateDiscoveredResource(
399
- args: DisassociateDiscoveredResourceCommandInput,
400
- cb: (err: any, data?: DisassociateDiscoveredResourceCommandOutput) => void
401
- ): void;
402
- public disassociateDiscoveredResource(
403
- args: DisassociateDiscoveredResourceCommandInput,
404
- options: __HttpHandlerOptions,
405
- cb: (err: any, data?: DisassociateDiscoveredResourceCommandOutput) => void
406
- ): void;
407
- public disassociateDiscoveredResource(
408
- args: DisassociateDiscoveredResourceCommandInput,
409
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DisassociateDiscoveredResourceCommandOutput) => void),
410
- cb?: (err: any, data?: DisassociateDiscoveredResourceCommandOutput) => void
411
- ): Promise<DisassociateDiscoveredResourceCommandOutput> | void {
412
- const command = new DisassociateDiscoveredResourceCommand(args);
413
- if (typeof optionsOrCb === "function") {
414
- this.send(command, optionsOrCb);
415
- } else if (typeof cb === "function") {
416
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
417
- this.send(command, optionsOrCb || {}, cb);
418
- } else {
419
- return this.send(command, optionsOrCb);
420
- }
421
- }
422
-
423
- /**
424
- * <p>Registers a new migration task which represents a server, database, etc., being migrated
425
- * to AWS by a migration tool.</p>
426
- * <p>This API is a prerequisite to calling the <code>NotifyMigrationTaskState</code> API as
427
- * the migration tool must first register the migration task with Migration Hub.</p>
428
- */
429
- public importMigrationTask(
430
- args: ImportMigrationTaskCommandInput,
431
- options?: __HttpHandlerOptions
432
- ): Promise<ImportMigrationTaskCommandOutput>;
433
- public importMigrationTask(
434
- args: ImportMigrationTaskCommandInput,
435
- cb: (err: any, data?: ImportMigrationTaskCommandOutput) => void
436
- ): void;
437
- public importMigrationTask(
438
- args: ImportMigrationTaskCommandInput,
439
- options: __HttpHandlerOptions,
440
- cb: (err: any, data?: ImportMigrationTaskCommandOutput) => void
441
- ): void;
442
- public importMigrationTask(
443
- args: ImportMigrationTaskCommandInput,
444
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ImportMigrationTaskCommandOutput) => void),
445
- cb?: (err: any, data?: ImportMigrationTaskCommandOutput) => void
446
- ): Promise<ImportMigrationTaskCommandOutput> | void {
447
- const command = new ImportMigrationTaskCommand(args);
448
- if (typeof optionsOrCb === "function") {
449
- this.send(command, optionsOrCb);
450
- } else if (typeof cb === "function") {
451
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
452
- this.send(command, optionsOrCb || {}, cb);
453
- } else {
454
- return this.send(command, optionsOrCb);
455
- }
456
- }
457
-
458
- /**
459
- * <p>Lists all the migration statuses for your applications. If you use the optional
460
- * <code>ApplicationIds</code> parameter, only the migration statuses for those
461
- * applications will be returned.</p>
462
- */
463
- public listApplicationStates(
464
- args: ListApplicationStatesCommandInput,
465
- options?: __HttpHandlerOptions
466
- ): Promise<ListApplicationStatesCommandOutput>;
467
- public listApplicationStates(
468
- args: ListApplicationStatesCommandInput,
469
- cb: (err: any, data?: ListApplicationStatesCommandOutput) => void
470
- ): void;
471
- public listApplicationStates(
472
- args: ListApplicationStatesCommandInput,
473
- options: __HttpHandlerOptions,
474
- cb: (err: any, data?: ListApplicationStatesCommandOutput) => void
475
- ): void;
476
- public listApplicationStates(
477
- args: ListApplicationStatesCommandInput,
478
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListApplicationStatesCommandOutput) => void),
479
- cb?: (err: any, data?: ListApplicationStatesCommandOutput) => void
480
- ): Promise<ListApplicationStatesCommandOutput> | void {
481
- const command = new ListApplicationStatesCommand(args);
482
- if (typeof optionsOrCb === "function") {
483
- this.send(command, optionsOrCb);
484
- } else if (typeof cb === "function") {
485
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
486
- this.send(command, optionsOrCb || {}, cb);
487
- } else {
488
- return this.send(command, optionsOrCb);
489
- }
490
- }
491
-
492
- /**
493
- * <p>Lists the created artifacts attached to a given migration task in an update stream. This
494
- * API has the following traits:</p>
495
- * <ul>
496
- * <li>
497
- * <p>Gets the list of the created artifacts while
498
- * migration is taking place.</p>
499
- * </li>
500
- * <li>
501
- * <p>Shows the artifacts created by the migration tool that was associated by the
502
- * <code>AssociateCreatedArtifact</code> API. </p>
503
- * </li>
504
- * <li>
505
- * <p>Lists created artifacts in a paginated interface. </p>
506
- * </li>
507
- * </ul>
508
- */
509
- public listCreatedArtifacts(
510
- args: ListCreatedArtifactsCommandInput,
511
- options?: __HttpHandlerOptions
512
- ): Promise<ListCreatedArtifactsCommandOutput>;
513
- public listCreatedArtifacts(
514
- args: ListCreatedArtifactsCommandInput,
515
- cb: (err: any, data?: ListCreatedArtifactsCommandOutput) => void
516
- ): void;
517
- public listCreatedArtifacts(
518
- args: ListCreatedArtifactsCommandInput,
519
- options: __HttpHandlerOptions,
520
- cb: (err: any, data?: ListCreatedArtifactsCommandOutput) => void
521
- ): void;
522
- public listCreatedArtifacts(
523
- args: ListCreatedArtifactsCommandInput,
524
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListCreatedArtifactsCommandOutput) => void),
525
- cb?: (err: any, data?: ListCreatedArtifactsCommandOutput) => void
526
- ): Promise<ListCreatedArtifactsCommandOutput> | void {
527
- const command = new ListCreatedArtifactsCommand(args);
528
- if (typeof optionsOrCb === "function") {
529
- this.send(command, optionsOrCb);
530
- } else if (typeof cb === "function") {
531
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
532
- this.send(command, optionsOrCb || {}, cb);
533
- } else {
534
- return this.send(command, optionsOrCb);
535
- }
536
- }
537
-
538
- /**
539
- * <p>Lists discovered resources associated with the given <code>MigrationTask</code>.</p>
540
- */
541
- public listDiscoveredResources(
542
- args: ListDiscoveredResourcesCommandInput,
543
- options?: __HttpHandlerOptions
544
- ): Promise<ListDiscoveredResourcesCommandOutput>;
545
- public listDiscoveredResources(
546
- args: ListDiscoveredResourcesCommandInput,
547
- cb: (err: any, data?: ListDiscoveredResourcesCommandOutput) => void
548
- ): void;
549
- public listDiscoveredResources(
550
- args: ListDiscoveredResourcesCommandInput,
551
- options: __HttpHandlerOptions,
552
- cb: (err: any, data?: ListDiscoveredResourcesCommandOutput) => void
553
- ): void;
554
- public listDiscoveredResources(
555
- args: ListDiscoveredResourcesCommandInput,
556
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDiscoveredResourcesCommandOutput) => void),
557
- cb?: (err: any, data?: ListDiscoveredResourcesCommandOutput) => void
558
- ): Promise<ListDiscoveredResourcesCommandOutput> | void {
559
- const command = new ListDiscoveredResourcesCommand(args);
560
- if (typeof optionsOrCb === "function") {
561
- this.send(command, optionsOrCb);
562
- } else if (typeof cb === "function") {
563
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
564
- this.send(command, optionsOrCb || {}, cb);
565
- } else {
566
- return this.send(command, optionsOrCb);
567
- }
568
- }
569
-
570
- /**
571
- * <p>Lists all, or filtered by resource name, migration tasks associated with the user
572
- * account making this call. This API has the following traits:</p>
573
- * <ul>
574
- * <li>
575
- * <p>Can show a summary list of the most recent migration tasks.</p>
576
- * </li>
577
- * <li>
578
- * <p>Can show a summary list of migration tasks associated with a given discovered
579
- * resource.</p>
580
- * </li>
581
- * <li>
582
- * <p>Lists migration tasks in a paginated interface.</p>
583
- * </li>
584
- * </ul>
585
- */
586
- public listMigrationTasks(
587
- args: ListMigrationTasksCommandInput,
588
- options?: __HttpHandlerOptions
589
- ): Promise<ListMigrationTasksCommandOutput>;
590
- public listMigrationTasks(
591
- args: ListMigrationTasksCommandInput,
592
- cb: (err: any, data?: ListMigrationTasksCommandOutput) => void
593
- ): void;
594
- public listMigrationTasks(
595
- args: ListMigrationTasksCommandInput,
596
- options: __HttpHandlerOptions,
597
- cb: (err: any, data?: ListMigrationTasksCommandOutput) => void
598
- ): void;
599
- public listMigrationTasks(
600
- args: ListMigrationTasksCommandInput,
601
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListMigrationTasksCommandOutput) => void),
602
- cb?: (err: any, data?: ListMigrationTasksCommandOutput) => void
603
- ): Promise<ListMigrationTasksCommandOutput> | void {
604
- const command = new ListMigrationTasksCommand(args);
605
- if (typeof optionsOrCb === "function") {
606
- this.send(command, optionsOrCb);
607
- } else if (typeof cb === "function") {
608
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
609
- this.send(command, optionsOrCb || {}, cb);
610
- } else {
611
- return this.send(command, optionsOrCb);
612
- }
613
- }
614
-
615
- /**
616
- * <p>Lists progress update streams associated with the user account making this call.</p>
617
- */
618
- public listProgressUpdateStreams(
619
- args: ListProgressUpdateStreamsCommandInput,
620
- options?: __HttpHandlerOptions
621
- ): Promise<ListProgressUpdateStreamsCommandOutput>;
622
- public listProgressUpdateStreams(
623
- args: ListProgressUpdateStreamsCommandInput,
624
- cb: (err: any, data?: ListProgressUpdateStreamsCommandOutput) => void
625
- ): void;
626
- public listProgressUpdateStreams(
627
- args: ListProgressUpdateStreamsCommandInput,
628
- options: __HttpHandlerOptions,
629
- cb: (err: any, data?: ListProgressUpdateStreamsCommandOutput) => void
630
- ): void;
631
- public listProgressUpdateStreams(
632
- args: ListProgressUpdateStreamsCommandInput,
633
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListProgressUpdateStreamsCommandOutput) => void),
634
- cb?: (err: any, data?: ListProgressUpdateStreamsCommandOutput) => void
635
- ): Promise<ListProgressUpdateStreamsCommandOutput> | void {
636
- const command = new ListProgressUpdateStreamsCommand(args);
637
- if (typeof optionsOrCb === "function") {
638
- this.send(command, optionsOrCb);
639
- } else if (typeof cb === "function") {
640
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
641
- this.send(command, optionsOrCb || {}, cb);
642
- } else {
643
- return this.send(command, optionsOrCb);
644
- }
645
- }
646
-
647
- /**
648
- * <p>Sets the migration state of an application. For a given application identified by the
649
- * value passed to <code>ApplicationId</code>, its status is set or updated by passing one of
650
- * three values to <code>Status</code>: <code>NOT_STARTED | IN_PROGRESS |
651
- * COMPLETED</code>.</p>
652
- */
653
- public notifyApplicationState(
654
- args: NotifyApplicationStateCommandInput,
655
- options?: __HttpHandlerOptions
656
- ): Promise<NotifyApplicationStateCommandOutput>;
657
- public notifyApplicationState(
658
- args: NotifyApplicationStateCommandInput,
659
- cb: (err: any, data?: NotifyApplicationStateCommandOutput) => void
660
- ): void;
661
- public notifyApplicationState(
662
- args: NotifyApplicationStateCommandInput,
663
- options: __HttpHandlerOptions,
664
- cb: (err: any, data?: NotifyApplicationStateCommandOutput) => void
665
- ): void;
666
- public notifyApplicationState(
667
- args: NotifyApplicationStateCommandInput,
668
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: NotifyApplicationStateCommandOutput) => void),
669
- cb?: (err: any, data?: NotifyApplicationStateCommandOutput) => void
670
- ): Promise<NotifyApplicationStateCommandOutput> | void {
671
- const command = new NotifyApplicationStateCommand(args);
672
- if (typeof optionsOrCb === "function") {
673
- this.send(command, optionsOrCb);
674
- } else if (typeof cb === "function") {
675
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
676
- this.send(command, optionsOrCb || {}, cb);
677
- } else {
678
- return this.send(command, optionsOrCb);
679
- }
680
- }
681
-
682
- /**
683
- * <p>Notifies Migration Hub of the current status, progress, or other detail regarding a
684
- * migration task. This API has the following traits:</p>
685
- * <ul>
686
- * <li>
687
- * <p>Migration tools will call the <code>NotifyMigrationTaskState</code> API to share
688
- * the latest progress and status.</p>
689
- * </li>
690
- * <li>
691
- * <p>
692
- * <code>MigrationTaskName</code> is used for addressing updates to the correct
693
- * target.</p>
694
- * </li>
695
- * <li>
696
- * <p>
697
- * <code>ProgressUpdateStream</code> is used for access control and to provide a
698
- * namespace for each migration tool.</p>
699
- * </li>
700
- * </ul>
701
- */
702
- public notifyMigrationTaskState(
703
- args: NotifyMigrationTaskStateCommandInput,
704
- options?: __HttpHandlerOptions
705
- ): Promise<NotifyMigrationTaskStateCommandOutput>;
706
- public notifyMigrationTaskState(
707
- args: NotifyMigrationTaskStateCommandInput,
708
- cb: (err: any, data?: NotifyMigrationTaskStateCommandOutput) => void
709
- ): void;
710
- public notifyMigrationTaskState(
711
- args: NotifyMigrationTaskStateCommandInput,
712
- options: __HttpHandlerOptions,
713
- cb: (err: any, data?: NotifyMigrationTaskStateCommandOutput) => void
714
- ): void;
715
- public notifyMigrationTaskState(
716
- args: NotifyMigrationTaskStateCommandInput,
717
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: NotifyMigrationTaskStateCommandOutput) => void),
718
- cb?: (err: any, data?: NotifyMigrationTaskStateCommandOutput) => void
719
- ): Promise<NotifyMigrationTaskStateCommandOutput> | void {
720
- const command = new NotifyMigrationTaskStateCommand(args);
721
- if (typeof optionsOrCb === "function") {
722
- this.send(command, optionsOrCb);
723
- } else if (typeof cb === "function") {
724
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
725
- this.send(command, optionsOrCb || {}, cb);
726
- } else {
727
- return this.send(command, optionsOrCb);
728
- }
729
- }
730
-
731
- /**
732
- * <p>Provides identifying details of the resource being migrated so that it can be associated
733
- * in the Application Discovery Service repository. This association occurs asynchronously
734
- * after <code>PutResourceAttributes</code> returns.</p>
735
- * <important>
736
- * <ul>
737
- * <li>
738
- * <p>Keep in mind that subsequent calls to PutResourceAttributes will override
739
- * previously stored attributes. For example, if it is first called with a MAC
740
- * address, but later, it is desired to <i>add</i> an IP address, it
741
- * will then be required to call it with <i>both</i> the IP and MAC
742
- * addresses to prevent overriding the MAC address.</p>
743
- * </li>
744
- * <li>
745
- * <p>Note the instructions regarding the special use case of the <a href="https://docs.aws.amazon.com/migrationhub/latest/ug/API_PutResourceAttributes.html#migrationhub-PutResourceAttributes-request-ResourceAttributeList">
746
- * <code>ResourceAttributeList</code>
747
- * </a> parameter when specifying any
748
- * "VM" related value.</p>
749
- * </li>
750
- * </ul>
751
- * </important>
752
- *
753
- * <note>
754
- * <p>Because this is an asynchronous call, it will always return 200, whether an
755
- * association occurs or not. To confirm if an association was found based on the provided
756
- * details, call <code>ListDiscoveredResources</code>.</p>
757
- * </note>
758
- */
759
- public putResourceAttributes(
760
- args: PutResourceAttributesCommandInput,
761
- options?: __HttpHandlerOptions
762
- ): Promise<PutResourceAttributesCommandOutput>;
763
- public putResourceAttributes(
764
- args: PutResourceAttributesCommandInput,
765
- cb: (err: any, data?: PutResourceAttributesCommandOutput) => void
766
- ): void;
767
- public putResourceAttributes(
768
- args: PutResourceAttributesCommandInput,
769
- options: __HttpHandlerOptions,
770
- cb: (err: any, data?: PutResourceAttributesCommandOutput) => void
771
- ): void;
772
- public putResourceAttributes(
773
- args: PutResourceAttributesCommandInput,
774
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutResourceAttributesCommandOutput) => void),
775
- cb?: (err: any, data?: PutResourceAttributesCommandOutput) => void
776
- ): Promise<PutResourceAttributesCommandOutput> | void {
777
- const command = new PutResourceAttributesCommand(args);
778
- if (typeof optionsOrCb === "function") {
779
- this.send(command, optionsOrCb);
780
- } else if (typeof cb === "function") {
781
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
782
- this.send(command, optionsOrCb || {}, cb);
783
- } else {
784
- return this.send(command, optionsOrCb);
785
- }
786
- }
787
- }