@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
@@ -5,7 +5,7 @@ export var serializeAws_restJson1ChangeServerLifeCycleStateCommand = function (i
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
6
6
  return __generator(this, function (_c) {
7
7
  switch (_c.label) {
8
- case 0: return [4 /*yield*/, context.endpoint()];
8
+ case 0: return [4, context.endpoint()];
9
9
  case 1:
10
10
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
11
11
  headers = {
@@ -17,7 +17,7 @@ export var serializeAws_restJson1ChangeServerLifeCycleStateCommand = function (i
17
17
  lifeCycle: serializeAws_restJson1ChangeServerLifeCycleStateSourceServerLifecycle(input.lifeCycle, context),
18
18
  })), (input.sourceServerID !== undefined &&
19
19
  input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
20
- return [2 /*return*/, new __HttpRequest({
20
+ return [2, new __HttpRequest({
21
21
  protocol: protocol,
22
22
  hostname: hostname,
23
23
  port: port,
@@ -33,7 +33,7 @@ export var serializeAws_restJson1CreateReplicationConfigurationTemplateCommand =
33
33
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
34
34
  return __generator(this, function (_c) {
35
35
  switch (_c.label) {
36
- case 0: return [4 /*yield*/, context.endpoint()];
36
+ case 0: return [4, context.endpoint()];
37
37
  case 1:
38
38
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
39
39
  headers = {
@@ -63,7 +63,7 @@ export var serializeAws_restJson1CreateReplicationConfigurationTemplateCommand =
63
63
  input.useDedicatedReplicationServer !== null && {
64
64
  useDedicatedReplicationServer: input.useDedicatedReplicationServer,
65
65
  })));
66
- return [2 /*return*/, new __HttpRequest({
66
+ return [2, new __HttpRequest({
67
67
  protocol: protocol,
68
68
  hostname: hostname,
69
69
  port: port,
@@ -79,7 +79,7 @@ export var serializeAws_restJson1DeleteJobCommand = function (input, context) {
79
79
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
80
80
  return __generator(this, function (_c) {
81
81
  switch (_c.label) {
82
- case 0: return [4 /*yield*/, context.endpoint()];
82
+ case 0: return [4, context.endpoint()];
83
83
  case 1:
84
84
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
85
85
  headers = {
@@ -87,7 +87,7 @@ export var serializeAws_restJson1DeleteJobCommand = function (input, context) {
87
87
  };
88
88
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteJob";
89
89
  body = JSON.stringify(__assign({}, (input.jobID !== undefined && input.jobID !== null && { jobID: input.jobID })));
90
- return [2 /*return*/, new __HttpRequest({
90
+ return [2, new __HttpRequest({
91
91
  protocol: protocol,
92
92
  hostname: hostname,
93
93
  port: port,
@@ -103,7 +103,7 @@ export var serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand =
103
103
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
104
104
  return __generator(this, function (_c) {
105
105
  switch (_c.label) {
106
- case 0: return [4 /*yield*/, context.endpoint()];
106
+ case 0: return [4, context.endpoint()];
107
107
  case 1:
108
108
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
109
109
  headers = {
@@ -114,7 +114,7 @@ export var serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand =
114
114
  input.replicationConfigurationTemplateID !== null && {
115
115
  replicationConfigurationTemplateID: input.replicationConfigurationTemplateID,
116
116
  })));
117
- return [2 /*return*/, new __HttpRequest({
117
+ return [2, new __HttpRequest({
118
118
  protocol: protocol,
119
119
  hostname: hostname,
120
120
  port: port,
@@ -130,7 +130,7 @@ export var serializeAws_restJson1DeleteSourceServerCommand = function (input, co
130
130
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
131
131
  return __generator(this, function (_c) {
132
132
  switch (_c.label) {
133
- case 0: return [4 /*yield*/, context.endpoint()];
133
+ case 0: return [4, context.endpoint()];
134
134
  case 1:
135
135
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
136
136
  headers = {
@@ -139,7 +139,7 @@ export var serializeAws_restJson1DeleteSourceServerCommand = function (input, co
139
139
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteSourceServer";
140
140
  body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
141
141
  input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
142
- return [2 /*return*/, new __HttpRequest({
142
+ return [2, new __HttpRequest({
143
143
  protocol: protocol,
144
144
  hostname: hostname,
145
145
  port: port,
@@ -155,7 +155,7 @@ export var serializeAws_restJson1DescribeJobLogItemsCommand = function (input, c
155
155
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
156
156
  return __generator(this, function (_c) {
157
157
  switch (_c.label) {
158
- case 0: return [4 /*yield*/, context.endpoint()];
158
+ case 0: return [4, context.endpoint()];
159
159
  case 1:
160
160
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
161
161
  headers = {
@@ -163,7 +163,7 @@ export var serializeAws_restJson1DescribeJobLogItemsCommand = function (input, c
163
163
  };
164
164
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeJobLogItems";
165
165
  body = JSON.stringify(__assign(__assign(__assign({}, (input.jobID !== undefined && input.jobID !== null && { jobID: input.jobID })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
166
- return [2 /*return*/, new __HttpRequest({
166
+ return [2, new __HttpRequest({
167
167
  protocol: protocol,
168
168
  hostname: hostname,
169
169
  port: port,
@@ -179,7 +179,7 @@ export var serializeAws_restJson1DescribeJobsCommand = function (input, context)
179
179
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
180
180
  return __generator(this, function (_c) {
181
181
  switch (_c.label) {
182
- case 0: return [4 /*yield*/, context.endpoint()];
182
+ case 0: return [4, context.endpoint()];
183
183
  case 1:
184
184
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
185
185
  headers = {
@@ -188,7 +188,7 @@ export var serializeAws_restJson1DescribeJobsCommand = function (input, context)
188
188
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeJobs";
189
189
  body = JSON.stringify(__assign(__assign(__assign({}, (input.filters !== undefined &&
190
190
  input.filters !== null && { filters: serializeAws_restJson1DescribeJobsRequestFilters(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
191
- return [2 /*return*/, new __HttpRequest({
191
+ return [2, new __HttpRequest({
192
192
  protocol: protocol,
193
193
  hostname: hostname,
194
194
  port: port,
@@ -204,7 +204,7 @@ export var serializeAws_restJson1DescribeReplicationConfigurationTemplatesComman
204
204
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
205
205
  return __generator(this, function (_c) {
206
206
  switch (_c.label) {
207
- case 0: return [4 /*yield*/, context.endpoint()];
207
+ case 0: return [4, context.endpoint()];
208
208
  case 1:
209
209
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
210
210
  headers = {
@@ -216,7 +216,7 @@ export var serializeAws_restJson1DescribeReplicationConfigurationTemplatesComman
216
216
  input.replicationConfigurationTemplateIDs !== null && {
217
217
  replicationConfigurationTemplateIDs: serializeAws_restJson1ReplicationConfigurationTemplateIDs(input.replicationConfigurationTemplateIDs, context),
218
218
  })));
219
- return [2 /*return*/, new __HttpRequest({
219
+ return [2, new __HttpRequest({
220
220
  protocol: protocol,
221
221
  hostname: hostname,
222
222
  port: port,
@@ -232,7 +232,7 @@ export var serializeAws_restJson1DescribeSourceServersCommand = function (input,
232
232
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
233
233
  return __generator(this, function (_c) {
234
234
  switch (_c.label) {
235
- case 0: return [4 /*yield*/, context.endpoint()];
235
+ case 0: return [4, context.endpoint()];
236
236
  case 1:
237
237
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
238
238
  headers = {
@@ -243,7 +243,7 @@ export var serializeAws_restJson1DescribeSourceServersCommand = function (input,
243
243
  input.filters !== null && {
244
244
  filters: serializeAws_restJson1DescribeSourceServersRequestFilters(input.filters, context),
245
245
  })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
246
- return [2 /*return*/, new __HttpRequest({
246
+ return [2, new __HttpRequest({
247
247
  protocol: protocol,
248
248
  hostname: hostname,
249
249
  port: port,
@@ -259,7 +259,7 @@ export var serializeAws_restJson1DisconnectFromServiceCommand = function (input,
259
259
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
260
260
  return __generator(this, function (_c) {
261
261
  switch (_c.label) {
262
- case 0: return [4 /*yield*/, context.endpoint()];
262
+ case 0: return [4, context.endpoint()];
263
263
  case 1:
264
264
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
265
265
  headers = {
@@ -268,7 +268,7 @@ export var serializeAws_restJson1DisconnectFromServiceCommand = function (input,
268
268
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DisconnectFromService";
269
269
  body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
270
270
  input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
271
- return [2 /*return*/, new __HttpRequest({
271
+ return [2, new __HttpRequest({
272
272
  protocol: protocol,
273
273
  hostname: hostname,
274
274
  port: port,
@@ -284,7 +284,7 @@ export var serializeAws_restJson1FinalizeCutoverCommand = function (input, conte
284
284
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
285
285
  return __generator(this, function (_c) {
286
286
  switch (_c.label) {
287
- case 0: return [4 /*yield*/, context.endpoint()];
287
+ case 0: return [4, context.endpoint()];
288
288
  case 1:
289
289
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
290
290
  headers = {
@@ -293,7 +293,7 @@ export var serializeAws_restJson1FinalizeCutoverCommand = function (input, conte
293
293
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/FinalizeCutover";
294
294
  body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
295
295
  input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
296
- return [2 /*return*/, new __HttpRequest({
296
+ return [2, new __HttpRequest({
297
297
  protocol: protocol,
298
298
  hostname: hostname,
299
299
  port: port,
@@ -309,7 +309,7 @@ export var serializeAws_restJson1GetLaunchConfigurationCommand = function (input
309
309
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
310
310
  return __generator(this, function (_c) {
311
311
  switch (_c.label) {
312
- case 0: return [4 /*yield*/, context.endpoint()];
312
+ case 0: return [4, context.endpoint()];
313
313
  case 1:
314
314
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
315
315
  headers = {
@@ -318,7 +318,7 @@ export var serializeAws_restJson1GetLaunchConfigurationCommand = function (input
318
318
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetLaunchConfiguration";
319
319
  body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
320
320
  input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
321
- return [2 /*return*/, new __HttpRequest({
321
+ return [2, new __HttpRequest({
322
322
  protocol: protocol,
323
323
  hostname: hostname,
324
324
  port: port,
@@ -334,7 +334,7 @@ export var serializeAws_restJson1GetReplicationConfigurationCommand = function (
334
334
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
335
335
  return __generator(this, function (_c) {
336
336
  switch (_c.label) {
337
- case 0: return [4 /*yield*/, context.endpoint()];
337
+ case 0: return [4, context.endpoint()];
338
338
  case 1:
339
339
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
340
340
  headers = {
@@ -343,7 +343,7 @@ export var serializeAws_restJson1GetReplicationConfigurationCommand = function (
343
343
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetReplicationConfiguration";
344
344
  body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
345
345
  input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
346
- return [2 /*return*/, new __HttpRequest({
346
+ return [2, new __HttpRequest({
347
347
  protocol: protocol,
348
348
  hostname: hostname,
349
349
  port: port,
@@ -359,7 +359,7 @@ export var serializeAws_restJson1InitializeServiceCommand = function (input, con
359
359
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
360
360
  return __generator(this, function (_c) {
361
361
  switch (_c.label) {
362
- case 0: return [4 /*yield*/, context.endpoint()];
362
+ case 0: return [4, context.endpoint()];
363
363
  case 1:
364
364
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
365
365
  headers = {
@@ -367,7 +367,7 @@ export var serializeAws_restJson1InitializeServiceCommand = function (input, con
367
367
  };
368
368
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/InitializeService";
369
369
  body = "";
370
- return [2 /*return*/, new __HttpRequest({
370
+ return [2, new __HttpRequest({
371
371
  protocol: protocol,
372
372
  hostname: hostname,
373
373
  port: port,
@@ -383,7 +383,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
383
383
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
384
384
  return __generator(this, function (_c) {
385
385
  switch (_c.label) {
386
- case 0: return [4 /*yield*/, context.endpoint()];
386
+ case 0: return [4, context.endpoint()];
387
387
  case 1:
388
388
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
389
389
  headers = {};
@@ -398,7 +398,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
398
398
  else {
399
399
  throw new Error("No value provided for input HTTP label: resourceArn.");
400
400
  }
401
- return [2 /*return*/, new __HttpRequest({
401
+ return [2, new __HttpRequest({
402
402
  protocol: protocol,
403
403
  hostname: hostname,
404
404
  port: port,
@@ -414,7 +414,7 @@ export var serializeAws_restJson1MarkAsArchivedCommand = function (input, contex
414
414
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
415
415
  return __generator(this, function (_c) {
416
416
  switch (_c.label) {
417
- case 0: return [4 /*yield*/, context.endpoint()];
417
+ case 0: return [4, context.endpoint()];
418
418
  case 1:
419
419
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
420
420
  headers = {
@@ -423,7 +423,7 @@ export var serializeAws_restJson1MarkAsArchivedCommand = function (input, contex
423
423
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/MarkAsArchived";
424
424
  body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
425
425
  input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
426
- return [2 /*return*/, new __HttpRequest({
426
+ return [2, new __HttpRequest({
427
427
  protocol: protocol,
428
428
  hostname: hostname,
429
429
  port: port,
@@ -439,7 +439,7 @@ export var serializeAws_restJson1RetryDataReplicationCommand = function (input,
439
439
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
440
440
  return __generator(this, function (_c) {
441
441
  switch (_c.label) {
442
- case 0: return [4 /*yield*/, context.endpoint()];
442
+ case 0: return [4, context.endpoint()];
443
443
  case 1:
444
444
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
445
445
  headers = {
@@ -448,7 +448,7 @@ export var serializeAws_restJson1RetryDataReplicationCommand = function (input,
448
448
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/RetryDataReplication";
449
449
  body = JSON.stringify(__assign({}, (input.sourceServerID !== undefined &&
450
450
  input.sourceServerID !== null && { sourceServerID: input.sourceServerID })));
451
- return [2 /*return*/, new __HttpRequest({
451
+ return [2, new __HttpRequest({
452
452
  protocol: protocol,
453
453
  hostname: hostname,
454
454
  port: port,
@@ -464,7 +464,7 @@ export var serializeAws_restJson1StartCutoverCommand = function (input, context)
464
464
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
465
465
  return __generator(this, function (_c) {
466
466
  switch (_c.label) {
467
- case 0: return [4 /*yield*/, context.endpoint()];
467
+ case 0: return [4, context.endpoint()];
468
468
  case 1:
469
469
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
470
470
  headers = {
@@ -476,7 +476,7 @@ export var serializeAws_restJson1StartCutoverCommand = function (input, context)
476
476
  sourceServerIDs: serializeAws_restJson1StartCutoverRequestSourceServerIDs(input.sourceServerIDs, context),
477
477
  })), (input.tags !== undefined &&
478
478
  input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
479
- return [2 /*return*/, new __HttpRequest({
479
+ return [2, new __HttpRequest({
480
480
  protocol: protocol,
481
481
  hostname: hostname,
482
482
  port: port,
@@ -492,7 +492,7 @@ export var serializeAws_restJson1StartTestCommand = function (input, context) {
492
492
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
493
493
  return __generator(this, function (_c) {
494
494
  switch (_c.label) {
495
- case 0: return [4 /*yield*/, context.endpoint()];
495
+ case 0: return [4, context.endpoint()];
496
496
  case 1:
497
497
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
498
498
  headers = {
@@ -504,7 +504,7 @@ export var serializeAws_restJson1StartTestCommand = function (input, context) {
504
504
  sourceServerIDs: serializeAws_restJson1StartTestRequestSourceServerIDs(input.sourceServerIDs, context),
505
505
  })), (input.tags !== undefined &&
506
506
  input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
507
- return [2 /*return*/, new __HttpRequest({
507
+ return [2, new __HttpRequest({
508
508
  protocol: protocol,
509
509
  hostname: hostname,
510
510
  port: port,
@@ -520,7 +520,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
520
520
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
521
521
  return __generator(this, function (_c) {
522
522
  switch (_c.label) {
523
- case 0: return [4 /*yield*/, context.endpoint()];
523
+ case 0: return [4, context.endpoint()];
524
524
  case 1:
525
525
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
526
526
  headers = {
@@ -539,7 +539,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
539
539
  }
540
540
  body = JSON.stringify(__assign({}, (input.tags !== undefined &&
541
541
  input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
542
- return [2 /*return*/, new __HttpRequest({
542
+ return [2, new __HttpRequest({
543
543
  protocol: protocol,
544
544
  hostname: hostname,
545
545
  port: port,
@@ -555,7 +555,7 @@ export var serializeAws_restJson1TerminateTargetInstancesCommand = function (inp
555
555
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
556
556
  return __generator(this, function (_c) {
557
557
  switch (_c.label) {
558
- case 0: return [4 /*yield*/, context.endpoint()];
558
+ case 0: return [4, context.endpoint()];
559
559
  case 1:
560
560
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
561
561
  headers = {
@@ -567,7 +567,7 @@ export var serializeAws_restJson1TerminateTargetInstancesCommand = function (inp
567
567
  sourceServerIDs: serializeAws_restJson1TerminateTargetInstancesRequestSourceServerIDs(input.sourceServerIDs, context),
568
568
  })), (input.tags !== undefined &&
569
569
  input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
570
- return [2 /*return*/, new __HttpRequest({
570
+ return [2, new __HttpRequest({
571
571
  protocol: protocol,
572
572
  hostname: hostname,
573
573
  port: port,
@@ -583,7 +583,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
583
583
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
584
584
  return __generator(this, function (_c) {
585
585
  switch (_c.label) {
586
- case 0: return [4 /*yield*/, context.endpoint()];
586
+ case 0: return [4, context.endpoint()];
587
587
  case 1:
588
588
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
589
589
  headers = {};
@@ -599,7 +599,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
599
599
  throw new Error("No value provided for input HTTP label: resourceArn.");
600
600
  }
601
601
  query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
602
- return [2 /*return*/, new __HttpRequest({
602
+ return [2, new __HttpRequest({
603
603
  protocol: protocol,
604
604
  hostname: hostname,
605
605
  port: port,
@@ -616,7 +616,7 @@ export var serializeAws_restJson1UpdateLaunchConfigurationCommand = function (in
616
616
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
617
617
  return __generator(this, function (_c) {
618
618
  switch (_c.label) {
619
- case 0: return [4 /*yield*/, context.endpoint()];
619
+ case 0: return [4, context.endpoint()];
620
620
  case 1:
621
621
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
622
622
  headers = {
@@ -630,7 +630,7 @@ export var serializeAws_restJson1UpdateLaunchConfigurationCommand = function (in
630
630
  input.targetInstanceTypeRightSizingMethod !== null && {
631
631
  targetInstanceTypeRightSizingMethod: input.targetInstanceTypeRightSizingMethod,
632
632
  })));
633
- return [2 /*return*/, new __HttpRequest({
633
+ return [2, new __HttpRequest({
634
634
  protocol: protocol,
635
635
  hostname: hostname,
636
636
  port: port,
@@ -646,7 +646,7 @@ export var serializeAws_restJson1UpdateReplicationConfigurationCommand = functio
646
646
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
647
647
  return __generator(this, function (_c) {
648
648
  switch (_c.label) {
649
- case 0: return [4 /*yield*/, context.endpoint()];
649
+ case 0: return [4, context.endpoint()];
650
650
  case 1:
651
651
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
652
652
  headers = {
@@ -679,7 +679,7 @@ export var serializeAws_restJson1UpdateReplicationConfigurationCommand = functio
679
679
  input.useDedicatedReplicationServer !== null && {
680
680
  useDedicatedReplicationServer: input.useDedicatedReplicationServer,
681
681
  })));
682
- return [2 /*return*/, new __HttpRequest({
682
+ return [2, new __HttpRequest({
683
683
  protocol: protocol,
684
684
  hostname: hostname,
685
685
  port: port,
@@ -695,7 +695,7 @@ export var serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand =
695
695
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
696
696
  return __generator(this, function (_c) {
697
697
  switch (_c.label) {
698
- case 0: return [4 /*yield*/, context.endpoint()];
698
+ case 0: return [4, context.endpoint()];
699
699
  case 1:
700
700
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
701
701
  headers = {
@@ -727,7 +727,7 @@ export var serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand =
727
727
  input.useDedicatedReplicationServer !== null && {
728
728
  useDedicatedReplicationServer: input.useDedicatedReplicationServer,
729
729
  })));
730
- return [2 /*return*/, new __HttpRequest({
730
+ return [2, new __HttpRequest({
731
731
  protocol: protocol,
732
732
  hostname: hostname,
733
733
  port: port,
@@ -745,7 +745,7 @@ export var deserializeAws_restJson1ChangeServerLifeCycleStateCommand = function
745
745
  switch (_c.label) {
746
746
  case 0:
747
747
  if (output.statusCode !== 200 && output.statusCode >= 300) {
748
- return [2 /*return*/, deserializeAws_restJson1ChangeServerLifeCycleStateCommandError(output, context)];
748
+ return [2, deserializeAws_restJson1ChangeServerLifeCycleStateCommandError(output, context)];
749
749
  }
750
750
  contents = {
751
751
  $metadata: deserializeMetadata(output),
@@ -760,7 +760,7 @@ export var deserializeAws_restJson1ChangeServerLifeCycleStateCommand = function
760
760
  };
761
761
  _a = __expectNonNull;
762
762
  _b = __expectObject;
763
- return [4 /*yield*/, parseBody(output.body, context)];
763
+ return [4, parseBody(output.body, context)];
764
764
  case 1:
765
765
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
766
766
  if (data.arn !== undefined && data.arn !== null) {
@@ -787,7 +787,7 @@ export var deserializeAws_restJson1ChangeServerLifeCycleStateCommand = function
787
787
  if (data.tags !== undefined && data.tags !== null) {
788
788
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
789
789
  }
790
- return [2 /*return*/, Promise.resolve(contents)];
790
+ return [2, Promise.resolve(contents)];
791
791
  }
792
792
  });
793
793
  }); };
@@ -799,47 +799,47 @@ var deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = function (o
799
799
  case 0:
800
800
  _a = [__assign({}, output)];
801
801
  _g = {};
802
- return [4 /*yield*/, parseBody(output.body, context)];
802
+ return [4, parseBody(output.body, context)];
803
803
  case 1:
804
804
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
805
805
  errorCode = "UnknownError";
806
806
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
807
807
  _b = errorCode;
808
808
  switch (_b) {
809
- case "ConflictException": return [3 /*break*/, 2];
810
- case "com.amazonaws.mgn#ConflictException": return [3 /*break*/, 2];
811
- case "ResourceNotFoundException": return [3 /*break*/, 4];
812
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 4];
813
- case "UninitializedAccountException": return [3 /*break*/, 6];
814
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 6];
815
- case "ValidationException": return [3 /*break*/, 8];
816
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 8];
817
- }
818
- return [3 /*break*/, 10];
809
+ case "ConflictException": return [3, 2];
810
+ case "com.amazonaws.mgn#ConflictException": return [3, 2];
811
+ case "ResourceNotFoundException": return [3, 4];
812
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 4];
813
+ case "UninitializedAccountException": return [3, 6];
814
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
815
+ case "ValidationException": return [3, 8];
816
+ case "com.amazonaws.mgn#ValidationException": return [3, 8];
817
+ }
818
+ return [3, 10];
819
819
  case 2:
820
820
  _c = [{}];
821
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
821
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
822
822
  case 3:
823
823
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
824
- return [3 /*break*/, 11];
824
+ return [3, 11];
825
825
  case 4:
826
826
  _d = [{}];
827
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
827
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
828
828
  case 5:
829
829
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
830
- return [3 /*break*/, 11];
830
+ return [3, 11];
831
831
  case 6:
832
832
  _e = [{}];
833
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
833
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
834
834
  case 7:
835
835
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
836
- return [3 /*break*/, 11];
836
+ return [3, 11];
837
837
  case 8:
838
838
  _f = [{}];
839
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
839
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
840
840
  case 9:
841
841
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
842
- return [3 /*break*/, 11];
842
+ return [3, 11];
843
843
  case 10:
844
844
  parsedBody = parsedOutput.body;
845
845
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -849,7 +849,7 @@ var deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = function (o
849
849
  message = response.message || response.Message || errorCode;
850
850
  response.message = message;
851
851
  delete response.Message;
852
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
852
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
853
853
  }
854
854
  });
855
855
  }); };
@@ -859,7 +859,7 @@ export var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand
859
859
  switch (_c.label) {
860
860
  case 0:
861
861
  if (output.statusCode !== 201 && output.statusCode >= 300) {
862
- return [2 /*return*/, deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError(output, context)];
862
+ return [2, deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError(output, context)];
863
863
  }
864
864
  contents = {
865
865
  $metadata: deserializeMetadata(output),
@@ -881,7 +881,7 @@ export var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand
881
881
  };
882
882
  _a = __expectNonNull;
883
883
  _b = __expectObject;
884
- return [4 /*yield*/, parseBody(output.body, context)];
884
+ return [4, parseBody(output.body, context)];
885
885
  case 1:
886
886
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
887
887
  if (data.arn !== undefined && data.arn !== null) {
@@ -929,7 +929,7 @@ export var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand
929
929
  if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
930
930
  contents.useDedicatedReplicationServer = __expectBoolean(data.useDedicatedReplicationServer);
931
931
  }
932
- return [2 /*return*/, Promise.resolve(contents)];
932
+ return [2, Promise.resolve(contents)];
933
933
  }
934
934
  });
935
935
  }); };
@@ -941,39 +941,39 @@ var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError =
941
941
  case 0:
942
942
  _a = [__assign({}, output)];
943
943
  _f = {};
944
- return [4 /*yield*/, parseBody(output.body, context)];
944
+ return [4, parseBody(output.body, context)];
945
945
  case 1:
946
946
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
947
947
  errorCode = "UnknownError";
948
948
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
949
949
  _b = errorCode;
950
950
  switch (_b) {
951
- case "AccessDeniedException": return [3 /*break*/, 2];
952
- case "com.amazonaws.mgn#AccessDeniedException": return [3 /*break*/, 2];
953
- case "UninitializedAccountException": return [3 /*break*/, 4];
954
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 4];
955
- case "ValidationException": return [3 /*break*/, 6];
956
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 6];
957
- }
958
- return [3 /*break*/, 8];
951
+ case "AccessDeniedException": return [3, 2];
952
+ case "com.amazonaws.mgn#AccessDeniedException": return [3, 2];
953
+ case "UninitializedAccountException": return [3, 4];
954
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
955
+ case "ValidationException": return [3, 6];
956
+ case "com.amazonaws.mgn#ValidationException": return [3, 6];
957
+ }
958
+ return [3, 8];
959
959
  case 2:
960
960
  _c = [{}];
961
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
961
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
962
962
  case 3:
963
963
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
964
- return [3 /*break*/, 9];
964
+ return [3, 9];
965
965
  case 4:
966
966
  _d = [{}];
967
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
967
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
968
968
  case 5:
969
969
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
970
- return [3 /*break*/, 9];
970
+ return [3, 9];
971
971
  case 6:
972
972
  _e = [{}];
973
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
973
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
974
974
  case 7:
975
975
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
976
- return [3 /*break*/, 9];
976
+ return [3, 9];
977
977
  case 8:
978
978
  parsedBody = parsedOutput.body;
979
979
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -983,7 +983,7 @@ var deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError =
983
983
  message = response.message || response.Message || errorCode;
984
984
  response.message = message;
985
985
  delete response.Message;
986
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
986
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
987
987
  }
988
988
  });
989
989
  }); };
@@ -993,15 +993,15 @@ export var deserializeAws_restJson1DeleteJobCommand = function (output, context)
993
993
  switch (_a.label) {
994
994
  case 0:
995
995
  if (output.statusCode !== 204 && output.statusCode >= 300) {
996
- return [2 /*return*/, deserializeAws_restJson1DeleteJobCommandError(output, context)];
996
+ return [2, deserializeAws_restJson1DeleteJobCommandError(output, context)];
997
997
  }
998
998
  contents = {
999
999
  $metadata: deserializeMetadata(output),
1000
1000
  };
1001
- return [4 /*yield*/, collectBody(output.body, context)];
1001
+ return [4, collectBody(output.body, context)];
1002
1002
  case 1:
1003
1003
  _a.sent();
1004
- return [2 /*return*/, Promise.resolve(contents)];
1004
+ return [2, Promise.resolve(contents)];
1005
1005
  }
1006
1006
  });
1007
1007
  }); };
@@ -1013,39 +1013,39 @@ var deserializeAws_restJson1DeleteJobCommandError = function (output, context) {
1013
1013
  case 0:
1014
1014
  _a = [__assign({}, output)];
1015
1015
  _f = {};
1016
- return [4 /*yield*/, parseBody(output.body, context)];
1016
+ return [4, parseBody(output.body, context)];
1017
1017
  case 1:
1018
1018
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1019
1019
  errorCode = "UnknownError";
1020
1020
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1021
1021
  _b = errorCode;
1022
1022
  switch (_b) {
1023
- case "ConflictException": return [3 /*break*/, 2];
1024
- case "com.amazonaws.mgn#ConflictException": return [3 /*break*/, 2];
1025
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1026
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 4];
1027
- case "UninitializedAccountException": return [3 /*break*/, 6];
1028
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 6];
1029
- }
1030
- return [3 /*break*/, 8];
1023
+ case "ConflictException": return [3, 2];
1024
+ case "com.amazonaws.mgn#ConflictException": return [3, 2];
1025
+ case "ResourceNotFoundException": return [3, 4];
1026
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 4];
1027
+ case "UninitializedAccountException": return [3, 6];
1028
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
1029
+ }
1030
+ return [3, 8];
1031
1031
  case 2:
1032
1032
  _c = [{}];
1033
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1033
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1034
1034
  case 3:
1035
1035
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1036
- return [3 /*break*/, 9];
1036
+ return [3, 9];
1037
1037
  case 4:
1038
1038
  _d = [{}];
1039
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1039
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1040
1040
  case 5:
1041
1041
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1042
- return [3 /*break*/, 9];
1042
+ return [3, 9];
1043
1043
  case 6:
1044
1044
  _e = [{}];
1045
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1045
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1046
1046
  case 7:
1047
1047
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1048
- return [3 /*break*/, 9];
1048
+ return [3, 9];
1049
1049
  case 8:
1050
1050
  parsedBody = parsedOutput.body;
1051
1051
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1055,7 +1055,7 @@ var deserializeAws_restJson1DeleteJobCommandError = function (output, context) {
1055
1055
  message = response.message || response.Message || errorCode;
1056
1056
  response.message = message;
1057
1057
  delete response.Message;
1058
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1058
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1059
1059
  }
1060
1060
  });
1061
1061
  }); };
@@ -1065,15 +1065,15 @@ export var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand
1065
1065
  switch (_a.label) {
1066
1066
  case 0:
1067
1067
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1068
- return [2 /*return*/, deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError(output, context)];
1068
+ return [2, deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError(output, context)];
1069
1069
  }
1070
1070
  contents = {
1071
1071
  $metadata: deserializeMetadata(output),
1072
1072
  };
1073
- return [4 /*yield*/, collectBody(output.body, context)];
1073
+ return [4, collectBody(output.body, context)];
1074
1074
  case 1:
1075
1075
  _a.sent();
1076
- return [2 /*return*/, Promise.resolve(contents)];
1076
+ return [2, Promise.resolve(contents)];
1077
1077
  }
1078
1078
  });
1079
1079
  }); };
@@ -1085,39 +1085,39 @@ var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError =
1085
1085
  case 0:
1086
1086
  _a = [__assign({}, output)];
1087
1087
  _f = {};
1088
- return [4 /*yield*/, parseBody(output.body, context)];
1088
+ return [4, parseBody(output.body, context)];
1089
1089
  case 1:
1090
1090
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1091
1091
  errorCode = "UnknownError";
1092
1092
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1093
1093
  _b = errorCode;
1094
1094
  switch (_b) {
1095
- case "ConflictException": return [3 /*break*/, 2];
1096
- case "com.amazonaws.mgn#ConflictException": return [3 /*break*/, 2];
1097
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1098
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 4];
1099
- case "UninitializedAccountException": return [3 /*break*/, 6];
1100
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 6];
1101
- }
1102
- return [3 /*break*/, 8];
1095
+ case "ConflictException": return [3, 2];
1096
+ case "com.amazonaws.mgn#ConflictException": return [3, 2];
1097
+ case "ResourceNotFoundException": return [3, 4];
1098
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 4];
1099
+ case "UninitializedAccountException": return [3, 6];
1100
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
1101
+ }
1102
+ return [3, 8];
1103
1103
  case 2:
1104
1104
  _c = [{}];
1105
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1105
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1106
1106
  case 3:
1107
1107
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1108
- return [3 /*break*/, 9];
1108
+ return [3, 9];
1109
1109
  case 4:
1110
1110
  _d = [{}];
1111
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1111
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1112
1112
  case 5:
1113
1113
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1114
- return [3 /*break*/, 9];
1114
+ return [3, 9];
1115
1115
  case 6:
1116
1116
  _e = [{}];
1117
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1117
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1118
1118
  case 7:
1119
1119
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1120
- return [3 /*break*/, 9];
1120
+ return [3, 9];
1121
1121
  case 8:
1122
1122
  parsedBody = parsedOutput.body;
1123
1123
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1127,7 +1127,7 @@ var deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError =
1127
1127
  message = response.message || response.Message || errorCode;
1128
1128
  response.message = message;
1129
1129
  delete response.Message;
1130
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1130
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1131
1131
  }
1132
1132
  });
1133
1133
  }); };
@@ -1137,15 +1137,15 @@ export var deserializeAws_restJson1DeleteSourceServerCommand = function (output,
1137
1137
  switch (_a.label) {
1138
1138
  case 0:
1139
1139
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1140
- return [2 /*return*/, deserializeAws_restJson1DeleteSourceServerCommandError(output, context)];
1140
+ return [2, deserializeAws_restJson1DeleteSourceServerCommandError(output, context)];
1141
1141
  }
1142
1142
  contents = {
1143
1143
  $metadata: deserializeMetadata(output),
1144
1144
  };
1145
- return [4 /*yield*/, collectBody(output.body, context)];
1145
+ return [4, collectBody(output.body, context)];
1146
1146
  case 1:
1147
1147
  _a.sent();
1148
- return [2 /*return*/, Promise.resolve(contents)];
1148
+ return [2, Promise.resolve(contents)];
1149
1149
  }
1150
1150
  });
1151
1151
  }); };
@@ -1157,39 +1157,39 @@ var deserializeAws_restJson1DeleteSourceServerCommandError = function (output, c
1157
1157
  case 0:
1158
1158
  _a = [__assign({}, output)];
1159
1159
  _f = {};
1160
- return [4 /*yield*/, parseBody(output.body, context)];
1160
+ return [4, parseBody(output.body, context)];
1161
1161
  case 1:
1162
1162
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1163
1163
  errorCode = "UnknownError";
1164
1164
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1165
1165
  _b = errorCode;
1166
1166
  switch (_b) {
1167
- case "ConflictException": return [3 /*break*/, 2];
1168
- case "com.amazonaws.mgn#ConflictException": return [3 /*break*/, 2];
1169
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1170
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 4];
1171
- case "UninitializedAccountException": return [3 /*break*/, 6];
1172
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 6];
1173
- }
1174
- return [3 /*break*/, 8];
1167
+ case "ConflictException": return [3, 2];
1168
+ case "com.amazonaws.mgn#ConflictException": return [3, 2];
1169
+ case "ResourceNotFoundException": return [3, 4];
1170
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 4];
1171
+ case "UninitializedAccountException": return [3, 6];
1172
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
1173
+ }
1174
+ return [3, 8];
1175
1175
  case 2:
1176
1176
  _c = [{}];
1177
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1177
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1178
1178
  case 3:
1179
1179
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1180
- return [3 /*break*/, 9];
1180
+ return [3, 9];
1181
1181
  case 4:
1182
1182
  _d = [{}];
1183
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1183
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1184
1184
  case 5:
1185
1185
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1186
- return [3 /*break*/, 9];
1186
+ return [3, 9];
1187
1187
  case 6:
1188
1188
  _e = [{}];
1189
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1189
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1190
1190
  case 7:
1191
1191
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1192
- return [3 /*break*/, 9];
1192
+ return [3, 9];
1193
1193
  case 8:
1194
1194
  parsedBody = parsedOutput.body;
1195
1195
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1199,7 +1199,7 @@ var deserializeAws_restJson1DeleteSourceServerCommandError = function (output, c
1199
1199
  message = response.message || response.Message || errorCode;
1200
1200
  response.message = message;
1201
1201
  delete response.Message;
1202
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1202
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1203
1203
  }
1204
1204
  });
1205
1205
  }); };
@@ -1209,7 +1209,7 @@ export var deserializeAws_restJson1DescribeJobLogItemsCommand = function (output
1209
1209
  switch (_c.label) {
1210
1210
  case 0:
1211
1211
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1212
- return [2 /*return*/, deserializeAws_restJson1DescribeJobLogItemsCommandError(output, context)];
1212
+ return [2, deserializeAws_restJson1DescribeJobLogItemsCommandError(output, context)];
1213
1213
  }
1214
1214
  contents = {
1215
1215
  $metadata: deserializeMetadata(output),
@@ -1218,7 +1218,7 @@ export var deserializeAws_restJson1DescribeJobLogItemsCommand = function (output
1218
1218
  };
1219
1219
  _a = __expectNonNull;
1220
1220
  _b = __expectObject;
1221
- return [4 /*yield*/, parseBody(output.body, context)];
1221
+ return [4, parseBody(output.body, context)];
1222
1222
  case 1:
1223
1223
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1224
1224
  if (data.items !== undefined && data.items !== null) {
@@ -1227,7 +1227,7 @@ export var deserializeAws_restJson1DescribeJobLogItemsCommand = function (output
1227
1227
  if (data.nextToken !== undefined && data.nextToken !== null) {
1228
1228
  contents.nextToken = __expectString(data.nextToken);
1229
1229
  }
1230
- return [2 /*return*/, Promise.resolve(contents)];
1230
+ return [2, Promise.resolve(contents)];
1231
1231
  }
1232
1232
  });
1233
1233
  }); };
@@ -1239,31 +1239,31 @@ var deserializeAws_restJson1DescribeJobLogItemsCommandError = function (output,
1239
1239
  case 0:
1240
1240
  _a = [__assign({}, output)];
1241
1241
  _e = {};
1242
- return [4 /*yield*/, parseBody(output.body, context)];
1242
+ return [4, parseBody(output.body, context)];
1243
1243
  case 1:
1244
1244
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1245
1245
  errorCode = "UnknownError";
1246
1246
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1247
1247
  _b = errorCode;
1248
1248
  switch (_b) {
1249
- case "UninitializedAccountException": return [3 /*break*/, 2];
1250
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 2];
1251
- case "ValidationException": return [3 /*break*/, 4];
1252
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 4];
1249
+ case "UninitializedAccountException": return [3, 2];
1250
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 2];
1251
+ case "ValidationException": return [3, 4];
1252
+ case "com.amazonaws.mgn#ValidationException": return [3, 4];
1253
1253
  }
1254
- return [3 /*break*/, 6];
1254
+ return [3, 6];
1255
1255
  case 2:
1256
1256
  _c = [{}];
1257
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1257
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1258
1258
  case 3:
1259
1259
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1260
- return [3 /*break*/, 7];
1260
+ return [3, 7];
1261
1261
  case 4:
1262
1262
  _d = [{}];
1263
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1263
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1264
1264
  case 5:
1265
1265
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1266
- return [3 /*break*/, 7];
1266
+ return [3, 7];
1267
1267
  case 6:
1268
1268
  parsedBody = parsedOutput.body;
1269
1269
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1273,7 +1273,7 @@ var deserializeAws_restJson1DescribeJobLogItemsCommandError = function (output,
1273
1273
  message = response.message || response.Message || errorCode;
1274
1274
  response.message = message;
1275
1275
  delete response.Message;
1276
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1276
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1277
1277
  }
1278
1278
  });
1279
1279
  }); };
@@ -1283,7 +1283,7 @@ export var deserializeAws_restJson1DescribeJobsCommand = function (output, conte
1283
1283
  switch (_c.label) {
1284
1284
  case 0:
1285
1285
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1286
- return [2 /*return*/, deserializeAws_restJson1DescribeJobsCommandError(output, context)];
1286
+ return [2, deserializeAws_restJson1DescribeJobsCommandError(output, context)];
1287
1287
  }
1288
1288
  contents = {
1289
1289
  $metadata: deserializeMetadata(output),
@@ -1292,7 +1292,7 @@ export var deserializeAws_restJson1DescribeJobsCommand = function (output, conte
1292
1292
  };
1293
1293
  _a = __expectNonNull;
1294
1294
  _b = __expectObject;
1295
- return [4 /*yield*/, parseBody(output.body, context)];
1295
+ return [4, parseBody(output.body, context)];
1296
1296
  case 1:
1297
1297
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1298
1298
  if (data.items !== undefined && data.items !== null) {
@@ -1301,7 +1301,7 @@ export var deserializeAws_restJson1DescribeJobsCommand = function (output, conte
1301
1301
  if (data.nextToken !== undefined && data.nextToken !== null) {
1302
1302
  contents.nextToken = __expectString(data.nextToken);
1303
1303
  }
1304
- return [2 /*return*/, Promise.resolve(contents)];
1304
+ return [2, Promise.resolve(contents)];
1305
1305
  }
1306
1306
  });
1307
1307
  }); };
@@ -1313,31 +1313,31 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
1313
1313
  case 0:
1314
1314
  _a = [__assign({}, output)];
1315
1315
  _e = {};
1316
- return [4 /*yield*/, parseBody(output.body, context)];
1316
+ return [4, parseBody(output.body, context)];
1317
1317
  case 1:
1318
1318
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1319
1319
  errorCode = "UnknownError";
1320
1320
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1321
1321
  _b = errorCode;
1322
1322
  switch (_b) {
1323
- case "UninitializedAccountException": return [3 /*break*/, 2];
1324
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 2];
1325
- case "ValidationException": return [3 /*break*/, 4];
1326
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 4];
1323
+ case "UninitializedAccountException": return [3, 2];
1324
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 2];
1325
+ case "ValidationException": return [3, 4];
1326
+ case "com.amazonaws.mgn#ValidationException": return [3, 4];
1327
1327
  }
1328
- return [3 /*break*/, 6];
1328
+ return [3, 6];
1329
1329
  case 2:
1330
1330
  _c = [{}];
1331
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1331
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1332
1332
  case 3:
1333
1333
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1334
- return [3 /*break*/, 7];
1334
+ return [3, 7];
1335
1335
  case 4:
1336
1336
  _d = [{}];
1337
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1337
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1338
1338
  case 5:
1339
1339
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1340
- return [3 /*break*/, 7];
1340
+ return [3, 7];
1341
1341
  case 6:
1342
1342
  parsedBody = parsedOutput.body;
1343
1343
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1347,7 +1347,7 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
1347
1347
  message = response.message || response.Message || errorCode;
1348
1348
  response.message = message;
1349
1349
  delete response.Message;
1350
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1350
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1351
1351
  }
1352
1352
  });
1353
1353
  }); };
@@ -1357,7 +1357,7 @@ export var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesComm
1357
1357
  switch (_c.label) {
1358
1358
  case 0:
1359
1359
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1360
- return [2 /*return*/, deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandError(output, context)];
1360
+ return [2, deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandError(output, context)];
1361
1361
  }
1362
1362
  contents = {
1363
1363
  $metadata: deserializeMetadata(output),
@@ -1366,7 +1366,7 @@ export var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesComm
1366
1366
  };
1367
1367
  _a = __expectNonNull;
1368
1368
  _b = __expectObject;
1369
- return [4 /*yield*/, parseBody(output.body, context)];
1369
+ return [4, parseBody(output.body, context)];
1370
1370
  case 1:
1371
1371
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1372
1372
  if (data.items !== undefined && data.items !== null) {
@@ -1375,7 +1375,7 @@ export var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesComm
1375
1375
  if (data.nextToken !== undefined && data.nextToken !== null) {
1376
1376
  contents.nextToken = __expectString(data.nextToken);
1377
1377
  }
1378
- return [2 /*return*/, Promise.resolve(contents)];
1378
+ return [2, Promise.resolve(contents)];
1379
1379
  }
1380
1380
  });
1381
1381
  }); };
@@ -1387,39 +1387,39 @@ var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandErro
1387
1387
  case 0:
1388
1388
  _a = [__assign({}, output)];
1389
1389
  _f = {};
1390
- return [4 /*yield*/, parseBody(output.body, context)];
1390
+ return [4, parseBody(output.body, context)];
1391
1391
  case 1:
1392
1392
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1393
1393
  errorCode = "UnknownError";
1394
1394
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1395
1395
  _b = errorCode;
1396
1396
  switch (_b) {
1397
- case "ResourceNotFoundException": return [3 /*break*/, 2];
1398
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 2];
1399
- case "UninitializedAccountException": return [3 /*break*/, 4];
1400
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 4];
1401
- case "ValidationException": return [3 /*break*/, 6];
1402
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 6];
1403
- }
1404
- return [3 /*break*/, 8];
1397
+ case "ResourceNotFoundException": return [3, 2];
1398
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 2];
1399
+ case "UninitializedAccountException": return [3, 4];
1400
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
1401
+ case "ValidationException": return [3, 6];
1402
+ case "com.amazonaws.mgn#ValidationException": return [3, 6];
1403
+ }
1404
+ return [3, 8];
1405
1405
  case 2:
1406
1406
  _c = [{}];
1407
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1407
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1408
1408
  case 3:
1409
1409
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1410
- return [3 /*break*/, 9];
1410
+ return [3, 9];
1411
1411
  case 4:
1412
1412
  _d = [{}];
1413
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1413
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1414
1414
  case 5:
1415
1415
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1416
- return [3 /*break*/, 9];
1416
+ return [3, 9];
1417
1417
  case 6:
1418
1418
  _e = [{}];
1419
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1419
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1420
1420
  case 7:
1421
1421
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1422
- return [3 /*break*/, 9];
1422
+ return [3, 9];
1423
1423
  case 8:
1424
1424
  parsedBody = parsedOutput.body;
1425
1425
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1429,7 +1429,7 @@ var deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandErro
1429
1429
  message = response.message || response.Message || errorCode;
1430
1430
  response.message = message;
1431
1431
  delete response.Message;
1432
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1432
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1433
1433
  }
1434
1434
  });
1435
1435
  }); };
@@ -1439,7 +1439,7 @@ export var deserializeAws_restJson1DescribeSourceServersCommand = function (outp
1439
1439
  switch (_c.label) {
1440
1440
  case 0:
1441
1441
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1442
- return [2 /*return*/, deserializeAws_restJson1DescribeSourceServersCommandError(output, context)];
1442
+ return [2, deserializeAws_restJson1DescribeSourceServersCommandError(output, context)];
1443
1443
  }
1444
1444
  contents = {
1445
1445
  $metadata: deserializeMetadata(output),
@@ -1448,7 +1448,7 @@ export var deserializeAws_restJson1DescribeSourceServersCommand = function (outp
1448
1448
  };
1449
1449
  _a = __expectNonNull;
1450
1450
  _b = __expectObject;
1451
- return [4 /*yield*/, parseBody(output.body, context)];
1451
+ return [4, parseBody(output.body, context)];
1452
1452
  case 1:
1453
1453
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1454
1454
  if (data.items !== undefined && data.items !== null) {
@@ -1457,7 +1457,7 @@ export var deserializeAws_restJson1DescribeSourceServersCommand = function (outp
1457
1457
  if (data.nextToken !== undefined && data.nextToken !== null) {
1458
1458
  contents.nextToken = __expectString(data.nextToken);
1459
1459
  }
1460
- return [2 /*return*/, Promise.resolve(contents)];
1460
+ return [2, Promise.resolve(contents)];
1461
1461
  }
1462
1462
  });
1463
1463
  }); };
@@ -1469,31 +1469,31 @@ var deserializeAws_restJson1DescribeSourceServersCommandError = function (output
1469
1469
  case 0:
1470
1470
  _a = [__assign({}, output)];
1471
1471
  _e = {};
1472
- return [4 /*yield*/, parseBody(output.body, context)];
1472
+ return [4, parseBody(output.body, context)];
1473
1473
  case 1:
1474
1474
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1475
1475
  errorCode = "UnknownError";
1476
1476
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1477
1477
  _b = errorCode;
1478
1478
  switch (_b) {
1479
- case "UninitializedAccountException": return [3 /*break*/, 2];
1480
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 2];
1481
- case "ValidationException": return [3 /*break*/, 4];
1482
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 4];
1479
+ case "UninitializedAccountException": return [3, 2];
1480
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 2];
1481
+ case "ValidationException": return [3, 4];
1482
+ case "com.amazonaws.mgn#ValidationException": return [3, 4];
1483
1483
  }
1484
- return [3 /*break*/, 6];
1484
+ return [3, 6];
1485
1485
  case 2:
1486
1486
  _c = [{}];
1487
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1487
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1488
1488
  case 3:
1489
1489
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1490
- return [3 /*break*/, 7];
1490
+ return [3, 7];
1491
1491
  case 4:
1492
1492
  _d = [{}];
1493
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1493
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1494
1494
  case 5:
1495
1495
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1496
- return [3 /*break*/, 7];
1496
+ return [3, 7];
1497
1497
  case 6:
1498
1498
  parsedBody = parsedOutput.body;
1499
1499
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1503,7 +1503,7 @@ var deserializeAws_restJson1DescribeSourceServersCommandError = function (output
1503
1503
  message = response.message || response.Message || errorCode;
1504
1504
  response.message = message;
1505
1505
  delete response.Message;
1506
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1506
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1507
1507
  }
1508
1508
  });
1509
1509
  }); };
@@ -1513,7 +1513,7 @@ export var deserializeAws_restJson1DisconnectFromServiceCommand = function (outp
1513
1513
  switch (_c.label) {
1514
1514
  case 0:
1515
1515
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1516
- return [2 /*return*/, deserializeAws_restJson1DisconnectFromServiceCommandError(output, context)];
1516
+ return [2, deserializeAws_restJson1DisconnectFromServiceCommandError(output, context)];
1517
1517
  }
1518
1518
  contents = {
1519
1519
  $metadata: deserializeMetadata(output),
@@ -1528,7 +1528,7 @@ export var deserializeAws_restJson1DisconnectFromServiceCommand = function (outp
1528
1528
  };
1529
1529
  _a = __expectNonNull;
1530
1530
  _b = __expectObject;
1531
- return [4 /*yield*/, parseBody(output.body, context)];
1531
+ return [4, parseBody(output.body, context)];
1532
1532
  case 1:
1533
1533
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1534
1534
  if (data.arn !== undefined && data.arn !== null) {
@@ -1555,7 +1555,7 @@ export var deserializeAws_restJson1DisconnectFromServiceCommand = function (outp
1555
1555
  if (data.tags !== undefined && data.tags !== null) {
1556
1556
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1557
1557
  }
1558
- return [2 /*return*/, Promise.resolve(contents)];
1558
+ return [2, Promise.resolve(contents)];
1559
1559
  }
1560
1560
  });
1561
1561
  }); };
@@ -1567,39 +1567,39 @@ var deserializeAws_restJson1DisconnectFromServiceCommandError = function (output
1567
1567
  case 0:
1568
1568
  _a = [__assign({}, output)];
1569
1569
  _f = {};
1570
- return [4 /*yield*/, parseBody(output.body, context)];
1570
+ return [4, parseBody(output.body, context)];
1571
1571
  case 1:
1572
1572
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1573
1573
  errorCode = "UnknownError";
1574
1574
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1575
1575
  _b = errorCode;
1576
1576
  switch (_b) {
1577
- case "ConflictException": return [3 /*break*/, 2];
1578
- case "com.amazonaws.mgn#ConflictException": return [3 /*break*/, 2];
1579
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1580
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 4];
1581
- case "UninitializedAccountException": return [3 /*break*/, 6];
1582
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 6];
1583
- }
1584
- return [3 /*break*/, 8];
1577
+ case "ConflictException": return [3, 2];
1578
+ case "com.amazonaws.mgn#ConflictException": return [3, 2];
1579
+ case "ResourceNotFoundException": return [3, 4];
1580
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 4];
1581
+ case "UninitializedAccountException": return [3, 6];
1582
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
1583
+ }
1584
+ return [3, 8];
1585
1585
  case 2:
1586
1586
  _c = [{}];
1587
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1587
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1588
1588
  case 3:
1589
1589
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1590
- return [3 /*break*/, 9];
1590
+ return [3, 9];
1591
1591
  case 4:
1592
1592
  _d = [{}];
1593
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1593
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1594
1594
  case 5:
1595
1595
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1596
- return [3 /*break*/, 9];
1596
+ return [3, 9];
1597
1597
  case 6:
1598
1598
  _e = [{}];
1599
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1599
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1600
1600
  case 7:
1601
1601
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1602
- return [3 /*break*/, 9];
1602
+ return [3, 9];
1603
1603
  case 8:
1604
1604
  parsedBody = parsedOutput.body;
1605
1605
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1609,7 +1609,7 @@ var deserializeAws_restJson1DisconnectFromServiceCommandError = function (output
1609
1609
  message = response.message || response.Message || errorCode;
1610
1610
  response.message = message;
1611
1611
  delete response.Message;
1612
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1612
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1613
1613
  }
1614
1614
  });
1615
1615
  }); };
@@ -1619,7 +1619,7 @@ export var deserializeAws_restJson1FinalizeCutoverCommand = function (output, co
1619
1619
  switch (_c.label) {
1620
1620
  case 0:
1621
1621
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1622
- return [2 /*return*/, deserializeAws_restJson1FinalizeCutoverCommandError(output, context)];
1622
+ return [2, deserializeAws_restJson1FinalizeCutoverCommandError(output, context)];
1623
1623
  }
1624
1624
  contents = {
1625
1625
  $metadata: deserializeMetadata(output),
@@ -1634,7 +1634,7 @@ export var deserializeAws_restJson1FinalizeCutoverCommand = function (output, co
1634
1634
  };
1635
1635
  _a = __expectNonNull;
1636
1636
  _b = __expectObject;
1637
- return [4 /*yield*/, parseBody(output.body, context)];
1637
+ return [4, parseBody(output.body, context)];
1638
1638
  case 1:
1639
1639
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1640
1640
  if (data.arn !== undefined && data.arn !== null) {
@@ -1661,7 +1661,7 @@ export var deserializeAws_restJson1FinalizeCutoverCommand = function (output, co
1661
1661
  if (data.tags !== undefined && data.tags !== null) {
1662
1662
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1663
1663
  }
1664
- return [2 /*return*/, Promise.resolve(contents)];
1664
+ return [2, Promise.resolve(contents)];
1665
1665
  }
1666
1666
  });
1667
1667
  }); };
@@ -1673,47 +1673,47 @@ var deserializeAws_restJson1FinalizeCutoverCommandError = function (output, cont
1673
1673
  case 0:
1674
1674
  _a = [__assign({}, output)];
1675
1675
  _g = {};
1676
- return [4 /*yield*/, parseBody(output.body, context)];
1676
+ return [4, parseBody(output.body, context)];
1677
1677
  case 1:
1678
1678
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1679
1679
  errorCode = "UnknownError";
1680
1680
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1681
1681
  _b = errorCode;
1682
1682
  switch (_b) {
1683
- case "ConflictException": return [3 /*break*/, 2];
1684
- case "com.amazonaws.mgn#ConflictException": return [3 /*break*/, 2];
1685
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1686
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 4];
1687
- case "UninitializedAccountException": return [3 /*break*/, 6];
1688
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 6];
1689
- case "ValidationException": return [3 /*break*/, 8];
1690
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 8];
1691
- }
1692
- return [3 /*break*/, 10];
1683
+ case "ConflictException": return [3, 2];
1684
+ case "com.amazonaws.mgn#ConflictException": return [3, 2];
1685
+ case "ResourceNotFoundException": return [3, 4];
1686
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 4];
1687
+ case "UninitializedAccountException": return [3, 6];
1688
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
1689
+ case "ValidationException": return [3, 8];
1690
+ case "com.amazonaws.mgn#ValidationException": return [3, 8];
1691
+ }
1692
+ return [3, 10];
1693
1693
  case 2:
1694
1694
  _c = [{}];
1695
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1695
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1696
1696
  case 3:
1697
1697
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1698
- return [3 /*break*/, 11];
1698
+ return [3, 11];
1699
1699
  case 4:
1700
1700
  _d = [{}];
1701
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1701
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1702
1702
  case 5:
1703
1703
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1704
- return [3 /*break*/, 11];
1704
+ return [3, 11];
1705
1705
  case 6:
1706
1706
  _e = [{}];
1707
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1707
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1708
1708
  case 7:
1709
1709
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1710
- return [3 /*break*/, 11];
1710
+ return [3, 11];
1711
1711
  case 8:
1712
1712
  _f = [{}];
1713
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1713
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1714
1714
  case 9:
1715
1715
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1716
- return [3 /*break*/, 11];
1716
+ return [3, 11];
1717
1717
  case 10:
1718
1718
  parsedBody = parsedOutput.body;
1719
1719
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1723,7 +1723,7 @@ var deserializeAws_restJson1FinalizeCutoverCommandError = function (output, cont
1723
1723
  message = response.message || response.Message || errorCode;
1724
1724
  response.message = message;
1725
1725
  delete response.Message;
1726
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1726
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1727
1727
  }
1728
1728
  });
1729
1729
  }); };
@@ -1733,7 +1733,7 @@ export var deserializeAws_restJson1GetLaunchConfigurationCommand = function (out
1733
1733
  switch (_c.label) {
1734
1734
  case 0:
1735
1735
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1736
- return [2 /*return*/, deserializeAws_restJson1GetLaunchConfigurationCommandError(output, context)];
1736
+ return [2, deserializeAws_restJson1GetLaunchConfigurationCommandError(output, context)];
1737
1737
  }
1738
1738
  contents = {
1739
1739
  $metadata: deserializeMetadata(output),
@@ -1748,7 +1748,7 @@ export var deserializeAws_restJson1GetLaunchConfigurationCommand = function (out
1748
1748
  };
1749
1749
  _a = __expectNonNull;
1750
1750
  _b = __expectObject;
1751
- return [4 /*yield*/, parseBody(output.body, context)];
1751
+ return [4, parseBody(output.body, context)];
1752
1752
  case 1:
1753
1753
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1754
1754
  if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
@@ -1775,7 +1775,7 @@ export var deserializeAws_restJson1GetLaunchConfigurationCommand = function (out
1775
1775
  if (data.targetInstanceTypeRightSizingMethod !== undefined && data.targetInstanceTypeRightSizingMethod !== null) {
1776
1776
  contents.targetInstanceTypeRightSizingMethod = __expectString(data.targetInstanceTypeRightSizingMethod);
1777
1777
  }
1778
- return [2 /*return*/, Promise.resolve(contents)];
1778
+ return [2, Promise.resolve(contents)];
1779
1779
  }
1780
1780
  });
1781
1781
  }); };
@@ -1787,31 +1787,31 @@ var deserializeAws_restJson1GetLaunchConfigurationCommandError = function (outpu
1787
1787
  case 0:
1788
1788
  _a = [__assign({}, output)];
1789
1789
  _e = {};
1790
- return [4 /*yield*/, parseBody(output.body, context)];
1790
+ return [4, parseBody(output.body, context)];
1791
1791
  case 1:
1792
1792
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1793
1793
  errorCode = "UnknownError";
1794
1794
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1795
1795
  _b = errorCode;
1796
1796
  switch (_b) {
1797
- case "ResourceNotFoundException": return [3 /*break*/, 2];
1798
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 2];
1799
- case "UninitializedAccountException": return [3 /*break*/, 4];
1800
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 4];
1797
+ case "ResourceNotFoundException": return [3, 2];
1798
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 2];
1799
+ case "UninitializedAccountException": return [3, 4];
1800
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
1801
1801
  }
1802
- return [3 /*break*/, 6];
1802
+ return [3, 6];
1803
1803
  case 2:
1804
1804
  _c = [{}];
1805
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1805
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1806
1806
  case 3:
1807
1807
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1808
- return [3 /*break*/, 7];
1808
+ return [3, 7];
1809
1809
  case 4:
1810
1810
  _d = [{}];
1811
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1811
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1812
1812
  case 5:
1813
1813
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1814
- return [3 /*break*/, 7];
1814
+ return [3, 7];
1815
1815
  case 6:
1816
1816
  parsedBody = parsedOutput.body;
1817
1817
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1821,7 +1821,7 @@ var deserializeAws_restJson1GetLaunchConfigurationCommandError = function (outpu
1821
1821
  message = response.message || response.Message || errorCode;
1822
1822
  response.message = message;
1823
1823
  delete response.Message;
1824
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1824
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1825
1825
  }
1826
1826
  });
1827
1827
  }); };
@@ -1831,7 +1831,7 @@ export var deserializeAws_restJson1GetReplicationConfigurationCommand = function
1831
1831
  switch (_c.label) {
1832
1832
  case 0:
1833
1833
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1834
- return [2 /*return*/, deserializeAws_restJson1GetReplicationConfigurationCommandError(output, context)];
1834
+ return [2, deserializeAws_restJson1GetReplicationConfigurationCommandError(output, context)];
1835
1835
  }
1836
1836
  contents = {
1837
1837
  $metadata: deserializeMetadata(output),
@@ -1853,7 +1853,7 @@ export var deserializeAws_restJson1GetReplicationConfigurationCommand = function
1853
1853
  };
1854
1854
  _a = __expectNonNull;
1855
1855
  _b = __expectObject;
1856
- return [4 /*yield*/, parseBody(output.body, context)];
1856
+ return [4, parseBody(output.body, context)];
1857
1857
  case 1:
1858
1858
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1859
1859
  if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
@@ -1901,7 +1901,7 @@ export var deserializeAws_restJson1GetReplicationConfigurationCommand = function
1901
1901
  if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
1902
1902
  contents.useDedicatedReplicationServer = __expectBoolean(data.useDedicatedReplicationServer);
1903
1903
  }
1904
- return [2 /*return*/, Promise.resolve(contents)];
1904
+ return [2, Promise.resolve(contents)];
1905
1905
  }
1906
1906
  });
1907
1907
  }); };
@@ -1913,31 +1913,31 @@ var deserializeAws_restJson1GetReplicationConfigurationCommandError = function (
1913
1913
  case 0:
1914
1914
  _a = [__assign({}, output)];
1915
1915
  _e = {};
1916
- return [4 /*yield*/, parseBody(output.body, context)];
1916
+ return [4, parseBody(output.body, context)];
1917
1917
  case 1:
1918
1918
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1919
1919
  errorCode = "UnknownError";
1920
1920
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1921
1921
  _b = errorCode;
1922
1922
  switch (_b) {
1923
- case "ResourceNotFoundException": return [3 /*break*/, 2];
1924
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 2];
1925
- case "UninitializedAccountException": return [3 /*break*/, 4];
1926
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 4];
1923
+ case "ResourceNotFoundException": return [3, 2];
1924
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 2];
1925
+ case "UninitializedAccountException": return [3, 4];
1926
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
1927
1927
  }
1928
- return [3 /*break*/, 6];
1928
+ return [3, 6];
1929
1929
  case 2:
1930
1930
  _c = [{}];
1931
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1931
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1932
1932
  case 3:
1933
1933
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1934
- return [3 /*break*/, 7];
1934
+ return [3, 7];
1935
1935
  case 4:
1936
1936
  _d = [{}];
1937
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1937
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
1938
1938
  case 5:
1939
1939
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1940
- return [3 /*break*/, 7];
1940
+ return [3, 7];
1941
1941
  case 6:
1942
1942
  parsedBody = parsedOutput.body;
1943
1943
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1947,7 +1947,7 @@ var deserializeAws_restJson1GetReplicationConfigurationCommandError = function (
1947
1947
  message = response.message || response.Message || errorCode;
1948
1948
  response.message = message;
1949
1949
  delete response.Message;
1950
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1950
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1951
1951
  }
1952
1952
  });
1953
1953
  }); };
@@ -1957,15 +1957,15 @@ export var deserializeAws_restJson1InitializeServiceCommand = function (output,
1957
1957
  switch (_a.label) {
1958
1958
  case 0:
1959
1959
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1960
- return [2 /*return*/, deserializeAws_restJson1InitializeServiceCommandError(output, context)];
1960
+ return [2, deserializeAws_restJson1InitializeServiceCommandError(output, context)];
1961
1961
  }
1962
1962
  contents = {
1963
1963
  $metadata: deserializeMetadata(output),
1964
1964
  };
1965
- return [4 /*yield*/, collectBody(output.body, context)];
1965
+ return [4, collectBody(output.body, context)];
1966
1966
  case 1:
1967
1967
  _a.sent();
1968
- return [2 /*return*/, Promise.resolve(contents)];
1968
+ return [2, Promise.resolve(contents)];
1969
1969
  }
1970
1970
  });
1971
1971
  }); };
@@ -1977,31 +1977,31 @@ var deserializeAws_restJson1InitializeServiceCommandError = function (output, co
1977
1977
  case 0:
1978
1978
  _a = [__assign({}, output)];
1979
1979
  _e = {};
1980
- return [4 /*yield*/, parseBody(output.body, context)];
1980
+ return [4, parseBody(output.body, context)];
1981
1981
  case 1:
1982
1982
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1983
1983
  errorCode = "UnknownError";
1984
1984
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1985
1985
  _b = errorCode;
1986
1986
  switch (_b) {
1987
- case "AccessDeniedException": return [3 /*break*/, 2];
1988
- case "com.amazonaws.mgn#AccessDeniedException": return [3 /*break*/, 2];
1989
- case "ValidationException": return [3 /*break*/, 4];
1990
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 4];
1987
+ case "AccessDeniedException": return [3, 2];
1988
+ case "com.amazonaws.mgn#AccessDeniedException": return [3, 2];
1989
+ case "ValidationException": return [3, 4];
1990
+ case "com.amazonaws.mgn#ValidationException": return [3, 4];
1991
1991
  }
1992
- return [3 /*break*/, 6];
1992
+ return [3, 6];
1993
1993
  case 2:
1994
1994
  _c = [{}];
1995
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1995
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1996
1996
  case 3:
1997
1997
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1998
- return [3 /*break*/, 7];
1998
+ return [3, 7];
1999
1999
  case 4:
2000
2000
  _d = [{}];
2001
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2001
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2002
2002
  case 5:
2003
2003
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2004
- return [3 /*break*/, 7];
2004
+ return [3, 7];
2005
2005
  case 6:
2006
2006
  parsedBody = parsedOutput.body;
2007
2007
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2011,7 +2011,7 @@ var deserializeAws_restJson1InitializeServiceCommandError = function (output, co
2011
2011
  message = response.message || response.Message || errorCode;
2012
2012
  response.message = message;
2013
2013
  delete response.Message;
2014
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2014
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2015
2015
  }
2016
2016
  });
2017
2017
  }); };
@@ -2021,7 +2021,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2021
2021
  switch (_c.label) {
2022
2022
  case 0:
2023
2023
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2024
- return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
2024
+ return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
2025
2025
  }
2026
2026
  contents = {
2027
2027
  $metadata: deserializeMetadata(output),
@@ -2029,13 +2029,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2029
2029
  };
2030
2030
  _a = __expectNonNull;
2031
2031
  _b = __expectObject;
2032
- return [4 /*yield*/, parseBody(output.body, context)];
2032
+ return [4, parseBody(output.body, context)];
2033
2033
  case 1:
2034
2034
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2035
2035
  if (data.tags !== undefined && data.tags !== null) {
2036
2036
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2037
2037
  }
2038
- return [2 /*return*/, Promise.resolve(contents)];
2038
+ return [2, Promise.resolve(contents)];
2039
2039
  }
2040
2040
  });
2041
2041
  }); };
@@ -2047,55 +2047,55 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2047
2047
  case 0:
2048
2048
  _a = [__assign({}, output)];
2049
2049
  _h = {};
2050
- return [4 /*yield*/, parseBody(output.body, context)];
2050
+ return [4, parseBody(output.body, context)];
2051
2051
  case 1:
2052
2052
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2053
2053
  errorCode = "UnknownError";
2054
2054
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2055
2055
  _b = errorCode;
2056
2056
  switch (_b) {
2057
- case "AccessDeniedException": return [3 /*break*/, 2];
2058
- case "com.amazonaws.mgn#AccessDeniedException": return [3 /*break*/, 2];
2059
- case "InternalServerException": return [3 /*break*/, 4];
2060
- case "com.amazonaws.mgn#InternalServerException": return [3 /*break*/, 4];
2061
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2062
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 6];
2063
- case "ThrottlingException": return [3 /*break*/, 8];
2064
- case "com.amazonaws.mgn#ThrottlingException": return [3 /*break*/, 8];
2065
- case "ValidationException": return [3 /*break*/, 10];
2066
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 10];
2067
- }
2068
- return [3 /*break*/, 12];
2057
+ case "AccessDeniedException": return [3, 2];
2058
+ case "com.amazonaws.mgn#AccessDeniedException": return [3, 2];
2059
+ case "InternalServerException": return [3, 4];
2060
+ case "com.amazonaws.mgn#InternalServerException": return [3, 4];
2061
+ case "ResourceNotFoundException": return [3, 6];
2062
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 6];
2063
+ case "ThrottlingException": return [3, 8];
2064
+ case "com.amazonaws.mgn#ThrottlingException": return [3, 8];
2065
+ case "ValidationException": return [3, 10];
2066
+ case "com.amazonaws.mgn#ValidationException": return [3, 10];
2067
+ }
2068
+ return [3, 12];
2069
2069
  case 2:
2070
2070
  _c = [{}];
2071
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2071
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2072
2072
  case 3:
2073
2073
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2074
- return [3 /*break*/, 13];
2074
+ return [3, 13];
2075
2075
  case 4:
2076
2076
  _d = [{}];
2077
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2077
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2078
2078
  case 5:
2079
2079
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2080
- return [3 /*break*/, 13];
2080
+ return [3, 13];
2081
2081
  case 6:
2082
2082
  _e = [{}];
2083
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2083
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2084
2084
  case 7:
2085
2085
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2086
- return [3 /*break*/, 13];
2086
+ return [3, 13];
2087
2087
  case 8:
2088
2088
  _f = [{}];
2089
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2089
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2090
2090
  case 9:
2091
2091
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2092
- return [3 /*break*/, 13];
2092
+ return [3, 13];
2093
2093
  case 10:
2094
2094
  _g = [{}];
2095
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2095
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2096
2096
  case 11:
2097
2097
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2098
- return [3 /*break*/, 13];
2098
+ return [3, 13];
2099
2099
  case 12:
2100
2100
  parsedBody = parsedOutput.body;
2101
2101
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2105,7 +2105,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2105
2105
  message = response.message || response.Message || errorCode;
2106
2106
  response.message = message;
2107
2107
  delete response.Message;
2108
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2108
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2109
2109
  }
2110
2110
  });
2111
2111
  }); };
@@ -2115,7 +2115,7 @@ export var deserializeAws_restJson1MarkAsArchivedCommand = function (output, con
2115
2115
  switch (_c.label) {
2116
2116
  case 0:
2117
2117
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2118
- return [2 /*return*/, deserializeAws_restJson1MarkAsArchivedCommandError(output, context)];
2118
+ return [2, deserializeAws_restJson1MarkAsArchivedCommandError(output, context)];
2119
2119
  }
2120
2120
  contents = {
2121
2121
  $metadata: deserializeMetadata(output),
@@ -2130,7 +2130,7 @@ export var deserializeAws_restJson1MarkAsArchivedCommand = function (output, con
2130
2130
  };
2131
2131
  _a = __expectNonNull;
2132
2132
  _b = __expectObject;
2133
- return [4 /*yield*/, parseBody(output.body, context)];
2133
+ return [4, parseBody(output.body, context)];
2134
2134
  case 1:
2135
2135
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2136
2136
  if (data.arn !== undefined && data.arn !== null) {
@@ -2157,7 +2157,7 @@ export var deserializeAws_restJson1MarkAsArchivedCommand = function (output, con
2157
2157
  if (data.tags !== undefined && data.tags !== null) {
2158
2158
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2159
2159
  }
2160
- return [2 /*return*/, Promise.resolve(contents)];
2160
+ return [2, Promise.resolve(contents)];
2161
2161
  }
2162
2162
  });
2163
2163
  }); };
@@ -2169,39 +2169,39 @@ var deserializeAws_restJson1MarkAsArchivedCommandError = function (output, conte
2169
2169
  case 0:
2170
2170
  _a = [__assign({}, output)];
2171
2171
  _f = {};
2172
- return [4 /*yield*/, parseBody(output.body, context)];
2172
+ return [4, parseBody(output.body, context)];
2173
2173
  case 1:
2174
2174
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2175
2175
  errorCode = "UnknownError";
2176
2176
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2177
2177
  _b = errorCode;
2178
2178
  switch (_b) {
2179
- case "ConflictException": return [3 /*break*/, 2];
2180
- case "com.amazonaws.mgn#ConflictException": return [3 /*break*/, 2];
2181
- case "ResourceNotFoundException": return [3 /*break*/, 4];
2182
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 4];
2183
- case "UninitializedAccountException": return [3 /*break*/, 6];
2184
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 6];
2185
- }
2186
- return [3 /*break*/, 8];
2179
+ case "ConflictException": return [3, 2];
2180
+ case "com.amazonaws.mgn#ConflictException": return [3, 2];
2181
+ case "ResourceNotFoundException": return [3, 4];
2182
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 4];
2183
+ case "UninitializedAccountException": return [3, 6];
2184
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
2185
+ }
2186
+ return [3, 8];
2187
2187
  case 2:
2188
2188
  _c = [{}];
2189
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2189
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2190
2190
  case 3:
2191
2191
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2192
- return [3 /*break*/, 9];
2192
+ return [3, 9];
2193
2193
  case 4:
2194
2194
  _d = [{}];
2195
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2195
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2196
2196
  case 5:
2197
2197
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2198
- return [3 /*break*/, 9];
2198
+ return [3, 9];
2199
2199
  case 6:
2200
2200
  _e = [{}];
2201
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2201
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2202
2202
  case 7:
2203
2203
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2204
- return [3 /*break*/, 9];
2204
+ return [3, 9];
2205
2205
  case 8:
2206
2206
  parsedBody = parsedOutput.body;
2207
2207
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2211,7 +2211,7 @@ var deserializeAws_restJson1MarkAsArchivedCommandError = function (output, conte
2211
2211
  message = response.message || response.Message || errorCode;
2212
2212
  response.message = message;
2213
2213
  delete response.Message;
2214
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2214
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2215
2215
  }
2216
2216
  });
2217
2217
  }); };
@@ -2221,7 +2221,7 @@ export var deserializeAws_restJson1RetryDataReplicationCommand = function (outpu
2221
2221
  switch (_c.label) {
2222
2222
  case 0:
2223
2223
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2224
- return [2 /*return*/, deserializeAws_restJson1RetryDataReplicationCommandError(output, context)];
2224
+ return [2, deserializeAws_restJson1RetryDataReplicationCommandError(output, context)];
2225
2225
  }
2226
2226
  contents = {
2227
2227
  $metadata: deserializeMetadata(output),
@@ -2236,7 +2236,7 @@ export var deserializeAws_restJson1RetryDataReplicationCommand = function (outpu
2236
2236
  };
2237
2237
  _a = __expectNonNull;
2238
2238
  _b = __expectObject;
2239
- return [4 /*yield*/, parseBody(output.body, context)];
2239
+ return [4, parseBody(output.body, context)];
2240
2240
  case 1:
2241
2241
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2242
2242
  if (data.arn !== undefined && data.arn !== null) {
@@ -2263,7 +2263,7 @@ export var deserializeAws_restJson1RetryDataReplicationCommand = function (outpu
2263
2263
  if (data.tags !== undefined && data.tags !== null) {
2264
2264
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2265
2265
  }
2266
- return [2 /*return*/, Promise.resolve(contents)];
2266
+ return [2, Promise.resolve(contents)];
2267
2267
  }
2268
2268
  });
2269
2269
  }); };
@@ -2275,39 +2275,39 @@ var deserializeAws_restJson1RetryDataReplicationCommandError = function (output,
2275
2275
  case 0:
2276
2276
  _a = [__assign({}, output)];
2277
2277
  _f = {};
2278
- return [4 /*yield*/, parseBody(output.body, context)];
2278
+ return [4, parseBody(output.body, context)];
2279
2279
  case 1:
2280
2280
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2281
2281
  errorCode = "UnknownError";
2282
2282
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2283
2283
  _b = errorCode;
2284
2284
  switch (_b) {
2285
- case "ResourceNotFoundException": return [3 /*break*/, 2];
2286
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 2];
2287
- case "UninitializedAccountException": return [3 /*break*/, 4];
2288
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 4];
2289
- case "ValidationException": return [3 /*break*/, 6];
2290
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 6];
2291
- }
2292
- return [3 /*break*/, 8];
2285
+ case "ResourceNotFoundException": return [3, 2];
2286
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 2];
2287
+ case "UninitializedAccountException": return [3, 4];
2288
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
2289
+ case "ValidationException": return [3, 6];
2290
+ case "com.amazonaws.mgn#ValidationException": return [3, 6];
2291
+ }
2292
+ return [3, 8];
2293
2293
  case 2:
2294
2294
  _c = [{}];
2295
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2295
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2296
2296
  case 3:
2297
2297
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2298
- return [3 /*break*/, 9];
2298
+ return [3, 9];
2299
2299
  case 4:
2300
2300
  _d = [{}];
2301
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2301
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2302
2302
  case 5:
2303
2303
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2304
- return [3 /*break*/, 9];
2304
+ return [3, 9];
2305
2305
  case 6:
2306
2306
  _e = [{}];
2307
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2307
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2308
2308
  case 7:
2309
2309
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2310
- return [3 /*break*/, 9];
2310
+ return [3, 9];
2311
2311
  case 8:
2312
2312
  parsedBody = parsedOutput.body;
2313
2313
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2317,7 +2317,7 @@ var deserializeAws_restJson1RetryDataReplicationCommandError = function (output,
2317
2317
  message = response.message || response.Message || errorCode;
2318
2318
  response.message = message;
2319
2319
  delete response.Message;
2320
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2320
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2321
2321
  }
2322
2322
  });
2323
2323
  }); };
@@ -2327,7 +2327,7 @@ export var deserializeAws_restJson1StartCutoverCommand = function (output, conte
2327
2327
  switch (_c.label) {
2328
2328
  case 0:
2329
2329
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2330
- return [2 /*return*/, deserializeAws_restJson1StartCutoverCommandError(output, context)];
2330
+ return [2, deserializeAws_restJson1StartCutoverCommandError(output, context)];
2331
2331
  }
2332
2332
  contents = {
2333
2333
  $metadata: deserializeMetadata(output),
@@ -2335,13 +2335,13 @@ export var deserializeAws_restJson1StartCutoverCommand = function (output, conte
2335
2335
  };
2336
2336
  _a = __expectNonNull;
2337
2337
  _b = __expectObject;
2338
- return [4 /*yield*/, parseBody(output.body, context)];
2338
+ return [4, parseBody(output.body, context)];
2339
2339
  case 1:
2340
2340
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2341
2341
  if (data.job !== undefined && data.job !== null) {
2342
2342
  contents.job = deserializeAws_restJson1Job(data.job, context);
2343
2343
  }
2344
- return [2 /*return*/, Promise.resolve(contents)];
2344
+ return [2, Promise.resolve(contents)];
2345
2345
  }
2346
2346
  });
2347
2347
  }); };
@@ -2353,39 +2353,39 @@ var deserializeAws_restJson1StartCutoverCommandError = function (output, context
2353
2353
  case 0:
2354
2354
  _a = [__assign({}, output)];
2355
2355
  _f = {};
2356
- return [4 /*yield*/, parseBody(output.body, context)];
2356
+ return [4, parseBody(output.body, context)];
2357
2357
  case 1:
2358
2358
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2359
2359
  errorCode = "UnknownError";
2360
2360
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2361
2361
  _b = errorCode;
2362
2362
  switch (_b) {
2363
- case "ConflictException": return [3 /*break*/, 2];
2364
- case "com.amazonaws.mgn#ConflictException": return [3 /*break*/, 2];
2365
- case "UninitializedAccountException": return [3 /*break*/, 4];
2366
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 4];
2367
- case "ValidationException": return [3 /*break*/, 6];
2368
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 6];
2369
- }
2370
- return [3 /*break*/, 8];
2363
+ case "ConflictException": return [3, 2];
2364
+ case "com.amazonaws.mgn#ConflictException": return [3, 2];
2365
+ case "UninitializedAccountException": return [3, 4];
2366
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
2367
+ case "ValidationException": return [3, 6];
2368
+ case "com.amazonaws.mgn#ValidationException": return [3, 6];
2369
+ }
2370
+ return [3, 8];
2371
2371
  case 2:
2372
2372
  _c = [{}];
2373
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2373
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2374
2374
  case 3:
2375
2375
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2376
- return [3 /*break*/, 9];
2376
+ return [3, 9];
2377
2377
  case 4:
2378
2378
  _d = [{}];
2379
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2379
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2380
2380
  case 5:
2381
2381
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2382
- return [3 /*break*/, 9];
2382
+ return [3, 9];
2383
2383
  case 6:
2384
2384
  _e = [{}];
2385
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2385
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2386
2386
  case 7:
2387
2387
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2388
- return [3 /*break*/, 9];
2388
+ return [3, 9];
2389
2389
  case 8:
2390
2390
  parsedBody = parsedOutput.body;
2391
2391
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2395,7 +2395,7 @@ var deserializeAws_restJson1StartCutoverCommandError = function (output, context
2395
2395
  message = response.message || response.Message || errorCode;
2396
2396
  response.message = message;
2397
2397
  delete response.Message;
2398
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2398
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2399
2399
  }
2400
2400
  });
2401
2401
  }); };
@@ -2405,7 +2405,7 @@ export var deserializeAws_restJson1StartTestCommand = function (output, context)
2405
2405
  switch (_c.label) {
2406
2406
  case 0:
2407
2407
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2408
- return [2 /*return*/, deserializeAws_restJson1StartTestCommandError(output, context)];
2408
+ return [2, deserializeAws_restJson1StartTestCommandError(output, context)];
2409
2409
  }
2410
2410
  contents = {
2411
2411
  $metadata: deserializeMetadata(output),
@@ -2413,13 +2413,13 @@ export var deserializeAws_restJson1StartTestCommand = function (output, context)
2413
2413
  };
2414
2414
  _a = __expectNonNull;
2415
2415
  _b = __expectObject;
2416
- return [4 /*yield*/, parseBody(output.body, context)];
2416
+ return [4, parseBody(output.body, context)];
2417
2417
  case 1:
2418
2418
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2419
2419
  if (data.job !== undefined && data.job !== null) {
2420
2420
  contents.job = deserializeAws_restJson1Job(data.job, context);
2421
2421
  }
2422
- return [2 /*return*/, Promise.resolve(contents)];
2422
+ return [2, Promise.resolve(contents)];
2423
2423
  }
2424
2424
  });
2425
2425
  }); };
@@ -2431,39 +2431,39 @@ var deserializeAws_restJson1StartTestCommandError = function (output, context) {
2431
2431
  case 0:
2432
2432
  _a = [__assign({}, output)];
2433
2433
  _f = {};
2434
- return [4 /*yield*/, parseBody(output.body, context)];
2434
+ return [4, parseBody(output.body, context)];
2435
2435
  case 1:
2436
2436
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2437
2437
  errorCode = "UnknownError";
2438
2438
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2439
2439
  _b = errorCode;
2440
2440
  switch (_b) {
2441
- case "ConflictException": return [3 /*break*/, 2];
2442
- case "com.amazonaws.mgn#ConflictException": return [3 /*break*/, 2];
2443
- case "UninitializedAccountException": return [3 /*break*/, 4];
2444
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 4];
2445
- case "ValidationException": return [3 /*break*/, 6];
2446
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 6];
2447
- }
2448
- return [3 /*break*/, 8];
2441
+ case "ConflictException": return [3, 2];
2442
+ case "com.amazonaws.mgn#ConflictException": return [3, 2];
2443
+ case "UninitializedAccountException": return [3, 4];
2444
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
2445
+ case "ValidationException": return [3, 6];
2446
+ case "com.amazonaws.mgn#ValidationException": return [3, 6];
2447
+ }
2448
+ return [3, 8];
2449
2449
  case 2:
2450
2450
  _c = [{}];
2451
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2451
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2452
2452
  case 3:
2453
2453
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2454
- return [3 /*break*/, 9];
2454
+ return [3, 9];
2455
2455
  case 4:
2456
2456
  _d = [{}];
2457
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2457
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2458
2458
  case 5:
2459
2459
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2460
- return [3 /*break*/, 9];
2460
+ return [3, 9];
2461
2461
  case 6:
2462
2462
  _e = [{}];
2463
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2463
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2464
2464
  case 7:
2465
2465
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2466
- return [3 /*break*/, 9];
2466
+ return [3, 9];
2467
2467
  case 8:
2468
2468
  parsedBody = parsedOutput.body;
2469
2469
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2473,7 +2473,7 @@ var deserializeAws_restJson1StartTestCommandError = function (output, context) {
2473
2473
  message = response.message || response.Message || errorCode;
2474
2474
  response.message = message;
2475
2475
  delete response.Message;
2476
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2476
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2477
2477
  }
2478
2478
  });
2479
2479
  }); };
@@ -2483,15 +2483,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
2483
2483
  switch (_a.label) {
2484
2484
  case 0:
2485
2485
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2486
- return [2 /*return*/, deserializeAws_restJson1TagResourceCommandError(output, context)];
2486
+ return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
2487
2487
  }
2488
2488
  contents = {
2489
2489
  $metadata: deserializeMetadata(output),
2490
2490
  };
2491
- return [4 /*yield*/, collectBody(output.body, context)];
2491
+ return [4, collectBody(output.body, context)];
2492
2492
  case 1:
2493
2493
  _a.sent();
2494
- return [2 /*return*/, Promise.resolve(contents)];
2494
+ return [2, Promise.resolve(contents)];
2495
2495
  }
2496
2496
  });
2497
2497
  }); };
@@ -2503,55 +2503,55 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
2503
2503
  case 0:
2504
2504
  _a = [__assign({}, output)];
2505
2505
  _h = {};
2506
- return [4 /*yield*/, parseBody(output.body, context)];
2506
+ return [4, parseBody(output.body, context)];
2507
2507
  case 1:
2508
2508
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2509
2509
  errorCode = "UnknownError";
2510
2510
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2511
2511
  _b = errorCode;
2512
2512
  switch (_b) {
2513
- case "AccessDeniedException": return [3 /*break*/, 2];
2514
- case "com.amazonaws.mgn#AccessDeniedException": return [3 /*break*/, 2];
2515
- case "InternalServerException": return [3 /*break*/, 4];
2516
- case "com.amazonaws.mgn#InternalServerException": return [3 /*break*/, 4];
2517
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2518
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 6];
2519
- case "ThrottlingException": return [3 /*break*/, 8];
2520
- case "com.amazonaws.mgn#ThrottlingException": return [3 /*break*/, 8];
2521
- case "ValidationException": return [3 /*break*/, 10];
2522
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 10];
2523
- }
2524
- return [3 /*break*/, 12];
2513
+ case "AccessDeniedException": return [3, 2];
2514
+ case "com.amazonaws.mgn#AccessDeniedException": return [3, 2];
2515
+ case "InternalServerException": return [3, 4];
2516
+ case "com.amazonaws.mgn#InternalServerException": return [3, 4];
2517
+ case "ResourceNotFoundException": return [3, 6];
2518
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 6];
2519
+ case "ThrottlingException": return [3, 8];
2520
+ case "com.amazonaws.mgn#ThrottlingException": return [3, 8];
2521
+ case "ValidationException": return [3, 10];
2522
+ case "com.amazonaws.mgn#ValidationException": return [3, 10];
2523
+ }
2524
+ return [3, 12];
2525
2525
  case 2:
2526
2526
  _c = [{}];
2527
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2527
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2528
2528
  case 3:
2529
2529
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2530
- return [3 /*break*/, 13];
2530
+ return [3, 13];
2531
2531
  case 4:
2532
2532
  _d = [{}];
2533
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2533
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2534
2534
  case 5:
2535
2535
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2536
- return [3 /*break*/, 13];
2536
+ return [3, 13];
2537
2537
  case 6:
2538
2538
  _e = [{}];
2539
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2539
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2540
2540
  case 7:
2541
2541
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2542
- return [3 /*break*/, 13];
2542
+ return [3, 13];
2543
2543
  case 8:
2544
2544
  _f = [{}];
2545
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2545
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2546
2546
  case 9:
2547
2547
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2548
- return [3 /*break*/, 13];
2548
+ return [3, 13];
2549
2549
  case 10:
2550
2550
  _g = [{}];
2551
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2551
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2552
2552
  case 11:
2553
2553
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2554
- return [3 /*break*/, 13];
2554
+ return [3, 13];
2555
2555
  case 12:
2556
2556
  parsedBody = parsedOutput.body;
2557
2557
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2561,7 +2561,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
2561
2561
  message = response.message || response.Message || errorCode;
2562
2562
  response.message = message;
2563
2563
  delete response.Message;
2564
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2564
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2565
2565
  }
2566
2566
  });
2567
2567
  }); };
@@ -2571,7 +2571,7 @@ export var deserializeAws_restJson1TerminateTargetInstancesCommand = function (o
2571
2571
  switch (_c.label) {
2572
2572
  case 0:
2573
2573
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2574
- return [2 /*return*/, deserializeAws_restJson1TerminateTargetInstancesCommandError(output, context)];
2574
+ return [2, deserializeAws_restJson1TerminateTargetInstancesCommandError(output, context)];
2575
2575
  }
2576
2576
  contents = {
2577
2577
  $metadata: deserializeMetadata(output),
@@ -2579,13 +2579,13 @@ export var deserializeAws_restJson1TerminateTargetInstancesCommand = function (o
2579
2579
  };
2580
2580
  _a = __expectNonNull;
2581
2581
  _b = __expectObject;
2582
- return [4 /*yield*/, parseBody(output.body, context)];
2582
+ return [4, parseBody(output.body, context)];
2583
2583
  case 1:
2584
2584
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2585
2585
  if (data.job !== undefined && data.job !== null) {
2586
2586
  contents.job = deserializeAws_restJson1Job(data.job, context);
2587
2587
  }
2588
- return [2 /*return*/, Promise.resolve(contents)];
2588
+ return [2, Promise.resolve(contents)];
2589
2589
  }
2590
2590
  });
2591
2591
  }); };
@@ -2597,39 +2597,39 @@ var deserializeAws_restJson1TerminateTargetInstancesCommandError = function (out
2597
2597
  case 0:
2598
2598
  _a = [__assign({}, output)];
2599
2599
  _f = {};
2600
- return [4 /*yield*/, parseBody(output.body, context)];
2600
+ return [4, parseBody(output.body, context)];
2601
2601
  case 1:
2602
2602
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2603
2603
  errorCode = "UnknownError";
2604
2604
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2605
2605
  _b = errorCode;
2606
2606
  switch (_b) {
2607
- case "ConflictException": return [3 /*break*/, 2];
2608
- case "com.amazonaws.mgn#ConflictException": return [3 /*break*/, 2];
2609
- case "UninitializedAccountException": return [3 /*break*/, 4];
2610
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 4];
2611
- case "ValidationException": return [3 /*break*/, 6];
2612
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 6];
2613
- }
2614
- return [3 /*break*/, 8];
2607
+ case "ConflictException": return [3, 2];
2608
+ case "com.amazonaws.mgn#ConflictException": return [3, 2];
2609
+ case "UninitializedAccountException": return [3, 4];
2610
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 4];
2611
+ case "ValidationException": return [3, 6];
2612
+ case "com.amazonaws.mgn#ValidationException": return [3, 6];
2613
+ }
2614
+ return [3, 8];
2615
2615
  case 2:
2616
2616
  _c = [{}];
2617
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2617
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2618
2618
  case 3:
2619
2619
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2620
- return [3 /*break*/, 9];
2620
+ return [3, 9];
2621
2621
  case 4:
2622
2622
  _d = [{}];
2623
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2623
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2624
2624
  case 5:
2625
2625
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2626
- return [3 /*break*/, 9];
2626
+ return [3, 9];
2627
2627
  case 6:
2628
2628
  _e = [{}];
2629
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2629
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2630
2630
  case 7:
2631
2631
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2632
- return [3 /*break*/, 9];
2632
+ return [3, 9];
2633
2633
  case 8:
2634
2634
  parsedBody = parsedOutput.body;
2635
2635
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2639,7 +2639,7 @@ var deserializeAws_restJson1TerminateTargetInstancesCommandError = function (out
2639
2639
  message = response.message || response.Message || errorCode;
2640
2640
  response.message = message;
2641
2641
  delete response.Message;
2642
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2642
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2643
2643
  }
2644
2644
  });
2645
2645
  }); };
@@ -2649,15 +2649,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
2649
2649
  switch (_a.label) {
2650
2650
  case 0:
2651
2651
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2652
- return [2 /*return*/, deserializeAws_restJson1UntagResourceCommandError(output, context)];
2652
+ return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
2653
2653
  }
2654
2654
  contents = {
2655
2655
  $metadata: deserializeMetadata(output),
2656
2656
  };
2657
- return [4 /*yield*/, collectBody(output.body, context)];
2657
+ return [4, collectBody(output.body, context)];
2658
2658
  case 1:
2659
2659
  _a.sent();
2660
- return [2 /*return*/, Promise.resolve(contents)];
2660
+ return [2, Promise.resolve(contents)];
2661
2661
  }
2662
2662
  });
2663
2663
  }); };
@@ -2669,55 +2669,55 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2669
2669
  case 0:
2670
2670
  _a = [__assign({}, output)];
2671
2671
  _h = {};
2672
- return [4 /*yield*/, parseBody(output.body, context)];
2672
+ return [4, parseBody(output.body, context)];
2673
2673
  case 1:
2674
2674
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2675
2675
  errorCode = "UnknownError";
2676
2676
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2677
2677
  _b = errorCode;
2678
2678
  switch (_b) {
2679
- case "AccessDeniedException": return [3 /*break*/, 2];
2680
- case "com.amazonaws.mgn#AccessDeniedException": return [3 /*break*/, 2];
2681
- case "InternalServerException": return [3 /*break*/, 4];
2682
- case "com.amazonaws.mgn#InternalServerException": return [3 /*break*/, 4];
2683
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2684
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 6];
2685
- case "ThrottlingException": return [3 /*break*/, 8];
2686
- case "com.amazonaws.mgn#ThrottlingException": return [3 /*break*/, 8];
2687
- case "ValidationException": return [3 /*break*/, 10];
2688
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 10];
2689
- }
2690
- return [3 /*break*/, 12];
2679
+ case "AccessDeniedException": return [3, 2];
2680
+ case "com.amazonaws.mgn#AccessDeniedException": return [3, 2];
2681
+ case "InternalServerException": return [3, 4];
2682
+ case "com.amazonaws.mgn#InternalServerException": return [3, 4];
2683
+ case "ResourceNotFoundException": return [3, 6];
2684
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 6];
2685
+ case "ThrottlingException": return [3, 8];
2686
+ case "com.amazonaws.mgn#ThrottlingException": return [3, 8];
2687
+ case "ValidationException": return [3, 10];
2688
+ case "com.amazonaws.mgn#ValidationException": return [3, 10];
2689
+ }
2690
+ return [3, 12];
2691
2691
  case 2:
2692
2692
  _c = [{}];
2693
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2693
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2694
2694
  case 3:
2695
2695
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2696
- return [3 /*break*/, 13];
2696
+ return [3, 13];
2697
2697
  case 4:
2698
2698
  _d = [{}];
2699
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2699
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2700
2700
  case 5:
2701
2701
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2702
- return [3 /*break*/, 13];
2702
+ return [3, 13];
2703
2703
  case 6:
2704
2704
  _e = [{}];
2705
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2705
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2706
2706
  case 7:
2707
2707
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2708
- return [3 /*break*/, 13];
2708
+ return [3, 13];
2709
2709
  case 8:
2710
2710
  _f = [{}];
2711
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2711
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2712
2712
  case 9:
2713
2713
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2714
- return [3 /*break*/, 13];
2714
+ return [3, 13];
2715
2715
  case 10:
2716
2716
  _g = [{}];
2717
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2717
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2718
2718
  case 11:
2719
2719
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2720
- return [3 /*break*/, 13];
2720
+ return [3, 13];
2721
2721
  case 12:
2722
2722
  parsedBody = parsedOutput.body;
2723
2723
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2727,7 +2727,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2727
2727
  message = response.message || response.Message || errorCode;
2728
2728
  response.message = message;
2729
2729
  delete response.Message;
2730
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2730
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2731
2731
  }
2732
2732
  });
2733
2733
  }); };
@@ -2737,7 +2737,7 @@ export var deserializeAws_restJson1UpdateLaunchConfigurationCommand = function (
2737
2737
  switch (_c.label) {
2738
2738
  case 0:
2739
2739
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2740
- return [2 /*return*/, deserializeAws_restJson1UpdateLaunchConfigurationCommandError(output, context)];
2740
+ return [2, deserializeAws_restJson1UpdateLaunchConfigurationCommandError(output, context)];
2741
2741
  }
2742
2742
  contents = {
2743
2743
  $metadata: deserializeMetadata(output),
@@ -2752,7 +2752,7 @@ export var deserializeAws_restJson1UpdateLaunchConfigurationCommand = function (
2752
2752
  };
2753
2753
  _a = __expectNonNull;
2754
2754
  _b = __expectObject;
2755
- return [4 /*yield*/, parseBody(output.body, context)];
2755
+ return [4, parseBody(output.body, context)];
2756
2756
  case 1:
2757
2757
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2758
2758
  if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
@@ -2779,7 +2779,7 @@ export var deserializeAws_restJson1UpdateLaunchConfigurationCommand = function (
2779
2779
  if (data.targetInstanceTypeRightSizingMethod !== undefined && data.targetInstanceTypeRightSizingMethod !== null) {
2780
2780
  contents.targetInstanceTypeRightSizingMethod = __expectString(data.targetInstanceTypeRightSizingMethod);
2781
2781
  }
2782
- return [2 /*return*/, Promise.resolve(contents)];
2782
+ return [2, Promise.resolve(contents)];
2783
2783
  }
2784
2784
  });
2785
2785
  }); };
@@ -2791,47 +2791,47 @@ var deserializeAws_restJson1UpdateLaunchConfigurationCommandError = function (ou
2791
2791
  case 0:
2792
2792
  _a = [__assign({}, output)];
2793
2793
  _g = {};
2794
- return [4 /*yield*/, parseBody(output.body, context)];
2794
+ return [4, parseBody(output.body, context)];
2795
2795
  case 1:
2796
2796
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2797
2797
  errorCode = "UnknownError";
2798
2798
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2799
2799
  _b = errorCode;
2800
2800
  switch (_b) {
2801
- case "ConflictException": return [3 /*break*/, 2];
2802
- case "com.amazonaws.mgn#ConflictException": return [3 /*break*/, 2];
2803
- case "ResourceNotFoundException": return [3 /*break*/, 4];
2804
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 4];
2805
- case "UninitializedAccountException": return [3 /*break*/, 6];
2806
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 6];
2807
- case "ValidationException": return [3 /*break*/, 8];
2808
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 8];
2809
- }
2810
- return [3 /*break*/, 10];
2801
+ case "ConflictException": return [3, 2];
2802
+ case "com.amazonaws.mgn#ConflictException": return [3, 2];
2803
+ case "ResourceNotFoundException": return [3, 4];
2804
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 4];
2805
+ case "UninitializedAccountException": return [3, 6];
2806
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
2807
+ case "ValidationException": return [3, 8];
2808
+ case "com.amazonaws.mgn#ValidationException": return [3, 8];
2809
+ }
2810
+ return [3, 10];
2811
2811
  case 2:
2812
2812
  _c = [{}];
2813
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2813
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2814
2814
  case 3:
2815
2815
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2816
- return [3 /*break*/, 11];
2816
+ return [3, 11];
2817
2817
  case 4:
2818
2818
  _d = [{}];
2819
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2819
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2820
2820
  case 5:
2821
2821
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2822
- return [3 /*break*/, 11];
2822
+ return [3, 11];
2823
2823
  case 6:
2824
2824
  _e = [{}];
2825
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2825
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2826
2826
  case 7:
2827
2827
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2828
- return [3 /*break*/, 11];
2828
+ return [3, 11];
2829
2829
  case 8:
2830
2830
  _f = [{}];
2831
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2831
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2832
2832
  case 9:
2833
2833
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2834
- return [3 /*break*/, 11];
2834
+ return [3, 11];
2835
2835
  case 10:
2836
2836
  parsedBody = parsedOutput.body;
2837
2837
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2841,7 +2841,7 @@ var deserializeAws_restJson1UpdateLaunchConfigurationCommandError = function (ou
2841
2841
  message = response.message || response.Message || errorCode;
2842
2842
  response.message = message;
2843
2843
  delete response.Message;
2844
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2844
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2845
2845
  }
2846
2846
  });
2847
2847
  }); };
@@ -2851,7 +2851,7 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationCommand = funct
2851
2851
  switch (_c.label) {
2852
2852
  case 0:
2853
2853
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2854
- return [2 /*return*/, deserializeAws_restJson1UpdateReplicationConfigurationCommandError(output, context)];
2854
+ return [2, deserializeAws_restJson1UpdateReplicationConfigurationCommandError(output, context)];
2855
2855
  }
2856
2856
  contents = {
2857
2857
  $metadata: deserializeMetadata(output),
@@ -2873,7 +2873,7 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationCommand = funct
2873
2873
  };
2874
2874
  _a = __expectNonNull;
2875
2875
  _b = __expectObject;
2876
- return [4 /*yield*/, parseBody(output.body, context)];
2876
+ return [4, parseBody(output.body, context)];
2877
2877
  case 1:
2878
2878
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2879
2879
  if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
@@ -2921,7 +2921,7 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationCommand = funct
2921
2921
  if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
2922
2922
  contents.useDedicatedReplicationServer = __expectBoolean(data.useDedicatedReplicationServer);
2923
2923
  }
2924
- return [2 /*return*/, Promise.resolve(contents)];
2924
+ return [2, Promise.resolve(contents)];
2925
2925
  }
2926
2926
  });
2927
2927
  }); };
@@ -2933,55 +2933,55 @@ var deserializeAws_restJson1UpdateReplicationConfigurationCommandError = functio
2933
2933
  case 0:
2934
2934
  _a = [__assign({}, output)];
2935
2935
  _h = {};
2936
- return [4 /*yield*/, parseBody(output.body, context)];
2936
+ return [4, parseBody(output.body, context)];
2937
2937
  case 1:
2938
2938
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2939
2939
  errorCode = "UnknownError";
2940
2940
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2941
2941
  _b = errorCode;
2942
2942
  switch (_b) {
2943
- case "AccessDeniedException": return [3 /*break*/, 2];
2944
- case "com.amazonaws.mgn#AccessDeniedException": return [3 /*break*/, 2];
2945
- case "ConflictException": return [3 /*break*/, 4];
2946
- case "com.amazonaws.mgn#ConflictException": return [3 /*break*/, 4];
2947
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2948
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 6];
2949
- case "UninitializedAccountException": return [3 /*break*/, 8];
2950
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 8];
2951
- case "ValidationException": return [3 /*break*/, 10];
2952
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 10];
2953
- }
2954
- return [3 /*break*/, 12];
2943
+ case "AccessDeniedException": return [3, 2];
2944
+ case "com.amazonaws.mgn#AccessDeniedException": return [3, 2];
2945
+ case "ConflictException": return [3, 4];
2946
+ case "com.amazonaws.mgn#ConflictException": return [3, 4];
2947
+ case "ResourceNotFoundException": return [3, 6];
2948
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 6];
2949
+ case "UninitializedAccountException": return [3, 8];
2950
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 8];
2951
+ case "ValidationException": return [3, 10];
2952
+ case "com.amazonaws.mgn#ValidationException": return [3, 10];
2953
+ }
2954
+ return [3, 12];
2955
2955
  case 2:
2956
2956
  _c = [{}];
2957
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2957
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2958
2958
  case 3:
2959
2959
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2960
- return [3 /*break*/, 13];
2960
+ return [3, 13];
2961
2961
  case 4:
2962
2962
  _d = [{}];
2963
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2963
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2964
2964
  case 5:
2965
2965
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2966
- return [3 /*break*/, 13];
2966
+ return [3, 13];
2967
2967
  case 6:
2968
2968
  _e = [{}];
2969
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2969
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2970
2970
  case 7:
2971
2971
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2972
- return [3 /*break*/, 13];
2972
+ return [3, 13];
2973
2973
  case 8:
2974
2974
  _f = [{}];
2975
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2975
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
2976
2976
  case 9:
2977
2977
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2978
- return [3 /*break*/, 13];
2978
+ return [3, 13];
2979
2979
  case 10:
2980
2980
  _g = [{}];
2981
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2981
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2982
2982
  case 11:
2983
2983
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2984
- return [3 /*break*/, 13];
2984
+ return [3, 13];
2985
2985
  case 12:
2986
2986
  parsedBody = parsedOutput.body;
2987
2987
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2991,7 +2991,7 @@ var deserializeAws_restJson1UpdateReplicationConfigurationCommandError = functio
2991
2991
  message = response.message || response.Message || errorCode;
2992
2992
  response.message = message;
2993
2993
  delete response.Message;
2994
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2994
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2995
2995
  }
2996
2996
  });
2997
2997
  }); };
@@ -3001,7 +3001,7 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand
3001
3001
  switch (_c.label) {
3002
3002
  case 0:
3003
3003
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3004
- return [2 /*return*/, deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError(output, context)];
3004
+ return [2, deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError(output, context)];
3005
3005
  }
3006
3006
  contents = {
3007
3007
  $metadata: deserializeMetadata(output),
@@ -3023,7 +3023,7 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand
3023
3023
  };
3024
3024
  _a = __expectNonNull;
3025
3025
  _b = __expectObject;
3026
- return [4 /*yield*/, parseBody(output.body, context)];
3026
+ return [4, parseBody(output.body, context)];
3027
3027
  case 1:
3028
3028
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3029
3029
  if (data.arn !== undefined && data.arn !== null) {
@@ -3071,7 +3071,7 @@ export var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand
3071
3071
  if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
3072
3072
  contents.useDedicatedReplicationServer = __expectBoolean(data.useDedicatedReplicationServer);
3073
3073
  }
3074
- return [2 /*return*/, Promise.resolve(contents)];
3074
+ return [2, Promise.resolve(contents)];
3075
3075
  }
3076
3076
  });
3077
3077
  }); };
@@ -3083,47 +3083,47 @@ var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError =
3083
3083
  case 0:
3084
3084
  _a = [__assign({}, output)];
3085
3085
  _g = {};
3086
- return [4 /*yield*/, parseBody(output.body, context)];
3086
+ return [4, parseBody(output.body, context)];
3087
3087
  case 1:
3088
3088
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
3089
3089
  errorCode = "UnknownError";
3090
3090
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3091
3091
  _b = errorCode;
3092
3092
  switch (_b) {
3093
- case "AccessDeniedException": return [3 /*break*/, 2];
3094
- case "com.amazonaws.mgn#AccessDeniedException": return [3 /*break*/, 2];
3095
- case "ResourceNotFoundException": return [3 /*break*/, 4];
3096
- case "com.amazonaws.mgn#ResourceNotFoundException": return [3 /*break*/, 4];
3097
- case "UninitializedAccountException": return [3 /*break*/, 6];
3098
- case "com.amazonaws.mgn#UninitializedAccountException": return [3 /*break*/, 6];
3099
- case "ValidationException": return [3 /*break*/, 8];
3100
- case "com.amazonaws.mgn#ValidationException": return [3 /*break*/, 8];
3101
- }
3102
- return [3 /*break*/, 10];
3093
+ case "AccessDeniedException": return [3, 2];
3094
+ case "com.amazonaws.mgn#AccessDeniedException": return [3, 2];
3095
+ case "ResourceNotFoundException": return [3, 4];
3096
+ case "com.amazonaws.mgn#ResourceNotFoundException": return [3, 4];
3097
+ case "UninitializedAccountException": return [3, 6];
3098
+ case "com.amazonaws.mgn#UninitializedAccountException": return [3, 6];
3099
+ case "ValidationException": return [3, 8];
3100
+ case "com.amazonaws.mgn#ValidationException": return [3, 8];
3101
+ }
3102
+ return [3, 10];
3103
3103
  case 2:
3104
3104
  _c = [{}];
3105
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
3105
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
3106
3106
  case 3:
3107
3107
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3108
- return [3 /*break*/, 11];
3108
+ return [3, 11];
3109
3109
  case 4:
3110
3110
  _d = [{}];
3111
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3111
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3112
3112
  case 5:
3113
3113
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3114
- return [3 /*break*/, 11];
3114
+ return [3, 11];
3115
3115
  case 6:
3116
3116
  _e = [{}];
3117
- return [4 /*yield*/, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
3117
+ return [4, deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context)];
3118
3118
  case 7:
3119
3119
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3120
- return [3 /*break*/, 11];
3120
+ return [3, 11];
3121
3121
  case 8:
3122
3122
  _f = [{}];
3123
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
3123
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
3124
3124
  case 9:
3125
3125
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3126
- return [3 /*break*/, 11];
3126
+ return [3, 11];
3127
3127
  case 10:
3128
3128
  parsedBody = parsedOutput.body;
3129
3129
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3133,7 +3133,7 @@ var deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError =
3133
3133
  message = response.message || response.Message || errorCode;
3134
3134
  response.message = message;
3135
3135
  delete response.Message;
3136
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3136
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3137
3137
  }
3138
3138
  });
3139
3139
  }); };
@@ -3154,7 +3154,7 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
3154
3154
  if (data.message !== undefined && data.message !== null) {
3155
3155
  contents.message = __expectString(data.message);
3156
3156
  }
3157
- return [2 /*return*/, contents];
3157
+ return [2, contents];
3158
3158
  });
3159
3159
  }); };
3160
3160
  var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -3182,7 +3182,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
3182
3182
  if (data.resourceType !== undefined && data.resourceType !== null) {
3183
3183
  contents.resourceType = __expectString(data.resourceType);
3184
3184
  }
3185
- return [2 /*return*/, contents];
3185
+ return [2, contents];
3186
3186
  });
3187
3187
  }); };
3188
3188
  var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -3202,7 +3202,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
3202
3202
  if (data.message !== undefined && data.message !== null) {
3203
3203
  contents.message = __expectString(data.message);
3204
3204
  }
3205
- return [2 /*return*/, contents];
3205
+ return [2, contents];
3206
3206
  });
3207
3207
  }); };
3208
3208
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -3230,7 +3230,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
3230
3230
  if (data.resourceType !== undefined && data.resourceType !== null) {
3231
3231
  contents.resourceType = __expectString(data.resourceType);
3232
3232
  }
3233
- return [2 /*return*/, contents];
3233
+ return [2, contents];
3234
3234
  });
3235
3235
  }); };
3236
3236
  var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -3258,7 +3258,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
3258
3258
  if (data.serviceCode !== undefined && data.serviceCode !== null) {
3259
3259
  contents.serviceCode = __expectString(data.serviceCode);
3260
3260
  }
3261
- return [2 /*return*/, contents];
3261
+ return [2, contents];
3262
3262
  });
3263
3263
  }); };
3264
3264
  var deserializeAws_restJson1UninitializedAccountExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -3278,7 +3278,7 @@ var deserializeAws_restJson1UninitializedAccountExceptionResponse = function (pa
3278
3278
  if (data.message !== undefined && data.message !== null) {
3279
3279
  contents.message = __expectString(data.message);
3280
3280
  }
3281
- return [2 /*return*/, contents];
3281
+ return [2, contents];
3282
3282
  });
3283
3283
  }); };
3284
3284
  var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -3306,7 +3306,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
3306
3306
  if (data.reason !== undefined && data.reason !== null) {
3307
3307
  contents.reason = __expectString(data.reason);
3308
3308
  }
3309
- return [2 /*return*/, contents];
3309
+ return [2, contents];
3310
3310
  });
3311
3311
  }); };
3312
3312
  var serializeAws_restJson1ChangeServerLifeCycleStateSourceServerLifecycle = function (input, context) {
@@ -3866,7 +3866,6 @@ var deserializeMetadata = function (output) {
3866
3866
  cfId: output.headers["x-amz-cf-id"],
3867
3867
  });
3868
3868
  };
3869
- // Collect low-level response body stream to Uint8Array.
3870
3869
  var collectBody = function (streamBody, context) {
3871
3870
  if (streamBody === void 0) { streamBody = new Uint8Array(); }
3872
3871
  if (streamBody instanceof Uint8Array) {
@@ -3874,7 +3873,6 @@ var collectBody = function (streamBody, context) {
3874
3873
  }
3875
3874
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3876
3875
  };
3877
- // Encode Uint8Array data into string with utf-8.
3878
3876
  var collectBodyString = function (streamBody, context) {
3879
3877
  return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
3880
3878
  };
@@ -3893,9 +3891,6 @@ var parseBody = function (streamBody, context) {
3893
3891
  return {};
3894
3892
  });
3895
3893
  };
3896
- /**
3897
- * Load an error code for the aws.rest-json-1.1 protocol.
3898
- */
3899
3894
  var loadRestJsonErrorCode = function (output, data) {
3900
3895
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
3901
3896
  var sanitizeErrorCode = function (rawValue) {
@@ -3920,4 +3915,3 @@ var loadRestJsonErrorCode = function (output, data) {
3920
3915
  }
3921
3916
  return "";
3922
3917
  };
3923
- //# sourceMappingURL=Aws_restJson1.js.map