@aws-sdk/client-mgn 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 (310) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/Mgn.js +1 -5
  3. package/{dist/cjs → dist-cjs}/MgnClient.js +8 -17
  4. package/{dist/cjs → dist-cjs}/commands/ChangeServerLifeCycleStateCommand.js +2 -27
  5. package/{dist/cjs → dist-cjs}/commands/CreateReplicationConfigurationTemplateCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/DeleteJobCommand.js +2 -27
  7. package/{dist/cjs → dist-cjs}/commands/DeleteReplicationConfigurationTemplateCommand.js +2 -27
  8. package/{dist/cjs → dist-cjs}/commands/DeleteSourceServerCommand.js +2 -27
  9. package/{dist/cjs → dist-cjs}/commands/DescribeJobLogItemsCommand.js +2 -27
  10. package/{dist/cjs → dist-cjs}/commands/DescribeJobsCommand.js +2 -27
  11. package/{dist/cjs → dist-cjs}/commands/DescribeReplicationConfigurationTemplatesCommand.js +2 -27
  12. package/{dist/cjs → dist-cjs}/commands/DescribeSourceServersCommand.js +2 -27
  13. package/dist-cjs/commands/DisconnectFromServiceCommand.js +36 -0
  14. package/dist-cjs/commands/FinalizeCutoverCommand.js +36 -0
  15. package/{dist/cjs → dist-cjs}/commands/GetLaunchConfigurationCommand.js +2 -27
  16. package/{dist/cjs → dist-cjs}/commands/GetReplicationConfigurationCommand.js +2 -27
  17. package/{dist/cjs → dist-cjs}/commands/InitializeServiceCommand.js +2 -27
  18. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
  19. package/{dist/cjs → dist-cjs}/commands/MarkAsArchivedCommand.js +2 -27
  20. package/{dist/cjs → dist-cjs}/commands/RetryDataReplicationCommand.js +2 -27
  21. package/{dist/cjs → dist-cjs}/commands/StartCutoverCommand.js +2 -27
  22. package/{dist/cjs → dist-cjs}/commands/StartTestCommand.js +2 -27
  23. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -27
  24. package/{dist/cjs → dist-cjs}/commands/TerminateTargetInstancesCommand.js +2 -27
  25. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
  26. package/{dist/cjs → dist-cjs}/commands/UpdateLaunchConfigurationCommand.js +2 -27
  27. package/{dist/cjs → dist-cjs}/commands/UpdateReplicationConfigurationCommand.js +2 -27
  28. package/{dist/cjs → dist-cjs}/commands/UpdateReplicationConfigurationTemplateCommand.js +2 -27
  29. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  30. package/{dist/cjs → dist-cjs}/index.js +0 -1
  31. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  32. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -238
  33. package/{dist/cjs → dist-cjs}/pagination/DescribeJobLogItemsPaginator.js +1 -12
  34. package/{dist/cjs → dist-cjs}/pagination/DescribeJobsPaginator.js +1 -12
  35. package/{dist/cjs → dist-cjs}/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +1 -12
  36. package/{dist/cjs → dist-cjs}/pagination/DescribeSourceServersPaginator.js +1 -12
  37. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  38. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +22 -28
  39. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  40. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  41. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  42. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  43. package/{dist/es → dist-es}/Mgn.js +2 -6
  44. package/{dist/es → dist-es}/MgnClient.js +2 -11
  45. package/{dist/es → dist-es}/commands/ChangeServerLifeCycleStateCommand.js +4 -30
  46. package/{dist/es → dist-es}/commands/CreateReplicationConfigurationTemplateCommand.js +4 -30
  47. package/{dist/es → dist-es}/commands/DeleteJobCommand.js +4 -30
  48. package/{dist/es → dist-es}/commands/DeleteReplicationConfigurationTemplateCommand.js +4 -30
  49. package/{dist/es → dist-es}/commands/DeleteSourceServerCommand.js +4 -30
  50. package/{dist/es → dist-es}/commands/DescribeJobLogItemsCommand.js +4 -30
  51. package/{dist/es → dist-es}/commands/DescribeJobsCommand.js +4 -30
  52. package/{dist/es → dist-es}/commands/DescribeReplicationConfigurationTemplatesCommand.js +4 -30
  53. package/{dist/es → dist-es}/commands/DescribeSourceServersCommand.js +4 -30
  54. package/dist-es/commands/DisconnectFromServiceCommand.js +39 -0
  55. package/{dist/es → dist-es}/commands/FinalizeCutoverCommand.js +4 -30
  56. package/{dist/es → dist-es}/commands/GetLaunchConfigurationCommand.js +4 -30
  57. package/{dist/es → dist-es}/commands/GetReplicationConfigurationCommand.js +4 -30
  58. package/{dist/es → dist-es}/commands/InitializeServiceCommand.js +4 -30
  59. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
  60. package/{dist/es → dist-es}/commands/MarkAsArchivedCommand.js +4 -30
  61. package/{dist/es → dist-es}/commands/RetryDataReplicationCommand.js +4 -30
  62. package/{dist/es → dist-es}/commands/StartCutoverCommand.js +4 -30
  63. package/{dist/es → dist-es}/commands/StartTestCommand.js +4 -30
  64. package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
  65. package/{dist/es → dist-es}/commands/TerminateTargetInstancesCommand.js +4 -30
  66. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
  67. package/{dist/es → dist-es}/commands/UpdateLaunchConfigurationCommand.js +4 -30
  68. package/{dist/es → dist-es}/commands/UpdateReplicationConfigurationCommand.js +4 -30
  69. package/{dist/es → dist-es}/commands/UpdateReplicationConfigurationTemplateCommand.js +4 -30
  70. package/{dist/es → dist-es}/endpoints.js +1 -2
  71. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  72. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  73. package/{dist/es → dist-es}/models/models_0.js +0 -238
  74. package/{dist/es → dist-es}/pagination/DescribeJobLogItemsPaginator.js +17 -30
  75. package/{dist/es → dist-es}/pagination/DescribeJobsPaginator.js +17 -30
  76. package/{dist/es → dist-es}/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +17 -30
  77. package/{dist/es → dist-es}/pagination/DescribeSourceServersPaginator.js +17 -30
  78. package/dist-es/pagination/Interfaces.js +1 -0
  79. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +550 -556
  80. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  81. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  82. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  83. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  84. package/{dist/types → dist-types}/Mgn.d.ts +2 -2
  85. package/{dist/types → dist-types}/MgnClient.d.ts +8 -8
  86. package/{dist/types → dist-types}/commands/ChangeServerLifeCycleStateCommand.d.ts +2 -2
  87. package/{dist/types → dist-types}/commands/CreateReplicationConfigurationTemplateCommand.d.ts +2 -2
  88. package/{dist/types → dist-types}/commands/DeleteJobCommand.d.ts +2 -2
  89. package/{dist/types → dist-types}/commands/DeleteReplicationConfigurationTemplateCommand.d.ts +2 -2
  90. package/{dist/types → dist-types}/commands/DeleteSourceServerCommand.d.ts +2 -2
  91. package/{dist/types → dist-types}/commands/DescribeJobLogItemsCommand.d.ts +2 -2
  92. package/{dist/types → dist-types}/commands/DescribeJobsCommand.d.ts +2 -2
  93. package/{dist/types → dist-types}/commands/DescribeReplicationConfigurationTemplatesCommand.d.ts +2 -2
  94. package/{dist/types → dist-types}/commands/DescribeSourceServersCommand.d.ts +2 -2
  95. package/{dist/types → dist-types}/commands/DisconnectFromServiceCommand.d.ts +2 -2
  96. package/{dist/types → dist-types}/commands/FinalizeCutoverCommand.d.ts +2 -2
  97. package/{dist/types → dist-types}/commands/GetLaunchConfigurationCommand.d.ts +2 -2
  98. package/{dist/types → dist-types}/commands/GetReplicationConfigurationCommand.d.ts +2 -2
  99. package/{dist/types → dist-types}/commands/InitializeServiceCommand.d.ts +2 -2
  100. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  101. package/{dist/types → dist-types}/commands/MarkAsArchivedCommand.d.ts +2 -2
  102. package/{dist/types → dist-types}/commands/RetryDataReplicationCommand.d.ts +2 -2
  103. package/{dist/types → dist-types}/commands/StartCutoverCommand.d.ts +2 -2
  104. package/{dist/types → dist-types}/commands/StartTestCommand.d.ts +2 -2
  105. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  106. package/{dist/types → dist-types}/commands/TerminateTargetInstancesCommand.d.ts +2 -2
  107. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  108. package/{dist/types → dist-types}/commands/UpdateLaunchConfigurationCommand.d.ts +2 -2
  109. package/{dist/types → dist-types}/commands/UpdateReplicationConfigurationCommand.d.ts +2 -2
  110. package/{dist/types → dist-types}/commands/UpdateReplicationConfigurationTemplateCommand.d.ts +2 -2
  111. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  112. package/{index.ts → dist-types/index.d.ts} +0 -0
  113. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  114. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  115. package/{dist/types → dist-types}/pagination/DescribeJobLogItemsPaginator.d.ts +1 -1
  116. package/{dist/types → dist-types}/pagination/DescribeJobsPaginator.d.ts +1 -1
  117. package/{dist/types → dist-types}/pagination/DescribeReplicationConfigurationTemplatesPaginator.d.ts +1 -1
  118. package/{dist/types → dist-types}/pagination/DescribeSourceServersPaginator.d.ts +1 -1
  119. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  120. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  121. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  122. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  123. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  124. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  125. package/{dist/types → dist-types}/ts3.4/Mgn.d.ts +28 -80
  126. package/{dist/types → dist-types}/ts3.4/MgnClient.d.ts +32 -97
  127. package/dist-types/ts3.4/commands/ChangeServerLifeCycleStateCommand.d.ts +17 -0
  128. package/{dist/types → dist-types}/ts3.4/commands/CreateReplicationConfigurationTemplateCommand.d.ts +4 -22
  129. package/dist-types/ts3.4/commands/DeleteJobCommand.d.ts +17 -0
  130. package/{dist/types → dist-types}/ts3.4/commands/DeleteReplicationConfigurationTemplateCommand.d.ts +4 -22
  131. package/{dist/types → dist-types}/ts3.4/commands/DeleteSourceServerCommand.d.ts +4 -22
  132. package/{dist/types → dist-types}/ts3.4/commands/DescribeJobLogItemsCommand.d.ts +4 -22
  133. package/dist-types/ts3.4/commands/DescribeJobsCommand.d.ts +17 -0
  134. package/{dist/types → dist-types}/ts3.4/commands/DescribeReplicationConfigurationTemplatesCommand.d.ts +4 -22
  135. package/{dist/types → dist-types}/ts3.4/commands/DescribeSourceServersCommand.d.ts +4 -22
  136. package/dist-types/ts3.4/commands/DisconnectFromServiceCommand.d.ts +17 -0
  137. package/dist-types/ts3.4/commands/FinalizeCutoverCommand.d.ts +17 -0
  138. package/{dist/types → dist-types}/ts3.4/commands/GetLaunchConfigurationCommand.d.ts +4 -22
  139. package/{dist/types → dist-types}/ts3.4/commands/GetReplicationConfigurationCommand.d.ts +4 -22
  140. package/{dist/types → dist-types}/ts3.4/commands/InitializeServiceCommand.d.ts +4 -22
  141. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +4 -22
  142. package/dist-types/ts3.4/commands/MarkAsArchivedCommand.d.ts +17 -0
  143. package/dist-types/ts3.4/commands/RetryDataReplicationCommand.d.ts +17 -0
  144. package/dist-types/ts3.4/commands/StartCutoverCommand.d.ts +17 -0
  145. package/dist-types/ts3.4/commands/StartTestCommand.d.ts +17 -0
  146. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  147. package/dist-types/ts3.4/commands/TerminateTargetInstancesCommand.d.ts +17 -0
  148. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  149. package/{dist/types → dist-types}/ts3.4/commands/UpdateLaunchConfigurationCommand.d.ts +4 -22
  150. package/{dist/types → dist-types}/ts3.4/commands/UpdateReplicationConfigurationCommand.d.ts +4 -22
  151. package/{dist/types → dist-types}/ts3.4/commands/UpdateReplicationConfigurationTemplateCommand.d.ts +4 -22
  152. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  153. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  154. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  155. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +361 -1083
  156. package/{dist/types → dist-types}/ts3.4/pagination/DescribeJobLogItemsPaginator.d.ts +1 -1
  157. package/{dist/types → dist-types}/ts3.4/pagination/DescribeJobsPaginator.d.ts +1 -1
  158. package/{dist/types → dist-types}/ts3.4/pagination/DescribeReplicationConfigurationTemplatesPaginator.d.ts +1 -1
  159. package/{dist/types → dist-types}/ts3.4/pagination/DescribeSourceServersPaginator.d.ts +1 -1
  160. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  161. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  162. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  163. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  164. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  165. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  166. package/package.json +52 -49
  167. package/Mgn.ts +0 -904
  168. package/MgnClient.ts +0 -355
  169. package/commands/ChangeServerLifeCycleStateCommand.ts +0 -97
  170. package/commands/CreateReplicationConfigurationTemplateCommand.ts +0 -103
  171. package/commands/DeleteJobCommand.ts +0 -90
  172. package/commands/DeleteReplicationConfigurationTemplateCommand.ts +0 -106
  173. package/commands/DeleteSourceServerCommand.ts +0 -94
  174. package/commands/DescribeJobLogItemsCommand.ts +0 -94
  175. package/commands/DescribeJobsCommand.ts +0 -94
  176. package/commands/DescribeReplicationConfigurationTemplatesCommand.ts +0 -109
  177. package/commands/DescribeSourceServersCommand.ts +0 -94
  178. package/commands/DisconnectFromServiceCommand.ts +0 -94
  179. package/commands/FinalizeCutoverCommand.ts +0 -94
  180. package/commands/GetLaunchConfigurationCommand.ts +0 -94
  181. package/commands/GetReplicationConfigurationCommand.ts +0 -97
  182. package/commands/InitializeServiceCommand.ts +0 -94
  183. package/commands/ListTagsForResourceCommand.ts +0 -94
  184. package/commands/MarkAsArchivedCommand.ts +0 -94
  185. package/commands/RetryDataReplicationCommand.ts +0 -94
  186. package/commands/StartCutoverCommand.ts +0 -94
  187. package/commands/StartTestCommand.ts +0 -90
  188. package/commands/TagResourceCommand.ts +0 -94
  189. package/commands/TerminateTargetInstancesCommand.ts +0 -94
  190. package/commands/UntagResourceCommand.ts +0 -94
  191. package/commands/UpdateLaunchConfigurationCommand.ts +0 -97
  192. package/commands/UpdateReplicationConfigurationCommand.ts +0 -100
  193. package/commands/UpdateReplicationConfigurationTemplateCommand.ts +0 -103
  194. package/dist/cjs/Mgn.js.map +0 -1
  195. package/dist/cjs/MgnClient.js.map +0 -1
  196. package/dist/cjs/commands/ChangeServerLifeCycleStateCommand.js.map +0 -1
  197. package/dist/cjs/commands/CreateReplicationConfigurationTemplateCommand.js.map +0 -1
  198. package/dist/cjs/commands/DeleteJobCommand.js.map +0 -1
  199. package/dist/cjs/commands/DeleteReplicationConfigurationTemplateCommand.js.map +0 -1
  200. package/dist/cjs/commands/DeleteSourceServerCommand.js.map +0 -1
  201. package/dist/cjs/commands/DescribeJobLogItemsCommand.js.map +0 -1
  202. package/dist/cjs/commands/DescribeJobsCommand.js.map +0 -1
  203. package/dist/cjs/commands/DescribeReplicationConfigurationTemplatesCommand.js.map +0 -1
  204. package/dist/cjs/commands/DescribeSourceServersCommand.js.map +0 -1
  205. package/dist/cjs/commands/DisconnectFromServiceCommand.js +0 -61
  206. package/dist/cjs/commands/DisconnectFromServiceCommand.js.map +0 -1
  207. package/dist/cjs/commands/FinalizeCutoverCommand.js +0 -61
  208. package/dist/cjs/commands/FinalizeCutoverCommand.js.map +0 -1
  209. package/dist/cjs/commands/GetLaunchConfigurationCommand.js.map +0 -1
  210. package/dist/cjs/commands/GetReplicationConfigurationCommand.js.map +0 -1
  211. package/dist/cjs/commands/InitializeServiceCommand.js.map +0 -1
  212. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  213. package/dist/cjs/commands/MarkAsArchivedCommand.js.map +0 -1
  214. package/dist/cjs/commands/RetryDataReplicationCommand.js.map +0 -1
  215. package/dist/cjs/commands/StartCutoverCommand.js.map +0 -1
  216. package/dist/cjs/commands/StartTestCommand.js.map +0 -1
  217. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  218. package/dist/cjs/commands/TerminateTargetInstancesCommand.js.map +0 -1
  219. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  220. package/dist/cjs/commands/UpdateLaunchConfigurationCommand.js.map +0 -1
  221. package/dist/cjs/commands/UpdateReplicationConfigurationCommand.js.map +0 -1
  222. package/dist/cjs/commands/UpdateReplicationConfigurationTemplateCommand.js.map +0 -1
  223. package/dist/cjs/endpoints.js.map +0 -1
  224. package/dist/cjs/index.js.map +0 -1
  225. package/dist/cjs/models/index.js.map +0 -1
  226. package/dist/cjs/models/models_0.js.map +0 -1
  227. package/dist/cjs/package.json +0 -91
  228. package/dist/cjs/pagination/DescribeJobLogItemsPaginator.js.map +0 -1
  229. package/dist/cjs/pagination/DescribeJobsPaginator.js.map +0 -1
  230. package/dist/cjs/pagination/DescribeReplicationConfigurationTemplatesPaginator.js.map +0 -1
  231. package/dist/cjs/pagination/DescribeSourceServersPaginator.js.map +0 -1
  232. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  233. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  234. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  235. package/dist/cjs/runtimeConfig.js.map +0 -1
  236. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  237. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  238. package/dist/es/Mgn.js.map +0 -1
  239. package/dist/es/MgnClient.js.map +0 -1
  240. package/dist/es/commands/ChangeServerLifeCycleStateCommand.js.map +0 -1
  241. package/dist/es/commands/CreateReplicationConfigurationTemplateCommand.js.map +0 -1
  242. package/dist/es/commands/DeleteJobCommand.js.map +0 -1
  243. package/dist/es/commands/DeleteReplicationConfigurationTemplateCommand.js.map +0 -1
  244. package/dist/es/commands/DeleteSourceServerCommand.js.map +0 -1
  245. package/dist/es/commands/DescribeJobLogItemsCommand.js.map +0 -1
  246. package/dist/es/commands/DescribeJobsCommand.js.map +0 -1
  247. package/dist/es/commands/DescribeReplicationConfigurationTemplatesCommand.js.map +0 -1
  248. package/dist/es/commands/DescribeSourceServersCommand.js.map +0 -1
  249. package/dist/es/commands/DisconnectFromServiceCommand.js +0 -65
  250. package/dist/es/commands/DisconnectFromServiceCommand.js.map +0 -1
  251. package/dist/es/commands/FinalizeCutoverCommand.js.map +0 -1
  252. package/dist/es/commands/GetLaunchConfigurationCommand.js.map +0 -1
  253. package/dist/es/commands/GetReplicationConfigurationCommand.js.map +0 -1
  254. package/dist/es/commands/InitializeServiceCommand.js.map +0 -1
  255. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  256. package/dist/es/commands/MarkAsArchivedCommand.js.map +0 -1
  257. package/dist/es/commands/RetryDataReplicationCommand.js.map +0 -1
  258. package/dist/es/commands/StartCutoverCommand.js.map +0 -1
  259. package/dist/es/commands/StartTestCommand.js.map +0 -1
  260. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  261. package/dist/es/commands/TerminateTargetInstancesCommand.js.map +0 -1
  262. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  263. package/dist/es/commands/UpdateLaunchConfigurationCommand.js.map +0 -1
  264. package/dist/es/commands/UpdateReplicationConfigurationCommand.js.map +0 -1
  265. package/dist/es/commands/UpdateReplicationConfigurationTemplateCommand.js.map +0 -1
  266. package/dist/es/endpoints.js.map +0 -1
  267. package/dist/es/index.js +0 -34
  268. package/dist/es/index.js.map +0 -1
  269. package/dist/es/models/index.js +0 -2
  270. package/dist/es/models/index.js.map +0 -1
  271. package/dist/es/models/models_0.js.map +0 -1
  272. package/dist/es/package.json +0 -91
  273. package/dist/es/pagination/DescribeJobLogItemsPaginator.js.map +0 -1
  274. package/dist/es/pagination/DescribeJobsPaginator.js.map +0 -1
  275. package/dist/es/pagination/DescribeReplicationConfigurationTemplatesPaginator.js.map +0 -1
  276. package/dist/es/pagination/DescribeSourceServersPaginator.js.map +0 -1
  277. package/dist/es/pagination/Interfaces.js +0 -2
  278. package/dist/es/pagination/Interfaces.js.map +0 -1
  279. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  280. package/dist/es/runtimeConfig.browser.js.map +0 -1
  281. package/dist/es/runtimeConfig.js.map +0 -1
  282. package/dist/es/runtimeConfig.native.js.map +0 -1
  283. package/dist/es/runtimeConfig.shared.js.map +0 -1
  284. package/dist/types/ts3.4/commands/ChangeServerLifeCycleStateCommand.d.ts +0 -35
  285. package/dist/types/ts3.4/commands/DeleteJobCommand.d.ts +0 -35
  286. package/dist/types/ts3.4/commands/DescribeJobsCommand.d.ts +0 -35
  287. package/dist/types/ts3.4/commands/DisconnectFromServiceCommand.d.ts +0 -35
  288. package/dist/types/ts3.4/commands/FinalizeCutoverCommand.d.ts +0 -35
  289. package/dist/types/ts3.4/commands/MarkAsArchivedCommand.d.ts +0 -35
  290. package/dist/types/ts3.4/commands/RetryDataReplicationCommand.d.ts +0 -35
  291. package/dist/types/ts3.4/commands/StartCutoverCommand.d.ts +0 -35
  292. package/dist/types/ts3.4/commands/StartTestCommand.d.ts +0 -35
  293. package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
  294. package/dist/types/ts3.4/commands/TerminateTargetInstancesCommand.d.ts +0 -35
  295. package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
  296. package/endpoints.ts +0 -57
  297. package/jest.config.js +0 -4
  298. package/models/models_0.ts +0 -2416
  299. package/pagination/DescribeJobLogItemsPaginator.ts +0 -58
  300. package/pagination/DescribeJobsPaginator.ts +0 -58
  301. package/pagination/DescribeReplicationConfigurationTemplatesPaginator.ts +0 -58
  302. package/pagination/DescribeSourceServersPaginator.ts +0 -58
  303. package/pagination/Interfaces.ts +0 -7
  304. package/protocols/Aws_restJson1.ts +0 -4171
  305. package/runtimeConfig.browser.ts +0 -40
  306. package/runtimeConfig.native.ts +0 -16
  307. package/runtimeConfig.shared.ts +0 -16
  308. package/runtimeConfig.ts +0 -45
  309. package/tsconfig.es.json +0 -12
  310. package/tsconfig.json +0 -32
package/MgnClient.ts DELETED
@@ -1,355 +0,0 @@
1
- import {
2
- ChangeServerLifeCycleStateCommandInput,
3
- ChangeServerLifeCycleStateCommandOutput,
4
- } from "./commands/ChangeServerLifeCycleStateCommand";
5
- import {
6
- CreateReplicationConfigurationTemplateCommandInput,
7
- CreateReplicationConfigurationTemplateCommandOutput,
8
- } from "./commands/CreateReplicationConfigurationTemplateCommand";
9
- import { DeleteJobCommandInput, DeleteJobCommandOutput } from "./commands/DeleteJobCommand";
10
- import {
11
- DeleteReplicationConfigurationTemplateCommandInput,
12
- DeleteReplicationConfigurationTemplateCommandOutput,
13
- } from "./commands/DeleteReplicationConfigurationTemplateCommand";
14
- import { DeleteSourceServerCommandInput, DeleteSourceServerCommandOutput } from "./commands/DeleteSourceServerCommand";
15
- import {
16
- DescribeJobLogItemsCommandInput,
17
- DescribeJobLogItemsCommandOutput,
18
- } from "./commands/DescribeJobLogItemsCommand";
19
- import { DescribeJobsCommandInput, DescribeJobsCommandOutput } from "./commands/DescribeJobsCommand";
20
- import {
21
- DescribeReplicationConfigurationTemplatesCommandInput,
22
- DescribeReplicationConfigurationTemplatesCommandOutput,
23
- } from "./commands/DescribeReplicationConfigurationTemplatesCommand";
24
- import {
25
- DescribeSourceServersCommandInput,
26
- DescribeSourceServersCommandOutput,
27
- } from "./commands/DescribeSourceServersCommand";
28
- import {
29
- DisconnectFromServiceCommandInput,
30
- DisconnectFromServiceCommandOutput,
31
- } from "./commands/DisconnectFromServiceCommand";
32
- import { FinalizeCutoverCommandInput, FinalizeCutoverCommandOutput } from "./commands/FinalizeCutoverCommand";
33
- import {
34
- GetLaunchConfigurationCommandInput,
35
- GetLaunchConfigurationCommandOutput,
36
- } from "./commands/GetLaunchConfigurationCommand";
37
- import {
38
- GetReplicationConfigurationCommandInput,
39
- GetReplicationConfigurationCommandOutput,
40
- } from "./commands/GetReplicationConfigurationCommand";
41
- import { InitializeServiceCommandInput, InitializeServiceCommandOutput } from "./commands/InitializeServiceCommand";
42
- import {
43
- ListTagsForResourceCommandInput,
44
- ListTagsForResourceCommandOutput,
45
- } from "./commands/ListTagsForResourceCommand";
46
- import { MarkAsArchivedCommandInput, MarkAsArchivedCommandOutput } from "./commands/MarkAsArchivedCommand";
47
- import {
48
- RetryDataReplicationCommandInput,
49
- RetryDataReplicationCommandOutput,
50
- } from "./commands/RetryDataReplicationCommand";
51
- import { StartCutoverCommandInput, StartCutoverCommandOutput } from "./commands/StartCutoverCommand";
52
- import { StartTestCommandInput, StartTestCommandOutput } from "./commands/StartTestCommand";
53
- import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
54
- import {
55
- TerminateTargetInstancesCommandInput,
56
- TerminateTargetInstancesCommandOutput,
57
- } from "./commands/TerminateTargetInstancesCommand";
58
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
59
- import {
60
- UpdateLaunchConfigurationCommandInput,
61
- UpdateLaunchConfigurationCommandOutput,
62
- } from "./commands/UpdateLaunchConfigurationCommand";
63
- import {
64
- UpdateReplicationConfigurationCommandInput,
65
- UpdateReplicationConfigurationCommandOutput,
66
- } from "./commands/UpdateReplicationConfigurationCommand";
67
- import {
68
- UpdateReplicationConfigurationTemplateCommandInput,
69
- UpdateReplicationConfigurationTemplateCommandOutput,
70
- } from "./commands/UpdateReplicationConfigurationTemplateCommand";
71
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
72
- import {
73
- EndpointsInputConfig,
74
- EndpointsResolvedConfig,
75
- RegionInputConfig,
76
- RegionResolvedConfig,
77
- resolveEndpointsConfig,
78
- resolveRegionConfig,
79
- } from "@aws-sdk/config-resolver";
80
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
81
- import {
82
- HostHeaderInputConfig,
83
- HostHeaderResolvedConfig,
84
- getHostHeaderPlugin,
85
- resolveHostHeaderConfig,
86
- } from "@aws-sdk/middleware-host-header";
87
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
88
- import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
89
- import {
90
- AwsAuthInputConfig,
91
- AwsAuthResolvedConfig,
92
- getAwsAuthPlugin,
93
- resolveAwsAuthConfig,
94
- } from "@aws-sdk/middleware-signing";
95
- import {
96
- UserAgentInputConfig,
97
- UserAgentResolvedConfig,
98
- getUserAgentPlugin,
99
- resolveUserAgentConfig,
100
- } from "@aws-sdk/middleware-user-agent";
101
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
102
- import {
103
- Client as __Client,
104
- SmithyConfiguration as __SmithyConfiguration,
105
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
106
- } from "@aws-sdk/smithy-client";
107
- import {
108
- Provider,
109
- RegionInfoProvider,
110
- Credentials as __Credentials,
111
- Decoder as __Decoder,
112
- Encoder as __Encoder,
113
- Hash as __Hash,
114
- HashConstructor as __HashConstructor,
115
- HttpHandlerOptions as __HttpHandlerOptions,
116
- Logger as __Logger,
117
- Provider as __Provider,
118
- StreamCollector as __StreamCollector,
119
- UrlParser as __UrlParser,
120
- UserAgent as __UserAgent,
121
- } from "@aws-sdk/types";
122
-
123
- export type ServiceInputTypes =
124
- | ChangeServerLifeCycleStateCommandInput
125
- | CreateReplicationConfigurationTemplateCommandInput
126
- | DeleteJobCommandInput
127
- | DeleteReplicationConfigurationTemplateCommandInput
128
- | DeleteSourceServerCommandInput
129
- | DescribeJobLogItemsCommandInput
130
- | DescribeJobsCommandInput
131
- | DescribeReplicationConfigurationTemplatesCommandInput
132
- | DescribeSourceServersCommandInput
133
- | DisconnectFromServiceCommandInput
134
- | FinalizeCutoverCommandInput
135
- | GetLaunchConfigurationCommandInput
136
- | GetReplicationConfigurationCommandInput
137
- | InitializeServiceCommandInput
138
- | ListTagsForResourceCommandInput
139
- | MarkAsArchivedCommandInput
140
- | RetryDataReplicationCommandInput
141
- | StartCutoverCommandInput
142
- | StartTestCommandInput
143
- | TagResourceCommandInput
144
- | TerminateTargetInstancesCommandInput
145
- | UntagResourceCommandInput
146
- | UpdateLaunchConfigurationCommandInput
147
- | UpdateReplicationConfigurationCommandInput
148
- | UpdateReplicationConfigurationTemplateCommandInput;
149
-
150
- export type ServiceOutputTypes =
151
- | ChangeServerLifeCycleStateCommandOutput
152
- | CreateReplicationConfigurationTemplateCommandOutput
153
- | DeleteJobCommandOutput
154
- | DeleteReplicationConfigurationTemplateCommandOutput
155
- | DeleteSourceServerCommandOutput
156
- | DescribeJobLogItemsCommandOutput
157
- | DescribeJobsCommandOutput
158
- | DescribeReplicationConfigurationTemplatesCommandOutput
159
- | DescribeSourceServersCommandOutput
160
- | DisconnectFromServiceCommandOutput
161
- | FinalizeCutoverCommandOutput
162
- | GetLaunchConfigurationCommandOutput
163
- | GetReplicationConfigurationCommandOutput
164
- | InitializeServiceCommandOutput
165
- | ListTagsForResourceCommandOutput
166
- | MarkAsArchivedCommandOutput
167
- | RetryDataReplicationCommandOutput
168
- | StartCutoverCommandOutput
169
- | StartTestCommandOutput
170
- | TagResourceCommandOutput
171
- | TerminateTargetInstancesCommandOutput
172
- | UntagResourceCommandOutput
173
- | UpdateLaunchConfigurationCommandOutput
174
- | UpdateReplicationConfigurationCommandOutput
175
- | UpdateReplicationConfigurationTemplateCommandOutput;
176
-
177
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
178
- /**
179
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
180
- */
181
- requestHandler?: __HttpHandler;
182
-
183
- /**
184
- * A constructor for a class implementing the {@link __Hash} interface
185
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
186
- * @internal
187
- */
188
- sha256?: __HashConstructor;
189
-
190
- /**
191
- * The function that will be used to convert strings into HTTP endpoints.
192
- * @internal
193
- */
194
- urlParser?: __UrlParser;
195
-
196
- /**
197
- * A function that can calculate the length of a request body.
198
- * @internal
199
- */
200
- bodyLengthChecker?: (body: any) => number | undefined;
201
-
202
- /**
203
- * A function that converts a stream into an array of bytes.
204
- * @internal
205
- */
206
- streamCollector?: __StreamCollector;
207
-
208
- /**
209
- * The function that will be used to convert a base64-encoded string to a byte array.
210
- * @internal
211
- */
212
- base64Decoder?: __Decoder;
213
-
214
- /**
215
- * The function that will be used to convert binary data to a base64-encoded string.
216
- * @internal
217
- */
218
- base64Encoder?: __Encoder;
219
-
220
- /**
221
- * The function that will be used to convert a UTF8-encoded string to a byte array.
222
- * @internal
223
- */
224
- utf8Decoder?: __Decoder;
225
-
226
- /**
227
- * The function that will be used to convert binary data to a UTF-8 encoded string.
228
- * @internal
229
- */
230
- utf8Encoder?: __Encoder;
231
-
232
- /**
233
- * The runtime environment.
234
- * @internal
235
- */
236
- runtime?: string;
237
-
238
- /**
239
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
240
- * trait of an operation.
241
- */
242
- disableHostPrefix?: boolean;
243
-
244
- /**
245
- * Value for how many times a request will be made at most in case of retry.
246
- */
247
- maxAttempts?: number | __Provider<number>;
248
-
249
- /**
250
- * Specifies which retry algorithm to use.
251
- */
252
- retryMode?: string | __Provider<string>;
253
-
254
- /**
255
- * Optional logger for logging debug/info/warn/error.
256
- */
257
- logger?: __Logger;
258
-
259
- /**
260
- * Unique service identifier.
261
- * @internal
262
- */
263
- serviceId?: string;
264
-
265
- /**
266
- * The AWS region to which this client will send requests
267
- */
268
- region?: string | __Provider<string>;
269
-
270
- /**
271
- * Default credentials provider; Not available in browser runtime.
272
- * @internal
273
- */
274
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
275
-
276
- /**
277
- * Fetch related hostname, signing name or signing region with given region.
278
- * @internal
279
- */
280
- regionInfoProvider?: RegionInfoProvider;
281
-
282
- /**
283
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
284
- * @internal
285
- */
286
- defaultUserAgentProvider?: Provider<__UserAgent>;
287
- }
288
-
289
- type MgnClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
290
- ClientDefaults &
291
- RegionInputConfig &
292
- EndpointsInputConfig &
293
- RetryInputConfig &
294
- HostHeaderInputConfig &
295
- AwsAuthInputConfig &
296
- UserAgentInputConfig;
297
- /**
298
- * The configuration interface of MgnClient class constructor that set the region, credentials and other options.
299
- */
300
- export interface MgnClientConfig extends MgnClientConfigType {}
301
-
302
- type MgnClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
303
- Required<ClientDefaults> &
304
- RegionResolvedConfig &
305
- EndpointsResolvedConfig &
306
- RetryResolvedConfig &
307
- HostHeaderResolvedConfig &
308
- AwsAuthResolvedConfig &
309
- UserAgentResolvedConfig;
310
- /**
311
- * The resolved configuration interface of MgnClient class. This is resolved and normalized from the {@link MgnClientConfig | constructor configuration interface}.
312
- */
313
- export interface MgnClientResolvedConfig extends MgnClientResolvedConfigType {}
314
-
315
- /**
316
- * <p>The Application Migration Service service.</p>
317
- */
318
- export class MgnClient extends __Client<
319
- __HttpHandlerOptions,
320
- ServiceInputTypes,
321
- ServiceOutputTypes,
322
- MgnClientResolvedConfig
323
- > {
324
- /**
325
- * The resolved configuration of MgnClient class. This is resolved and normalized from the {@link MgnClientConfig | constructor configuration interface}.
326
- */
327
- readonly config: MgnClientResolvedConfig;
328
-
329
- constructor(configuration: MgnClientConfig) {
330
- let _config_0 = __getRuntimeConfig(configuration);
331
- let _config_1 = resolveRegionConfig(_config_0);
332
- let _config_2 = resolveEndpointsConfig(_config_1);
333
- let _config_3 = resolveRetryConfig(_config_2);
334
- let _config_4 = resolveHostHeaderConfig(_config_3);
335
- let _config_5 = resolveAwsAuthConfig(_config_4);
336
- let _config_6 = resolveUserAgentConfig(_config_5);
337
- super(_config_6);
338
- this.config = _config_6;
339
- this.middlewareStack.use(getRetryPlugin(this.config));
340
- this.middlewareStack.use(getContentLengthPlugin(this.config));
341
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
342
- this.middlewareStack.use(getLoggerPlugin(this.config));
343
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
344
- this.middlewareStack.use(getUserAgentPlugin(this.config));
345
- }
346
-
347
- /**
348
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
349
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
350
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
351
- */
352
- destroy(): void {
353
- super.destroy();
354
- }
355
- }
@@ -1,97 +0,0 @@
1
- import { MgnClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MgnClient";
2
- import { ChangeServerLifeCycleStateRequest, SourceServer } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1ChangeServerLifeCycleStateCommand,
5
- serializeAws_restJson1ChangeServerLifeCycleStateCommand,
6
- } from "../protocols/Aws_restJson1";
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 ChangeServerLifeCycleStateCommandInput extends ChangeServerLifeCycleStateRequest {}
21
- export interface ChangeServerLifeCycleStateCommandOutput extends SourceServer, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Allows the user to set the SourceServer.LifeCycle.state property for specific Source Server IDs to one of the following: READY_FOR_TEST or READY_FOR_CUTOVER. This command only works if the Source Server is already launchable (dataReplicationInfo.lagDuration is not null.)</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MgnClient, ChangeServerLifeCycleStateCommand } from "@aws-sdk/client-mgn"; // ES Modules import
29
- * // const { MgnClient, ChangeServerLifeCycleStateCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
30
- * const client = new MgnClient(config);
31
- * const command = new ChangeServerLifeCycleStateCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link ChangeServerLifeCycleStateCommandInput} for command's `input` shape.
36
- * @see {@link ChangeServerLifeCycleStateCommandOutput} for command's `response` shape.
37
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class ChangeServerLifeCycleStateCommand extends $Command<
41
- ChangeServerLifeCycleStateCommandInput,
42
- ChangeServerLifeCycleStateCommandOutput,
43
- MgnClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: ChangeServerLifeCycleStateCommandInput) {
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: MgnClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<ChangeServerLifeCycleStateCommandInput, ChangeServerLifeCycleStateCommandOutput> {
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 = "MgnClient";
68
- const commandName = "ChangeServerLifeCycleStateCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: ChangeServerLifeCycleStateRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: SourceServer.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: ChangeServerLifeCycleStateCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1ChangeServerLifeCycleStateCommand(input, context);
86
- }
87
-
88
- private deserialize(
89
- output: __HttpResponse,
90
- context: __SerdeContext
91
- ): Promise<ChangeServerLifeCycleStateCommandOutput> {
92
- return deserializeAws_restJson1ChangeServerLifeCycleStateCommand(output, context);
93
- }
94
-
95
- // Start section: command_body_extra
96
- // End section: command_body_extra
97
- }
@@ -1,103 +0,0 @@
1
- import { MgnClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MgnClient";
2
- import { CreateReplicationConfigurationTemplateRequest, ReplicationConfigurationTemplate } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand,
5
- serializeAws_restJson1CreateReplicationConfigurationTemplateCommand,
6
- } from "../protocols/Aws_restJson1";
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 CreateReplicationConfigurationTemplateCommandInput
21
- extends CreateReplicationConfigurationTemplateRequest {}
22
- export interface CreateReplicationConfigurationTemplateCommandOutput
23
- extends ReplicationConfigurationTemplate,
24
- __MetadataBearer {}
25
-
26
- /**
27
- * <p>Creates a new ReplicationConfigurationTemplate.</p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { MgnClient, CreateReplicationConfigurationTemplateCommand } from "@aws-sdk/client-mgn"; // ES Modules import
32
- * // const { MgnClient, CreateReplicationConfigurationTemplateCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
33
- * const client = new MgnClient(config);
34
- * const command = new CreateReplicationConfigurationTemplateCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link CreateReplicationConfigurationTemplateCommandInput} for command's `input` shape.
39
- * @see {@link CreateReplicationConfigurationTemplateCommandOutput} for command's `response` shape.
40
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- export class CreateReplicationConfigurationTemplateCommand extends $Command<
44
- CreateReplicationConfigurationTemplateCommandInput,
45
- CreateReplicationConfigurationTemplateCommandOutput,
46
- MgnClientResolvedConfig
47
- > {
48
- // Start section: command_properties
49
- // End section: command_properties
50
-
51
- constructor(readonly input: CreateReplicationConfigurationTemplateCommandInput) {
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: MgnClientResolvedConfig,
63
- options?: __HttpHandlerOptions
64
- ): Handler<CreateReplicationConfigurationTemplateCommandInput, CreateReplicationConfigurationTemplateCommandOutput> {
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 = "MgnClient";
71
- const commandName = "CreateReplicationConfigurationTemplateCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: CreateReplicationConfigurationTemplateRequest.filterSensitiveLog,
77
- outputFilterSensitiveLog: ReplicationConfigurationTemplate.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: CreateReplicationConfigurationTemplateCommandInput,
89
- context: __SerdeContext
90
- ): Promise<__HttpRequest> {
91
- return serializeAws_restJson1CreateReplicationConfigurationTemplateCommand(input, context);
92
- }
93
-
94
- private deserialize(
95
- output: __HttpResponse,
96
- context: __SerdeContext
97
- ): Promise<CreateReplicationConfigurationTemplateCommandOutput> {
98
- return deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand(output, context);
99
- }
100
-
101
- // Start section: command_body_extra
102
- // End section: command_body_extra
103
- }
@@ -1,90 +0,0 @@
1
- import { MgnClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MgnClient";
2
- import { DeleteJobRequest, DeleteJobResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1DeleteJobCommand,
5
- serializeAws_restJson1DeleteJobCommand,
6
- } from "../protocols/Aws_restJson1";
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 DeleteJobCommandInput extends DeleteJobRequest {}
21
- export interface DeleteJobCommandOutput extends DeleteJobResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Deletes a single Job by ID.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MgnClient, DeleteJobCommand } from "@aws-sdk/client-mgn"; // ES Modules import
29
- * // const { MgnClient, DeleteJobCommand } = require("@aws-sdk/client-mgn"); // CommonJS import
30
- * const client = new MgnClient(config);
31
- * const command = new DeleteJobCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link DeleteJobCommandInput} for command's `input` shape.
36
- * @see {@link DeleteJobCommandOutput} for command's `response` shape.
37
- * @see {@link MgnClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class DeleteJobCommand extends $Command<DeleteJobCommandInput, DeleteJobCommandOutput, MgnClientResolvedConfig> {
41
- // Start section: command_properties
42
- // End section: command_properties
43
-
44
- constructor(readonly input: DeleteJobCommandInput) {
45
- // Start section: command_constructor
46
- super();
47
- // End section: command_constructor
48
- }
49
-
50
- /**
51
- * @internal
52
- */
53
- resolveMiddleware(
54
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
55
- configuration: MgnClientResolvedConfig,
56
- options?: __HttpHandlerOptions
57
- ): Handler<DeleteJobCommandInput, DeleteJobCommandOutput> {
58
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
59
-
60
- const stack = clientStack.concat(this.middlewareStack);
61
-
62
- const { logger } = configuration;
63
- const clientName = "MgnClient";
64
- const commandName = "DeleteJobCommand";
65
- const handlerExecutionContext: HandlerExecutionContext = {
66
- logger,
67
- clientName,
68
- commandName,
69
- inputFilterSensitiveLog: DeleteJobRequest.filterSensitiveLog,
70
- outputFilterSensitiveLog: DeleteJobResponse.filterSensitiveLog,
71
- };
72
- const { requestHandler } = configuration;
73
- return stack.resolve(
74
- (request: FinalizeHandlerArguments<any>) =>
75
- requestHandler.handle(request.request as __HttpRequest, options || {}),
76
- handlerExecutionContext
77
- );
78
- }
79
-
80
- private serialize(input: DeleteJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
81
- return serializeAws_restJson1DeleteJobCommand(input, context);
82
- }
83
-
84
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteJobCommandOutput> {
85
- return deserializeAws_restJson1DeleteJobCommand(output, context);
86
- }
87
-
88
- // Start section: command_body_extra
89
- // End section: command_body_extra
90
- }