@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,127 +0,0 @@
1
- import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
2
- import { DeleteProgressUpdateStreamRequest, DeleteProgressUpdateStreamResult } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1DeleteProgressUpdateStreamCommand,
5
- serializeAws_json1_1DeleteProgressUpdateStreamCommand,
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 DeleteProgressUpdateStreamCommandInput extends DeleteProgressUpdateStreamRequest {}
21
- export interface DeleteProgressUpdateStreamCommandOutput extends DeleteProgressUpdateStreamResult, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Deletes a progress update stream, including all of its tasks, which was previously
25
- * created as an AWS resource used for access control. This API has the following
26
- * traits:</p>
27
- * <ul>
28
- * <li>
29
- * <p>The only parameter needed for <code>DeleteProgressUpdateStream</code> is the
30
- * stream name (same as a <code>CreateProgressUpdateStream</code> call).</p>
31
- * </li>
32
- * <li>
33
- * <p>The call will return, and a background process will asynchronously delete the
34
- * stream and all of its resources (tasks, associated resources, resource attributes,
35
- * created artifacts).</p>
36
- * </li>
37
- * <li>
38
- * <p>If the stream takes time to be deleted, it might still show up on a
39
- * <code>ListProgressUpdateStreams</code> call.</p>
40
- * </li>
41
- * <li>
42
- * <p>
43
- * <code>CreateProgressUpdateStream</code>, <code>ImportMigrationTask</code>,
44
- * <code>NotifyMigrationTaskState</code>, and all Associate[*] APIs related to the
45
- * tasks belonging to the stream will throw "InvalidInputException" if the stream of the
46
- * same name is in the process of being deleted.</p>
47
- * </li>
48
- * <li>
49
- * <p>Once the stream and all of its resources are deleted,
50
- * <code>CreateProgressUpdateStream</code> for a stream of the same name will
51
- * succeed, and that stream will be an entirely new logical resource (without any
52
- * resources associated with the old stream).</p>
53
- * </li>
54
- * </ul>
55
- * @example
56
- * Use a bare-bones client and the command you need to make an API call.
57
- * ```javascript
58
- * import { MigrationHubClient, DeleteProgressUpdateStreamCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
59
- * // const { MigrationHubClient, DeleteProgressUpdateStreamCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
60
- * const client = new MigrationHubClient(config);
61
- * const command = new DeleteProgressUpdateStreamCommand(input);
62
- * const response = await client.send(command);
63
- * ```
64
- *
65
- * @see {@link DeleteProgressUpdateStreamCommandInput} for command's `input` shape.
66
- * @see {@link DeleteProgressUpdateStreamCommandOutput} for command's `response` shape.
67
- * @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
68
- *
69
- */
70
- export class DeleteProgressUpdateStreamCommand extends $Command<
71
- DeleteProgressUpdateStreamCommandInput,
72
- DeleteProgressUpdateStreamCommandOutput,
73
- MigrationHubClientResolvedConfig
74
- > {
75
- // Start section: command_properties
76
- // End section: command_properties
77
-
78
- constructor(readonly input: DeleteProgressUpdateStreamCommandInput) {
79
- // Start section: command_constructor
80
- super();
81
- // End section: command_constructor
82
- }
83
-
84
- /**
85
- * @internal
86
- */
87
- resolveMiddleware(
88
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
89
- configuration: MigrationHubClientResolvedConfig,
90
- options?: __HttpHandlerOptions
91
- ): Handler<DeleteProgressUpdateStreamCommandInput, DeleteProgressUpdateStreamCommandOutput> {
92
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
93
-
94
- const stack = clientStack.concat(this.middlewareStack);
95
-
96
- const { logger } = configuration;
97
- const clientName = "MigrationHubClient";
98
- const commandName = "DeleteProgressUpdateStreamCommand";
99
- const handlerExecutionContext: HandlerExecutionContext = {
100
- logger,
101
- clientName,
102
- commandName,
103
- inputFilterSensitiveLog: DeleteProgressUpdateStreamRequest.filterSensitiveLog,
104
- outputFilterSensitiveLog: DeleteProgressUpdateStreamResult.filterSensitiveLog,
105
- };
106
- const { requestHandler } = configuration;
107
- return stack.resolve(
108
- (request: FinalizeHandlerArguments<any>) =>
109
- requestHandler.handle(request.request as __HttpRequest, options || {}),
110
- handlerExecutionContext
111
- );
112
- }
113
-
114
- private serialize(input: DeleteProgressUpdateStreamCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
115
- return serializeAws_json1_1DeleteProgressUpdateStreamCommand(input, context);
116
- }
117
-
118
- private deserialize(
119
- output: __HttpResponse,
120
- context: __SerdeContext
121
- ): Promise<DeleteProgressUpdateStreamCommandOutput> {
122
- return deserializeAws_json1_1DeleteProgressUpdateStreamCommand(output, context);
123
- }
124
-
125
- // Start section: command_body_extra
126
- // End section: command_body_extra
127
- }
@@ -1,94 +0,0 @@
1
- import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
2
- import { DescribeApplicationStateRequest, DescribeApplicationStateResult } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1DescribeApplicationStateCommand,
5
- serializeAws_json1_1DescribeApplicationStateCommand,
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 DescribeApplicationStateCommandInput extends DescribeApplicationStateRequest {}
21
- export interface DescribeApplicationStateCommandOutput extends DescribeApplicationStateResult, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Gets the migration status of an application.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MigrationHubClient, DescribeApplicationStateCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
29
- * // const { MigrationHubClient, DescribeApplicationStateCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
30
- * const client = new MigrationHubClient(config);
31
- * const command = new DescribeApplicationStateCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link DescribeApplicationStateCommandInput} for command's `input` shape.
36
- * @see {@link DescribeApplicationStateCommandOutput} for command's `response` shape.
37
- * @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class DescribeApplicationStateCommand extends $Command<
41
- DescribeApplicationStateCommandInput,
42
- DescribeApplicationStateCommandOutput,
43
- MigrationHubClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: DescribeApplicationStateCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: MigrationHubClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<DescribeApplicationStateCommandInput, DescribeApplicationStateCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "MigrationHubClient";
68
- const commandName = "DescribeApplicationStateCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: DescribeApplicationStateRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: DescribeApplicationStateResult.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: DescribeApplicationStateCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_json1_1DescribeApplicationStateCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeApplicationStateCommandOutput> {
89
- return deserializeAws_json1_1DescribeApplicationStateCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
2
- import { DescribeMigrationTaskRequest, DescribeMigrationTaskResult } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1DescribeMigrationTaskCommand,
5
- serializeAws_json1_1DescribeMigrationTaskCommand,
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 DescribeMigrationTaskCommandInput extends DescribeMigrationTaskRequest {}
21
- export interface DescribeMigrationTaskCommandOutput extends DescribeMigrationTaskResult, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Retrieves a list of all attributes associated with a specific migration task.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MigrationHubClient, DescribeMigrationTaskCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
29
- * // const { MigrationHubClient, DescribeMigrationTaskCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
30
- * const client = new MigrationHubClient(config);
31
- * const command = new DescribeMigrationTaskCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link DescribeMigrationTaskCommandInput} for command's `input` shape.
36
- * @see {@link DescribeMigrationTaskCommandOutput} for command's `response` shape.
37
- * @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class DescribeMigrationTaskCommand extends $Command<
41
- DescribeMigrationTaskCommandInput,
42
- DescribeMigrationTaskCommandOutput,
43
- MigrationHubClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: DescribeMigrationTaskCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: MigrationHubClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<DescribeMigrationTaskCommandInput, DescribeMigrationTaskCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "MigrationHubClient";
68
- const commandName = "DescribeMigrationTaskCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: DescribeMigrationTaskRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: DescribeMigrationTaskResult.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: DescribeMigrationTaskCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_json1_1DescribeMigrationTaskCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeMigrationTaskCommandOutput> {
89
- return deserializeAws_json1_1DescribeMigrationTaskCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,113 +0,0 @@
1
- import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
2
- import { DisassociateCreatedArtifactRequest, DisassociateCreatedArtifactResult } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1DisassociateCreatedArtifactCommand,
5
- serializeAws_json1_1DisassociateCreatedArtifactCommand,
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 DisassociateCreatedArtifactCommandInput extends DisassociateCreatedArtifactRequest {}
21
- export interface DisassociateCreatedArtifactCommandOutput extends DisassociateCreatedArtifactResult, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Disassociates a created artifact of an AWS resource with a migration task performed by a
25
- * migration tool that was previously associated. This API has the following traits:</p>
26
- * <ul>
27
- * <li>
28
- * <p>A migration user can call the <code>DisassociateCreatedArtifacts</code> operation
29
- * to disassociate a created AWS Artifact from a migration task.</p>
30
- * </li>
31
- * <li>
32
- * <p>The created artifact name must be provided in ARN (Amazon Resource Name) format
33
- * which will contain information about type and region; for example:
34
- * <code>arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b</code>.</p>
35
- * </li>
36
- * <li>
37
- * <p>Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance,
38
- * or RDS instance, etc.</p>
39
- * </li>
40
- * </ul>
41
- * @example
42
- * Use a bare-bones client and the command you need to make an API call.
43
- * ```javascript
44
- * import { MigrationHubClient, DisassociateCreatedArtifactCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
45
- * // const { MigrationHubClient, DisassociateCreatedArtifactCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
46
- * const client = new MigrationHubClient(config);
47
- * const command = new DisassociateCreatedArtifactCommand(input);
48
- * const response = await client.send(command);
49
- * ```
50
- *
51
- * @see {@link DisassociateCreatedArtifactCommandInput} for command's `input` shape.
52
- * @see {@link DisassociateCreatedArtifactCommandOutput} for command's `response` shape.
53
- * @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
54
- *
55
- */
56
- export class DisassociateCreatedArtifactCommand extends $Command<
57
- DisassociateCreatedArtifactCommandInput,
58
- DisassociateCreatedArtifactCommandOutput,
59
- MigrationHubClientResolvedConfig
60
- > {
61
- // Start section: command_properties
62
- // End section: command_properties
63
-
64
- constructor(readonly input: DisassociateCreatedArtifactCommandInput) {
65
- // Start section: command_constructor
66
- super();
67
- // End section: command_constructor
68
- }
69
-
70
- /**
71
- * @internal
72
- */
73
- resolveMiddleware(
74
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
75
- configuration: MigrationHubClientResolvedConfig,
76
- options?: __HttpHandlerOptions
77
- ): Handler<DisassociateCreatedArtifactCommandInput, DisassociateCreatedArtifactCommandOutput> {
78
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
79
-
80
- const stack = clientStack.concat(this.middlewareStack);
81
-
82
- const { logger } = configuration;
83
- const clientName = "MigrationHubClient";
84
- const commandName = "DisassociateCreatedArtifactCommand";
85
- const handlerExecutionContext: HandlerExecutionContext = {
86
- logger,
87
- clientName,
88
- commandName,
89
- inputFilterSensitiveLog: DisassociateCreatedArtifactRequest.filterSensitiveLog,
90
- outputFilterSensitiveLog: DisassociateCreatedArtifactResult.filterSensitiveLog,
91
- };
92
- const { requestHandler } = configuration;
93
- return stack.resolve(
94
- (request: FinalizeHandlerArguments<any>) =>
95
- requestHandler.handle(request.request as __HttpRequest, options || {}),
96
- handlerExecutionContext
97
- );
98
- }
99
-
100
- private serialize(input: DisassociateCreatedArtifactCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
101
- return serializeAws_json1_1DisassociateCreatedArtifactCommand(input, context);
102
- }
103
-
104
- private deserialize(
105
- output: __HttpResponse,
106
- context: __SerdeContext
107
- ): Promise<DisassociateCreatedArtifactCommandOutput> {
108
- return deserializeAws_json1_1DisassociateCreatedArtifactCommand(output, context);
109
- }
110
-
111
- // Start section: command_body_extra
112
- // End section: command_body_extra
113
- }
@@ -1,103 +0,0 @@
1
- import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
2
- import { DisassociateDiscoveredResourceRequest, DisassociateDiscoveredResourceResult } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1DisassociateDiscoveredResourceCommand,
5
- serializeAws_json1_1DisassociateDiscoveredResourceCommand,
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 DisassociateDiscoveredResourceCommandInput extends DisassociateDiscoveredResourceRequest {}
21
- export interface DisassociateDiscoveredResourceCommandOutput
22
- extends DisassociateDiscoveredResourceResult,
23
- __MetadataBearer {}
24
-
25
- /**
26
- * <p>Disassociate an Application Discovery Service discovered resource from a migration
27
- * task.</p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { MigrationHubClient, DisassociateDiscoveredResourceCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
32
- * // const { MigrationHubClient, DisassociateDiscoveredResourceCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
33
- * const client = new MigrationHubClient(config);
34
- * const command = new DisassociateDiscoveredResourceCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link DisassociateDiscoveredResourceCommandInput} for command's `input` shape.
39
- * @see {@link DisassociateDiscoveredResourceCommandOutput} for command's `response` shape.
40
- * @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- export class DisassociateDiscoveredResourceCommand extends $Command<
44
- DisassociateDiscoveredResourceCommandInput,
45
- DisassociateDiscoveredResourceCommandOutput,
46
- MigrationHubClientResolvedConfig
47
- > {
48
- // Start section: command_properties
49
- // End section: command_properties
50
-
51
- constructor(readonly input: DisassociateDiscoveredResourceCommandInput) {
52
- // Start section: command_constructor
53
- super();
54
- // End section: command_constructor
55
- }
56
-
57
- /**
58
- * @internal
59
- */
60
- resolveMiddleware(
61
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
62
- configuration: MigrationHubClientResolvedConfig,
63
- options?: __HttpHandlerOptions
64
- ): Handler<DisassociateDiscoveredResourceCommandInput, DisassociateDiscoveredResourceCommandOutput> {
65
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66
-
67
- const stack = clientStack.concat(this.middlewareStack);
68
-
69
- const { logger } = configuration;
70
- const clientName = "MigrationHubClient";
71
- const commandName = "DisassociateDiscoveredResourceCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: DisassociateDiscoveredResourceRequest.filterSensitiveLog,
77
- outputFilterSensitiveLog: DisassociateDiscoveredResourceResult.filterSensitiveLog,
78
- };
79
- const { requestHandler } = configuration;
80
- return stack.resolve(
81
- (request: FinalizeHandlerArguments<any>) =>
82
- requestHandler.handle(request.request as __HttpRequest, options || {}),
83
- handlerExecutionContext
84
- );
85
- }
86
-
87
- private serialize(
88
- input: DisassociateDiscoveredResourceCommandInput,
89
- context: __SerdeContext
90
- ): Promise<__HttpRequest> {
91
- return serializeAws_json1_1DisassociateDiscoveredResourceCommand(input, context);
92
- }
93
-
94
- private deserialize(
95
- output: __HttpResponse,
96
- context: __SerdeContext
97
- ): Promise<DisassociateDiscoveredResourceCommandOutput> {
98
- return deserializeAws_json1_1DisassociateDiscoveredResourceCommand(output, context);
99
- }
100
-
101
- // Start section: command_body_extra
102
- // End section: command_body_extra
103
- }
@@ -1,97 +0,0 @@
1
- import { MigrationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubClient";
2
- import { ImportMigrationTaskRequest, ImportMigrationTaskResult } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ImportMigrationTaskCommand,
5
- serializeAws_json1_1ImportMigrationTaskCommand,
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 ImportMigrationTaskCommandInput extends ImportMigrationTaskRequest {}
21
- export interface ImportMigrationTaskCommandOutput extends ImportMigrationTaskResult, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Registers a new migration task which represents a server, database, etc., being migrated
25
- * to AWS by a migration tool.</p>
26
- * <p>This API is a prerequisite to calling the <code>NotifyMigrationTaskState</code> API as
27
- * the migration tool must first register the migration task with Migration Hub.</p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { MigrationHubClient, ImportMigrationTaskCommand } from "@aws-sdk/client-migration-hub"; // ES Modules import
32
- * // const { MigrationHubClient, ImportMigrationTaskCommand } = require("@aws-sdk/client-migration-hub"); // CommonJS import
33
- * const client = new MigrationHubClient(config);
34
- * const command = new ImportMigrationTaskCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link ImportMigrationTaskCommandInput} for command's `input` shape.
39
- * @see {@link ImportMigrationTaskCommandOutput} for command's `response` shape.
40
- * @see {@link MigrationHubClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- export class ImportMigrationTaskCommand extends $Command<
44
- ImportMigrationTaskCommandInput,
45
- ImportMigrationTaskCommandOutput,
46
- MigrationHubClientResolvedConfig
47
- > {
48
- // Start section: command_properties
49
- // End section: command_properties
50
-
51
- constructor(readonly input: ImportMigrationTaskCommandInput) {
52
- // Start section: command_constructor
53
- super();
54
- // End section: command_constructor
55
- }
56
-
57
- /**
58
- * @internal
59
- */
60
- resolveMiddleware(
61
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
62
- configuration: MigrationHubClientResolvedConfig,
63
- options?: __HttpHandlerOptions
64
- ): Handler<ImportMigrationTaskCommandInput, ImportMigrationTaskCommandOutput> {
65
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66
-
67
- const stack = clientStack.concat(this.middlewareStack);
68
-
69
- const { logger } = configuration;
70
- const clientName = "MigrationHubClient";
71
- const commandName = "ImportMigrationTaskCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: ImportMigrationTaskRequest.filterSensitiveLog,
77
- outputFilterSensitiveLog: ImportMigrationTaskResult.filterSensitiveLog,
78
- };
79
- const { requestHandler } = configuration;
80
- return stack.resolve(
81
- (request: FinalizeHandlerArguments<any>) =>
82
- requestHandler.handle(request.request as __HttpRequest, options || {}),
83
- handlerExecutionContext
84
- );
85
- }
86
-
87
- private serialize(input: ImportMigrationTaskCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
88
- return serializeAws_json1_1ImportMigrationTaskCommand(input, context);
89
- }
90
-
91
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ImportMigrationTaskCommandOutput> {
92
- return deserializeAws_json1_1ImportMigrationTaskCommand(output, context);
93
- }
94
-
95
- // Start section: command_body_extra
96
- // End section: command_body_extra
97
- }