@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,9 +1,6 @@
1
1
  import { __assign } from "tslib";
2
2
  export var AccessDeniedException;
3
3
  (function (AccessDeniedException) {
4
- /**
5
- * @internal
6
- */
7
4
  AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
8
5
  })(AccessDeniedException || (AccessDeniedException = {}));
9
6
  export var ApplicationStatus;
@@ -14,163 +11,94 @@ export var ApplicationStatus;
14
11
  })(ApplicationStatus || (ApplicationStatus = {}));
15
12
  export var ApplicationState;
16
13
  (function (ApplicationState) {
17
- /**
18
- * @internal
19
- */
20
14
  ApplicationState.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
21
15
  })(ApplicationState || (ApplicationState = {}));
22
16
  export var CreatedArtifact;
23
17
  (function (CreatedArtifact) {
24
- /**
25
- * @internal
26
- */
27
18
  CreatedArtifact.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
28
19
  })(CreatedArtifact || (CreatedArtifact = {}));
29
20
  export var AssociateCreatedArtifactRequest;
30
21
  (function (AssociateCreatedArtifactRequest) {
31
- /**
32
- * @internal
33
- */
34
22
  AssociateCreatedArtifactRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
35
23
  })(AssociateCreatedArtifactRequest || (AssociateCreatedArtifactRequest = {}));
36
24
  export var AssociateCreatedArtifactResult;
37
25
  (function (AssociateCreatedArtifactResult) {
38
- /**
39
- * @internal
40
- */
41
26
  AssociateCreatedArtifactResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
42
27
  })(AssociateCreatedArtifactResult || (AssociateCreatedArtifactResult = {}));
43
28
  export var DryRunOperation;
44
29
  (function (DryRunOperation) {
45
- /**
46
- * @internal
47
- */
48
30
  DryRunOperation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
49
31
  })(DryRunOperation || (DryRunOperation = {}));
50
32
  export var HomeRegionNotSetException;
51
33
  (function (HomeRegionNotSetException) {
52
- /**
53
- * @internal
54
- */
55
34
  HomeRegionNotSetException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
56
35
  })(HomeRegionNotSetException || (HomeRegionNotSetException = {}));
57
36
  export var InternalServerError;
58
37
  (function (InternalServerError) {
59
- /**
60
- * @internal
61
- */
62
38
  InternalServerError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
63
39
  })(InternalServerError || (InternalServerError = {}));
64
40
  export var InvalidInputException;
65
41
  (function (InvalidInputException) {
66
- /**
67
- * @internal
68
- */
69
42
  InvalidInputException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
70
43
  })(InvalidInputException || (InvalidInputException = {}));
71
44
  export var ResourceNotFoundException;
72
45
  (function (ResourceNotFoundException) {
73
- /**
74
- * @internal
75
- */
76
46
  ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
77
47
  })(ResourceNotFoundException || (ResourceNotFoundException = {}));
78
48
  export var ServiceUnavailableException;
79
49
  (function (ServiceUnavailableException) {
80
- /**
81
- * @internal
82
- */
83
50
  ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
84
51
  })(ServiceUnavailableException || (ServiceUnavailableException = {}));
85
52
  export var ThrottlingException;
86
53
  (function (ThrottlingException) {
87
- /**
88
- * @internal
89
- */
90
54
  ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
91
55
  })(ThrottlingException || (ThrottlingException = {}));
92
56
  export var UnauthorizedOperation;
93
57
  (function (UnauthorizedOperation) {
94
- /**
95
- * @internal
96
- */
97
58
  UnauthorizedOperation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
59
  })(UnauthorizedOperation || (UnauthorizedOperation = {}));
99
60
  export var DiscoveredResource;
100
61
  (function (DiscoveredResource) {
101
- /**
102
- * @internal
103
- */
104
62
  DiscoveredResource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
105
63
  })(DiscoveredResource || (DiscoveredResource = {}));
106
64
  export var AssociateDiscoveredResourceRequest;
107
65
  (function (AssociateDiscoveredResourceRequest) {
108
- /**
109
- * @internal
110
- */
111
66
  AssociateDiscoveredResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
112
67
  })(AssociateDiscoveredResourceRequest || (AssociateDiscoveredResourceRequest = {}));
113
68
  export var AssociateDiscoveredResourceResult;
114
69
  (function (AssociateDiscoveredResourceResult) {
115
- /**
116
- * @internal
117
- */
118
70
  AssociateDiscoveredResourceResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
71
  })(AssociateDiscoveredResourceResult || (AssociateDiscoveredResourceResult = {}));
120
72
  export var PolicyErrorException;
121
73
  (function (PolicyErrorException) {
122
- /**
123
- * @internal
124
- */
125
74
  PolicyErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
126
75
  })(PolicyErrorException || (PolicyErrorException = {}));
127
76
  export var CreateProgressUpdateStreamRequest;
128
77
  (function (CreateProgressUpdateStreamRequest) {
129
- /**
130
- * @internal
131
- */
132
78
  CreateProgressUpdateStreamRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
79
  })(CreateProgressUpdateStreamRequest || (CreateProgressUpdateStreamRequest = {}));
134
80
  export var CreateProgressUpdateStreamResult;
135
81
  (function (CreateProgressUpdateStreamResult) {
136
- /**
137
- * @internal
138
- */
139
82
  CreateProgressUpdateStreamResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
83
  })(CreateProgressUpdateStreamResult || (CreateProgressUpdateStreamResult = {}));
141
84
  export var DeleteProgressUpdateStreamRequest;
142
85
  (function (DeleteProgressUpdateStreamRequest) {
143
- /**
144
- * @internal
145
- */
146
86
  DeleteProgressUpdateStreamRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
87
  })(DeleteProgressUpdateStreamRequest || (DeleteProgressUpdateStreamRequest = {}));
148
88
  export var DeleteProgressUpdateStreamResult;
149
89
  (function (DeleteProgressUpdateStreamResult) {
150
- /**
151
- * @internal
152
- */
153
90
  DeleteProgressUpdateStreamResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
154
91
  })(DeleteProgressUpdateStreamResult || (DeleteProgressUpdateStreamResult = {}));
155
92
  export var DescribeApplicationStateRequest;
156
93
  (function (DescribeApplicationStateRequest) {
157
- /**
158
- * @internal
159
- */
160
94
  DescribeApplicationStateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
161
95
  })(DescribeApplicationStateRequest || (DescribeApplicationStateRequest = {}));
162
96
  export var DescribeApplicationStateResult;
163
97
  (function (DescribeApplicationStateResult) {
164
- /**
165
- * @internal
166
- */
167
98
  DescribeApplicationStateResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
168
99
  })(DescribeApplicationStateResult || (DescribeApplicationStateResult = {}));
169
100
  export var DescribeMigrationTaskRequest;
170
101
  (function (DescribeMigrationTaskRequest) {
171
- /**
172
- * @internal
173
- */
174
102
  DescribeMigrationTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
175
103
  })(DescribeMigrationTaskRequest || (DescribeMigrationTaskRequest = {}));
176
104
  export var ResourceAttributeType;
@@ -188,9 +116,6 @@ export var ResourceAttributeType;
188
116
  })(ResourceAttributeType || (ResourceAttributeType = {}));
189
117
  export var ResourceAttribute;
190
118
  (function (ResourceAttribute) {
191
- /**
192
- * @internal
193
- */
194
119
  ResourceAttribute.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
195
120
  })(ResourceAttribute || (ResourceAttribute = {}));
196
121
  export var Status;
@@ -202,191 +127,109 @@ export var Status;
202
127
  })(Status || (Status = {}));
203
128
  export var Task;
204
129
  (function (Task) {
205
- /**
206
- * @internal
207
- */
208
130
  Task.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
209
131
  })(Task || (Task = {}));
210
132
  export var MigrationTask;
211
133
  (function (MigrationTask) {
212
- /**
213
- * @internal
214
- */
215
134
  MigrationTask.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
216
135
  })(MigrationTask || (MigrationTask = {}));
217
136
  export var DescribeMigrationTaskResult;
218
137
  (function (DescribeMigrationTaskResult) {
219
- /**
220
- * @internal
221
- */
222
138
  DescribeMigrationTaskResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
223
139
  })(DescribeMigrationTaskResult || (DescribeMigrationTaskResult = {}));
224
140
  export var DisassociateCreatedArtifactRequest;
225
141
  (function (DisassociateCreatedArtifactRequest) {
226
- /**
227
- * @internal
228
- */
229
142
  DisassociateCreatedArtifactRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
230
143
  })(DisassociateCreatedArtifactRequest || (DisassociateCreatedArtifactRequest = {}));
231
144
  export var DisassociateCreatedArtifactResult;
232
145
  (function (DisassociateCreatedArtifactResult) {
233
- /**
234
- * @internal
235
- */
236
146
  DisassociateCreatedArtifactResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
237
147
  })(DisassociateCreatedArtifactResult || (DisassociateCreatedArtifactResult = {}));
238
148
  export var DisassociateDiscoveredResourceRequest;
239
149
  (function (DisassociateDiscoveredResourceRequest) {
240
- /**
241
- * @internal
242
- */
243
150
  DisassociateDiscoveredResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
244
151
  })(DisassociateDiscoveredResourceRequest || (DisassociateDiscoveredResourceRequest = {}));
245
152
  export var DisassociateDiscoveredResourceResult;
246
153
  (function (DisassociateDiscoveredResourceResult) {
247
- /**
248
- * @internal
249
- */
250
154
  DisassociateDiscoveredResourceResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
251
155
  })(DisassociateDiscoveredResourceResult || (DisassociateDiscoveredResourceResult = {}));
252
156
  export var ImportMigrationTaskRequest;
253
157
  (function (ImportMigrationTaskRequest) {
254
- /**
255
- * @internal
256
- */
257
158
  ImportMigrationTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
258
159
  })(ImportMigrationTaskRequest || (ImportMigrationTaskRequest = {}));
259
160
  export var ImportMigrationTaskResult;
260
161
  (function (ImportMigrationTaskResult) {
261
- /**
262
- * @internal
263
- */
264
162
  ImportMigrationTaskResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
265
163
  })(ImportMigrationTaskResult || (ImportMigrationTaskResult = {}));
266
164
  export var ListApplicationStatesRequest;
267
165
  (function (ListApplicationStatesRequest) {
268
- /**
269
- * @internal
270
- */
271
166
  ListApplicationStatesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
272
167
  })(ListApplicationStatesRequest || (ListApplicationStatesRequest = {}));
273
168
  export var ListApplicationStatesResult;
274
169
  (function (ListApplicationStatesResult) {
275
- /**
276
- * @internal
277
- */
278
170
  ListApplicationStatesResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
279
171
  })(ListApplicationStatesResult || (ListApplicationStatesResult = {}));
280
172
  export var ListCreatedArtifactsRequest;
281
173
  (function (ListCreatedArtifactsRequest) {
282
- /**
283
- * @internal
284
- */
285
174
  ListCreatedArtifactsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
286
175
  })(ListCreatedArtifactsRequest || (ListCreatedArtifactsRequest = {}));
287
176
  export var ListCreatedArtifactsResult;
288
177
  (function (ListCreatedArtifactsResult) {
289
- /**
290
- * @internal
291
- */
292
178
  ListCreatedArtifactsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
293
179
  })(ListCreatedArtifactsResult || (ListCreatedArtifactsResult = {}));
294
180
  export var ListDiscoveredResourcesRequest;
295
181
  (function (ListDiscoveredResourcesRequest) {
296
- /**
297
- * @internal
298
- */
299
182
  ListDiscoveredResourcesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
300
183
  })(ListDiscoveredResourcesRequest || (ListDiscoveredResourcesRequest = {}));
301
184
  export var ListDiscoveredResourcesResult;
302
185
  (function (ListDiscoveredResourcesResult) {
303
- /**
304
- * @internal
305
- */
306
186
  ListDiscoveredResourcesResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
307
187
  })(ListDiscoveredResourcesResult || (ListDiscoveredResourcesResult = {}));
308
188
  export var ListMigrationTasksRequest;
309
189
  (function (ListMigrationTasksRequest) {
310
- /**
311
- * @internal
312
- */
313
190
  ListMigrationTasksRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
314
191
  })(ListMigrationTasksRequest || (ListMigrationTasksRequest = {}));
315
192
  export var MigrationTaskSummary;
316
193
  (function (MigrationTaskSummary) {
317
- /**
318
- * @internal
319
- */
320
194
  MigrationTaskSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
321
195
  })(MigrationTaskSummary || (MigrationTaskSummary = {}));
322
196
  export var ListMigrationTasksResult;
323
197
  (function (ListMigrationTasksResult) {
324
- /**
325
- * @internal
326
- */
327
198
  ListMigrationTasksResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
328
199
  })(ListMigrationTasksResult || (ListMigrationTasksResult = {}));
329
200
  export var ListProgressUpdateStreamsRequest;
330
201
  (function (ListProgressUpdateStreamsRequest) {
331
- /**
332
- * @internal
333
- */
334
202
  ListProgressUpdateStreamsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
335
203
  })(ListProgressUpdateStreamsRequest || (ListProgressUpdateStreamsRequest = {}));
336
204
  export var ProgressUpdateStreamSummary;
337
205
  (function (ProgressUpdateStreamSummary) {
338
- /**
339
- * @internal
340
- */
341
206
  ProgressUpdateStreamSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
342
207
  })(ProgressUpdateStreamSummary || (ProgressUpdateStreamSummary = {}));
343
208
  export var ListProgressUpdateStreamsResult;
344
209
  (function (ListProgressUpdateStreamsResult) {
345
- /**
346
- * @internal
347
- */
348
210
  ListProgressUpdateStreamsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
349
211
  })(ListProgressUpdateStreamsResult || (ListProgressUpdateStreamsResult = {}));
350
212
  export var NotifyApplicationStateRequest;
351
213
  (function (NotifyApplicationStateRequest) {
352
- /**
353
- * @internal
354
- */
355
214
  NotifyApplicationStateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
356
215
  })(NotifyApplicationStateRequest || (NotifyApplicationStateRequest = {}));
357
216
  export var NotifyApplicationStateResult;
358
217
  (function (NotifyApplicationStateResult) {
359
- /**
360
- * @internal
361
- */
362
218
  NotifyApplicationStateResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
363
219
  })(NotifyApplicationStateResult || (NotifyApplicationStateResult = {}));
364
220
  export var NotifyMigrationTaskStateRequest;
365
221
  (function (NotifyMigrationTaskStateRequest) {
366
- /**
367
- * @internal
368
- */
369
222
  NotifyMigrationTaskStateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
370
223
  })(NotifyMigrationTaskStateRequest || (NotifyMigrationTaskStateRequest = {}));
371
224
  export var NotifyMigrationTaskStateResult;
372
225
  (function (NotifyMigrationTaskStateResult) {
373
- /**
374
- * @internal
375
- */
376
226
  NotifyMigrationTaskStateResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
377
227
  })(NotifyMigrationTaskStateResult || (NotifyMigrationTaskStateResult = {}));
378
228
  export var PutResourceAttributesRequest;
379
229
  (function (PutResourceAttributesRequest) {
380
- /**
381
- * @internal
382
- */
383
230
  PutResourceAttributesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
384
231
  })(PutResourceAttributesRequest || (PutResourceAttributesRequest = {}));
385
232
  export var PutResourceAttributesResult;
386
233
  (function (PutResourceAttributesResult) {
387
- /**
388
- * @internal
389
- */
390
234
  PutResourceAttributesResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
391
235
  })(PutResourceAttributesResult || (PutResourceAttributesResult = {}));
392
- //# sourceMappingURL=models_0.js.map
@@ -0,0 +1 @@
1
+ export {};
@@ -1,10 +1,7 @@
1
1
  import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListApplicationStatesCommand, } from "../commands/ListApplicationStatesCommand";
2
3
  import { MigrationHub } from "../MigrationHub";
3
4
  import { MigrationHubClient } from "../MigrationHubClient";
4
- import { ListApplicationStatesCommand, } from "../commands/ListApplicationStatesCommand";
5
- /**
6
- * @private
7
- */
8
5
  var makePagedClientRequest = function (client, input) {
9
6
  var args = [];
10
7
  for (var _i = 2; _i < arguments.length; _i++) {
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
13
10
  return __awaiter(void 0, void 0, void 0, function () {
14
11
  return __generator(this, function (_a) {
15
12
  switch (_a.label) {
16
- case 0: return [4 /*yield*/, client.send.apply(client, __spreadArray([new ListApplicationStatesCommand(input)], __read(args)))];
17
- case 1:
18
- // @ts-ignore
19
- return [2 /*return*/, _a.sent()];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListApplicationStatesCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
20
15
  }
21
16
  });
22
17
  });
23
18
  };
24
- /**
25
- * @private
26
- */
27
19
  var makePagedRequest = function (client, input) {
28
20
  var args = [];
29
21
  for (var _i = 2; _i < arguments.length; _i++) {
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
32
24
  return __awaiter(void 0, void 0, void 0, function () {
33
25
  return __generator(this, function (_a) {
34
26
  switch (_a.label) {
35
- case 0: return [4 /*yield*/, client.listApplicationStates.apply(client, __spreadArray([input], __read(args)))];
36
- case 1:
37
- // @ts-ignore
38
- return [2 /*return*/, _a.sent()];
27
+ case 0: return [4, client.listApplicationStates.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
39
29
  }
40
30
  });
41
31
  });
@@ -54,34 +44,31 @@ export function paginateListApplicationStates(config, input) {
54
44
  hasNext = true;
55
45
  _a.label = 1;
56
46
  case 1:
57
- if (!hasNext) return [3 /*break*/, 9];
47
+ if (!hasNext) return [3, 9];
58
48
  input.NextToken = token;
59
49
  input["MaxResults"] = config.pageSize;
60
- if (!(config.client instanceof MigrationHub)) return [3 /*break*/, 3];
61
- return [4 /*yield*/, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
50
+ if (!(config.client instanceof MigrationHub)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
62
52
  case 2:
63
53
  page = _a.sent();
64
- return [3 /*break*/, 6];
54
+ return [3, 6];
65
55
  case 3:
66
- if (!(config.client instanceof MigrationHubClient)) return [3 /*break*/, 5];
67
- return [4 /*yield*/, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
56
+ if (!(config.client instanceof MigrationHubClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
68
58
  case 4:
69
59
  page = _a.sent();
70
- return [3 /*break*/, 6];
60
+ return [3, 6];
71
61
  case 5: throw new Error("Invalid client, expected MigrationHub | MigrationHubClient");
72
- case 6: return [4 /*yield*/, __await(page)];
73
- case 7: return [4 /*yield*/, _a.sent()];
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
74
64
  case 8:
75
65
  _a.sent();
76
66
  token = page.NextToken;
77
67
  hasNext = !!token;
78
- return [3 /*break*/, 1];
79
- case 9: return [4 /*yield*/, __await(undefined)];
80
- case 10:
81
- // @ts-ignore
82
- return [2 /*return*/, _a.sent()];
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
83
71
  }
84
72
  });
85
73
  });
86
74
  }
87
- //# sourceMappingURL=ListApplicationStatesPaginator.js.map
@@ -1,10 +1,7 @@
1
1
  import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListCreatedArtifactsCommand, } from "../commands/ListCreatedArtifactsCommand";
2
3
  import { MigrationHub } from "../MigrationHub";
3
4
  import { MigrationHubClient } from "../MigrationHubClient";
4
- import { ListCreatedArtifactsCommand, } from "../commands/ListCreatedArtifactsCommand";
5
- /**
6
- * @private
7
- */
8
5
  var makePagedClientRequest = function (client, input) {
9
6
  var args = [];
10
7
  for (var _i = 2; _i < arguments.length; _i++) {
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
13
10
  return __awaiter(void 0, void 0, void 0, function () {
14
11
  return __generator(this, function (_a) {
15
12
  switch (_a.label) {
16
- case 0: return [4 /*yield*/, client.send.apply(client, __spreadArray([new ListCreatedArtifactsCommand(input)], __read(args)))];
17
- case 1:
18
- // @ts-ignore
19
- return [2 /*return*/, _a.sent()];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListCreatedArtifactsCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
20
15
  }
21
16
  });
22
17
  });
23
18
  };
24
- /**
25
- * @private
26
- */
27
19
  var makePagedRequest = function (client, input) {
28
20
  var args = [];
29
21
  for (var _i = 2; _i < arguments.length; _i++) {
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
32
24
  return __awaiter(void 0, void 0, void 0, function () {
33
25
  return __generator(this, function (_a) {
34
26
  switch (_a.label) {
35
- case 0: return [4 /*yield*/, client.listCreatedArtifacts.apply(client, __spreadArray([input], __read(args)))];
36
- case 1:
37
- // @ts-ignore
38
- return [2 /*return*/, _a.sent()];
27
+ case 0: return [4, client.listCreatedArtifacts.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
39
29
  }
40
30
  });
41
31
  });
@@ -54,34 +44,31 @@ export function paginateListCreatedArtifacts(config, input) {
54
44
  hasNext = true;
55
45
  _a.label = 1;
56
46
  case 1:
57
- if (!hasNext) return [3 /*break*/, 9];
47
+ if (!hasNext) return [3, 9];
58
48
  input.NextToken = token;
59
49
  input["MaxResults"] = config.pageSize;
60
- if (!(config.client instanceof MigrationHub)) return [3 /*break*/, 3];
61
- return [4 /*yield*/, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
50
+ if (!(config.client instanceof MigrationHub)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
62
52
  case 2:
63
53
  page = _a.sent();
64
- return [3 /*break*/, 6];
54
+ return [3, 6];
65
55
  case 3:
66
- if (!(config.client instanceof MigrationHubClient)) return [3 /*break*/, 5];
67
- return [4 /*yield*/, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
56
+ if (!(config.client instanceof MigrationHubClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
68
58
  case 4:
69
59
  page = _a.sent();
70
- return [3 /*break*/, 6];
60
+ return [3, 6];
71
61
  case 5: throw new Error("Invalid client, expected MigrationHub | MigrationHubClient");
72
- case 6: return [4 /*yield*/, __await(page)];
73
- case 7: return [4 /*yield*/, _a.sent()];
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
74
64
  case 8:
75
65
  _a.sent();
76
66
  token = page.NextToken;
77
67
  hasNext = !!token;
78
- return [3 /*break*/, 1];
79
- case 9: return [4 /*yield*/, __await(undefined)];
80
- case 10:
81
- // @ts-ignore
82
- return [2 /*return*/, _a.sent()];
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
83
71
  }
84
72
  });
85
73
  });
86
74
  }
87
- //# sourceMappingURL=ListCreatedArtifactsPaginator.js.map
@@ -1,10 +1,7 @@
1
1
  import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListDiscoveredResourcesCommand, } from "../commands/ListDiscoveredResourcesCommand";
2
3
  import { MigrationHub } from "../MigrationHub";
3
4
  import { MigrationHubClient } from "../MigrationHubClient";
4
- import { ListDiscoveredResourcesCommand, } from "../commands/ListDiscoveredResourcesCommand";
5
- /**
6
- * @private
7
- */
8
5
  var makePagedClientRequest = function (client, input) {
9
6
  var args = [];
10
7
  for (var _i = 2; _i < arguments.length; _i++) {
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
13
10
  return __awaiter(void 0, void 0, void 0, function () {
14
11
  return __generator(this, function (_a) {
15
12
  switch (_a.label) {
16
- case 0: return [4 /*yield*/, client.send.apply(client, __spreadArray([new ListDiscoveredResourcesCommand(input)], __read(args)))];
17
- case 1:
18
- // @ts-ignore
19
- return [2 /*return*/, _a.sent()];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListDiscoveredResourcesCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
20
15
  }
21
16
  });
22
17
  });
23
18
  };
24
- /**
25
- * @private
26
- */
27
19
  var makePagedRequest = function (client, input) {
28
20
  var args = [];
29
21
  for (var _i = 2; _i < arguments.length; _i++) {
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
32
24
  return __awaiter(void 0, void 0, void 0, function () {
33
25
  return __generator(this, function (_a) {
34
26
  switch (_a.label) {
35
- case 0: return [4 /*yield*/, client.listDiscoveredResources.apply(client, __spreadArray([input], __read(args)))];
36
- case 1:
37
- // @ts-ignore
38
- return [2 /*return*/, _a.sent()];
27
+ case 0: return [4, client.listDiscoveredResources.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
39
29
  }
40
30
  });
41
31
  });
@@ -54,34 +44,31 @@ export function paginateListDiscoveredResources(config, input) {
54
44
  hasNext = true;
55
45
  _a.label = 1;
56
46
  case 1:
57
- if (!hasNext) return [3 /*break*/, 9];
47
+ if (!hasNext) return [3, 9];
58
48
  input.NextToken = token;
59
49
  input["MaxResults"] = config.pageSize;
60
- if (!(config.client instanceof MigrationHub)) return [3 /*break*/, 3];
61
- return [4 /*yield*/, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
50
+ if (!(config.client instanceof MigrationHub)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
62
52
  case 2:
63
53
  page = _a.sent();
64
- return [3 /*break*/, 6];
54
+ return [3, 6];
65
55
  case 3:
66
- if (!(config.client instanceof MigrationHubClient)) return [3 /*break*/, 5];
67
- return [4 /*yield*/, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
56
+ if (!(config.client instanceof MigrationHubClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
68
58
  case 4:
69
59
  page = _a.sent();
70
- return [3 /*break*/, 6];
60
+ return [3, 6];
71
61
  case 5: throw new Error("Invalid client, expected MigrationHub | MigrationHubClient");
72
- case 6: return [4 /*yield*/, __await(page)];
73
- case 7: return [4 /*yield*/, _a.sent()];
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
74
64
  case 8:
75
65
  _a.sent();
76
66
  token = page.NextToken;
77
67
  hasNext = !!token;
78
- return [3 /*break*/, 1];
79
- case 9: return [4 /*yield*/, __await(undefined)];
80
- case 10:
81
- // @ts-ignore
82
- return [2 /*return*/, _a.sent()];
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
83
71
  }
84
72
  });
85
73
  });
86
74
  }
87
- //# sourceMappingURL=ListDiscoveredResourcesPaginator.js.map