@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
@@ -1,339 +0,0 @@
1
- import {
2
- AssociateCreatedArtifactCommandInput,
3
- AssociateCreatedArtifactCommandOutput,
4
- } from "./commands/AssociateCreatedArtifactCommand";
5
- import {
6
- AssociateDiscoveredResourceCommandInput,
7
- AssociateDiscoveredResourceCommandOutput,
8
- } from "./commands/AssociateDiscoveredResourceCommand";
9
- import {
10
- CreateProgressUpdateStreamCommandInput,
11
- CreateProgressUpdateStreamCommandOutput,
12
- } from "./commands/CreateProgressUpdateStreamCommand";
13
- import {
14
- DeleteProgressUpdateStreamCommandInput,
15
- DeleteProgressUpdateStreamCommandOutput,
16
- } from "./commands/DeleteProgressUpdateStreamCommand";
17
- import {
18
- DescribeApplicationStateCommandInput,
19
- DescribeApplicationStateCommandOutput,
20
- } from "./commands/DescribeApplicationStateCommand";
21
- import {
22
- DescribeMigrationTaskCommandInput,
23
- DescribeMigrationTaskCommandOutput,
24
- } from "./commands/DescribeMigrationTaskCommand";
25
- import {
26
- DisassociateCreatedArtifactCommandInput,
27
- DisassociateCreatedArtifactCommandOutput,
28
- } from "./commands/DisassociateCreatedArtifactCommand";
29
- import {
30
- DisassociateDiscoveredResourceCommandInput,
31
- DisassociateDiscoveredResourceCommandOutput,
32
- } from "./commands/DisassociateDiscoveredResourceCommand";
33
- import {
34
- ImportMigrationTaskCommandInput,
35
- ImportMigrationTaskCommandOutput,
36
- } from "./commands/ImportMigrationTaskCommand";
37
- import {
38
- ListApplicationStatesCommandInput,
39
- ListApplicationStatesCommandOutput,
40
- } from "./commands/ListApplicationStatesCommand";
41
- import {
42
- ListCreatedArtifactsCommandInput,
43
- ListCreatedArtifactsCommandOutput,
44
- } from "./commands/ListCreatedArtifactsCommand";
45
- import {
46
- ListDiscoveredResourcesCommandInput,
47
- ListDiscoveredResourcesCommandOutput,
48
- } from "./commands/ListDiscoveredResourcesCommand";
49
- import { ListMigrationTasksCommandInput, ListMigrationTasksCommandOutput } from "./commands/ListMigrationTasksCommand";
50
- import {
51
- ListProgressUpdateStreamsCommandInput,
52
- ListProgressUpdateStreamsCommandOutput,
53
- } from "./commands/ListProgressUpdateStreamsCommand";
54
- import {
55
- NotifyApplicationStateCommandInput,
56
- NotifyApplicationStateCommandOutput,
57
- } from "./commands/NotifyApplicationStateCommand";
58
- import {
59
- NotifyMigrationTaskStateCommandInput,
60
- NotifyMigrationTaskStateCommandOutput,
61
- } from "./commands/NotifyMigrationTaskStateCommand";
62
- import {
63
- PutResourceAttributesCommandInput,
64
- PutResourceAttributesCommandOutput,
65
- } from "./commands/PutResourceAttributesCommand";
66
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
67
- import {
68
- EndpointsInputConfig,
69
- EndpointsResolvedConfig,
70
- RegionInputConfig,
71
- RegionResolvedConfig,
72
- resolveEndpointsConfig,
73
- resolveRegionConfig,
74
- } from "@aws-sdk/config-resolver";
75
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
76
- import {
77
- HostHeaderInputConfig,
78
- HostHeaderResolvedConfig,
79
- getHostHeaderPlugin,
80
- resolveHostHeaderConfig,
81
- } from "@aws-sdk/middleware-host-header";
82
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
83
- import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
84
- import {
85
- AwsAuthInputConfig,
86
- AwsAuthResolvedConfig,
87
- getAwsAuthPlugin,
88
- resolveAwsAuthConfig,
89
- } from "@aws-sdk/middleware-signing";
90
- import {
91
- UserAgentInputConfig,
92
- UserAgentResolvedConfig,
93
- getUserAgentPlugin,
94
- resolveUserAgentConfig,
95
- } from "@aws-sdk/middleware-user-agent";
96
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
97
- import {
98
- Client as __Client,
99
- SmithyConfiguration as __SmithyConfiguration,
100
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
101
- } from "@aws-sdk/smithy-client";
102
- import {
103
- Provider,
104
- RegionInfoProvider,
105
- Credentials as __Credentials,
106
- Decoder as __Decoder,
107
- Encoder as __Encoder,
108
- Hash as __Hash,
109
- HashConstructor as __HashConstructor,
110
- HttpHandlerOptions as __HttpHandlerOptions,
111
- Logger as __Logger,
112
- Provider as __Provider,
113
- StreamCollector as __StreamCollector,
114
- UrlParser as __UrlParser,
115
- UserAgent as __UserAgent,
116
- } from "@aws-sdk/types";
117
-
118
- export type ServiceInputTypes =
119
- | AssociateCreatedArtifactCommandInput
120
- | AssociateDiscoveredResourceCommandInput
121
- | CreateProgressUpdateStreamCommandInput
122
- | DeleteProgressUpdateStreamCommandInput
123
- | DescribeApplicationStateCommandInput
124
- | DescribeMigrationTaskCommandInput
125
- | DisassociateCreatedArtifactCommandInput
126
- | DisassociateDiscoveredResourceCommandInput
127
- | ImportMigrationTaskCommandInput
128
- | ListApplicationStatesCommandInput
129
- | ListCreatedArtifactsCommandInput
130
- | ListDiscoveredResourcesCommandInput
131
- | ListMigrationTasksCommandInput
132
- | ListProgressUpdateStreamsCommandInput
133
- | NotifyApplicationStateCommandInput
134
- | NotifyMigrationTaskStateCommandInput
135
- | PutResourceAttributesCommandInput;
136
-
137
- export type ServiceOutputTypes =
138
- | AssociateCreatedArtifactCommandOutput
139
- | AssociateDiscoveredResourceCommandOutput
140
- | CreateProgressUpdateStreamCommandOutput
141
- | DeleteProgressUpdateStreamCommandOutput
142
- | DescribeApplicationStateCommandOutput
143
- | DescribeMigrationTaskCommandOutput
144
- | DisassociateCreatedArtifactCommandOutput
145
- | DisassociateDiscoveredResourceCommandOutput
146
- | ImportMigrationTaskCommandOutput
147
- | ListApplicationStatesCommandOutput
148
- | ListCreatedArtifactsCommandOutput
149
- | ListDiscoveredResourcesCommandOutput
150
- | ListMigrationTasksCommandOutput
151
- | ListProgressUpdateStreamsCommandOutput
152
- | NotifyApplicationStateCommandOutput
153
- | NotifyMigrationTaskStateCommandOutput
154
- | PutResourceAttributesCommandOutput;
155
-
156
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
157
- /**
158
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
159
- */
160
- requestHandler?: __HttpHandler;
161
-
162
- /**
163
- * A constructor for a class implementing the {@link __Hash} interface
164
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
165
- * @internal
166
- */
167
- sha256?: __HashConstructor;
168
-
169
- /**
170
- * The function that will be used to convert strings into HTTP endpoints.
171
- * @internal
172
- */
173
- urlParser?: __UrlParser;
174
-
175
- /**
176
- * A function that can calculate the length of a request body.
177
- * @internal
178
- */
179
- bodyLengthChecker?: (body: any) => number | undefined;
180
-
181
- /**
182
- * A function that converts a stream into an array of bytes.
183
- * @internal
184
- */
185
- streamCollector?: __StreamCollector;
186
-
187
- /**
188
- * The function that will be used to convert a base64-encoded string to a byte array.
189
- * @internal
190
- */
191
- base64Decoder?: __Decoder;
192
-
193
- /**
194
- * The function that will be used to convert binary data to a base64-encoded string.
195
- * @internal
196
- */
197
- base64Encoder?: __Encoder;
198
-
199
- /**
200
- * The function that will be used to convert a UTF8-encoded string to a byte array.
201
- * @internal
202
- */
203
- utf8Decoder?: __Decoder;
204
-
205
- /**
206
- * The function that will be used to convert binary data to a UTF-8 encoded string.
207
- * @internal
208
- */
209
- utf8Encoder?: __Encoder;
210
-
211
- /**
212
- * The runtime environment.
213
- * @internal
214
- */
215
- runtime?: string;
216
-
217
- /**
218
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
219
- * trait of an operation.
220
- */
221
- disableHostPrefix?: boolean;
222
-
223
- /**
224
- * Value for how many times a request will be made at most in case of retry.
225
- */
226
- maxAttempts?: number | __Provider<number>;
227
-
228
- /**
229
- * Specifies which retry algorithm to use.
230
- */
231
- retryMode?: string | __Provider<string>;
232
-
233
- /**
234
- * Optional logger for logging debug/info/warn/error.
235
- */
236
- logger?: __Logger;
237
-
238
- /**
239
- * Unique service identifier.
240
- * @internal
241
- */
242
- serviceId?: string;
243
-
244
- /**
245
- * The AWS region to which this client will send requests
246
- */
247
- region?: string | __Provider<string>;
248
-
249
- /**
250
- * Default credentials provider; Not available in browser runtime.
251
- * @internal
252
- */
253
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
254
-
255
- /**
256
- * Fetch related hostname, signing name or signing region with given region.
257
- * @internal
258
- */
259
- regionInfoProvider?: RegionInfoProvider;
260
-
261
- /**
262
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
263
- * @internal
264
- */
265
- defaultUserAgentProvider?: Provider<__UserAgent>;
266
- }
267
-
268
- type MigrationHubClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
269
- ClientDefaults &
270
- RegionInputConfig &
271
- EndpointsInputConfig &
272
- RetryInputConfig &
273
- HostHeaderInputConfig &
274
- AwsAuthInputConfig &
275
- UserAgentInputConfig;
276
- /**
277
- * The configuration interface of MigrationHubClient class constructor that set the region, credentials and other options.
278
- */
279
- export interface MigrationHubClientConfig extends MigrationHubClientConfigType {}
280
-
281
- type MigrationHubClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
282
- Required<ClientDefaults> &
283
- RegionResolvedConfig &
284
- EndpointsResolvedConfig &
285
- RetryResolvedConfig &
286
- HostHeaderResolvedConfig &
287
- AwsAuthResolvedConfig &
288
- UserAgentResolvedConfig;
289
- /**
290
- * The resolved configuration interface of MigrationHubClient class. This is resolved and normalized from the {@link MigrationHubClientConfig | constructor configuration interface}.
291
- */
292
- export interface MigrationHubClientResolvedConfig extends MigrationHubClientResolvedConfigType {}
293
-
294
- /**
295
- * <p>The AWS Migration Hub API methods help to obtain server and application migration status
296
- * and integrate your resource-specific migration tool by providing a programmatic interface
297
- * to Migration Hub.</p>
298
- * <p>Remember that you must set your AWS Migration Hub home region before you call any of
299
- * these APIs, or a <code>HomeRegionNotSetException</code> error will be returned. Also, you
300
- * must make the API calls while in your home region.</p>
301
- */
302
- export class MigrationHubClient extends __Client<
303
- __HttpHandlerOptions,
304
- ServiceInputTypes,
305
- ServiceOutputTypes,
306
- MigrationHubClientResolvedConfig
307
- > {
308
- /**
309
- * The resolved configuration of MigrationHubClient class. This is resolved and normalized from the {@link MigrationHubClientConfig | constructor configuration interface}.
310
- */
311
- readonly config: MigrationHubClientResolvedConfig;
312
-
313
- constructor(configuration: MigrationHubClientConfig) {
314
- let _config_0 = __getRuntimeConfig(configuration);
315
- let _config_1 = resolveRegionConfig(_config_0);
316
- let _config_2 = resolveEndpointsConfig(_config_1);
317
- let _config_3 = resolveRetryConfig(_config_2);
318
- let _config_4 = resolveHostHeaderConfig(_config_3);
319
- let _config_5 = resolveAwsAuthConfig(_config_4);
320
- let _config_6 = resolveUserAgentConfig(_config_5);
321
- super(_config_6);
322
- this.config = _config_6;
323
- this.middlewareStack.use(getRetryPlugin(this.config));
324
- this.middlewareStack.use(getContentLengthPlugin(this.config));
325
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
326
- this.middlewareStack.use(getLoggerPlugin(this.config));
327
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
328
- this.middlewareStack.use(getUserAgentPlugin(this.config));
329
- }
330
-
331
- /**
332
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
333
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
334
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
335
- */
336
- destroy(): void {
337
- super.destroy();
338
- }
339
- }
@@ -1,111 +0,0 @@
1
- import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
2
- import { AssociateCreatedArtifactRequest, AssociateCreatedArtifactResult } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1AssociateCreatedArtifactCommand,
5
- serializeAws_json1_1AssociateCreatedArtifactCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface AssociateCreatedArtifactCommandInput extends AssociateCreatedArtifactRequest {}
21
- export interface AssociateCreatedArtifactCommandOutput extends AssociateCreatedArtifactResult, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Associates a created artifact of an AWS cloud resource, the target receiving the
25
- * migration, with the migration task performed by a migration tool. This API has the
26
- * following traits:</p>
27
- * <ul>
28
- * <li>
29
- * <p>Migration tools can call the <code>AssociateCreatedArtifact</code> operation to
30
- * indicate which AWS artifact is associated with a migration task.</p>
31
- * </li>
32
- * <li>
33
- * <p>The created artifact name must be provided in ARN (Amazon Resource Name) format
34
- * which will contain information about type and region; for example:
35
- * <code>arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b</code>.</p>
36
- * </li>
37
- * <li>
38
- * <p>Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance,
39
- * or DMS endpoint, etc.</p>
40
- * </li>
41
- * </ul>
42
- * @example
43
- * Use a bare-bones client and the command you need to make an API call.
44
- * ```javascript
45
- * import { MigrationHubClient, AssociateCreatedArtifactCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
46
- * // const { MigrationHubClient, AssociateCreatedArtifactCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
47
- * const client = new MigrationHubClient(config);
48
- * const command = new AssociateCreatedArtifactCommand(input);
49
- * const response = await client.send(command);
50
- * ```
51
- *
52
- * @see {@link AssociateCreatedArtifactCommandInput} for command's `input` shape.
53
- * @see {@link AssociateCreatedArtifactCommandOutput} for command's `response` shape.
54
- * @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
55
- *
56
- */
57
- export class AssociateCreatedArtifactCommand extends $Command<
58
- AssociateCreatedArtifactCommandInput,
59
- AssociateCreatedArtifactCommandOutput,
60
- MigrationHubClientResolvedConfig
61
- > {
62
- // Start section: command_properties
63
- // End section: command_properties
64
-
65
- constructor(readonly input: AssociateCreatedArtifactCommandInput) {
66
- // Start section: command_constructor
67
- super();
68
- // End section: command_constructor
69
- }
70
-
71
- /**
72
- * @internal
73
- */
74
- resolveMiddleware(
75
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
76
- configuration: MigrationHubClientResolvedConfig,
77
- options?: __HttpHandlerOptions
78
- ): Handler<AssociateCreatedArtifactCommandInput, AssociateCreatedArtifactCommandOutput> {
79
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
80
-
81
- const stack = clientStack.concat(this.middlewareStack);
82
-
83
- const { logger } = configuration;
84
- const clientName = "MigrationHubClient";
85
- const commandName = "AssociateCreatedArtifactCommand";
86
- const handlerExecutionContext: HandlerExecutionContext = {
87
- logger,
88
- clientName,
89
- commandName,
90
- inputFilterSensitiveLog: AssociateCreatedArtifactRequest.filterSensitiveLog,
91
- outputFilterSensitiveLog: AssociateCreatedArtifactResult.filterSensitiveLog,
92
- };
93
- const { requestHandler } = configuration;
94
- return stack.resolve(
95
- (request: FinalizeHandlerArguments<any>) =>
96
- requestHandler.handle(request.request as __HttpRequest, options || {}),
97
- handlerExecutionContext
98
- );
99
- }
100
-
101
- private serialize(input: AssociateCreatedArtifactCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
102
- return serializeAws_json1_1AssociateCreatedArtifactCommand(input, context);
103
- }
104
-
105
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AssociateCreatedArtifactCommandOutput> {
106
- return deserializeAws_json1_1AssociateCreatedArtifactCommand(output, context);
107
- }
108
-
109
- // Start section: command_body_extra
110
- // End section: command_body_extra
111
- }
@@ -1,98 +0,0 @@
1
- import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
2
- import { AssociateDiscoveredResourceRequest, AssociateDiscoveredResourceResult } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1AssociateDiscoveredResourceCommand,
5
- serializeAws_json1_1AssociateDiscoveredResourceCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface AssociateDiscoveredResourceCommandInput extends AssociateDiscoveredResourceRequest {}
21
- export interface AssociateDiscoveredResourceCommandOutput extends AssociateDiscoveredResourceResult, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Associates a discovered resource ID from Application Discovery Service with a migration
25
- * task.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { MigrationHubClient, AssociateDiscoveredResourceCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
30
- * // const { MigrationHubClient, AssociateDiscoveredResourceCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
31
- * const client = new MigrationHubClient(config);
32
- * const command = new AssociateDiscoveredResourceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link AssociateDiscoveredResourceCommandInput} for command's `input` shape.
37
- * @see {@link AssociateDiscoveredResourceCommandOutput} for command's `response` shape.
38
- * @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class AssociateDiscoveredResourceCommand extends $Command<
42
- AssociateDiscoveredResourceCommandInput,
43
- AssociateDiscoveredResourceCommandOutput,
44
- MigrationHubClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: AssociateDiscoveredResourceCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: MigrationHubClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<AssociateDiscoveredResourceCommandInput, AssociateDiscoveredResourceCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "MigrationHubClient";
69
- const commandName = "AssociateDiscoveredResourceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: AssociateDiscoveredResourceRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: AssociateDiscoveredResourceResult.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: AssociateDiscoveredResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1AssociateDiscoveredResourceCommand(input, context);
87
- }
88
-
89
- private deserialize(
90
- output: __HttpResponse,
91
- context: __SerdeContext
92
- ): Promise<AssociateDiscoveredResourceCommandOutput> {
93
- return deserializeAws_json1_1AssociateDiscoveredResourceCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,101 +0,0 @@
1
- import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
2
- import { CreateProgressUpdateStreamRequest, CreateProgressUpdateStreamResult } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1CreateProgressUpdateStreamCommand,
5
- serializeAws_json1_1CreateProgressUpdateStreamCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface CreateProgressUpdateStreamCommandInput extends CreateProgressUpdateStreamRequest {}
21
- export interface CreateProgressUpdateStreamCommandOutput extends CreateProgressUpdateStreamResult, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Creates a progress update stream which is an AWS resource used for access control as
25
- * well as a namespace for migration task names that is implicitly linked to your AWS account.
26
- * It must uniquely identify the migration tool as it is used for all updates made by the
27
- * tool; however, it does not need to be unique for each AWS account because it is scoped to
28
- * the AWS account.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { MigrationHubClient, CreateProgressUpdateStreamCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
33
- * // const { MigrationHubClient, CreateProgressUpdateStreamCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
34
- * const client = new MigrationHubClient(config);
35
- * const command = new CreateProgressUpdateStreamCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link CreateProgressUpdateStreamCommandInput} for command's `input` shape.
40
- * @see {@link CreateProgressUpdateStreamCommandOutput} for command's `response` shape.
41
- * @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class CreateProgressUpdateStreamCommand extends $Command<
45
- CreateProgressUpdateStreamCommandInput,
46
- CreateProgressUpdateStreamCommandOutput,
47
- MigrationHubClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: CreateProgressUpdateStreamCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: MigrationHubClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<CreateProgressUpdateStreamCommandInput, CreateProgressUpdateStreamCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "MigrationHubClient";
72
- const commandName = "CreateProgressUpdateStreamCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: CreateProgressUpdateStreamRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: CreateProgressUpdateStreamResult.filterSensitiveLog,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: CreateProgressUpdateStreamCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_json1_1CreateProgressUpdateStreamCommand(input, context);
90
- }
91
-
92
- private deserialize(
93
- output: __HttpResponse,
94
- context: __SerdeContext
95
- ): Promise<CreateProgressUpdateStreamCommandOutput> {
96
- return deserializeAws_json1_1CreateProgressUpdateStreamCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }