@aws-sdk/client-appconfig 3.31.0 → 3.35.0

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 (467) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/{dist/cjs → dist-cjs}/AppConfig.js +1 -1
  3. package/dist-cjs/AppConfig.js.map +1 -0
  4. package/{dist/cjs → dist-cjs}/AppConfigClient.js +14 -14
  5. package/dist-cjs/AppConfigClient.js.map +1 -0
  6. package/{dist/cjs → dist-cjs}/commands/CreateApplicationCommand.js +5 -5
  7. package/dist-cjs/commands/CreateApplicationCommand.js.map +1 -0
  8. package/{dist/cjs → dist-cjs}/commands/CreateConfigurationProfileCommand.js +5 -5
  9. package/dist-cjs/commands/CreateConfigurationProfileCommand.js.map +1 -0
  10. package/{dist/cjs → dist-cjs}/commands/CreateDeploymentStrategyCommand.js +5 -5
  11. package/dist-cjs/commands/CreateDeploymentStrategyCommand.js.map +1 -0
  12. package/{dist/cjs → dist-cjs}/commands/CreateEnvironmentCommand.js +5 -5
  13. package/dist-cjs/commands/CreateEnvironmentCommand.js.map +1 -0
  14. package/{dist/cjs → dist-cjs}/commands/CreateHostedConfigurationVersionCommand.js +5 -5
  15. package/dist-cjs/commands/CreateHostedConfigurationVersionCommand.js.map +1 -0
  16. package/{dist/cjs → dist-cjs}/commands/DeleteApplicationCommand.js +5 -5
  17. package/dist-cjs/commands/DeleteApplicationCommand.js.map +1 -0
  18. package/{dist/cjs → dist-cjs}/commands/DeleteConfigurationProfileCommand.js +5 -5
  19. package/dist-cjs/commands/DeleteConfigurationProfileCommand.js.map +1 -0
  20. package/{dist/cjs → dist-cjs}/commands/DeleteDeploymentStrategyCommand.js +5 -5
  21. package/dist-cjs/commands/DeleteDeploymentStrategyCommand.js.map +1 -0
  22. package/{dist/cjs → dist-cjs}/commands/DeleteEnvironmentCommand.js +5 -5
  23. package/dist-cjs/commands/DeleteEnvironmentCommand.js.map +1 -0
  24. package/{dist/cjs → dist-cjs}/commands/DeleteHostedConfigurationVersionCommand.js +5 -5
  25. package/dist-cjs/commands/DeleteHostedConfigurationVersionCommand.js.map +1 -0
  26. package/{dist/cjs → dist-cjs}/commands/GetApplicationCommand.js +5 -5
  27. package/dist-cjs/commands/GetApplicationCommand.js.map +1 -0
  28. package/{dist/cjs → dist-cjs}/commands/GetConfigurationCommand.js +5 -5
  29. package/dist-cjs/commands/GetConfigurationCommand.js.map +1 -0
  30. package/{dist/cjs → dist-cjs}/commands/GetConfigurationProfileCommand.js +5 -5
  31. package/dist-cjs/commands/GetConfigurationProfileCommand.js.map +1 -0
  32. package/{dist/cjs → dist-cjs}/commands/GetDeploymentCommand.js +5 -5
  33. package/dist-cjs/commands/GetDeploymentCommand.js.map +1 -0
  34. package/{dist/cjs → dist-cjs}/commands/GetDeploymentStrategyCommand.js +5 -5
  35. package/dist-cjs/commands/GetDeploymentStrategyCommand.js.map +1 -0
  36. package/{dist/cjs → dist-cjs}/commands/GetEnvironmentCommand.js +5 -5
  37. package/dist-cjs/commands/GetEnvironmentCommand.js.map +1 -0
  38. package/{dist/cjs → dist-cjs}/commands/GetHostedConfigurationVersionCommand.js +5 -5
  39. package/dist-cjs/commands/GetHostedConfigurationVersionCommand.js.map +1 -0
  40. package/{dist/cjs → dist-cjs}/commands/ListApplicationsCommand.js +5 -5
  41. package/dist-cjs/commands/ListApplicationsCommand.js.map +1 -0
  42. package/{dist/cjs → dist-cjs}/commands/ListConfigurationProfilesCommand.js +5 -5
  43. package/dist-cjs/commands/ListConfigurationProfilesCommand.js.map +1 -0
  44. package/{dist/cjs → dist-cjs}/commands/ListDeploymentStrategiesCommand.js +5 -5
  45. package/dist-cjs/commands/ListDeploymentStrategiesCommand.js.map +1 -0
  46. package/{dist/cjs → dist-cjs}/commands/ListDeploymentsCommand.js +5 -5
  47. package/dist-cjs/commands/ListDeploymentsCommand.js.map +1 -0
  48. package/{dist/cjs → dist-cjs}/commands/ListEnvironmentsCommand.js +5 -5
  49. package/dist-cjs/commands/ListEnvironmentsCommand.js.map +1 -0
  50. package/{dist/cjs → dist-cjs}/commands/ListHostedConfigurationVersionsCommand.js +5 -5
  51. package/dist-cjs/commands/ListHostedConfigurationVersionsCommand.js.map +1 -0
  52. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +5 -5
  53. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
  54. package/{dist/cjs → dist-cjs}/commands/StartDeploymentCommand.js +5 -5
  55. package/dist-cjs/commands/StartDeploymentCommand.js.map +1 -0
  56. package/{dist/cjs → dist-cjs}/commands/StopDeploymentCommand.js +5 -5
  57. package/dist-cjs/commands/StopDeploymentCommand.js.map +1 -0
  58. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
  59. package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
  60. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
  61. package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
  62. package/{dist/cjs → dist-cjs}/commands/UpdateApplicationCommand.js +5 -5
  63. package/dist-cjs/commands/UpdateApplicationCommand.js.map +1 -0
  64. package/{dist/cjs → dist-cjs}/commands/UpdateConfigurationProfileCommand.js +5 -5
  65. package/dist-cjs/commands/UpdateConfigurationProfileCommand.js.map +1 -0
  66. package/{dist/cjs → dist-cjs}/commands/UpdateDeploymentStrategyCommand.js +5 -5
  67. package/dist-cjs/commands/UpdateDeploymentStrategyCommand.js.map +1 -0
  68. package/{dist/cjs → dist-cjs}/commands/UpdateEnvironmentCommand.js +5 -5
  69. package/dist-cjs/commands/UpdateEnvironmentCommand.js.map +1 -0
  70. package/{dist/cjs → dist-cjs}/commands/ValidateConfigurationCommand.js +5 -5
  71. package/dist-cjs/commands/ValidateConfigurationCommand.js.map +1 -0
  72. package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
  73. package/dist-cjs/endpoints.js.map +1 -0
  74. package/dist-cjs/index.js +47 -0
  75. package/dist-cjs/index.js.map +1 -0
  76. package/{dist/cjs → dist-cjs}/models/index.js +1 -1
  77. package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
  78. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
  79. package/dist-cjs/models/models_0.js.map +1 -0
  80. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
  81. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
  82. package/{dist/cjs → dist-cjs}/pagination/ListApplicationsPaginator.js +0 -0
  83. package/dist-cjs/pagination/ListApplicationsPaginator.js.map +1 -0
  84. package/{dist/cjs → dist-cjs}/pagination/ListConfigurationProfilesPaginator.js +0 -0
  85. package/dist-cjs/pagination/ListConfigurationProfilesPaginator.js.map +1 -0
  86. package/{dist/cjs → dist-cjs}/pagination/ListDeploymentStrategiesPaginator.js +0 -0
  87. package/dist-cjs/pagination/ListDeploymentStrategiesPaginator.js.map +1 -0
  88. package/{dist/cjs → dist-cjs}/pagination/ListDeploymentsPaginator.js +0 -0
  89. package/dist-cjs/pagination/ListDeploymentsPaginator.js.map +1 -0
  90. package/{dist/cjs → dist-cjs}/pagination/ListEnvironmentsPaginator.js +0 -0
  91. package/dist-cjs/pagination/ListEnvironmentsPaginator.js.map +1 -0
  92. package/{dist/cjs → dist-cjs}/pagination/ListHostedConfigurationVersionsPaginator.js +0 -0
  93. package/dist-cjs/pagination/ListHostedConfigurationVersionsPaginator.js.map +1 -0
  94. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +259 -259
  95. package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
  96. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
  97. package/dist-cjs/runtimeConfig.browser.js.map +1 -0
  98. package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
  99. package/dist-cjs/runtimeConfig.js.map +1 -0
  100. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
  101. package/dist-cjs/runtimeConfig.native.js.map +1 -0
  102. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
  103. package/dist-cjs/runtimeConfig.shared.js.map +1 -0
  104. package/{dist/es → dist-es}/AppConfig.js +2 -53
  105. package/dist-es/AppConfig.js.map +1 -0
  106. package/dist-es/AppConfigClient.js +38 -0
  107. package/dist-es/AppConfigClient.js.map +1 -0
  108. package/{dist/es → dist-es}/commands/CreateApplicationCommand.js +4 -32
  109. package/dist-es/commands/CreateApplicationCommand.js.map +1 -0
  110. package/dist-es/commands/CreateConfigurationProfileCommand.js +40 -0
  111. package/dist-es/commands/CreateConfigurationProfileCommand.js.map +1 -0
  112. package/{dist/es → dist-es}/commands/CreateDeploymentStrategyCommand.js +4 -32
  113. package/dist-es/commands/CreateDeploymentStrategyCommand.js.map +1 -0
  114. package/{dist/es → dist-es}/commands/CreateEnvironmentCommand.js +4 -35
  115. package/dist-es/commands/CreateEnvironmentCommand.js.map +1 -0
  116. package/{dist/es → dist-es}/commands/CreateHostedConfigurationVersionCommand.js +4 -29
  117. package/dist-es/commands/CreateHostedConfigurationVersionCommand.js.map +1 -0
  118. package/{dist/es → dist-es}/commands/DeleteApplicationCommand.js +4 -30
  119. package/dist-es/commands/DeleteApplicationCommand.js.map +1 -0
  120. package/{dist/es → dist-es}/commands/DeleteConfigurationProfileCommand.js +4 -30
  121. package/dist-es/commands/DeleteConfigurationProfileCommand.js.map +1 -0
  122. package/{dist/es → dist-es}/commands/DeleteDeploymentStrategyCommand.js +4 -30
  123. package/dist-es/commands/DeleteDeploymentStrategyCommand.js.map +1 -0
  124. package/{dist/es → dist-es}/commands/DeleteEnvironmentCommand.js +4 -30
  125. package/dist-es/commands/DeleteEnvironmentCommand.js.map +1 -0
  126. package/{dist/es → dist-es}/commands/DeleteHostedConfigurationVersionCommand.js +4 -29
  127. package/dist-es/commands/DeleteHostedConfigurationVersionCommand.js.map +1 -0
  128. package/{dist/es → dist-es}/commands/GetApplicationCommand.js +4 -29
  129. package/dist-es/commands/GetApplicationCommand.js.map +1 -0
  130. package/dist-es/commands/GetConfigurationCommand.js +40 -0
  131. package/dist-es/commands/GetConfigurationCommand.js.map +1 -0
  132. package/{dist/es → dist-es}/commands/GetConfigurationProfileCommand.js +4 -29
  133. package/dist-es/commands/GetConfigurationProfileCommand.js.map +1 -0
  134. package/{dist/es → dist-es}/commands/GetDeploymentCommand.js +4 -29
  135. package/dist-es/commands/GetDeploymentCommand.js.map +1 -0
  136. package/{dist/es → dist-es}/commands/GetDeploymentStrategyCommand.js +4 -33
  137. package/dist-es/commands/GetDeploymentStrategyCommand.js.map +1 -0
  138. package/{dist/es → dist-es}/commands/GetEnvironmentCommand.js +4 -33
  139. package/dist-es/commands/GetEnvironmentCommand.js.map +1 -0
  140. package/{dist/es → dist-es}/commands/GetHostedConfigurationVersionCommand.js +4 -29
  141. package/dist-es/commands/GetHostedConfigurationVersionCommand.js.map +1 -0
  142. package/{dist/es → dist-es}/commands/ListApplicationsCommand.js +4 -29
  143. package/dist-es/commands/ListApplicationsCommand.js.map +1 -0
  144. package/{dist/es → dist-es}/commands/ListConfigurationProfilesCommand.js +4 -29
  145. package/dist-es/commands/ListConfigurationProfilesCommand.js.map +1 -0
  146. package/{dist/es → dist-es}/commands/ListDeploymentStrategiesCommand.js +4 -29
  147. package/dist-es/commands/ListDeploymentStrategiesCommand.js.map +1 -0
  148. package/{dist/es → dist-es}/commands/ListDeploymentsCommand.js +4 -29
  149. package/dist-es/commands/ListDeploymentsCommand.js.map +1 -0
  150. package/{dist/es → dist-es}/commands/ListEnvironmentsCommand.js +4 -29
  151. package/dist-es/commands/ListEnvironmentsCommand.js.map +1 -0
  152. package/{dist/es → dist-es}/commands/ListHostedConfigurationVersionsCommand.js +4 -30
  153. package/dist-es/commands/ListHostedConfigurationVersionsCommand.js.map +1 -0
  154. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -29
  155. package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
  156. package/{dist/es → dist-es}/commands/StartDeploymentCommand.js +4 -29
  157. package/dist-es/commands/StartDeploymentCommand.js.map +1 -0
  158. package/{dist/es → dist-es}/commands/StopDeploymentCommand.js +4 -31
  159. package/dist-es/commands/StopDeploymentCommand.js.map +1 -0
  160. package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -31
  161. package/dist-es/commands/TagResourceCommand.js.map +1 -0
  162. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -29
  163. package/dist-es/commands/UntagResourceCommand.js.map +1 -0
  164. package/{dist/es → dist-es}/commands/UpdateApplicationCommand.js +4 -29
  165. package/dist-es/commands/UpdateApplicationCommand.js.map +1 -0
  166. package/{dist/es → dist-es}/commands/UpdateConfigurationProfileCommand.js +4 -29
  167. package/dist-es/commands/UpdateConfigurationProfileCommand.js.map +1 -0
  168. package/{dist/es → dist-es}/commands/UpdateDeploymentStrategyCommand.js +4 -29
  169. package/dist-es/commands/UpdateDeploymentStrategyCommand.js.map +1 -0
  170. package/{dist/es → dist-es}/commands/UpdateEnvironmentCommand.js +4 -29
  171. package/dist-es/commands/UpdateEnvironmentCommand.js.map +1 -0
  172. package/{dist/es → dist-es}/commands/ValidateConfigurationCommand.js +4 -29
  173. package/dist-es/commands/ValidateConfigurationCommand.js.map +1 -0
  174. package/{dist/es → dist-es}/endpoints.js +1 -1
  175. package/dist-es/endpoints.js.map +1 -0
  176. package/{dist/es → dist-es}/index.js +0 -0
  177. package/dist-es/index.js.map +1 -0
  178. package/{dist/es → dist-es}/models/index.js +0 -0
  179. package/dist-es/models/index.js.map +1 -0
  180. package/{dist/es → dist-es}/models/models_0.js +0 -177
  181. package/dist-es/models/models_0.js.map +1 -0
  182. package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
  183. package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
  184. package/{dist/es → dist-es}/pagination/ListApplicationsPaginator.js +16 -28
  185. package/dist-es/pagination/ListApplicationsPaginator.js.map +1 -0
  186. package/{dist/es → dist-es}/pagination/ListConfigurationProfilesPaginator.js +16 -28
  187. package/dist-es/pagination/ListConfigurationProfilesPaginator.js.map +1 -0
  188. package/{dist/es → dist-es}/pagination/ListDeploymentStrategiesPaginator.js +16 -28
  189. package/dist-es/pagination/ListDeploymentStrategiesPaginator.js.map +1 -0
  190. package/{dist/es → dist-es}/pagination/ListDeploymentsPaginator.js +16 -28
  191. package/dist-es/pagination/ListDeploymentsPaginator.js.map +1 -0
  192. package/{dist/es → dist-es}/pagination/ListEnvironmentsPaginator.js +16 -28
  193. package/dist-es/pagination/ListEnvironmentsPaginator.js.map +1 -0
  194. package/{dist/es → dist-es}/pagination/ListHostedConfigurationVersionsPaginator.js +16 -28
  195. package/dist-es/pagination/ListHostedConfigurationVersionsPaginator.js.map +1 -0
  196. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +703 -708
  197. package/dist-es/protocols/Aws_restJson1.js.map +1 -0
  198. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
  199. package/dist-es/runtimeConfig.browser.js.map +1 -0
  200. package/{dist/es → dist-es}/runtimeConfig.js +2 -5
  201. package/dist-es/runtimeConfig.js.map +1 -0
  202. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
  203. package/dist-es/runtimeConfig.native.js.map +1 -0
  204. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
  205. package/dist-es/runtimeConfig.shared.js.map +1 -0
  206. package/{dist/types → dist-types}/AppConfig.d.ts +2 -2
  207. package/{dist/types → dist-types}/AppConfigClient.d.ts +9 -9
  208. package/{dist/types → dist-types}/commands/CreateApplicationCommand.d.ts +2 -2
  209. package/{dist/types → dist-types}/commands/CreateConfigurationProfileCommand.d.ts +2 -2
  210. package/{dist/types → dist-types}/commands/CreateDeploymentStrategyCommand.d.ts +2 -2
  211. package/{dist/types → dist-types}/commands/CreateEnvironmentCommand.d.ts +2 -2
  212. package/{dist/types → dist-types}/commands/CreateHostedConfigurationVersionCommand.d.ts +2 -2
  213. package/{dist/types → dist-types}/commands/DeleteApplicationCommand.d.ts +2 -2
  214. package/{dist/types → dist-types}/commands/DeleteConfigurationProfileCommand.d.ts +2 -2
  215. package/{dist/types → dist-types}/commands/DeleteDeploymentStrategyCommand.d.ts +2 -2
  216. package/{dist/types → dist-types}/commands/DeleteEnvironmentCommand.d.ts +2 -2
  217. package/{dist/types → dist-types}/commands/DeleteHostedConfigurationVersionCommand.d.ts +2 -2
  218. package/{dist/types → dist-types}/commands/GetApplicationCommand.d.ts +2 -2
  219. package/{dist/types → dist-types}/commands/GetConfigurationCommand.d.ts +2 -2
  220. package/{dist/types → dist-types}/commands/GetConfigurationProfileCommand.d.ts +2 -2
  221. package/{dist/types → dist-types}/commands/GetDeploymentCommand.d.ts +2 -2
  222. package/{dist/types → dist-types}/commands/GetDeploymentStrategyCommand.d.ts +2 -2
  223. package/{dist/types → dist-types}/commands/GetEnvironmentCommand.d.ts +2 -2
  224. package/{dist/types → dist-types}/commands/GetHostedConfigurationVersionCommand.d.ts +2 -2
  225. package/{dist/types → dist-types}/commands/ListApplicationsCommand.d.ts +2 -2
  226. package/{dist/types → dist-types}/commands/ListConfigurationProfilesCommand.d.ts +2 -2
  227. package/{dist/types → dist-types}/commands/ListDeploymentStrategiesCommand.d.ts +2 -2
  228. package/{dist/types → dist-types}/commands/ListDeploymentsCommand.d.ts +2 -2
  229. package/{dist/types → dist-types}/commands/ListEnvironmentsCommand.d.ts +2 -2
  230. package/{dist/types → dist-types}/commands/ListHostedConfigurationVersionsCommand.d.ts +2 -2
  231. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  232. package/{dist/types → dist-types}/commands/StartDeploymentCommand.d.ts +2 -2
  233. package/{dist/types → dist-types}/commands/StopDeploymentCommand.d.ts +2 -2
  234. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  235. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  236. package/{dist/types → dist-types}/commands/UpdateApplicationCommand.d.ts +2 -2
  237. package/{dist/types → dist-types}/commands/UpdateConfigurationProfileCommand.d.ts +2 -2
  238. package/{dist/types → dist-types}/commands/UpdateDeploymentStrategyCommand.d.ts +2 -2
  239. package/{dist/types → dist-types}/commands/UpdateEnvironmentCommand.d.ts +2 -2
  240. package/{dist/types → dist-types}/commands/ValidateConfigurationCommand.d.ts +2 -2
  241. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  242. package/{dist/types → dist-types}/index.d.ts +0 -0
  243. package/{dist/types → dist-types}/models/index.d.ts +0 -0
  244. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  245. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  246. package/{dist/types → dist-types}/pagination/ListApplicationsPaginator.d.ts +1 -1
  247. package/{dist/types → dist-types}/pagination/ListConfigurationProfilesPaginator.d.ts +1 -1
  248. package/{dist/types → dist-types}/pagination/ListDeploymentStrategiesPaginator.d.ts +1 -1
  249. package/{dist/types → dist-types}/pagination/ListDeploymentsPaginator.d.ts +1 -1
  250. package/{dist/types → dist-types}/pagination/ListEnvironmentsPaginator.d.ts +1 -1
  251. package/{dist/types → dist-types}/pagination/ListHostedConfigurationVersionsPaginator.d.ts +1 -1
  252. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +3 -3
  253. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
  254. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  255. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  256. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  257. package/{dist/types → dist-types}/ts3.4/AppConfig.d.ts +2 -2
  258. package/{dist/types → dist-types}/ts3.4/AppConfigClient.d.ts +9 -9
  259. package/{dist/types → dist-types}/ts3.4/commands/CreateApplicationCommand.d.ts +2 -2
  260. package/{dist/types → dist-types}/ts3.4/commands/CreateConfigurationProfileCommand.d.ts +2 -2
  261. package/{dist/types → dist-types}/ts3.4/commands/CreateDeploymentStrategyCommand.d.ts +2 -2
  262. package/{dist/types → dist-types}/ts3.4/commands/CreateEnvironmentCommand.d.ts +2 -2
  263. package/{dist/types → dist-types}/ts3.4/commands/CreateHostedConfigurationVersionCommand.d.ts +2 -2
  264. package/{dist/types → dist-types}/ts3.4/commands/DeleteApplicationCommand.d.ts +2 -2
  265. package/{dist/types → dist-types}/ts3.4/commands/DeleteConfigurationProfileCommand.d.ts +2 -2
  266. package/{dist/types → dist-types}/ts3.4/commands/DeleteDeploymentStrategyCommand.d.ts +2 -2
  267. package/{dist/types → dist-types}/ts3.4/commands/DeleteEnvironmentCommand.d.ts +2 -2
  268. package/{dist/types → dist-types}/ts3.4/commands/DeleteHostedConfigurationVersionCommand.d.ts +2 -2
  269. package/{dist/types → dist-types}/ts3.4/commands/GetApplicationCommand.d.ts +2 -2
  270. package/{dist/types → dist-types}/ts3.4/commands/GetConfigurationCommand.d.ts +2 -2
  271. package/{dist/types → dist-types}/ts3.4/commands/GetConfigurationProfileCommand.d.ts +2 -2
  272. package/{dist/types → dist-types}/ts3.4/commands/GetDeploymentCommand.d.ts +2 -2
  273. package/{dist/types → dist-types}/ts3.4/commands/GetDeploymentStrategyCommand.d.ts +2 -2
  274. package/{dist/types → dist-types}/ts3.4/commands/GetEnvironmentCommand.d.ts +2 -2
  275. package/{dist/types → dist-types}/ts3.4/commands/GetHostedConfigurationVersionCommand.d.ts +2 -2
  276. package/{dist/types → dist-types}/ts3.4/commands/ListApplicationsCommand.d.ts +2 -2
  277. package/{dist/types → dist-types}/ts3.4/commands/ListConfigurationProfilesCommand.d.ts +2 -2
  278. package/{dist/types → dist-types}/ts3.4/commands/ListDeploymentStrategiesCommand.d.ts +2 -2
  279. package/{dist/types → dist-types}/ts3.4/commands/ListDeploymentsCommand.d.ts +2 -2
  280. package/{dist/types → dist-types}/ts3.4/commands/ListEnvironmentsCommand.d.ts +2 -2
  281. package/{dist/types → dist-types}/ts3.4/commands/ListHostedConfigurationVersionsCommand.d.ts +2 -2
  282. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
  283. package/{dist/types → dist-types}/ts3.4/commands/StartDeploymentCommand.d.ts +2 -2
  284. package/{dist/types → dist-types}/ts3.4/commands/StopDeploymentCommand.d.ts +2 -2
  285. package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
  286. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
  287. package/{dist/types → dist-types}/ts3.4/commands/UpdateApplicationCommand.d.ts +2 -2
  288. package/{dist/types → dist-types}/ts3.4/commands/UpdateConfigurationProfileCommand.d.ts +2 -2
  289. package/{dist/types → dist-types}/ts3.4/commands/UpdateDeploymentStrategyCommand.d.ts +2 -2
  290. package/{dist/types → dist-types}/ts3.4/commands/UpdateEnvironmentCommand.d.ts +2 -2
  291. package/{dist/types → dist-types}/ts3.4/commands/ValidateConfigurationCommand.d.ts +2 -2
  292. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  293. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  294. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  295. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  296. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  297. package/{dist/types → dist-types}/ts3.4/pagination/ListApplicationsPaginator.d.ts +1 -1
  298. package/{dist/types → dist-types}/ts3.4/pagination/ListConfigurationProfilesPaginator.d.ts +1 -1
  299. package/{dist/types → dist-types}/ts3.4/pagination/ListDeploymentStrategiesPaginator.d.ts +1 -1
  300. package/{dist/types → dist-types}/ts3.4/pagination/ListDeploymentsPaginator.d.ts +1 -1
  301. package/{dist/types → dist-types}/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +1 -1
  302. package/{dist/types → dist-types}/ts3.4/pagination/ListHostedConfigurationVersionsPaginator.d.ts +1 -1
  303. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +3 -3
  304. package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
  305. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  306. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  307. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  308. package/package.json +50 -50
  309. package/{AppConfig.ts → src/AppConfig.ts} +7 -6
  310. package/{AppConfigClient.ts → src/AppConfigClient.ts} +59 -58
  311. package/{commands → src/commands}/CreateApplicationCommand.ts +8 -7
  312. package/{commands → src/commands}/CreateConfigurationProfileCommand.ts +8 -7
  313. package/{commands → src/commands}/CreateDeploymentStrategyCommand.ts +8 -7
  314. package/{commands → src/commands}/CreateEnvironmentCommand.ts +8 -7
  315. package/{commands → src/commands}/CreateHostedConfigurationVersionCommand.ts +8 -7
  316. package/{commands → src/commands}/DeleteApplicationCommand.ts +8 -7
  317. package/{commands → src/commands}/DeleteConfigurationProfileCommand.ts +8 -7
  318. package/{commands → src/commands}/DeleteDeploymentStrategyCommand.ts +8 -7
  319. package/{commands → src/commands}/DeleteEnvironmentCommand.ts +8 -7
  320. package/{commands → src/commands}/DeleteHostedConfigurationVersionCommand.ts +8 -7
  321. package/{commands → src/commands}/GetApplicationCommand.ts +8 -7
  322. package/{commands → src/commands}/GetConfigurationCommand.ts +8 -7
  323. package/{commands → src/commands}/GetConfigurationProfileCommand.ts +8 -7
  324. package/{commands → src/commands}/GetDeploymentCommand.ts +8 -7
  325. package/{commands → src/commands}/GetDeploymentStrategyCommand.ts +8 -7
  326. package/{commands → src/commands}/GetEnvironmentCommand.ts +8 -7
  327. package/{commands → src/commands}/GetHostedConfigurationVersionCommand.ts +8 -7
  328. package/{commands → src/commands}/ListApplicationsCommand.ts +8 -7
  329. package/{commands → src/commands}/ListConfigurationProfilesCommand.ts +8 -7
  330. package/{commands → src/commands}/ListDeploymentStrategiesCommand.ts +8 -7
  331. package/{commands → src/commands}/ListDeploymentsCommand.ts +8 -7
  332. package/{commands → src/commands}/ListEnvironmentsCommand.ts +8 -7
  333. package/{commands → src/commands}/ListHostedConfigurationVersionsCommand.ts +8 -7
  334. package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
  335. package/{commands → src/commands}/StartDeploymentCommand.ts +8 -7
  336. package/{commands → src/commands}/StopDeploymentCommand.ts +8 -7
  337. package/{commands → src/commands}/TagResourceCommand.ts +8 -7
  338. package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
  339. package/{commands → src/commands}/UpdateApplicationCommand.ts +8 -7
  340. package/{commands → src/commands}/UpdateConfigurationProfileCommand.ts +8 -7
  341. package/{commands → src/commands}/UpdateDeploymentStrategyCommand.ts +8 -7
  342. package/{commands → src/commands}/UpdateEnvironmentCommand.ts +8 -7
  343. package/{commands → src/commands}/ValidateConfigurationCommand.ts +8 -7
  344. package/{endpoints.ts → src/endpoints.ts} +1 -1
  345. package/{index.ts → src/index.ts} +0 -0
  346. package/{models → src/models}/index.ts +0 -0
  347. package/{models → src/models}/models_0.ts +0 -0
  348. package/{pagination → src/pagination}/Interfaces.ts +2 -1
  349. package/{pagination → src/pagination}/ListApplicationsPaginator.ts +2 -1
  350. package/{pagination → src/pagination}/ListConfigurationProfilesPaginator.ts +2 -1
  351. package/{pagination → src/pagination}/ListDeploymentStrategiesPaginator.ts +2 -1
  352. package/{pagination → src/pagination}/ListDeploymentsPaginator.ts +2 -1
  353. package/{pagination → src/pagination}/ListEnvironmentsPaginator.ts +2 -1
  354. package/{pagination → src/pagination}/ListHostedConfigurationVersionsPaginator.ts +2 -1
  355. package/{protocols → src/protocols}/Aws_restJson1.ts +58 -57
  356. package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
  357. package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
  358. package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
  359. package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
  360. package/tsconfig.es.json +1 -3
  361. package/tsconfig.json +7 -7
  362. package/tsconfig.types.json +9 -0
  363. package/dist/cjs/AppConfig.js.map +0 -1
  364. package/dist/cjs/AppConfigClient.js.map +0 -1
  365. package/dist/cjs/commands/CreateApplicationCommand.js.map +0 -1
  366. package/dist/cjs/commands/CreateConfigurationProfileCommand.js.map +0 -1
  367. package/dist/cjs/commands/CreateDeploymentStrategyCommand.js.map +0 -1
  368. package/dist/cjs/commands/CreateEnvironmentCommand.js.map +0 -1
  369. package/dist/cjs/commands/CreateHostedConfigurationVersionCommand.js.map +0 -1
  370. package/dist/cjs/commands/DeleteApplicationCommand.js.map +0 -1
  371. package/dist/cjs/commands/DeleteConfigurationProfileCommand.js.map +0 -1
  372. package/dist/cjs/commands/DeleteDeploymentStrategyCommand.js.map +0 -1
  373. package/dist/cjs/commands/DeleteEnvironmentCommand.js.map +0 -1
  374. package/dist/cjs/commands/DeleteHostedConfigurationVersionCommand.js.map +0 -1
  375. package/dist/cjs/commands/GetApplicationCommand.js.map +0 -1
  376. package/dist/cjs/commands/GetConfigurationCommand.js.map +0 -1
  377. package/dist/cjs/commands/GetConfigurationProfileCommand.js.map +0 -1
  378. package/dist/cjs/commands/GetDeploymentCommand.js.map +0 -1
  379. package/dist/cjs/commands/GetDeploymentStrategyCommand.js.map +0 -1
  380. package/dist/cjs/commands/GetEnvironmentCommand.js.map +0 -1
  381. package/dist/cjs/commands/GetHostedConfigurationVersionCommand.js.map +0 -1
  382. package/dist/cjs/commands/ListApplicationsCommand.js.map +0 -1
  383. package/dist/cjs/commands/ListConfigurationProfilesCommand.js.map +0 -1
  384. package/dist/cjs/commands/ListDeploymentStrategiesCommand.js.map +0 -1
  385. package/dist/cjs/commands/ListDeploymentsCommand.js.map +0 -1
  386. package/dist/cjs/commands/ListEnvironmentsCommand.js.map +0 -1
  387. package/dist/cjs/commands/ListHostedConfigurationVersionsCommand.js.map +0 -1
  388. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  389. package/dist/cjs/commands/StartDeploymentCommand.js.map +0 -1
  390. package/dist/cjs/commands/StopDeploymentCommand.js.map +0 -1
  391. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  392. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  393. package/dist/cjs/commands/UpdateApplicationCommand.js.map +0 -1
  394. package/dist/cjs/commands/UpdateConfigurationProfileCommand.js.map +0 -1
  395. package/dist/cjs/commands/UpdateDeploymentStrategyCommand.js.map +0 -1
  396. package/dist/cjs/commands/UpdateEnvironmentCommand.js.map +0 -1
  397. package/dist/cjs/commands/ValidateConfigurationCommand.js.map +0 -1
  398. package/dist/cjs/endpoints.js.map +0 -1
  399. package/dist/cjs/index.js +0 -47
  400. package/dist/cjs/index.js.map +0 -1
  401. package/dist/cjs/models/models_0.js.map +0 -1
  402. package/dist/cjs/package.json +0 -91
  403. package/dist/cjs/pagination/ListApplicationsPaginator.js.map +0 -1
  404. package/dist/cjs/pagination/ListConfigurationProfilesPaginator.js.map +0 -1
  405. package/dist/cjs/pagination/ListDeploymentStrategiesPaginator.js.map +0 -1
  406. package/dist/cjs/pagination/ListDeploymentsPaginator.js.map +0 -1
  407. package/dist/cjs/pagination/ListEnvironmentsPaginator.js.map +0 -1
  408. package/dist/cjs/pagination/ListHostedConfigurationVersionsPaginator.js.map +0 -1
  409. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  410. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  411. package/dist/cjs/runtimeConfig.js.map +0 -1
  412. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  413. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  414. package/dist/es/AppConfig.js.map +0 -1
  415. package/dist/es/AppConfigClient.js +0 -94
  416. package/dist/es/AppConfigClient.js.map +0 -1
  417. package/dist/es/commands/CreateApplicationCommand.js.map +0 -1
  418. package/dist/es/commands/CreateConfigurationProfileCommand.js +0 -82
  419. package/dist/es/commands/CreateConfigurationProfileCommand.js.map +0 -1
  420. package/dist/es/commands/CreateDeploymentStrategyCommand.js.map +0 -1
  421. package/dist/es/commands/CreateEnvironmentCommand.js.map +0 -1
  422. package/dist/es/commands/CreateHostedConfigurationVersionCommand.js.map +0 -1
  423. package/dist/es/commands/DeleteApplicationCommand.js.map +0 -1
  424. package/dist/es/commands/DeleteConfigurationProfileCommand.js.map +0 -1
  425. package/dist/es/commands/DeleteDeploymentStrategyCommand.js.map +0 -1
  426. package/dist/es/commands/DeleteEnvironmentCommand.js.map +0 -1
  427. package/dist/es/commands/DeleteHostedConfigurationVersionCommand.js.map +0 -1
  428. package/dist/es/commands/GetApplicationCommand.js.map +0 -1
  429. package/dist/es/commands/GetConfigurationCommand.js +0 -77
  430. package/dist/es/commands/GetConfigurationCommand.js.map +0 -1
  431. package/dist/es/commands/GetConfigurationProfileCommand.js.map +0 -1
  432. package/dist/es/commands/GetDeploymentCommand.js.map +0 -1
  433. package/dist/es/commands/GetDeploymentStrategyCommand.js.map +0 -1
  434. package/dist/es/commands/GetEnvironmentCommand.js.map +0 -1
  435. package/dist/es/commands/GetHostedConfigurationVersionCommand.js.map +0 -1
  436. package/dist/es/commands/ListApplicationsCommand.js.map +0 -1
  437. package/dist/es/commands/ListConfigurationProfilesCommand.js.map +0 -1
  438. package/dist/es/commands/ListDeploymentStrategiesCommand.js.map +0 -1
  439. package/dist/es/commands/ListDeploymentsCommand.js.map +0 -1
  440. package/dist/es/commands/ListEnvironmentsCommand.js.map +0 -1
  441. package/dist/es/commands/ListHostedConfigurationVersionsCommand.js.map +0 -1
  442. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  443. package/dist/es/commands/StartDeploymentCommand.js.map +0 -1
  444. package/dist/es/commands/StopDeploymentCommand.js.map +0 -1
  445. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  446. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  447. package/dist/es/commands/UpdateApplicationCommand.js.map +0 -1
  448. package/dist/es/commands/UpdateConfigurationProfileCommand.js.map +0 -1
  449. package/dist/es/commands/UpdateDeploymentStrategyCommand.js.map +0 -1
  450. package/dist/es/commands/UpdateEnvironmentCommand.js.map +0 -1
  451. package/dist/es/commands/ValidateConfigurationCommand.js.map +0 -1
  452. package/dist/es/endpoints.js.map +0 -1
  453. package/dist/es/index.js.map +0 -1
  454. package/dist/es/models/index.js.map +0 -1
  455. package/dist/es/models/models_0.js.map +0 -1
  456. package/dist/es/package.json +0 -91
  457. package/dist/es/pagination/ListApplicationsPaginator.js.map +0 -1
  458. package/dist/es/pagination/ListConfigurationProfilesPaginator.js.map +0 -1
  459. package/dist/es/pagination/ListDeploymentStrategiesPaginator.js.map +0 -1
  460. package/dist/es/pagination/ListDeploymentsPaginator.js.map +0 -1
  461. package/dist/es/pagination/ListEnvironmentsPaginator.js.map +0 -1
  462. package/dist/es/pagination/ListHostedConfigurationVersionsPaginator.js.map +0 -1
  463. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  464. package/dist/es/runtimeConfig.browser.js.map +0 -1
  465. package/dist/es/runtimeConfig.js.map +0 -1
  466. package/dist/es/runtimeConfig.native.js.map +0 -1
  467. package/dist/es/runtimeConfig.shared.js.map +0 -1
@@ -5,7 +5,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
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 = {
@@ -13,7 +13,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
13
13
  };
14
14
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
15
15
  body = JSON.stringify(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
16
- return [2 /*return*/, new __HttpRequest({
16
+ return [2, new __HttpRequest({
17
17
  protocol: protocol,
18
18
  hostname: hostname,
19
19
  port: port,
@@ -29,7 +29,7 @@ export var serializeAws_restJson1CreateConfigurationProfileCommand = function (i
29
29
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
30
30
  return __generator(this, function (_c) {
31
31
  switch (_c.label) {
32
- case 0: return [4 /*yield*/, context.endpoint()];
32
+ case 0: return [4, context.endpoint()];
33
33
  case 1:
34
34
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
35
35
  headers = {
@@ -50,7 +50,7 @@ export var serializeAws_restJson1CreateConfigurationProfileCommand = function (i
50
50
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.LocationUri !== undefined && input.LocationUri !== null && { LocationUri: input.LocationUri })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RetrievalRoleArn !== undefined &&
51
51
  input.RetrievalRoleArn !== null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Validators !== undefined &&
52
52
  input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
53
- return [2 /*return*/, new __HttpRequest({
53
+ return [2, new __HttpRequest({
54
54
  protocol: protocol,
55
55
  hostname: hostname,
56
56
  port: port,
@@ -66,7 +66,7 @@ export var serializeAws_restJson1CreateDeploymentStrategyCommand = function (inp
66
66
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
67
67
  return __generator(this, function (_c) {
68
68
  switch (_c.label) {
69
- case 0: return [4 /*yield*/, context.endpoint()];
69
+ case 0: return [4, context.endpoint()];
70
70
  case 1:
71
71
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
72
72
  headers = {
@@ -77,7 +77,7 @@ export var serializeAws_restJson1CreateDeploymentStrategyCommand = function (inp
77
77
  input.DeploymentDurationInMinutes !== null && { DeploymentDurationInMinutes: input.DeploymentDurationInMinutes })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.FinalBakeTimeInMinutes !== undefined &&
78
78
  input.FinalBakeTimeInMinutes !== null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes })), (input.GrowthFactor !== undefined &&
79
79
  input.GrowthFactor !== null && { GrowthFactor: __serializeFloat(input.GrowthFactor) })), (input.GrowthType !== undefined && input.GrowthType !== null && { GrowthType: input.GrowthType })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ReplicateTo !== undefined && input.ReplicateTo !== null && { ReplicateTo: input.ReplicateTo })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
80
- return [2 /*return*/, new __HttpRequest({
80
+ return [2, new __HttpRequest({
81
81
  protocol: protocol,
82
82
  hostname: hostname,
83
83
  port: port,
@@ -93,7 +93,7 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
93
93
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
94
94
  return __generator(this, function (_c) {
95
95
  switch (_c.label) {
96
- case 0: return [4 /*yield*/, context.endpoint()];
96
+ case 0: return [4, context.endpoint()];
97
97
  case 1:
98
98
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
99
99
  headers = {
@@ -113,7 +113,7 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
113
113
  }
114
114
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Monitors !== undefined &&
115
115
  input.Monitors !== null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
116
- return [2 /*return*/, new __HttpRequest({
116
+ return [2, new __HttpRequest({
117
117
  protocol: protocol,
118
118
  hostname: hostname,
119
119
  port: port,
@@ -129,7 +129,7 @@ export var serializeAws_restJson1CreateHostedConfigurationVersionCommand = funct
129
129
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
130
130
  return __generator(this, function (_c) {
131
131
  switch (_c.label) {
132
- case 0: return [4 /*yield*/, context.endpoint()];
132
+ case 0: return [4, context.endpoint()];
133
133
  case 1:
134
134
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
135
135
  headers = __assign(__assign(__assign({ "content-type": "application/octet-stream" }, (isSerializableHeaderValue(input.Description) && { description: input.Description })), (isSerializableHeaderValue(input.ContentType) && { "content-type": input.ContentType })), (isSerializableHeaderValue(input.LatestVersionNumber) && {
@@ -160,7 +160,7 @@ export var serializeAws_restJson1CreateHostedConfigurationVersionCommand = funct
160
160
  if (input.Content !== undefined) {
161
161
  body = input.Content;
162
162
  }
163
- return [2 /*return*/, new __HttpRequest({
163
+ return [2, new __HttpRequest({
164
164
  protocol: protocol,
165
165
  hostname: hostname,
166
166
  port: port,
@@ -176,7 +176,7 @@ export var serializeAws_restJson1DeleteApplicationCommand = function (input, con
176
176
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
177
177
  return __generator(this, function (_c) {
178
178
  switch (_c.label) {
179
- case 0: return [4 /*yield*/, context.endpoint()];
179
+ case 0: return [4, context.endpoint()];
180
180
  case 1:
181
181
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
182
182
  headers = {};
@@ -191,7 +191,7 @@ export var serializeAws_restJson1DeleteApplicationCommand = function (input, con
191
191
  else {
192
192
  throw new Error("No value provided for input HTTP label: ApplicationId.");
193
193
  }
194
- return [2 /*return*/, new __HttpRequest({
194
+ return [2, new __HttpRequest({
195
195
  protocol: protocol,
196
196
  hostname: hostname,
197
197
  port: port,
@@ -207,7 +207,7 @@ export var serializeAws_restJson1DeleteConfigurationProfileCommand = function (i
207
207
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
208
208
  return __generator(this, function (_c) {
209
209
  switch (_c.label) {
210
- case 0: return [4 /*yield*/, context.endpoint()];
210
+ case 0: return [4, context.endpoint()];
211
211
  case 1:
212
212
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
213
213
  headers = {};
@@ -233,7 +233,7 @@ export var serializeAws_restJson1DeleteConfigurationProfileCommand = function (i
233
233
  else {
234
234
  throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
235
235
  }
236
- return [2 /*return*/, new __HttpRequest({
236
+ return [2, new __HttpRequest({
237
237
  protocol: protocol,
238
238
  hostname: hostname,
239
239
  port: port,
@@ -249,7 +249,7 @@ export var serializeAws_restJson1DeleteDeploymentStrategyCommand = function (inp
249
249
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
250
250
  return __generator(this, function (_c) {
251
251
  switch (_c.label) {
252
- case 0: return [4 /*yield*/, context.endpoint()];
252
+ case 0: return [4, context.endpoint()];
253
253
  case 1:
254
254
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
255
255
  headers = {};
@@ -265,7 +265,7 @@ export var serializeAws_restJson1DeleteDeploymentStrategyCommand = function (inp
265
265
  else {
266
266
  throw new Error("No value provided for input HTTP label: DeploymentStrategyId.");
267
267
  }
268
- return [2 /*return*/, new __HttpRequest({
268
+ return [2, new __HttpRequest({
269
269
  protocol: protocol,
270
270
  hostname: hostname,
271
271
  port: port,
@@ -281,7 +281,7 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
281
281
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
282
282
  return __generator(this, function (_c) {
283
283
  switch (_c.label) {
284
- case 0: return [4 /*yield*/, context.endpoint()];
284
+ case 0: return [4, context.endpoint()];
285
285
  case 1:
286
286
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
287
287
  headers = {};
@@ -307,7 +307,7 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
307
307
  else {
308
308
  throw new Error("No value provided for input HTTP label: EnvironmentId.");
309
309
  }
310
- return [2 /*return*/, new __HttpRequest({
310
+ return [2, new __HttpRequest({
311
311
  protocol: protocol,
312
312
  hostname: hostname,
313
313
  port: port,
@@ -323,7 +323,7 @@ export var serializeAws_restJson1DeleteHostedConfigurationVersionCommand = funct
323
323
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
324
324
  return __generator(this, function (_c) {
325
325
  switch (_c.label) {
326
- case 0: return [4 /*yield*/, context.endpoint()];
326
+ case 0: return [4, context.endpoint()];
327
327
  case 1:
328
328
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
329
329
  headers = {};
@@ -359,7 +359,7 @@ export var serializeAws_restJson1DeleteHostedConfigurationVersionCommand = funct
359
359
  else {
360
360
  throw new Error("No value provided for input HTTP label: VersionNumber.");
361
361
  }
362
- return [2 /*return*/, new __HttpRequest({
362
+ return [2, new __HttpRequest({
363
363
  protocol: protocol,
364
364
  hostname: hostname,
365
365
  port: port,
@@ -375,7 +375,7 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
375
375
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
376
376
  return __generator(this, function (_c) {
377
377
  switch (_c.label) {
378
- case 0: return [4 /*yield*/, context.endpoint()];
378
+ case 0: return [4, context.endpoint()];
379
379
  case 1:
380
380
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
381
381
  headers = {};
@@ -390,7 +390,7 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
390
390
  else {
391
391
  throw new Error("No value provided for input HTTP label: ApplicationId.");
392
392
  }
393
- return [2 /*return*/, new __HttpRequest({
393
+ return [2, new __HttpRequest({
394
394
  protocol: protocol,
395
395
  hostname: hostname,
396
396
  port: port,
@@ -406,7 +406,7 @@ export var serializeAws_restJson1GetConfigurationCommand = function (input, cont
406
406
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, query, body;
407
407
  return __generator(this, function (_c) {
408
408
  switch (_c.label) {
409
- case 0: return [4 /*yield*/, context.endpoint()];
409
+ case 0: return [4, context.endpoint()];
410
410
  case 1:
411
411
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
412
412
  headers = {};
@@ -445,7 +445,7 @@ export var serializeAws_restJson1GetConfigurationCommand = function (input, cont
445
445
  query = __assign(__assign({}, (input.ClientId !== undefined && { client_id: input.ClientId })), (input.ClientConfigurationVersion !== undefined && {
446
446
  client_configuration_version: input.ClientConfigurationVersion,
447
447
  }));
448
- return [2 /*return*/, new __HttpRequest({
448
+ return [2, new __HttpRequest({
449
449
  protocol: protocol,
450
450
  hostname: hostname,
451
451
  port: port,
@@ -462,7 +462,7 @@ export var serializeAws_restJson1GetConfigurationProfileCommand = function (inpu
462
462
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
463
463
  return __generator(this, function (_c) {
464
464
  switch (_c.label) {
465
- case 0: return [4 /*yield*/, context.endpoint()];
465
+ case 0: return [4, context.endpoint()];
466
466
  case 1:
467
467
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
468
468
  headers = {};
@@ -488,7 +488,7 @@ export var serializeAws_restJson1GetConfigurationProfileCommand = function (inpu
488
488
  else {
489
489
  throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
490
490
  }
491
- return [2 /*return*/, new __HttpRequest({
491
+ return [2, new __HttpRequest({
492
492
  protocol: protocol,
493
493
  hostname: hostname,
494
494
  port: port,
@@ -504,7 +504,7 @@ export var serializeAws_restJson1GetDeploymentCommand = function (input, context
504
504
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
505
505
  return __generator(this, function (_c) {
506
506
  switch (_c.label) {
507
- case 0: return [4 /*yield*/, context.endpoint()];
507
+ case 0: return [4, context.endpoint()];
508
508
  case 1:
509
509
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
510
510
  headers = {};
@@ -540,7 +540,7 @@ export var serializeAws_restJson1GetDeploymentCommand = function (input, context
540
540
  else {
541
541
  throw new Error("No value provided for input HTTP label: DeploymentNumber.");
542
542
  }
543
- return [2 /*return*/, new __HttpRequest({
543
+ return [2, new __HttpRequest({
544
544
  protocol: protocol,
545
545
  hostname: hostname,
546
546
  port: port,
@@ -556,7 +556,7 @@ export var serializeAws_restJson1GetDeploymentStrategyCommand = function (input,
556
556
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
557
557
  return __generator(this, function (_c) {
558
558
  switch (_c.label) {
559
- case 0: return [4 /*yield*/, context.endpoint()];
559
+ case 0: return [4, context.endpoint()];
560
560
  case 1:
561
561
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
562
562
  headers = {};
@@ -572,7 +572,7 @@ export var serializeAws_restJson1GetDeploymentStrategyCommand = function (input,
572
572
  else {
573
573
  throw new Error("No value provided for input HTTP label: DeploymentStrategyId.");
574
574
  }
575
- return [2 /*return*/, new __HttpRequest({
575
+ return [2, new __HttpRequest({
576
576
  protocol: protocol,
577
577
  hostname: hostname,
578
578
  port: port,
@@ -588,7 +588,7 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
588
588
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
589
589
  return __generator(this, function (_c) {
590
590
  switch (_c.label) {
591
- case 0: return [4 /*yield*/, context.endpoint()];
591
+ case 0: return [4, context.endpoint()];
592
592
  case 1:
593
593
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
594
594
  headers = {};
@@ -614,7 +614,7 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
614
614
  else {
615
615
  throw new Error("No value provided for input HTTP label: EnvironmentId.");
616
616
  }
617
- return [2 /*return*/, new __HttpRequest({
617
+ return [2, new __HttpRequest({
618
618
  protocol: protocol,
619
619
  hostname: hostname,
620
620
  port: port,
@@ -630,7 +630,7 @@ export var serializeAws_restJson1GetHostedConfigurationVersionCommand = function
630
630
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
631
631
  return __generator(this, function (_c) {
632
632
  switch (_c.label) {
633
- case 0: return [4 /*yield*/, context.endpoint()];
633
+ case 0: return [4, context.endpoint()];
634
634
  case 1:
635
635
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
636
636
  headers = {};
@@ -666,7 +666,7 @@ export var serializeAws_restJson1GetHostedConfigurationVersionCommand = function
666
666
  else {
667
667
  throw new Error("No value provided for input HTTP label: VersionNumber.");
668
668
  }
669
- return [2 /*return*/, new __HttpRequest({
669
+ return [2, new __HttpRequest({
670
670
  protocol: protocol,
671
671
  hostname: hostname,
672
672
  port: port,
@@ -682,13 +682,13 @@ export var serializeAws_restJson1ListApplicationsCommand = function (input, cont
682
682
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
683
683
  return __generator(this, function (_c) {
684
684
  switch (_c.label) {
685
- case 0: return [4 /*yield*/, context.endpoint()];
685
+ case 0: return [4, context.endpoint()];
686
686
  case 1:
687
687
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
688
688
  headers = {};
689
689
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
690
690
  query = __assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken }));
691
- return [2 /*return*/, new __HttpRequest({
691
+ return [2, new __HttpRequest({
692
692
  protocol: protocol,
693
693
  hostname: hostname,
694
694
  port: port,
@@ -705,7 +705,7 @@ export var serializeAws_restJson1ListConfigurationProfilesCommand = function (in
705
705
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
706
706
  return __generator(this, function (_c) {
707
707
  switch (_c.label) {
708
- case 0: return [4 /*yield*/, context.endpoint()];
708
+ case 0: return [4, context.endpoint()];
709
709
  case 1:
710
710
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
711
711
  headers = {};
@@ -722,7 +722,7 @@ export var serializeAws_restJson1ListConfigurationProfilesCommand = function (in
722
722
  throw new Error("No value provided for input HTTP label: ApplicationId.");
723
723
  }
724
724
  query = __assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken }));
725
- return [2 /*return*/, new __HttpRequest({
725
+ return [2, new __HttpRequest({
726
726
  protocol: protocol,
727
727
  hostname: hostname,
728
728
  port: port,
@@ -739,7 +739,7 @@ export var serializeAws_restJson1ListDeploymentsCommand = function (input, conte
739
739
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
740
740
  return __generator(this, function (_c) {
741
741
  switch (_c.label) {
742
- case 0: return [4 /*yield*/, context.endpoint()];
742
+ case 0: return [4, context.endpoint()];
743
743
  case 1:
744
744
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
745
745
  headers = {};
@@ -766,7 +766,7 @@ export var serializeAws_restJson1ListDeploymentsCommand = function (input, conte
766
766
  throw new Error("No value provided for input HTTP label: EnvironmentId.");
767
767
  }
768
768
  query = __assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken }));
769
- return [2 /*return*/, new __HttpRequest({
769
+ return [2, new __HttpRequest({
770
770
  protocol: protocol,
771
771
  hostname: hostname,
772
772
  port: port,
@@ -783,13 +783,13 @@ export var serializeAws_restJson1ListDeploymentStrategiesCommand = function (inp
783
783
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
784
784
  return __generator(this, function (_c) {
785
785
  switch (_c.label) {
786
- case 0: return [4 /*yield*/, context.endpoint()];
786
+ case 0: return [4, context.endpoint()];
787
787
  case 1:
788
788
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
789
789
  headers = {};
790
790
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deploymentstrategies";
791
791
  query = __assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken }));
792
- return [2 /*return*/, new __HttpRequest({
792
+ return [2, new __HttpRequest({
793
793
  protocol: protocol,
794
794
  hostname: hostname,
795
795
  port: port,
@@ -806,7 +806,7 @@ export var serializeAws_restJson1ListEnvironmentsCommand = function (input, cont
806
806
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
807
807
  return __generator(this, function (_c) {
808
808
  switch (_c.label) {
809
- case 0: return [4 /*yield*/, context.endpoint()];
809
+ case 0: return [4, context.endpoint()];
810
810
  case 1:
811
811
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
812
812
  headers = {};
@@ -823,7 +823,7 @@ export var serializeAws_restJson1ListEnvironmentsCommand = function (input, cont
823
823
  throw new Error("No value provided for input HTTP label: ApplicationId.");
824
824
  }
825
825
  query = __assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken }));
826
- return [2 /*return*/, new __HttpRequest({
826
+ return [2, new __HttpRequest({
827
827
  protocol: protocol,
828
828
  hostname: hostname,
829
829
  port: port,
@@ -840,7 +840,7 @@ export var serializeAws_restJson1ListHostedConfigurationVersionsCommand = functi
840
840
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
841
841
  return __generator(this, function (_c) {
842
842
  switch (_c.label) {
843
- case 0: return [4 /*yield*/, context.endpoint()];
843
+ case 0: return [4, context.endpoint()];
844
844
  case 1:
845
845
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
846
846
  headers = {};
@@ -867,7 +867,7 @@ export var serializeAws_restJson1ListHostedConfigurationVersionsCommand = functi
867
867
  throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
868
868
  }
869
869
  query = __assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken }));
870
- return [2 /*return*/, new __HttpRequest({
870
+ return [2, new __HttpRequest({
871
871
  protocol: protocol,
872
872
  hostname: hostname,
873
873
  port: port,
@@ -884,7 +884,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
884
884
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
885
885
  return __generator(this, function (_c) {
886
886
  switch (_c.label) {
887
- case 0: return [4 /*yield*/, context.endpoint()];
887
+ case 0: return [4, context.endpoint()];
888
888
  case 1:
889
889
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
890
890
  headers = {};
@@ -899,7 +899,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
899
899
  else {
900
900
  throw new Error("No value provided for input HTTP label: ResourceArn.");
901
901
  }
902
- return [2 /*return*/, new __HttpRequest({
902
+ return [2, new __HttpRequest({
903
903
  protocol: protocol,
904
904
  hostname: hostname,
905
905
  port: port,
@@ -915,7 +915,7 @@ export var serializeAws_restJson1StartDeploymentCommand = function (input, conte
915
915
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
916
916
  return __generator(this, function (_c) {
917
917
  switch (_c.label) {
918
- case 0: return [4 /*yield*/, context.endpoint()];
918
+ case 0: return [4, context.endpoint()];
919
919
  case 1:
920
920
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
921
921
  headers = {
@@ -947,7 +947,7 @@ export var serializeAws_restJson1StartDeploymentCommand = function (input, conte
947
947
  input.ConfigurationProfileId !== null && { ConfigurationProfileId: input.ConfigurationProfileId })), (input.ConfigurationVersion !== undefined &&
948
948
  input.ConfigurationVersion !== null && { ConfigurationVersion: input.ConfigurationVersion })), (input.DeploymentStrategyId !== undefined &&
949
949
  input.DeploymentStrategyId !== null && { DeploymentStrategyId: input.DeploymentStrategyId })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
950
- return [2 /*return*/, new __HttpRequest({
950
+ return [2, new __HttpRequest({
951
951
  protocol: protocol,
952
952
  hostname: hostname,
953
953
  port: port,
@@ -963,7 +963,7 @@ export var serializeAws_restJson1StopDeploymentCommand = function (input, contex
963
963
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
964
964
  return __generator(this, function (_c) {
965
965
  switch (_c.label) {
966
- case 0: return [4 /*yield*/, context.endpoint()];
966
+ case 0: return [4, context.endpoint()];
967
967
  case 1:
968
968
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
969
969
  headers = {};
@@ -999,7 +999,7 @@ export var serializeAws_restJson1StopDeploymentCommand = function (input, contex
999
999
  else {
1000
1000
  throw new Error("No value provided for input HTTP label: DeploymentNumber.");
1001
1001
  }
1002
- return [2 /*return*/, new __HttpRequest({
1002
+ return [2, new __HttpRequest({
1003
1003
  protocol: protocol,
1004
1004
  hostname: hostname,
1005
1005
  port: port,
@@ -1015,7 +1015,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
1015
1015
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
1016
1016
  return __generator(this, function (_c) {
1017
1017
  switch (_c.label) {
1018
- case 0: return [4 /*yield*/, context.endpoint()];
1018
+ case 0: return [4, context.endpoint()];
1019
1019
  case 1:
1020
1020
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1021
1021
  headers = {
@@ -1033,7 +1033,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
1033
1033
  throw new Error("No value provided for input HTTP label: ResourceArn.");
1034
1034
  }
1035
1035
  body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
1036
- return [2 /*return*/, new __HttpRequest({
1036
+ return [2, new __HttpRequest({
1037
1037
  protocol: protocol,
1038
1038
  hostname: hostname,
1039
1039
  port: port,
@@ -1049,7 +1049,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
1049
1049
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
1050
1050
  return __generator(this, function (_c) {
1051
1051
  switch (_c.label) {
1052
- case 0: return [4 /*yield*/, context.endpoint()];
1052
+ case 0: return [4, context.endpoint()];
1053
1053
  case 1:
1054
1054
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1055
1055
  headers = {};
@@ -1065,7 +1065,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
1065
1065
  throw new Error("No value provided for input HTTP label: ResourceArn.");
1066
1066
  }
1067
1067
  query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
1068
- return [2 /*return*/, new __HttpRequest({
1068
+ return [2, new __HttpRequest({
1069
1069
  protocol: protocol,
1070
1070
  hostname: hostname,
1071
1071
  port: port,
@@ -1082,7 +1082,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
1082
1082
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
1083
1083
  return __generator(this, function (_c) {
1084
1084
  switch (_c.label) {
1085
- case 0: return [4 /*yield*/, context.endpoint()];
1085
+ case 0: return [4, context.endpoint()];
1086
1086
  case 1:
1087
1087
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1088
1088
  headers = {
@@ -1100,7 +1100,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
1100
1100
  throw new Error("No value provided for input HTTP label: ApplicationId.");
1101
1101
  }
1102
1102
  body = JSON.stringify(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
1103
- return [2 /*return*/, new __HttpRequest({
1103
+ return [2, new __HttpRequest({
1104
1104
  protocol: protocol,
1105
1105
  hostname: hostname,
1106
1106
  port: port,
@@ -1116,7 +1116,7 @@ export var serializeAws_restJson1UpdateConfigurationProfileCommand = function (i
1116
1116
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
1117
1117
  return __generator(this, function (_c) {
1118
1118
  switch (_c.label) {
1119
- case 0: return [4 /*yield*/, context.endpoint()];
1119
+ case 0: return [4, context.endpoint()];
1120
1120
  case 1:
1121
1121
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1122
1122
  headers = {
@@ -1147,7 +1147,7 @@ export var serializeAws_restJson1UpdateConfigurationProfileCommand = function (i
1147
1147
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RetrievalRoleArn !== undefined &&
1148
1148
  input.RetrievalRoleArn !== null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Validators !== undefined &&
1149
1149
  input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
1150
- return [2 /*return*/, new __HttpRequest({
1150
+ return [2, new __HttpRequest({
1151
1151
  protocol: protocol,
1152
1152
  hostname: hostname,
1153
1153
  port: port,
@@ -1163,7 +1163,7 @@ export var serializeAws_restJson1UpdateDeploymentStrategyCommand = function (inp
1163
1163
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
1164
1164
  return __generator(this, function (_c) {
1165
1165
  switch (_c.label) {
1166
- case 0: return [4 /*yield*/, context.endpoint()];
1166
+ case 0: return [4, context.endpoint()];
1167
1167
  case 1:
1168
1168
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1169
1169
  headers = {
@@ -1185,7 +1185,7 @@ export var serializeAws_restJson1UpdateDeploymentStrategyCommand = function (inp
1185
1185
  input.DeploymentDurationInMinutes !== null && { DeploymentDurationInMinutes: input.DeploymentDurationInMinutes })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.FinalBakeTimeInMinutes !== undefined &&
1186
1186
  input.FinalBakeTimeInMinutes !== null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes })), (input.GrowthFactor !== undefined &&
1187
1187
  input.GrowthFactor !== null && { GrowthFactor: __serializeFloat(input.GrowthFactor) })), (input.GrowthType !== undefined && input.GrowthType !== null && { GrowthType: input.GrowthType })));
1188
- return [2 /*return*/, new __HttpRequest({
1188
+ return [2, new __HttpRequest({
1189
1189
  protocol: protocol,
1190
1190
  hostname: hostname,
1191
1191
  port: port,
@@ -1201,7 +1201,7 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
1201
1201
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
1202
1202
  return __generator(this, function (_c) {
1203
1203
  switch (_c.label) {
1204
- case 0: return [4 /*yield*/, context.endpoint()];
1204
+ case 0: return [4, context.endpoint()];
1205
1205
  case 1:
1206
1206
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1207
1207
  headers = {
@@ -1231,7 +1231,7 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
1231
1231
  }
1232
1232
  body = JSON.stringify(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Monitors !== undefined &&
1233
1233
  input.Monitors !== null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
1234
- return [2 /*return*/, new __HttpRequest({
1234
+ return [2, new __HttpRequest({
1235
1235
  protocol: protocol,
1236
1236
  hostname: hostname,
1237
1237
  port: port,
@@ -1247,7 +1247,7 @@ export var serializeAws_restJson1ValidateConfigurationCommand = function (input,
1247
1247
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
1248
1248
  return __generator(this, function (_c) {
1249
1249
  switch (_c.label) {
1250
- case 0: return [4 /*yield*/, context.endpoint()];
1250
+ case 0: return [4, context.endpoint()];
1251
1251
  case 1:
1252
1252
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1253
1253
  headers = {};
@@ -1274,7 +1274,7 @@ export var serializeAws_restJson1ValidateConfigurationCommand = function (input,
1274
1274
  throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
1275
1275
  }
1276
1276
  query = __assign({}, (input.ConfigurationVersion !== undefined && { configuration_version: input.ConfigurationVersion }));
1277
- return [2 /*return*/, new __HttpRequest({
1277
+ return [2, new __HttpRequest({
1278
1278
  protocol: protocol,
1279
1279
  hostname: hostname,
1280
1280
  port: port,
@@ -1293,7 +1293,7 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
1293
1293
  switch (_c.label) {
1294
1294
  case 0:
1295
1295
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1296
- return [2 /*return*/, deserializeAws_restJson1CreateApplicationCommandError(output, context)];
1296
+ return [2, deserializeAws_restJson1CreateApplicationCommandError(output, context)];
1297
1297
  }
1298
1298
  contents = {
1299
1299
  $metadata: deserializeMetadata(output),
@@ -1303,7 +1303,7 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
1303
1303
  };
1304
1304
  _a = __expectNonNull;
1305
1305
  _b = __expectObject;
1306
- return [4 /*yield*/, parseBody(output.body, context)];
1306
+ return [4, parseBody(output.body, context)];
1307
1307
  case 1:
1308
1308
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1309
1309
  if (data.Description !== undefined && data.Description !== null) {
@@ -1315,7 +1315,7 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
1315
1315
  if (data.Name !== undefined && data.Name !== null) {
1316
1316
  contents.Name = __expectString(data.Name);
1317
1317
  }
1318
- return [2 /*return*/, Promise.resolve(contents)];
1318
+ return [2, Promise.resolve(contents)];
1319
1319
  }
1320
1320
  });
1321
1321
  }); };
@@ -1327,31 +1327,31 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
1327
1327
  case 0:
1328
1328
  _a = [__assign({}, output)];
1329
1329
  _e = {};
1330
- return [4 /*yield*/, parseBody(output.body, context)];
1330
+ return [4, parseBody(output.body, context)];
1331
1331
  case 1:
1332
1332
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1333
1333
  errorCode = "UnknownError";
1334
1334
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1335
1335
  _b = errorCode;
1336
1336
  switch (_b) {
1337
- case "BadRequestException": return [3 /*break*/, 2];
1338
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
1339
- case "InternalServerException": return [3 /*break*/, 4];
1340
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
1337
+ case "BadRequestException": return [3, 2];
1338
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
1339
+ case "InternalServerException": return [3, 4];
1340
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
1341
1341
  }
1342
- return [3 /*break*/, 6];
1342
+ return [3, 6];
1343
1343
  case 2:
1344
1344
  _c = [{}];
1345
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1345
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1346
1346
  case 3:
1347
1347
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1348
- return [3 /*break*/, 7];
1348
+ return [3, 7];
1349
1349
  case 4:
1350
1350
  _d = [{}];
1351
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1351
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1352
1352
  case 5:
1353
1353
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1354
- return [3 /*break*/, 7];
1354
+ return [3, 7];
1355
1355
  case 6:
1356
1356
  parsedBody = parsedOutput.body;
1357
1357
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1361,7 +1361,7 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
1361
1361
  message = response.message || response.Message || errorCode;
1362
1362
  response.message = message;
1363
1363
  delete response.Message;
1364
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1364
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1365
1365
  }
1366
1366
  });
1367
1367
  }); };
@@ -1371,7 +1371,7 @@ export var deserializeAws_restJson1CreateConfigurationProfileCommand = function
1371
1371
  switch (_c.label) {
1372
1372
  case 0:
1373
1373
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1374
- return [2 /*return*/, deserializeAws_restJson1CreateConfigurationProfileCommandError(output, context)];
1374
+ return [2, deserializeAws_restJson1CreateConfigurationProfileCommandError(output, context)];
1375
1375
  }
1376
1376
  contents = {
1377
1377
  $metadata: deserializeMetadata(output),
@@ -1385,7 +1385,7 @@ export var deserializeAws_restJson1CreateConfigurationProfileCommand = function
1385
1385
  };
1386
1386
  _a = __expectNonNull;
1387
1387
  _b = __expectObject;
1388
- return [4 /*yield*/, parseBody(output.body, context)];
1388
+ return [4, parseBody(output.body, context)];
1389
1389
  case 1:
1390
1390
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1391
1391
  if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
@@ -1409,7 +1409,7 @@ export var deserializeAws_restJson1CreateConfigurationProfileCommand = function
1409
1409
  if (data.Validators !== undefined && data.Validators !== null) {
1410
1410
  contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
1411
1411
  }
1412
- return [2 /*return*/, Promise.resolve(contents)];
1412
+ return [2, Promise.resolve(contents)];
1413
1413
  }
1414
1414
  });
1415
1415
  }); };
@@ -1421,39 +1421,39 @@ var deserializeAws_restJson1CreateConfigurationProfileCommandError = function (o
1421
1421
  case 0:
1422
1422
  _a = [__assign({}, output)];
1423
1423
  _f = {};
1424
- return [4 /*yield*/, parseBody(output.body, context)];
1424
+ return [4, parseBody(output.body, context)];
1425
1425
  case 1:
1426
1426
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1427
1427
  errorCode = "UnknownError";
1428
1428
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1429
1429
  _b = errorCode;
1430
1430
  switch (_b) {
1431
- case "BadRequestException": return [3 /*break*/, 2];
1432
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
1433
- case "InternalServerException": return [3 /*break*/, 4];
1434
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
1435
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1436
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
1437
- }
1438
- return [3 /*break*/, 8];
1431
+ case "BadRequestException": return [3, 2];
1432
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
1433
+ case "InternalServerException": return [3, 4];
1434
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
1435
+ case "ResourceNotFoundException": return [3, 6];
1436
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
1437
+ }
1438
+ return [3, 8];
1439
1439
  case 2:
1440
1440
  _c = [{}];
1441
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1441
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1442
1442
  case 3:
1443
1443
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1444
- return [3 /*break*/, 9];
1444
+ return [3, 9];
1445
1445
  case 4:
1446
1446
  _d = [{}];
1447
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1447
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1448
1448
  case 5:
1449
1449
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1450
- return [3 /*break*/, 9];
1450
+ return [3, 9];
1451
1451
  case 6:
1452
1452
  _e = [{}];
1453
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1453
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1454
1454
  case 7:
1455
1455
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1456
- return [3 /*break*/, 9];
1456
+ return [3, 9];
1457
1457
  case 8:
1458
1458
  parsedBody = parsedOutput.body;
1459
1459
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1463,7 +1463,7 @@ var deserializeAws_restJson1CreateConfigurationProfileCommandError = function (o
1463
1463
  message = response.message || response.Message || errorCode;
1464
1464
  response.message = message;
1465
1465
  delete response.Message;
1466
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1466
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1467
1467
  }
1468
1468
  });
1469
1469
  }); };
@@ -1473,7 +1473,7 @@ export var deserializeAws_restJson1CreateDeploymentStrategyCommand = function (o
1473
1473
  switch (_c.label) {
1474
1474
  case 0:
1475
1475
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1476
- return [2 /*return*/, deserializeAws_restJson1CreateDeploymentStrategyCommandError(output, context)];
1476
+ return [2, deserializeAws_restJson1CreateDeploymentStrategyCommandError(output, context)];
1477
1477
  }
1478
1478
  contents = {
1479
1479
  $metadata: deserializeMetadata(output),
@@ -1488,7 +1488,7 @@ export var deserializeAws_restJson1CreateDeploymentStrategyCommand = function (o
1488
1488
  };
1489
1489
  _a = __expectNonNull;
1490
1490
  _b = __expectObject;
1491
- return [4 /*yield*/, parseBody(output.body, context)];
1491
+ return [4, parseBody(output.body, context)];
1492
1492
  case 1:
1493
1493
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1494
1494
  if (data.DeploymentDurationInMinutes !== undefined && data.DeploymentDurationInMinutes !== null) {
@@ -1515,7 +1515,7 @@ export var deserializeAws_restJson1CreateDeploymentStrategyCommand = function (o
1515
1515
  if (data.ReplicateTo !== undefined && data.ReplicateTo !== null) {
1516
1516
  contents.ReplicateTo = __expectString(data.ReplicateTo);
1517
1517
  }
1518
- return [2 /*return*/, Promise.resolve(contents)];
1518
+ return [2, Promise.resolve(contents)];
1519
1519
  }
1520
1520
  });
1521
1521
  }); };
@@ -1527,31 +1527,31 @@ var deserializeAws_restJson1CreateDeploymentStrategyCommandError = function (out
1527
1527
  case 0:
1528
1528
  _a = [__assign({}, output)];
1529
1529
  _e = {};
1530
- return [4 /*yield*/, parseBody(output.body, context)];
1530
+ return [4, parseBody(output.body, context)];
1531
1531
  case 1:
1532
1532
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1533
1533
  errorCode = "UnknownError";
1534
1534
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1535
1535
  _b = errorCode;
1536
1536
  switch (_b) {
1537
- case "BadRequestException": return [3 /*break*/, 2];
1538
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
1539
- case "InternalServerException": return [3 /*break*/, 4];
1540
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
1537
+ case "BadRequestException": return [3, 2];
1538
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
1539
+ case "InternalServerException": return [3, 4];
1540
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
1541
1541
  }
1542
- return [3 /*break*/, 6];
1542
+ return [3, 6];
1543
1543
  case 2:
1544
1544
  _c = [{}];
1545
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1545
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1546
1546
  case 3:
1547
1547
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1548
- return [3 /*break*/, 7];
1548
+ return [3, 7];
1549
1549
  case 4:
1550
1550
  _d = [{}];
1551
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1551
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1552
1552
  case 5:
1553
1553
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1554
- return [3 /*break*/, 7];
1554
+ return [3, 7];
1555
1555
  case 6:
1556
1556
  parsedBody = parsedOutput.body;
1557
1557
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1561,7 +1561,7 @@ var deserializeAws_restJson1CreateDeploymentStrategyCommandError = function (out
1561
1561
  message = response.message || response.Message || errorCode;
1562
1562
  response.message = message;
1563
1563
  delete response.Message;
1564
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1564
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1565
1565
  }
1566
1566
  });
1567
1567
  }); };
@@ -1571,7 +1571,7 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
1571
1571
  switch (_c.label) {
1572
1572
  case 0:
1573
1573
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1574
- return [2 /*return*/, deserializeAws_restJson1CreateEnvironmentCommandError(output, context)];
1574
+ return [2, deserializeAws_restJson1CreateEnvironmentCommandError(output, context)];
1575
1575
  }
1576
1576
  contents = {
1577
1577
  $metadata: deserializeMetadata(output),
@@ -1584,7 +1584,7 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
1584
1584
  };
1585
1585
  _a = __expectNonNull;
1586
1586
  _b = __expectObject;
1587
- return [4 /*yield*/, parseBody(output.body, context)];
1587
+ return [4, parseBody(output.body, context)];
1588
1588
  case 1:
1589
1589
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1590
1590
  if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
@@ -1605,7 +1605,7 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
1605
1605
  if (data.State !== undefined && data.State !== null) {
1606
1606
  contents.State = __expectString(data.State);
1607
1607
  }
1608
- return [2 /*return*/, Promise.resolve(contents)];
1608
+ return [2, Promise.resolve(contents)];
1609
1609
  }
1610
1610
  });
1611
1611
  }); };
@@ -1617,39 +1617,39 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
1617
1617
  case 0:
1618
1618
  _a = [__assign({}, output)];
1619
1619
  _f = {};
1620
- return [4 /*yield*/, parseBody(output.body, context)];
1620
+ return [4, parseBody(output.body, context)];
1621
1621
  case 1:
1622
1622
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1623
1623
  errorCode = "UnknownError";
1624
1624
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1625
1625
  _b = errorCode;
1626
1626
  switch (_b) {
1627
- case "BadRequestException": return [3 /*break*/, 2];
1628
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
1629
- case "InternalServerException": return [3 /*break*/, 4];
1630
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
1631
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1632
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
1633
- }
1634
- return [3 /*break*/, 8];
1627
+ case "BadRequestException": return [3, 2];
1628
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
1629
+ case "InternalServerException": return [3, 4];
1630
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
1631
+ case "ResourceNotFoundException": return [3, 6];
1632
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
1633
+ }
1634
+ return [3, 8];
1635
1635
  case 2:
1636
1636
  _c = [{}];
1637
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1637
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1638
1638
  case 3:
1639
1639
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1640
- return [3 /*break*/, 9];
1640
+ return [3, 9];
1641
1641
  case 4:
1642
1642
  _d = [{}];
1643
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1643
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1644
1644
  case 5:
1645
1645
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1646
- return [3 /*break*/, 9];
1646
+ return [3, 9];
1647
1647
  case 6:
1648
1648
  _e = [{}];
1649
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1649
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1650
1650
  case 7:
1651
1651
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1652
- return [3 /*break*/, 9];
1652
+ return [3, 9];
1653
1653
  case 8:
1654
1654
  parsedBody = parsedOutput.body;
1655
1655
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1659,7 +1659,7 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
1659
1659
  message = response.message || response.Message || errorCode;
1660
1660
  response.message = message;
1661
1661
  delete response.Message;
1662
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1662
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1663
1663
  }
1664
1664
  });
1665
1665
  }); };
@@ -1669,7 +1669,7 @@ export var deserializeAws_restJson1CreateHostedConfigurationVersionCommand = fun
1669
1669
  switch (_a.label) {
1670
1670
  case 0:
1671
1671
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1672
- return [2 /*return*/, deserializeAws_restJson1CreateHostedConfigurationVersionCommandError(output, context)];
1672
+ return [2, deserializeAws_restJson1CreateHostedConfigurationVersionCommandError(output, context)];
1673
1673
  }
1674
1674
  contents = {
1675
1675
  $metadata: deserializeMetadata(output),
@@ -1695,11 +1695,11 @@ export var deserializeAws_restJson1CreateHostedConfigurationVersionCommand = fun
1695
1695
  if (output.headers["content-type"] !== undefined) {
1696
1696
  contents.ContentType = output.headers["content-type"];
1697
1697
  }
1698
- return [4 /*yield*/, collectBody(output.body, context)];
1698
+ return [4, collectBody(output.body, context)];
1699
1699
  case 1:
1700
1700
  data = _a.sent();
1701
1701
  contents.Content = data;
1702
- return [2 /*return*/, Promise.resolve(contents)];
1702
+ return [2, Promise.resolve(contents)];
1703
1703
  }
1704
1704
  });
1705
1705
  }); };
@@ -1711,63 +1711,63 @@ var deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = funct
1711
1711
  case 0:
1712
1712
  _a = [__assign({}, output)];
1713
1713
  _j = {};
1714
- return [4 /*yield*/, parseBody(output.body, context)];
1714
+ return [4, parseBody(output.body, context)];
1715
1715
  case 1:
1716
1716
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
1717
1717
  errorCode = "UnknownError";
1718
1718
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1719
1719
  _b = errorCode;
1720
1720
  switch (_b) {
1721
- case "BadRequestException": return [3 /*break*/, 2];
1722
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
1723
- case "ConflictException": return [3 /*break*/, 4];
1724
- case "com.amazonaws.appconfig#ConflictException": return [3 /*break*/, 4];
1725
- case "InternalServerException": return [3 /*break*/, 6];
1726
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 6];
1727
- case "PayloadTooLargeException": return [3 /*break*/, 8];
1728
- case "com.amazonaws.appconfig#PayloadTooLargeException": return [3 /*break*/, 8];
1729
- case "ResourceNotFoundException": return [3 /*break*/, 10];
1730
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 10];
1731
- case "ServiceQuotaExceededException": return [3 /*break*/, 12];
1732
- case "com.amazonaws.appconfig#ServiceQuotaExceededException": return [3 /*break*/, 12];
1733
- }
1734
- return [3 /*break*/, 14];
1721
+ case "BadRequestException": return [3, 2];
1722
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
1723
+ case "ConflictException": return [3, 4];
1724
+ case "com.amazonaws.appconfig#ConflictException": return [3, 4];
1725
+ case "InternalServerException": return [3, 6];
1726
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 6];
1727
+ case "PayloadTooLargeException": return [3, 8];
1728
+ case "com.amazonaws.appconfig#PayloadTooLargeException": return [3, 8];
1729
+ case "ResourceNotFoundException": return [3, 10];
1730
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 10];
1731
+ case "ServiceQuotaExceededException": return [3, 12];
1732
+ case "com.amazonaws.appconfig#ServiceQuotaExceededException": return [3, 12];
1733
+ }
1734
+ return [3, 14];
1735
1735
  case 2:
1736
1736
  _c = [{}];
1737
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1737
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1738
1738
  case 3:
1739
1739
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1740
- return [3 /*break*/, 15];
1740
+ return [3, 15];
1741
1741
  case 4:
1742
1742
  _d = [{}];
1743
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1743
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1744
1744
  case 5:
1745
1745
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1746
- return [3 /*break*/, 15];
1746
+ return [3, 15];
1747
1747
  case 6:
1748
1748
  _e = [{}];
1749
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1749
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1750
1750
  case 7:
1751
1751
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1752
- return [3 /*break*/, 15];
1752
+ return [3, 15];
1753
1753
  case 8:
1754
1754
  _f = [{}];
1755
- return [4 /*yield*/, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
1755
+ return [4, deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)];
1756
1756
  case 9:
1757
1757
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1758
- return [3 /*break*/, 15];
1758
+ return [3, 15];
1759
1759
  case 10:
1760
1760
  _g = [{}];
1761
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1761
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1762
1762
  case 11:
1763
1763
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1764
- return [3 /*break*/, 15];
1764
+ return [3, 15];
1765
1765
  case 12:
1766
1766
  _h = [{}];
1767
- return [4 /*yield*/, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
1767
+ return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
1768
1768
  case 13:
1769
1769
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1770
- return [3 /*break*/, 15];
1770
+ return [3, 15];
1771
1771
  case 14:
1772
1772
  parsedBody = parsedOutput.body;
1773
1773
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1777,7 +1777,7 @@ var deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = funct
1777
1777
  message = response.message || response.Message || errorCode;
1778
1778
  response.message = message;
1779
1779
  delete response.Message;
1780
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1780
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1781
1781
  }
1782
1782
  });
1783
1783
  }); };
@@ -1787,15 +1787,15 @@ export var deserializeAws_restJson1DeleteApplicationCommand = function (output,
1787
1787
  switch (_a.label) {
1788
1788
  case 0:
1789
1789
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1790
- return [2 /*return*/, deserializeAws_restJson1DeleteApplicationCommandError(output, context)];
1790
+ return [2, deserializeAws_restJson1DeleteApplicationCommandError(output, context)];
1791
1791
  }
1792
1792
  contents = {
1793
1793
  $metadata: deserializeMetadata(output),
1794
1794
  };
1795
- return [4 /*yield*/, collectBody(output.body, context)];
1795
+ return [4, collectBody(output.body, context)];
1796
1796
  case 1:
1797
1797
  _a.sent();
1798
- return [2 /*return*/, Promise.resolve(contents)];
1798
+ return [2, Promise.resolve(contents)];
1799
1799
  }
1800
1800
  });
1801
1801
  }); };
@@ -1807,39 +1807,39 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
1807
1807
  case 0:
1808
1808
  _a = [__assign({}, output)];
1809
1809
  _f = {};
1810
- return [4 /*yield*/, parseBody(output.body, context)];
1810
+ return [4, parseBody(output.body, context)];
1811
1811
  case 1:
1812
1812
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1813
1813
  errorCode = "UnknownError";
1814
1814
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1815
1815
  _b = errorCode;
1816
1816
  switch (_b) {
1817
- case "BadRequestException": return [3 /*break*/, 2];
1818
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
1819
- case "InternalServerException": return [3 /*break*/, 4];
1820
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
1821
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1822
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
1823
- }
1824
- return [3 /*break*/, 8];
1817
+ case "BadRequestException": return [3, 2];
1818
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
1819
+ case "InternalServerException": return [3, 4];
1820
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
1821
+ case "ResourceNotFoundException": return [3, 6];
1822
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
1823
+ }
1824
+ return [3, 8];
1825
1825
  case 2:
1826
1826
  _c = [{}];
1827
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1827
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1828
1828
  case 3:
1829
1829
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1830
- return [3 /*break*/, 9];
1830
+ return [3, 9];
1831
1831
  case 4:
1832
1832
  _d = [{}];
1833
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1833
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1834
1834
  case 5:
1835
1835
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1836
- return [3 /*break*/, 9];
1836
+ return [3, 9];
1837
1837
  case 6:
1838
1838
  _e = [{}];
1839
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1839
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1840
1840
  case 7:
1841
1841
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1842
- return [3 /*break*/, 9];
1842
+ return [3, 9];
1843
1843
  case 8:
1844
1844
  parsedBody = parsedOutput.body;
1845
1845
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1849,7 +1849,7 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
1849
1849
  message = response.message || response.Message || errorCode;
1850
1850
  response.message = message;
1851
1851
  delete response.Message;
1852
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1852
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1853
1853
  }
1854
1854
  });
1855
1855
  }); };
@@ -1859,15 +1859,15 @@ export var deserializeAws_restJson1DeleteConfigurationProfileCommand = function
1859
1859
  switch (_a.label) {
1860
1860
  case 0:
1861
1861
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1862
- return [2 /*return*/, deserializeAws_restJson1DeleteConfigurationProfileCommandError(output, context)];
1862
+ return [2, deserializeAws_restJson1DeleteConfigurationProfileCommandError(output, context)];
1863
1863
  }
1864
1864
  contents = {
1865
1865
  $metadata: deserializeMetadata(output),
1866
1866
  };
1867
- return [4 /*yield*/, collectBody(output.body, context)];
1867
+ return [4, collectBody(output.body, context)];
1868
1868
  case 1:
1869
1869
  _a.sent();
1870
- return [2 /*return*/, Promise.resolve(contents)];
1870
+ return [2, Promise.resolve(contents)];
1871
1871
  }
1872
1872
  });
1873
1873
  }); };
@@ -1879,47 +1879,47 @@ var deserializeAws_restJson1DeleteConfigurationProfileCommandError = function (o
1879
1879
  case 0:
1880
1880
  _a = [__assign({}, output)];
1881
1881
  _g = {};
1882
- return [4 /*yield*/, parseBody(output.body, context)];
1882
+ return [4, parseBody(output.body, context)];
1883
1883
  case 1:
1884
1884
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1885
1885
  errorCode = "UnknownError";
1886
1886
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1887
1887
  _b = errorCode;
1888
1888
  switch (_b) {
1889
- case "BadRequestException": return [3 /*break*/, 2];
1890
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
1891
- case "ConflictException": return [3 /*break*/, 4];
1892
- case "com.amazonaws.appconfig#ConflictException": return [3 /*break*/, 4];
1893
- case "InternalServerException": return [3 /*break*/, 6];
1894
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 6];
1895
- case "ResourceNotFoundException": return [3 /*break*/, 8];
1896
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 8];
1897
- }
1898
- return [3 /*break*/, 10];
1889
+ case "BadRequestException": return [3, 2];
1890
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
1891
+ case "ConflictException": return [3, 4];
1892
+ case "com.amazonaws.appconfig#ConflictException": return [3, 4];
1893
+ case "InternalServerException": return [3, 6];
1894
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 6];
1895
+ case "ResourceNotFoundException": return [3, 8];
1896
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 8];
1897
+ }
1898
+ return [3, 10];
1899
1899
  case 2:
1900
1900
  _c = [{}];
1901
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1901
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1902
1902
  case 3:
1903
1903
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1904
- return [3 /*break*/, 11];
1904
+ return [3, 11];
1905
1905
  case 4:
1906
1906
  _d = [{}];
1907
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1907
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1908
1908
  case 5:
1909
1909
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1910
- return [3 /*break*/, 11];
1910
+ return [3, 11];
1911
1911
  case 6:
1912
1912
  _e = [{}];
1913
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1913
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1914
1914
  case 7:
1915
1915
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1916
- return [3 /*break*/, 11];
1916
+ return [3, 11];
1917
1917
  case 8:
1918
1918
  _f = [{}];
1919
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1919
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1920
1920
  case 9:
1921
1921
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1922
- return [3 /*break*/, 11];
1922
+ return [3, 11];
1923
1923
  case 10:
1924
1924
  parsedBody = parsedOutput.body;
1925
1925
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1929,7 +1929,7 @@ var deserializeAws_restJson1DeleteConfigurationProfileCommandError = function (o
1929
1929
  message = response.message || response.Message || errorCode;
1930
1930
  response.message = message;
1931
1931
  delete response.Message;
1932
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1932
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1933
1933
  }
1934
1934
  });
1935
1935
  }); };
@@ -1939,15 +1939,15 @@ export var deserializeAws_restJson1DeleteDeploymentStrategyCommand = function (o
1939
1939
  switch (_a.label) {
1940
1940
  case 0:
1941
1941
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1942
- return [2 /*return*/, deserializeAws_restJson1DeleteDeploymentStrategyCommandError(output, context)];
1942
+ return [2, deserializeAws_restJson1DeleteDeploymentStrategyCommandError(output, context)];
1943
1943
  }
1944
1944
  contents = {
1945
1945
  $metadata: deserializeMetadata(output),
1946
1946
  };
1947
- return [4 /*yield*/, collectBody(output.body, context)];
1947
+ return [4, collectBody(output.body, context)];
1948
1948
  case 1:
1949
1949
  _a.sent();
1950
- return [2 /*return*/, Promise.resolve(contents)];
1950
+ return [2, Promise.resolve(contents)];
1951
1951
  }
1952
1952
  });
1953
1953
  }); };
@@ -1959,39 +1959,39 @@ var deserializeAws_restJson1DeleteDeploymentStrategyCommandError = function (out
1959
1959
  case 0:
1960
1960
  _a = [__assign({}, output)];
1961
1961
  _f = {};
1962
- return [4 /*yield*/, parseBody(output.body, context)];
1962
+ return [4, parseBody(output.body, context)];
1963
1963
  case 1:
1964
1964
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1965
1965
  errorCode = "UnknownError";
1966
1966
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1967
1967
  _b = errorCode;
1968
1968
  switch (_b) {
1969
- case "BadRequestException": return [3 /*break*/, 2];
1970
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
1971
- case "InternalServerException": return [3 /*break*/, 4];
1972
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
1973
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1974
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
1975
- }
1976
- return [3 /*break*/, 8];
1969
+ case "BadRequestException": return [3, 2];
1970
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
1971
+ case "InternalServerException": return [3, 4];
1972
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
1973
+ case "ResourceNotFoundException": return [3, 6];
1974
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
1975
+ }
1976
+ return [3, 8];
1977
1977
  case 2:
1978
1978
  _c = [{}];
1979
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1979
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
1980
1980
  case 3:
1981
1981
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1982
- return [3 /*break*/, 9];
1982
+ return [3, 9];
1983
1983
  case 4:
1984
1984
  _d = [{}];
1985
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1985
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1986
1986
  case 5:
1987
1987
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1988
- return [3 /*break*/, 9];
1988
+ return [3, 9];
1989
1989
  case 6:
1990
1990
  _e = [{}];
1991
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1991
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1992
1992
  case 7:
1993
1993
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1994
- return [3 /*break*/, 9];
1994
+ return [3, 9];
1995
1995
  case 8:
1996
1996
  parsedBody = parsedOutput.body;
1997
1997
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2001,7 +2001,7 @@ var deserializeAws_restJson1DeleteDeploymentStrategyCommandError = function (out
2001
2001
  message = response.message || response.Message || errorCode;
2002
2002
  response.message = message;
2003
2003
  delete response.Message;
2004
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2004
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2005
2005
  }
2006
2006
  });
2007
2007
  }); };
@@ -2011,15 +2011,15 @@ export var deserializeAws_restJson1DeleteEnvironmentCommand = function (output,
2011
2011
  switch (_a.label) {
2012
2012
  case 0:
2013
2013
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2014
- return [2 /*return*/, deserializeAws_restJson1DeleteEnvironmentCommandError(output, context)];
2014
+ return [2, deserializeAws_restJson1DeleteEnvironmentCommandError(output, context)];
2015
2015
  }
2016
2016
  contents = {
2017
2017
  $metadata: deserializeMetadata(output),
2018
2018
  };
2019
- return [4 /*yield*/, collectBody(output.body, context)];
2019
+ return [4, collectBody(output.body, context)];
2020
2020
  case 1:
2021
2021
  _a.sent();
2022
- return [2 /*return*/, Promise.resolve(contents)];
2022
+ return [2, Promise.resolve(contents)];
2023
2023
  }
2024
2024
  });
2025
2025
  }); };
@@ -2031,47 +2031,47 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
2031
2031
  case 0:
2032
2032
  _a = [__assign({}, output)];
2033
2033
  _g = {};
2034
- return [4 /*yield*/, parseBody(output.body, context)];
2034
+ return [4, parseBody(output.body, context)];
2035
2035
  case 1:
2036
2036
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2037
2037
  errorCode = "UnknownError";
2038
2038
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2039
2039
  _b = errorCode;
2040
2040
  switch (_b) {
2041
- case "BadRequestException": return [3 /*break*/, 2];
2042
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
2043
- case "ConflictException": return [3 /*break*/, 4];
2044
- case "com.amazonaws.appconfig#ConflictException": return [3 /*break*/, 4];
2045
- case "InternalServerException": return [3 /*break*/, 6];
2046
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 6];
2047
- case "ResourceNotFoundException": return [3 /*break*/, 8];
2048
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 8];
2049
- }
2050
- return [3 /*break*/, 10];
2041
+ case "BadRequestException": return [3, 2];
2042
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
2043
+ case "ConflictException": return [3, 4];
2044
+ case "com.amazonaws.appconfig#ConflictException": return [3, 4];
2045
+ case "InternalServerException": return [3, 6];
2046
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 6];
2047
+ case "ResourceNotFoundException": return [3, 8];
2048
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 8];
2049
+ }
2050
+ return [3, 10];
2051
2051
  case 2:
2052
2052
  _c = [{}];
2053
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2053
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2054
2054
  case 3:
2055
2055
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2056
- return [3 /*break*/, 11];
2056
+ return [3, 11];
2057
2057
  case 4:
2058
2058
  _d = [{}];
2059
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2059
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2060
2060
  case 5:
2061
2061
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2062
- return [3 /*break*/, 11];
2062
+ return [3, 11];
2063
2063
  case 6:
2064
2064
  _e = [{}];
2065
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2065
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2066
2066
  case 7:
2067
2067
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2068
- return [3 /*break*/, 11];
2068
+ return [3, 11];
2069
2069
  case 8:
2070
2070
  _f = [{}];
2071
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2071
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2072
2072
  case 9:
2073
2073
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2074
- return [3 /*break*/, 11];
2074
+ return [3, 11];
2075
2075
  case 10:
2076
2076
  parsedBody = parsedOutput.body;
2077
2077
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2081,7 +2081,7 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
2081
2081
  message = response.message || response.Message || errorCode;
2082
2082
  response.message = message;
2083
2083
  delete response.Message;
2084
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2084
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2085
2085
  }
2086
2086
  });
2087
2087
  }); };
@@ -2091,15 +2091,15 @@ export var deserializeAws_restJson1DeleteHostedConfigurationVersionCommand = fun
2091
2091
  switch (_a.label) {
2092
2092
  case 0:
2093
2093
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2094
- return [2 /*return*/, deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError(output, context)];
2094
+ return [2, deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError(output, context)];
2095
2095
  }
2096
2096
  contents = {
2097
2097
  $metadata: deserializeMetadata(output),
2098
2098
  };
2099
- return [4 /*yield*/, collectBody(output.body, context)];
2099
+ return [4, collectBody(output.body, context)];
2100
2100
  case 1:
2101
2101
  _a.sent();
2102
- return [2 /*return*/, Promise.resolve(contents)];
2102
+ return [2, Promise.resolve(contents)];
2103
2103
  }
2104
2104
  });
2105
2105
  }); };
@@ -2111,39 +2111,39 @@ var deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = funct
2111
2111
  case 0:
2112
2112
  _a = [__assign({}, output)];
2113
2113
  _f = {};
2114
- return [4 /*yield*/, parseBody(output.body, context)];
2114
+ return [4, parseBody(output.body, context)];
2115
2115
  case 1:
2116
2116
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2117
2117
  errorCode = "UnknownError";
2118
2118
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2119
2119
  _b = errorCode;
2120
2120
  switch (_b) {
2121
- case "BadRequestException": return [3 /*break*/, 2];
2122
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
2123
- case "InternalServerException": return [3 /*break*/, 4];
2124
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
2125
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2126
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
2127
- }
2128
- return [3 /*break*/, 8];
2121
+ case "BadRequestException": return [3, 2];
2122
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
2123
+ case "InternalServerException": return [3, 4];
2124
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
2125
+ case "ResourceNotFoundException": return [3, 6];
2126
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
2127
+ }
2128
+ return [3, 8];
2129
2129
  case 2:
2130
2130
  _c = [{}];
2131
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2131
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2132
2132
  case 3:
2133
2133
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2134
- return [3 /*break*/, 9];
2134
+ return [3, 9];
2135
2135
  case 4:
2136
2136
  _d = [{}];
2137
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2137
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2138
2138
  case 5:
2139
2139
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2140
- return [3 /*break*/, 9];
2140
+ return [3, 9];
2141
2141
  case 6:
2142
2142
  _e = [{}];
2143
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2143
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2144
2144
  case 7:
2145
2145
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2146
- return [3 /*break*/, 9];
2146
+ return [3, 9];
2147
2147
  case 8:
2148
2148
  parsedBody = parsedOutput.body;
2149
2149
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2153,7 +2153,7 @@ var deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = funct
2153
2153
  message = response.message || response.Message || errorCode;
2154
2154
  response.message = message;
2155
2155
  delete response.Message;
2156
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2156
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2157
2157
  }
2158
2158
  });
2159
2159
  }); };
@@ -2163,7 +2163,7 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
2163
2163
  switch (_c.label) {
2164
2164
  case 0:
2165
2165
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2166
- return [2 /*return*/, deserializeAws_restJson1GetApplicationCommandError(output, context)];
2166
+ return [2, deserializeAws_restJson1GetApplicationCommandError(output, context)];
2167
2167
  }
2168
2168
  contents = {
2169
2169
  $metadata: deserializeMetadata(output),
@@ -2173,7 +2173,7 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
2173
2173
  };
2174
2174
  _a = __expectNonNull;
2175
2175
  _b = __expectObject;
2176
- return [4 /*yield*/, parseBody(output.body, context)];
2176
+ return [4, parseBody(output.body, context)];
2177
2177
  case 1:
2178
2178
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2179
2179
  if (data.Description !== undefined && data.Description !== null) {
@@ -2185,7 +2185,7 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
2185
2185
  if (data.Name !== undefined && data.Name !== null) {
2186
2186
  contents.Name = __expectString(data.Name);
2187
2187
  }
2188
- return [2 /*return*/, Promise.resolve(contents)];
2188
+ return [2, Promise.resolve(contents)];
2189
2189
  }
2190
2190
  });
2191
2191
  }); };
@@ -2197,39 +2197,39 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
2197
2197
  case 0:
2198
2198
  _a = [__assign({}, output)];
2199
2199
  _f = {};
2200
- return [4 /*yield*/, parseBody(output.body, context)];
2200
+ return [4, parseBody(output.body, context)];
2201
2201
  case 1:
2202
2202
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2203
2203
  errorCode = "UnknownError";
2204
2204
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2205
2205
  _b = errorCode;
2206
2206
  switch (_b) {
2207
- case "BadRequestException": return [3 /*break*/, 2];
2208
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
2209
- case "InternalServerException": return [3 /*break*/, 4];
2210
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
2211
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2212
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
2213
- }
2214
- return [3 /*break*/, 8];
2207
+ case "BadRequestException": return [3, 2];
2208
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
2209
+ case "InternalServerException": return [3, 4];
2210
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
2211
+ case "ResourceNotFoundException": return [3, 6];
2212
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
2213
+ }
2214
+ return [3, 8];
2215
2215
  case 2:
2216
2216
  _c = [{}];
2217
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2217
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2218
2218
  case 3:
2219
2219
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2220
- return [3 /*break*/, 9];
2220
+ return [3, 9];
2221
2221
  case 4:
2222
2222
  _d = [{}];
2223
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2223
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2224
2224
  case 5:
2225
2225
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2226
- return [3 /*break*/, 9];
2226
+ return [3, 9];
2227
2227
  case 6:
2228
2228
  _e = [{}];
2229
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2229
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2230
2230
  case 7:
2231
2231
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2232
- return [3 /*break*/, 9];
2232
+ return [3, 9];
2233
2233
  case 8:
2234
2234
  parsedBody = parsedOutput.body;
2235
2235
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2239,7 +2239,7 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
2239
2239
  message = response.message || response.Message || errorCode;
2240
2240
  response.message = message;
2241
2241
  delete response.Message;
2242
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2242
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2243
2243
  }
2244
2244
  });
2245
2245
  }); };
@@ -2249,7 +2249,7 @@ export var deserializeAws_restJson1GetConfigurationCommand = function (output, c
2249
2249
  switch (_a.label) {
2250
2250
  case 0:
2251
2251
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2252
- return [2 /*return*/, deserializeAws_restJson1GetConfigurationCommandError(output, context)];
2252
+ return [2, deserializeAws_restJson1GetConfigurationCommandError(output, context)];
2253
2253
  }
2254
2254
  contents = {
2255
2255
  $metadata: deserializeMetadata(output),
@@ -2263,11 +2263,11 @@ export var deserializeAws_restJson1GetConfigurationCommand = function (output, c
2263
2263
  if (output.headers["content-type"] !== undefined) {
2264
2264
  contents.ContentType = output.headers["content-type"];
2265
2265
  }
2266
- return [4 /*yield*/, collectBody(output.body, context)];
2266
+ return [4, collectBody(output.body, context)];
2267
2267
  case 1:
2268
2268
  data = _a.sent();
2269
2269
  contents.Content = data;
2270
- return [2 /*return*/, Promise.resolve(contents)];
2270
+ return [2, Promise.resolve(contents)];
2271
2271
  }
2272
2272
  });
2273
2273
  }); };
@@ -2279,39 +2279,39 @@ var deserializeAws_restJson1GetConfigurationCommandError = function (output, con
2279
2279
  case 0:
2280
2280
  _a = [__assign({}, output)];
2281
2281
  _f = {};
2282
- return [4 /*yield*/, parseBody(output.body, context)];
2282
+ return [4, parseBody(output.body, context)];
2283
2283
  case 1:
2284
2284
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2285
2285
  errorCode = "UnknownError";
2286
2286
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2287
2287
  _b = errorCode;
2288
2288
  switch (_b) {
2289
- case "BadRequestException": return [3 /*break*/, 2];
2290
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
2291
- case "InternalServerException": return [3 /*break*/, 4];
2292
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
2293
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2294
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
2295
- }
2296
- return [3 /*break*/, 8];
2289
+ case "BadRequestException": return [3, 2];
2290
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
2291
+ case "InternalServerException": return [3, 4];
2292
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
2293
+ case "ResourceNotFoundException": return [3, 6];
2294
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
2295
+ }
2296
+ return [3, 8];
2297
2297
  case 2:
2298
2298
  _c = [{}];
2299
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2299
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2300
2300
  case 3:
2301
2301
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2302
- return [3 /*break*/, 9];
2302
+ return [3, 9];
2303
2303
  case 4:
2304
2304
  _d = [{}];
2305
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2305
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2306
2306
  case 5:
2307
2307
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2308
- return [3 /*break*/, 9];
2308
+ return [3, 9];
2309
2309
  case 6:
2310
2310
  _e = [{}];
2311
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2311
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2312
2312
  case 7:
2313
2313
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2314
- return [3 /*break*/, 9];
2314
+ return [3, 9];
2315
2315
  case 8:
2316
2316
  parsedBody = parsedOutput.body;
2317
2317
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2321,7 +2321,7 @@ var deserializeAws_restJson1GetConfigurationCommandError = function (output, con
2321
2321
  message = response.message || response.Message || errorCode;
2322
2322
  response.message = message;
2323
2323
  delete response.Message;
2324
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2324
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2325
2325
  }
2326
2326
  });
2327
2327
  }); };
@@ -2331,7 +2331,7 @@ export var deserializeAws_restJson1GetConfigurationProfileCommand = function (ou
2331
2331
  switch (_c.label) {
2332
2332
  case 0:
2333
2333
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2334
- return [2 /*return*/, deserializeAws_restJson1GetConfigurationProfileCommandError(output, context)];
2334
+ return [2, deserializeAws_restJson1GetConfigurationProfileCommandError(output, context)];
2335
2335
  }
2336
2336
  contents = {
2337
2337
  $metadata: deserializeMetadata(output),
@@ -2345,7 +2345,7 @@ export var deserializeAws_restJson1GetConfigurationProfileCommand = function (ou
2345
2345
  };
2346
2346
  _a = __expectNonNull;
2347
2347
  _b = __expectObject;
2348
- return [4 /*yield*/, parseBody(output.body, context)];
2348
+ return [4, parseBody(output.body, context)];
2349
2349
  case 1:
2350
2350
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2351
2351
  if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
@@ -2369,7 +2369,7 @@ export var deserializeAws_restJson1GetConfigurationProfileCommand = function (ou
2369
2369
  if (data.Validators !== undefined && data.Validators !== null) {
2370
2370
  contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
2371
2371
  }
2372
- return [2 /*return*/, Promise.resolve(contents)];
2372
+ return [2, Promise.resolve(contents)];
2373
2373
  }
2374
2374
  });
2375
2375
  }); };
@@ -2381,39 +2381,39 @@ var deserializeAws_restJson1GetConfigurationProfileCommandError = function (outp
2381
2381
  case 0:
2382
2382
  _a = [__assign({}, output)];
2383
2383
  _f = {};
2384
- return [4 /*yield*/, parseBody(output.body, context)];
2384
+ return [4, parseBody(output.body, context)];
2385
2385
  case 1:
2386
2386
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2387
2387
  errorCode = "UnknownError";
2388
2388
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2389
2389
  _b = errorCode;
2390
2390
  switch (_b) {
2391
- case "BadRequestException": return [3 /*break*/, 2];
2392
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
2393
- case "InternalServerException": return [3 /*break*/, 4];
2394
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
2395
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2396
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
2397
- }
2398
- return [3 /*break*/, 8];
2391
+ case "BadRequestException": return [3, 2];
2392
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
2393
+ case "InternalServerException": return [3, 4];
2394
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
2395
+ case "ResourceNotFoundException": return [3, 6];
2396
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
2397
+ }
2398
+ return [3, 8];
2399
2399
  case 2:
2400
2400
  _c = [{}];
2401
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2401
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2402
2402
  case 3:
2403
2403
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2404
- return [3 /*break*/, 9];
2404
+ return [3, 9];
2405
2405
  case 4:
2406
2406
  _d = [{}];
2407
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2407
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2408
2408
  case 5:
2409
2409
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2410
- return [3 /*break*/, 9];
2410
+ return [3, 9];
2411
2411
  case 6:
2412
2412
  _e = [{}];
2413
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2413
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2414
2414
  case 7:
2415
2415
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2416
- return [3 /*break*/, 9];
2416
+ return [3, 9];
2417
2417
  case 8:
2418
2418
  parsedBody = parsedOutput.body;
2419
2419
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2423,7 +2423,7 @@ var deserializeAws_restJson1GetConfigurationProfileCommandError = function (outp
2423
2423
  message = response.message || response.Message || errorCode;
2424
2424
  response.message = message;
2425
2425
  delete response.Message;
2426
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2426
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2427
2427
  }
2428
2428
  });
2429
2429
  }); };
@@ -2433,7 +2433,7 @@ export var deserializeAws_restJson1GetDeploymentCommand = function (output, cont
2433
2433
  switch (_c.label) {
2434
2434
  case 0:
2435
2435
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2436
- return [2 /*return*/, deserializeAws_restJson1GetDeploymentCommandError(output, context)];
2436
+ return [2, deserializeAws_restJson1GetDeploymentCommandError(output, context)];
2437
2437
  }
2438
2438
  contents = {
2439
2439
  $metadata: deserializeMetadata(output),
@@ -2458,7 +2458,7 @@ export var deserializeAws_restJson1GetDeploymentCommand = function (output, cont
2458
2458
  };
2459
2459
  _a = __expectNonNull;
2460
2460
  _b = __expectObject;
2461
- return [4 /*yield*/, parseBody(output.body, context)];
2461
+ return [4, parseBody(output.body, context)];
2462
2462
  case 1:
2463
2463
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2464
2464
  if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
@@ -2515,7 +2515,7 @@ export var deserializeAws_restJson1GetDeploymentCommand = function (output, cont
2515
2515
  if (data.State !== undefined && data.State !== null) {
2516
2516
  contents.State = __expectString(data.State);
2517
2517
  }
2518
- return [2 /*return*/, Promise.resolve(contents)];
2518
+ return [2, Promise.resolve(contents)];
2519
2519
  }
2520
2520
  });
2521
2521
  }); };
@@ -2527,39 +2527,39 @@ var deserializeAws_restJson1GetDeploymentCommandError = function (output, contex
2527
2527
  case 0:
2528
2528
  _a = [__assign({}, output)];
2529
2529
  _f = {};
2530
- return [4 /*yield*/, parseBody(output.body, context)];
2530
+ return [4, parseBody(output.body, context)];
2531
2531
  case 1:
2532
2532
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2533
2533
  errorCode = "UnknownError";
2534
2534
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2535
2535
  _b = errorCode;
2536
2536
  switch (_b) {
2537
- case "BadRequestException": return [3 /*break*/, 2];
2538
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
2539
- case "InternalServerException": return [3 /*break*/, 4];
2540
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
2541
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2542
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
2543
- }
2544
- return [3 /*break*/, 8];
2537
+ case "BadRequestException": return [3, 2];
2538
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
2539
+ case "InternalServerException": return [3, 4];
2540
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
2541
+ case "ResourceNotFoundException": return [3, 6];
2542
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
2543
+ }
2544
+ return [3, 8];
2545
2545
  case 2:
2546
2546
  _c = [{}];
2547
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2547
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2548
2548
  case 3:
2549
2549
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2550
- return [3 /*break*/, 9];
2550
+ return [3, 9];
2551
2551
  case 4:
2552
2552
  _d = [{}];
2553
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2553
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2554
2554
  case 5:
2555
2555
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2556
- return [3 /*break*/, 9];
2556
+ return [3, 9];
2557
2557
  case 6:
2558
2558
  _e = [{}];
2559
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2559
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2560
2560
  case 7:
2561
2561
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2562
- return [3 /*break*/, 9];
2562
+ return [3, 9];
2563
2563
  case 8:
2564
2564
  parsedBody = parsedOutput.body;
2565
2565
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2569,7 +2569,7 @@ var deserializeAws_restJson1GetDeploymentCommandError = function (output, contex
2569
2569
  message = response.message || response.Message || errorCode;
2570
2570
  response.message = message;
2571
2571
  delete response.Message;
2572
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2572
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2573
2573
  }
2574
2574
  });
2575
2575
  }); };
@@ -2579,7 +2579,7 @@ export var deserializeAws_restJson1GetDeploymentStrategyCommand = function (outp
2579
2579
  switch (_c.label) {
2580
2580
  case 0:
2581
2581
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2582
- return [2 /*return*/, deserializeAws_restJson1GetDeploymentStrategyCommandError(output, context)];
2582
+ return [2, deserializeAws_restJson1GetDeploymentStrategyCommandError(output, context)];
2583
2583
  }
2584
2584
  contents = {
2585
2585
  $metadata: deserializeMetadata(output),
@@ -2594,7 +2594,7 @@ export var deserializeAws_restJson1GetDeploymentStrategyCommand = function (outp
2594
2594
  };
2595
2595
  _a = __expectNonNull;
2596
2596
  _b = __expectObject;
2597
- return [4 /*yield*/, parseBody(output.body, context)];
2597
+ return [4, parseBody(output.body, context)];
2598
2598
  case 1:
2599
2599
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2600
2600
  if (data.DeploymentDurationInMinutes !== undefined && data.DeploymentDurationInMinutes !== null) {
@@ -2621,7 +2621,7 @@ export var deserializeAws_restJson1GetDeploymentStrategyCommand = function (outp
2621
2621
  if (data.ReplicateTo !== undefined && data.ReplicateTo !== null) {
2622
2622
  contents.ReplicateTo = __expectString(data.ReplicateTo);
2623
2623
  }
2624
- return [2 /*return*/, Promise.resolve(contents)];
2624
+ return [2, Promise.resolve(contents)];
2625
2625
  }
2626
2626
  });
2627
2627
  }); };
@@ -2633,39 +2633,39 @@ var deserializeAws_restJson1GetDeploymentStrategyCommandError = function (output
2633
2633
  case 0:
2634
2634
  _a = [__assign({}, output)];
2635
2635
  _f = {};
2636
- return [4 /*yield*/, parseBody(output.body, context)];
2636
+ return [4, parseBody(output.body, context)];
2637
2637
  case 1:
2638
2638
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2639
2639
  errorCode = "UnknownError";
2640
2640
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2641
2641
  _b = errorCode;
2642
2642
  switch (_b) {
2643
- case "BadRequestException": return [3 /*break*/, 2];
2644
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
2645
- case "InternalServerException": return [3 /*break*/, 4];
2646
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
2647
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2648
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
2649
- }
2650
- return [3 /*break*/, 8];
2643
+ case "BadRequestException": return [3, 2];
2644
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
2645
+ case "InternalServerException": return [3, 4];
2646
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
2647
+ case "ResourceNotFoundException": return [3, 6];
2648
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
2649
+ }
2650
+ return [3, 8];
2651
2651
  case 2:
2652
2652
  _c = [{}];
2653
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2653
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2654
2654
  case 3:
2655
2655
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2656
- return [3 /*break*/, 9];
2656
+ return [3, 9];
2657
2657
  case 4:
2658
2658
  _d = [{}];
2659
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2659
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2660
2660
  case 5:
2661
2661
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2662
- return [3 /*break*/, 9];
2662
+ return [3, 9];
2663
2663
  case 6:
2664
2664
  _e = [{}];
2665
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2665
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2666
2666
  case 7:
2667
2667
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2668
- return [3 /*break*/, 9];
2668
+ return [3, 9];
2669
2669
  case 8:
2670
2670
  parsedBody = parsedOutput.body;
2671
2671
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2675,7 +2675,7 @@ var deserializeAws_restJson1GetDeploymentStrategyCommandError = function (output
2675
2675
  message = response.message || response.Message || errorCode;
2676
2676
  response.message = message;
2677
2677
  delete response.Message;
2678
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2678
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2679
2679
  }
2680
2680
  });
2681
2681
  }); };
@@ -2685,7 +2685,7 @@ export var deserializeAws_restJson1GetEnvironmentCommand = function (output, con
2685
2685
  switch (_c.label) {
2686
2686
  case 0:
2687
2687
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2688
- return [2 /*return*/, deserializeAws_restJson1GetEnvironmentCommandError(output, context)];
2688
+ return [2, deserializeAws_restJson1GetEnvironmentCommandError(output, context)];
2689
2689
  }
2690
2690
  contents = {
2691
2691
  $metadata: deserializeMetadata(output),
@@ -2698,7 +2698,7 @@ export var deserializeAws_restJson1GetEnvironmentCommand = function (output, con
2698
2698
  };
2699
2699
  _a = __expectNonNull;
2700
2700
  _b = __expectObject;
2701
- return [4 /*yield*/, parseBody(output.body, context)];
2701
+ return [4, parseBody(output.body, context)];
2702
2702
  case 1:
2703
2703
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2704
2704
  if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
@@ -2719,7 +2719,7 @@ export var deserializeAws_restJson1GetEnvironmentCommand = function (output, con
2719
2719
  if (data.State !== undefined && data.State !== null) {
2720
2720
  contents.State = __expectString(data.State);
2721
2721
  }
2722
- return [2 /*return*/, Promise.resolve(contents)];
2722
+ return [2, Promise.resolve(contents)];
2723
2723
  }
2724
2724
  });
2725
2725
  }); };
@@ -2731,39 +2731,39 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
2731
2731
  case 0:
2732
2732
  _a = [__assign({}, output)];
2733
2733
  _f = {};
2734
- return [4 /*yield*/, parseBody(output.body, context)];
2734
+ return [4, parseBody(output.body, context)];
2735
2735
  case 1:
2736
2736
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2737
2737
  errorCode = "UnknownError";
2738
2738
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2739
2739
  _b = errorCode;
2740
2740
  switch (_b) {
2741
- case "BadRequestException": return [3 /*break*/, 2];
2742
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
2743
- case "InternalServerException": return [3 /*break*/, 4];
2744
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
2745
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2746
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
2747
- }
2748
- return [3 /*break*/, 8];
2741
+ case "BadRequestException": return [3, 2];
2742
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
2743
+ case "InternalServerException": return [3, 4];
2744
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
2745
+ case "ResourceNotFoundException": return [3, 6];
2746
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
2747
+ }
2748
+ return [3, 8];
2749
2749
  case 2:
2750
2750
  _c = [{}];
2751
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2751
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2752
2752
  case 3:
2753
2753
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2754
- return [3 /*break*/, 9];
2754
+ return [3, 9];
2755
2755
  case 4:
2756
2756
  _d = [{}];
2757
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2757
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2758
2758
  case 5:
2759
2759
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2760
- return [3 /*break*/, 9];
2760
+ return [3, 9];
2761
2761
  case 6:
2762
2762
  _e = [{}];
2763
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2763
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2764
2764
  case 7:
2765
2765
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2766
- return [3 /*break*/, 9];
2766
+ return [3, 9];
2767
2767
  case 8:
2768
2768
  parsedBody = parsedOutput.body;
2769
2769
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2773,7 +2773,7 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
2773
2773
  message = response.message || response.Message || errorCode;
2774
2774
  response.message = message;
2775
2775
  delete response.Message;
2776
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2776
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2777
2777
  }
2778
2778
  });
2779
2779
  }); };
@@ -2783,7 +2783,7 @@ export var deserializeAws_restJson1GetHostedConfigurationVersionCommand = functi
2783
2783
  switch (_a.label) {
2784
2784
  case 0:
2785
2785
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2786
- return [2 /*return*/, deserializeAws_restJson1GetHostedConfigurationVersionCommandError(output, context)];
2786
+ return [2, deserializeAws_restJson1GetHostedConfigurationVersionCommandError(output, context)];
2787
2787
  }
2788
2788
  contents = {
2789
2789
  $metadata: deserializeMetadata(output),
@@ -2809,11 +2809,11 @@ export var deserializeAws_restJson1GetHostedConfigurationVersionCommand = functi
2809
2809
  if (output.headers["content-type"] !== undefined) {
2810
2810
  contents.ContentType = output.headers["content-type"];
2811
2811
  }
2812
- return [4 /*yield*/, collectBody(output.body, context)];
2812
+ return [4, collectBody(output.body, context)];
2813
2813
  case 1:
2814
2814
  data = _a.sent();
2815
2815
  contents.Content = data;
2816
- return [2 /*return*/, Promise.resolve(contents)];
2816
+ return [2, Promise.resolve(contents)];
2817
2817
  }
2818
2818
  });
2819
2819
  }); };
@@ -2825,39 +2825,39 @@ var deserializeAws_restJson1GetHostedConfigurationVersionCommandError = function
2825
2825
  case 0:
2826
2826
  _a = [__assign({}, output)];
2827
2827
  _f = {};
2828
- return [4 /*yield*/, parseBody(output.body, context)];
2828
+ return [4, parseBody(output.body, context)];
2829
2829
  case 1:
2830
2830
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2831
2831
  errorCode = "UnknownError";
2832
2832
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2833
2833
  _b = errorCode;
2834
2834
  switch (_b) {
2835
- case "BadRequestException": return [3 /*break*/, 2];
2836
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
2837
- case "InternalServerException": return [3 /*break*/, 4];
2838
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
2839
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2840
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
2841
- }
2842
- return [3 /*break*/, 8];
2835
+ case "BadRequestException": return [3, 2];
2836
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
2837
+ case "InternalServerException": return [3, 4];
2838
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
2839
+ case "ResourceNotFoundException": return [3, 6];
2840
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
2841
+ }
2842
+ return [3, 8];
2843
2843
  case 2:
2844
2844
  _c = [{}];
2845
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2845
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2846
2846
  case 3:
2847
2847
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2848
- return [3 /*break*/, 9];
2848
+ return [3, 9];
2849
2849
  case 4:
2850
2850
  _d = [{}];
2851
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2851
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2852
2852
  case 5:
2853
2853
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2854
- return [3 /*break*/, 9];
2854
+ return [3, 9];
2855
2855
  case 6:
2856
2856
  _e = [{}];
2857
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2857
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2858
2858
  case 7:
2859
2859
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2860
- return [3 /*break*/, 9];
2860
+ return [3, 9];
2861
2861
  case 8:
2862
2862
  parsedBody = parsedOutput.body;
2863
2863
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2867,7 +2867,7 @@ var deserializeAws_restJson1GetHostedConfigurationVersionCommandError = function
2867
2867
  message = response.message || response.Message || errorCode;
2868
2868
  response.message = message;
2869
2869
  delete response.Message;
2870
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2870
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2871
2871
  }
2872
2872
  });
2873
2873
  }); };
@@ -2877,7 +2877,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
2877
2877
  switch (_c.label) {
2878
2878
  case 0:
2879
2879
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2880
- return [2 /*return*/, deserializeAws_restJson1ListApplicationsCommandError(output, context)];
2880
+ return [2, deserializeAws_restJson1ListApplicationsCommandError(output, context)];
2881
2881
  }
2882
2882
  contents = {
2883
2883
  $metadata: deserializeMetadata(output),
@@ -2886,7 +2886,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
2886
2886
  };
2887
2887
  _a = __expectNonNull;
2888
2888
  _b = __expectObject;
2889
- return [4 /*yield*/, parseBody(output.body, context)];
2889
+ return [4, parseBody(output.body, context)];
2890
2890
  case 1:
2891
2891
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2892
2892
  if (data.Items !== undefined && data.Items !== null) {
@@ -2895,7 +2895,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
2895
2895
  if (data.NextToken !== undefined && data.NextToken !== null) {
2896
2896
  contents.NextToken = __expectString(data.NextToken);
2897
2897
  }
2898
- return [2 /*return*/, Promise.resolve(contents)];
2898
+ return [2, Promise.resolve(contents)];
2899
2899
  }
2900
2900
  });
2901
2901
  }); };
@@ -2907,31 +2907,31 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
2907
2907
  case 0:
2908
2908
  _a = [__assign({}, output)];
2909
2909
  _e = {};
2910
- return [4 /*yield*/, parseBody(output.body, context)];
2910
+ return [4, parseBody(output.body, context)];
2911
2911
  case 1:
2912
2912
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
2913
2913
  errorCode = "UnknownError";
2914
2914
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2915
2915
  _b = errorCode;
2916
2916
  switch (_b) {
2917
- case "BadRequestException": return [3 /*break*/, 2];
2918
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
2919
- case "InternalServerException": return [3 /*break*/, 4];
2920
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
2917
+ case "BadRequestException": return [3, 2];
2918
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
2919
+ case "InternalServerException": return [3, 4];
2920
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
2921
2921
  }
2922
- return [3 /*break*/, 6];
2922
+ return [3, 6];
2923
2923
  case 2:
2924
2924
  _c = [{}];
2925
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2925
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2926
2926
  case 3:
2927
2927
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2928
- return [3 /*break*/, 7];
2928
+ return [3, 7];
2929
2929
  case 4:
2930
2930
  _d = [{}];
2931
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2931
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2932
2932
  case 5:
2933
2933
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2934
- return [3 /*break*/, 7];
2934
+ return [3, 7];
2935
2935
  case 6:
2936
2936
  parsedBody = parsedOutput.body;
2937
2937
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2941,7 +2941,7 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
2941
2941
  message = response.message || response.Message || errorCode;
2942
2942
  response.message = message;
2943
2943
  delete response.Message;
2944
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2944
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2945
2945
  }
2946
2946
  });
2947
2947
  }); };
@@ -2951,7 +2951,7 @@ export var deserializeAws_restJson1ListConfigurationProfilesCommand = function (
2951
2951
  switch (_c.label) {
2952
2952
  case 0:
2953
2953
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2954
- return [2 /*return*/, deserializeAws_restJson1ListConfigurationProfilesCommandError(output, context)];
2954
+ return [2, deserializeAws_restJson1ListConfigurationProfilesCommandError(output, context)];
2955
2955
  }
2956
2956
  contents = {
2957
2957
  $metadata: deserializeMetadata(output),
@@ -2960,7 +2960,7 @@ export var deserializeAws_restJson1ListConfigurationProfilesCommand = function (
2960
2960
  };
2961
2961
  _a = __expectNonNull;
2962
2962
  _b = __expectObject;
2963
- return [4 /*yield*/, parseBody(output.body, context)];
2963
+ return [4, parseBody(output.body, context)];
2964
2964
  case 1:
2965
2965
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2966
2966
  if (data.Items !== undefined && data.Items !== null) {
@@ -2969,7 +2969,7 @@ export var deserializeAws_restJson1ListConfigurationProfilesCommand = function (
2969
2969
  if (data.NextToken !== undefined && data.NextToken !== null) {
2970
2970
  contents.NextToken = __expectString(data.NextToken);
2971
2971
  }
2972
- return [2 /*return*/, Promise.resolve(contents)];
2972
+ return [2, Promise.resolve(contents)];
2973
2973
  }
2974
2974
  });
2975
2975
  }); };
@@ -2981,39 +2981,39 @@ var deserializeAws_restJson1ListConfigurationProfilesCommandError = function (ou
2981
2981
  case 0:
2982
2982
  _a = [__assign({}, output)];
2983
2983
  _f = {};
2984
- return [4 /*yield*/, parseBody(output.body, context)];
2984
+ return [4, parseBody(output.body, context)];
2985
2985
  case 1:
2986
2986
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2987
2987
  errorCode = "UnknownError";
2988
2988
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2989
2989
  _b = errorCode;
2990
2990
  switch (_b) {
2991
- case "BadRequestException": return [3 /*break*/, 2];
2992
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
2993
- case "InternalServerException": return [3 /*break*/, 4];
2994
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
2995
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2996
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
2997
- }
2998
- return [3 /*break*/, 8];
2991
+ case "BadRequestException": return [3, 2];
2992
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
2993
+ case "InternalServerException": return [3, 4];
2994
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
2995
+ case "ResourceNotFoundException": return [3, 6];
2996
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
2997
+ }
2998
+ return [3, 8];
2999
2999
  case 2:
3000
3000
  _c = [{}];
3001
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3001
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3002
3002
  case 3:
3003
3003
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3004
- return [3 /*break*/, 9];
3004
+ return [3, 9];
3005
3005
  case 4:
3006
3006
  _d = [{}];
3007
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3007
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3008
3008
  case 5:
3009
3009
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3010
- return [3 /*break*/, 9];
3010
+ return [3, 9];
3011
3011
  case 6:
3012
3012
  _e = [{}];
3013
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3013
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3014
3014
  case 7:
3015
3015
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3016
- return [3 /*break*/, 9];
3016
+ return [3, 9];
3017
3017
  case 8:
3018
3018
  parsedBody = parsedOutput.body;
3019
3019
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3023,7 +3023,7 @@ var deserializeAws_restJson1ListConfigurationProfilesCommandError = function (ou
3023
3023
  message = response.message || response.Message || errorCode;
3024
3024
  response.message = message;
3025
3025
  delete response.Message;
3026
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3026
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3027
3027
  }
3028
3028
  });
3029
3029
  }); };
@@ -3033,7 +3033,7 @@ export var deserializeAws_restJson1ListDeploymentsCommand = function (output, co
3033
3033
  switch (_c.label) {
3034
3034
  case 0:
3035
3035
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3036
- return [2 /*return*/, deserializeAws_restJson1ListDeploymentsCommandError(output, context)];
3036
+ return [2, deserializeAws_restJson1ListDeploymentsCommandError(output, context)];
3037
3037
  }
3038
3038
  contents = {
3039
3039
  $metadata: deserializeMetadata(output),
@@ -3042,7 +3042,7 @@ export var deserializeAws_restJson1ListDeploymentsCommand = function (output, co
3042
3042
  };
3043
3043
  _a = __expectNonNull;
3044
3044
  _b = __expectObject;
3045
- return [4 /*yield*/, parseBody(output.body, context)];
3045
+ return [4, parseBody(output.body, context)];
3046
3046
  case 1:
3047
3047
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3048
3048
  if (data.Items !== undefined && data.Items !== null) {
@@ -3051,7 +3051,7 @@ export var deserializeAws_restJson1ListDeploymentsCommand = function (output, co
3051
3051
  if (data.NextToken !== undefined && data.NextToken !== null) {
3052
3052
  contents.NextToken = __expectString(data.NextToken);
3053
3053
  }
3054
- return [2 /*return*/, Promise.resolve(contents)];
3054
+ return [2, Promise.resolve(contents)];
3055
3055
  }
3056
3056
  });
3057
3057
  }); };
@@ -3063,39 +3063,39 @@ var deserializeAws_restJson1ListDeploymentsCommandError = function (output, cont
3063
3063
  case 0:
3064
3064
  _a = [__assign({}, output)];
3065
3065
  _f = {};
3066
- return [4 /*yield*/, parseBody(output.body, context)];
3066
+ return [4, parseBody(output.body, context)];
3067
3067
  case 1:
3068
3068
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
3069
3069
  errorCode = "UnknownError";
3070
3070
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3071
3071
  _b = errorCode;
3072
3072
  switch (_b) {
3073
- case "BadRequestException": return [3 /*break*/, 2];
3074
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
3075
- case "InternalServerException": return [3 /*break*/, 4];
3076
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
3077
- case "ResourceNotFoundException": return [3 /*break*/, 6];
3078
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
3079
- }
3080
- return [3 /*break*/, 8];
3073
+ case "BadRequestException": return [3, 2];
3074
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
3075
+ case "InternalServerException": return [3, 4];
3076
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
3077
+ case "ResourceNotFoundException": return [3, 6];
3078
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
3079
+ }
3080
+ return [3, 8];
3081
3081
  case 2:
3082
3082
  _c = [{}];
3083
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3083
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3084
3084
  case 3:
3085
3085
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3086
- return [3 /*break*/, 9];
3086
+ return [3, 9];
3087
3087
  case 4:
3088
3088
  _d = [{}];
3089
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3089
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3090
3090
  case 5:
3091
3091
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3092
- return [3 /*break*/, 9];
3092
+ return [3, 9];
3093
3093
  case 6:
3094
3094
  _e = [{}];
3095
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3095
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3096
3096
  case 7:
3097
3097
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3098
- return [3 /*break*/, 9];
3098
+ return [3, 9];
3099
3099
  case 8:
3100
3100
  parsedBody = parsedOutput.body;
3101
3101
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3105,7 +3105,7 @@ var deserializeAws_restJson1ListDeploymentsCommandError = function (output, cont
3105
3105
  message = response.message || response.Message || errorCode;
3106
3106
  response.message = message;
3107
3107
  delete response.Message;
3108
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3108
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3109
3109
  }
3110
3110
  });
3111
3111
  }); };
@@ -3115,7 +3115,7 @@ export var deserializeAws_restJson1ListDeploymentStrategiesCommand = function (o
3115
3115
  switch (_c.label) {
3116
3116
  case 0:
3117
3117
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3118
- return [2 /*return*/, deserializeAws_restJson1ListDeploymentStrategiesCommandError(output, context)];
3118
+ return [2, deserializeAws_restJson1ListDeploymentStrategiesCommandError(output, context)];
3119
3119
  }
3120
3120
  contents = {
3121
3121
  $metadata: deserializeMetadata(output),
@@ -3124,7 +3124,7 @@ export var deserializeAws_restJson1ListDeploymentStrategiesCommand = function (o
3124
3124
  };
3125
3125
  _a = __expectNonNull;
3126
3126
  _b = __expectObject;
3127
- return [4 /*yield*/, parseBody(output.body, context)];
3127
+ return [4, parseBody(output.body, context)];
3128
3128
  case 1:
3129
3129
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3130
3130
  if (data.Items !== undefined && data.Items !== null) {
@@ -3133,7 +3133,7 @@ export var deserializeAws_restJson1ListDeploymentStrategiesCommand = function (o
3133
3133
  if (data.NextToken !== undefined && data.NextToken !== null) {
3134
3134
  contents.NextToken = __expectString(data.NextToken);
3135
3135
  }
3136
- return [2 /*return*/, Promise.resolve(contents)];
3136
+ return [2, Promise.resolve(contents)];
3137
3137
  }
3138
3138
  });
3139
3139
  }); };
@@ -3145,31 +3145,31 @@ var deserializeAws_restJson1ListDeploymentStrategiesCommandError = function (out
3145
3145
  case 0:
3146
3146
  _a = [__assign({}, output)];
3147
3147
  _e = {};
3148
- return [4 /*yield*/, parseBody(output.body, context)];
3148
+ return [4, parseBody(output.body, context)];
3149
3149
  case 1:
3150
3150
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
3151
3151
  errorCode = "UnknownError";
3152
3152
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3153
3153
  _b = errorCode;
3154
3154
  switch (_b) {
3155
- case "BadRequestException": return [3 /*break*/, 2];
3156
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
3157
- case "InternalServerException": return [3 /*break*/, 4];
3158
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
3155
+ case "BadRequestException": return [3, 2];
3156
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
3157
+ case "InternalServerException": return [3, 4];
3158
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
3159
3159
  }
3160
- return [3 /*break*/, 6];
3160
+ return [3, 6];
3161
3161
  case 2:
3162
3162
  _c = [{}];
3163
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3163
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3164
3164
  case 3:
3165
3165
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3166
- return [3 /*break*/, 7];
3166
+ return [3, 7];
3167
3167
  case 4:
3168
3168
  _d = [{}];
3169
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3169
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3170
3170
  case 5:
3171
3171
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3172
- return [3 /*break*/, 7];
3172
+ return [3, 7];
3173
3173
  case 6:
3174
3174
  parsedBody = parsedOutput.body;
3175
3175
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3179,7 +3179,7 @@ var deserializeAws_restJson1ListDeploymentStrategiesCommandError = function (out
3179
3179
  message = response.message || response.Message || errorCode;
3180
3180
  response.message = message;
3181
3181
  delete response.Message;
3182
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3182
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3183
3183
  }
3184
3184
  });
3185
3185
  }); };
@@ -3189,7 +3189,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
3189
3189
  switch (_c.label) {
3190
3190
  case 0:
3191
3191
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3192
- return [2 /*return*/, deserializeAws_restJson1ListEnvironmentsCommandError(output, context)];
3192
+ return [2, deserializeAws_restJson1ListEnvironmentsCommandError(output, context)];
3193
3193
  }
3194
3194
  contents = {
3195
3195
  $metadata: deserializeMetadata(output),
@@ -3198,7 +3198,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
3198
3198
  };
3199
3199
  _a = __expectNonNull;
3200
3200
  _b = __expectObject;
3201
- return [4 /*yield*/, parseBody(output.body, context)];
3201
+ return [4, parseBody(output.body, context)];
3202
3202
  case 1:
3203
3203
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3204
3204
  if (data.Items !== undefined && data.Items !== null) {
@@ -3207,7 +3207,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
3207
3207
  if (data.NextToken !== undefined && data.NextToken !== null) {
3208
3208
  contents.NextToken = __expectString(data.NextToken);
3209
3209
  }
3210
- return [2 /*return*/, Promise.resolve(contents)];
3210
+ return [2, Promise.resolve(contents)];
3211
3211
  }
3212
3212
  });
3213
3213
  }); };
@@ -3219,39 +3219,39 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
3219
3219
  case 0:
3220
3220
  _a = [__assign({}, output)];
3221
3221
  _f = {};
3222
- return [4 /*yield*/, parseBody(output.body, context)];
3222
+ return [4, parseBody(output.body, context)];
3223
3223
  case 1:
3224
3224
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
3225
3225
  errorCode = "UnknownError";
3226
3226
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3227
3227
  _b = errorCode;
3228
3228
  switch (_b) {
3229
- case "BadRequestException": return [3 /*break*/, 2];
3230
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
3231
- case "InternalServerException": return [3 /*break*/, 4];
3232
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
3233
- case "ResourceNotFoundException": return [3 /*break*/, 6];
3234
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
3235
- }
3236
- return [3 /*break*/, 8];
3229
+ case "BadRequestException": return [3, 2];
3230
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
3231
+ case "InternalServerException": return [3, 4];
3232
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
3233
+ case "ResourceNotFoundException": return [3, 6];
3234
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
3235
+ }
3236
+ return [3, 8];
3237
3237
  case 2:
3238
3238
  _c = [{}];
3239
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3239
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3240
3240
  case 3:
3241
3241
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3242
- return [3 /*break*/, 9];
3242
+ return [3, 9];
3243
3243
  case 4:
3244
3244
  _d = [{}];
3245
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3245
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3246
3246
  case 5:
3247
3247
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3248
- return [3 /*break*/, 9];
3248
+ return [3, 9];
3249
3249
  case 6:
3250
3250
  _e = [{}];
3251
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3251
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3252
3252
  case 7:
3253
3253
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3254
- return [3 /*break*/, 9];
3254
+ return [3, 9];
3255
3255
  case 8:
3256
3256
  parsedBody = parsedOutput.body;
3257
3257
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3261,7 +3261,7 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
3261
3261
  message = response.message || response.Message || errorCode;
3262
3262
  response.message = message;
3263
3263
  delete response.Message;
3264
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3264
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3265
3265
  }
3266
3266
  });
3267
3267
  }); };
@@ -3271,7 +3271,7 @@ export var deserializeAws_restJson1ListHostedConfigurationVersionsCommand = func
3271
3271
  switch (_c.label) {
3272
3272
  case 0:
3273
3273
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3274
- return [2 /*return*/, deserializeAws_restJson1ListHostedConfigurationVersionsCommandError(output, context)];
3274
+ return [2, deserializeAws_restJson1ListHostedConfigurationVersionsCommandError(output, context)];
3275
3275
  }
3276
3276
  contents = {
3277
3277
  $metadata: deserializeMetadata(output),
@@ -3280,7 +3280,7 @@ export var deserializeAws_restJson1ListHostedConfigurationVersionsCommand = func
3280
3280
  };
3281
3281
  _a = __expectNonNull;
3282
3282
  _b = __expectObject;
3283
- return [4 /*yield*/, parseBody(output.body, context)];
3283
+ return [4, parseBody(output.body, context)];
3284
3284
  case 1:
3285
3285
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3286
3286
  if (data.Items !== undefined && data.Items !== null) {
@@ -3289,7 +3289,7 @@ export var deserializeAws_restJson1ListHostedConfigurationVersionsCommand = func
3289
3289
  if (data.NextToken !== undefined && data.NextToken !== null) {
3290
3290
  contents.NextToken = __expectString(data.NextToken);
3291
3291
  }
3292
- return [2 /*return*/, Promise.resolve(contents)];
3292
+ return [2, Promise.resolve(contents)];
3293
3293
  }
3294
3294
  });
3295
3295
  }); };
@@ -3301,39 +3301,39 @@ var deserializeAws_restJson1ListHostedConfigurationVersionsCommandError = functi
3301
3301
  case 0:
3302
3302
  _a = [__assign({}, output)];
3303
3303
  _f = {};
3304
- return [4 /*yield*/, parseBody(output.body, context)];
3304
+ return [4, parseBody(output.body, context)];
3305
3305
  case 1:
3306
3306
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
3307
3307
  errorCode = "UnknownError";
3308
3308
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3309
3309
  _b = errorCode;
3310
3310
  switch (_b) {
3311
- case "BadRequestException": return [3 /*break*/, 2];
3312
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
3313
- case "InternalServerException": return [3 /*break*/, 4];
3314
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
3315
- case "ResourceNotFoundException": return [3 /*break*/, 6];
3316
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
3317
- }
3318
- return [3 /*break*/, 8];
3311
+ case "BadRequestException": return [3, 2];
3312
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
3313
+ case "InternalServerException": return [3, 4];
3314
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
3315
+ case "ResourceNotFoundException": return [3, 6];
3316
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
3317
+ }
3318
+ return [3, 8];
3319
3319
  case 2:
3320
3320
  _c = [{}];
3321
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3321
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3322
3322
  case 3:
3323
3323
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3324
- return [3 /*break*/, 9];
3324
+ return [3, 9];
3325
3325
  case 4:
3326
3326
  _d = [{}];
3327
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3327
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3328
3328
  case 5:
3329
3329
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3330
- return [3 /*break*/, 9];
3330
+ return [3, 9];
3331
3331
  case 6:
3332
3332
  _e = [{}];
3333
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3333
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3334
3334
  case 7:
3335
3335
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3336
- return [3 /*break*/, 9];
3336
+ return [3, 9];
3337
3337
  case 8:
3338
3338
  parsedBody = parsedOutput.body;
3339
3339
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3343,7 +3343,7 @@ var deserializeAws_restJson1ListHostedConfigurationVersionsCommandError = functi
3343
3343
  message = response.message || response.Message || errorCode;
3344
3344
  response.message = message;
3345
3345
  delete response.Message;
3346
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3346
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3347
3347
  }
3348
3348
  });
3349
3349
  }); };
@@ -3353,7 +3353,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
3353
3353
  switch (_c.label) {
3354
3354
  case 0:
3355
3355
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3356
- return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
3356
+ return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
3357
3357
  }
3358
3358
  contents = {
3359
3359
  $metadata: deserializeMetadata(output),
@@ -3361,13 +3361,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
3361
3361
  };
3362
3362
  _a = __expectNonNull;
3363
3363
  _b = __expectObject;
3364
- return [4 /*yield*/, parseBody(output.body, context)];
3364
+ return [4, parseBody(output.body, context)];
3365
3365
  case 1:
3366
3366
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3367
3367
  if (data.Tags !== undefined && data.Tags !== null) {
3368
3368
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3369
3369
  }
3370
- return [2 /*return*/, Promise.resolve(contents)];
3370
+ return [2, Promise.resolve(contents)];
3371
3371
  }
3372
3372
  });
3373
3373
  }); };
@@ -3379,39 +3379,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
3379
3379
  case 0:
3380
3380
  _a = [__assign({}, output)];
3381
3381
  _f = {};
3382
- return [4 /*yield*/, parseBody(output.body, context)];
3382
+ return [4, parseBody(output.body, context)];
3383
3383
  case 1:
3384
3384
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
3385
3385
  errorCode = "UnknownError";
3386
3386
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3387
3387
  _b = errorCode;
3388
3388
  switch (_b) {
3389
- case "BadRequestException": return [3 /*break*/, 2];
3390
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
3391
- case "InternalServerException": return [3 /*break*/, 4];
3392
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
3393
- case "ResourceNotFoundException": return [3 /*break*/, 6];
3394
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
3395
- }
3396
- return [3 /*break*/, 8];
3389
+ case "BadRequestException": return [3, 2];
3390
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
3391
+ case "InternalServerException": return [3, 4];
3392
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
3393
+ case "ResourceNotFoundException": return [3, 6];
3394
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
3395
+ }
3396
+ return [3, 8];
3397
3397
  case 2:
3398
3398
  _c = [{}];
3399
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3399
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3400
3400
  case 3:
3401
3401
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3402
- return [3 /*break*/, 9];
3402
+ return [3, 9];
3403
3403
  case 4:
3404
3404
  _d = [{}];
3405
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3405
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3406
3406
  case 5:
3407
3407
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3408
- return [3 /*break*/, 9];
3408
+ return [3, 9];
3409
3409
  case 6:
3410
3410
  _e = [{}];
3411
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3411
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3412
3412
  case 7:
3413
3413
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3414
- return [3 /*break*/, 9];
3414
+ return [3, 9];
3415
3415
  case 8:
3416
3416
  parsedBody = parsedOutput.body;
3417
3417
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3421,7 +3421,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
3421
3421
  message = response.message || response.Message || errorCode;
3422
3422
  response.message = message;
3423
3423
  delete response.Message;
3424
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3424
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3425
3425
  }
3426
3426
  });
3427
3427
  }); };
@@ -3431,7 +3431,7 @@ export var deserializeAws_restJson1StartDeploymentCommand = function (output, co
3431
3431
  switch (_c.label) {
3432
3432
  case 0:
3433
3433
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3434
- return [2 /*return*/, deserializeAws_restJson1StartDeploymentCommandError(output, context)];
3434
+ return [2, deserializeAws_restJson1StartDeploymentCommandError(output, context)];
3435
3435
  }
3436
3436
  contents = {
3437
3437
  $metadata: deserializeMetadata(output),
@@ -3456,7 +3456,7 @@ export var deserializeAws_restJson1StartDeploymentCommand = function (output, co
3456
3456
  };
3457
3457
  _a = __expectNonNull;
3458
3458
  _b = __expectObject;
3459
- return [4 /*yield*/, parseBody(output.body, context)];
3459
+ return [4, parseBody(output.body, context)];
3460
3460
  case 1:
3461
3461
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3462
3462
  if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
@@ -3513,7 +3513,7 @@ export var deserializeAws_restJson1StartDeploymentCommand = function (output, co
3513
3513
  if (data.State !== undefined && data.State !== null) {
3514
3514
  contents.State = __expectString(data.State);
3515
3515
  }
3516
- return [2 /*return*/, Promise.resolve(contents)];
3516
+ return [2, Promise.resolve(contents)];
3517
3517
  }
3518
3518
  });
3519
3519
  }); };
@@ -3525,47 +3525,47 @@ var deserializeAws_restJson1StartDeploymentCommandError = function (output, cont
3525
3525
  case 0:
3526
3526
  _a = [__assign({}, output)];
3527
3527
  _g = {};
3528
- return [4 /*yield*/, parseBody(output.body, context)];
3528
+ return [4, parseBody(output.body, context)];
3529
3529
  case 1:
3530
3530
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
3531
3531
  errorCode = "UnknownError";
3532
3532
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3533
3533
  _b = errorCode;
3534
3534
  switch (_b) {
3535
- case "BadRequestException": return [3 /*break*/, 2];
3536
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
3537
- case "ConflictException": return [3 /*break*/, 4];
3538
- case "com.amazonaws.appconfig#ConflictException": return [3 /*break*/, 4];
3539
- case "InternalServerException": return [3 /*break*/, 6];
3540
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 6];
3541
- case "ResourceNotFoundException": return [3 /*break*/, 8];
3542
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 8];
3543
- }
3544
- return [3 /*break*/, 10];
3535
+ case "BadRequestException": return [3, 2];
3536
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
3537
+ case "ConflictException": return [3, 4];
3538
+ case "com.amazonaws.appconfig#ConflictException": return [3, 4];
3539
+ case "InternalServerException": return [3, 6];
3540
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 6];
3541
+ case "ResourceNotFoundException": return [3, 8];
3542
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 8];
3543
+ }
3544
+ return [3, 10];
3545
3545
  case 2:
3546
3546
  _c = [{}];
3547
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3547
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3548
3548
  case 3:
3549
3549
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3550
- return [3 /*break*/, 11];
3550
+ return [3, 11];
3551
3551
  case 4:
3552
3552
  _d = [{}];
3553
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
3553
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
3554
3554
  case 5:
3555
3555
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3556
- return [3 /*break*/, 11];
3556
+ return [3, 11];
3557
3557
  case 6:
3558
3558
  _e = [{}];
3559
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3559
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3560
3560
  case 7:
3561
3561
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3562
- return [3 /*break*/, 11];
3562
+ return [3, 11];
3563
3563
  case 8:
3564
3564
  _f = [{}];
3565
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3565
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3566
3566
  case 9:
3567
3567
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3568
- return [3 /*break*/, 11];
3568
+ return [3, 11];
3569
3569
  case 10:
3570
3570
  parsedBody = parsedOutput.body;
3571
3571
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3575,7 +3575,7 @@ var deserializeAws_restJson1StartDeploymentCommandError = function (output, cont
3575
3575
  message = response.message || response.Message || errorCode;
3576
3576
  response.message = message;
3577
3577
  delete response.Message;
3578
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3578
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3579
3579
  }
3580
3580
  });
3581
3581
  }); };
@@ -3585,7 +3585,7 @@ export var deserializeAws_restJson1StopDeploymentCommand = function (output, con
3585
3585
  switch (_c.label) {
3586
3586
  case 0:
3587
3587
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3588
- return [2 /*return*/, deserializeAws_restJson1StopDeploymentCommandError(output, context)];
3588
+ return [2, deserializeAws_restJson1StopDeploymentCommandError(output, context)];
3589
3589
  }
3590
3590
  contents = {
3591
3591
  $metadata: deserializeMetadata(output),
@@ -3610,7 +3610,7 @@ export var deserializeAws_restJson1StopDeploymentCommand = function (output, con
3610
3610
  };
3611
3611
  _a = __expectNonNull;
3612
3612
  _b = __expectObject;
3613
- return [4 /*yield*/, parseBody(output.body, context)];
3613
+ return [4, parseBody(output.body, context)];
3614
3614
  case 1:
3615
3615
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3616
3616
  if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
@@ -3667,7 +3667,7 @@ export var deserializeAws_restJson1StopDeploymentCommand = function (output, con
3667
3667
  if (data.State !== undefined && data.State !== null) {
3668
3668
  contents.State = __expectString(data.State);
3669
3669
  }
3670
- return [2 /*return*/, Promise.resolve(contents)];
3670
+ return [2, Promise.resolve(contents)];
3671
3671
  }
3672
3672
  });
3673
3673
  }); };
@@ -3679,39 +3679,39 @@ var deserializeAws_restJson1StopDeploymentCommandError = function (output, conte
3679
3679
  case 0:
3680
3680
  _a = [__assign({}, output)];
3681
3681
  _f = {};
3682
- return [4 /*yield*/, parseBody(output.body, context)];
3682
+ return [4, parseBody(output.body, context)];
3683
3683
  case 1:
3684
3684
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
3685
3685
  errorCode = "UnknownError";
3686
3686
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3687
3687
  _b = errorCode;
3688
3688
  switch (_b) {
3689
- case "BadRequestException": return [3 /*break*/, 2];
3690
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
3691
- case "InternalServerException": return [3 /*break*/, 4];
3692
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
3693
- case "ResourceNotFoundException": return [3 /*break*/, 6];
3694
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
3695
- }
3696
- return [3 /*break*/, 8];
3689
+ case "BadRequestException": return [3, 2];
3690
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
3691
+ case "InternalServerException": return [3, 4];
3692
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
3693
+ case "ResourceNotFoundException": return [3, 6];
3694
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
3695
+ }
3696
+ return [3, 8];
3697
3697
  case 2:
3698
3698
  _c = [{}];
3699
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3699
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3700
3700
  case 3:
3701
3701
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3702
- return [3 /*break*/, 9];
3702
+ return [3, 9];
3703
3703
  case 4:
3704
3704
  _d = [{}];
3705
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3705
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3706
3706
  case 5:
3707
3707
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3708
- return [3 /*break*/, 9];
3708
+ return [3, 9];
3709
3709
  case 6:
3710
3710
  _e = [{}];
3711
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3711
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3712
3712
  case 7:
3713
3713
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3714
- return [3 /*break*/, 9];
3714
+ return [3, 9];
3715
3715
  case 8:
3716
3716
  parsedBody = parsedOutput.body;
3717
3717
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3721,7 +3721,7 @@ var deserializeAws_restJson1StopDeploymentCommandError = function (output, conte
3721
3721
  message = response.message || response.Message || errorCode;
3722
3722
  response.message = message;
3723
3723
  delete response.Message;
3724
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3724
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3725
3725
  }
3726
3726
  });
3727
3727
  }); };
@@ -3731,15 +3731,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
3731
3731
  switch (_a.label) {
3732
3732
  case 0:
3733
3733
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3734
- return [2 /*return*/, deserializeAws_restJson1TagResourceCommandError(output, context)];
3734
+ return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
3735
3735
  }
3736
3736
  contents = {
3737
3737
  $metadata: deserializeMetadata(output),
3738
3738
  };
3739
- return [4 /*yield*/, collectBody(output.body, context)];
3739
+ return [4, collectBody(output.body, context)];
3740
3740
  case 1:
3741
3741
  _a.sent();
3742
- return [2 /*return*/, Promise.resolve(contents)];
3742
+ return [2, Promise.resolve(contents)];
3743
3743
  }
3744
3744
  });
3745
3745
  }); };
@@ -3751,39 +3751,39 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
3751
3751
  case 0:
3752
3752
  _a = [__assign({}, output)];
3753
3753
  _f = {};
3754
- return [4 /*yield*/, parseBody(output.body, context)];
3754
+ return [4, parseBody(output.body, context)];
3755
3755
  case 1:
3756
3756
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
3757
3757
  errorCode = "UnknownError";
3758
3758
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3759
3759
  _b = errorCode;
3760
3760
  switch (_b) {
3761
- case "BadRequestException": return [3 /*break*/, 2];
3762
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
3763
- case "InternalServerException": return [3 /*break*/, 4];
3764
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
3765
- case "ResourceNotFoundException": return [3 /*break*/, 6];
3766
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
3767
- }
3768
- return [3 /*break*/, 8];
3761
+ case "BadRequestException": return [3, 2];
3762
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
3763
+ case "InternalServerException": return [3, 4];
3764
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
3765
+ case "ResourceNotFoundException": return [3, 6];
3766
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
3767
+ }
3768
+ return [3, 8];
3769
3769
  case 2:
3770
3770
  _c = [{}];
3771
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3771
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3772
3772
  case 3:
3773
3773
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3774
- return [3 /*break*/, 9];
3774
+ return [3, 9];
3775
3775
  case 4:
3776
3776
  _d = [{}];
3777
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3777
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3778
3778
  case 5:
3779
3779
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3780
- return [3 /*break*/, 9];
3780
+ return [3, 9];
3781
3781
  case 6:
3782
3782
  _e = [{}];
3783
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3783
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3784
3784
  case 7:
3785
3785
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3786
- return [3 /*break*/, 9];
3786
+ return [3, 9];
3787
3787
  case 8:
3788
3788
  parsedBody = parsedOutput.body;
3789
3789
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3793,7 +3793,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
3793
3793
  message = response.message || response.Message || errorCode;
3794
3794
  response.message = message;
3795
3795
  delete response.Message;
3796
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3796
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3797
3797
  }
3798
3798
  });
3799
3799
  }); };
@@ -3803,15 +3803,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
3803
3803
  switch (_a.label) {
3804
3804
  case 0:
3805
3805
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3806
- return [2 /*return*/, deserializeAws_restJson1UntagResourceCommandError(output, context)];
3806
+ return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
3807
3807
  }
3808
3808
  contents = {
3809
3809
  $metadata: deserializeMetadata(output),
3810
3810
  };
3811
- return [4 /*yield*/, collectBody(output.body, context)];
3811
+ return [4, collectBody(output.body, context)];
3812
3812
  case 1:
3813
3813
  _a.sent();
3814
- return [2 /*return*/, Promise.resolve(contents)];
3814
+ return [2, Promise.resolve(contents)];
3815
3815
  }
3816
3816
  });
3817
3817
  }); };
@@ -3823,39 +3823,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
3823
3823
  case 0:
3824
3824
  _a = [__assign({}, output)];
3825
3825
  _f = {};
3826
- return [4 /*yield*/, parseBody(output.body, context)];
3826
+ return [4, parseBody(output.body, context)];
3827
3827
  case 1:
3828
3828
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
3829
3829
  errorCode = "UnknownError";
3830
3830
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3831
3831
  _b = errorCode;
3832
3832
  switch (_b) {
3833
- case "BadRequestException": return [3 /*break*/, 2];
3834
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
3835
- case "InternalServerException": return [3 /*break*/, 4];
3836
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
3837
- case "ResourceNotFoundException": return [3 /*break*/, 6];
3838
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
3839
- }
3840
- return [3 /*break*/, 8];
3833
+ case "BadRequestException": return [3, 2];
3834
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
3835
+ case "InternalServerException": return [3, 4];
3836
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
3837
+ case "ResourceNotFoundException": return [3, 6];
3838
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
3839
+ }
3840
+ return [3, 8];
3841
3841
  case 2:
3842
3842
  _c = [{}];
3843
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3843
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3844
3844
  case 3:
3845
3845
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3846
- return [3 /*break*/, 9];
3846
+ return [3, 9];
3847
3847
  case 4:
3848
3848
  _d = [{}];
3849
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3849
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3850
3850
  case 5:
3851
3851
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3852
- return [3 /*break*/, 9];
3852
+ return [3, 9];
3853
3853
  case 6:
3854
3854
  _e = [{}];
3855
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3855
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3856
3856
  case 7:
3857
3857
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3858
- return [3 /*break*/, 9];
3858
+ return [3, 9];
3859
3859
  case 8:
3860
3860
  parsedBody = parsedOutput.body;
3861
3861
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3865,7 +3865,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
3865
3865
  message = response.message || response.Message || errorCode;
3866
3866
  response.message = message;
3867
3867
  delete response.Message;
3868
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3868
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3869
3869
  }
3870
3870
  });
3871
3871
  }); };
@@ -3875,7 +3875,7 @@ export var deserializeAws_restJson1UpdateApplicationCommand = function (output,
3875
3875
  switch (_c.label) {
3876
3876
  case 0:
3877
3877
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3878
- return [2 /*return*/, deserializeAws_restJson1UpdateApplicationCommandError(output, context)];
3878
+ return [2, deserializeAws_restJson1UpdateApplicationCommandError(output, context)];
3879
3879
  }
3880
3880
  contents = {
3881
3881
  $metadata: deserializeMetadata(output),
@@ -3885,7 +3885,7 @@ export var deserializeAws_restJson1UpdateApplicationCommand = function (output,
3885
3885
  };
3886
3886
  _a = __expectNonNull;
3887
3887
  _b = __expectObject;
3888
- return [4 /*yield*/, parseBody(output.body, context)];
3888
+ return [4, parseBody(output.body, context)];
3889
3889
  case 1:
3890
3890
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3891
3891
  if (data.Description !== undefined && data.Description !== null) {
@@ -3897,7 +3897,7 @@ export var deserializeAws_restJson1UpdateApplicationCommand = function (output,
3897
3897
  if (data.Name !== undefined && data.Name !== null) {
3898
3898
  contents.Name = __expectString(data.Name);
3899
3899
  }
3900
- return [2 /*return*/, Promise.resolve(contents)];
3900
+ return [2, Promise.resolve(contents)];
3901
3901
  }
3902
3902
  });
3903
3903
  }); };
@@ -3909,39 +3909,39 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
3909
3909
  case 0:
3910
3910
  _a = [__assign({}, output)];
3911
3911
  _f = {};
3912
- return [4 /*yield*/, parseBody(output.body, context)];
3912
+ return [4, parseBody(output.body, context)];
3913
3913
  case 1:
3914
3914
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
3915
3915
  errorCode = "UnknownError";
3916
3916
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3917
3917
  _b = errorCode;
3918
3918
  switch (_b) {
3919
- case "BadRequestException": return [3 /*break*/, 2];
3920
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
3921
- case "InternalServerException": return [3 /*break*/, 4];
3922
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
3923
- case "ResourceNotFoundException": return [3 /*break*/, 6];
3924
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
3925
- }
3926
- return [3 /*break*/, 8];
3919
+ case "BadRequestException": return [3, 2];
3920
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
3921
+ case "InternalServerException": return [3, 4];
3922
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
3923
+ case "ResourceNotFoundException": return [3, 6];
3924
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
3925
+ }
3926
+ return [3, 8];
3927
3927
  case 2:
3928
3928
  _c = [{}];
3929
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3929
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3930
3930
  case 3:
3931
3931
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3932
- return [3 /*break*/, 9];
3932
+ return [3, 9];
3933
3933
  case 4:
3934
3934
  _d = [{}];
3935
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3935
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
3936
3936
  case 5:
3937
3937
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3938
- return [3 /*break*/, 9];
3938
+ return [3, 9];
3939
3939
  case 6:
3940
3940
  _e = [{}];
3941
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3941
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3942
3942
  case 7:
3943
3943
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3944
- return [3 /*break*/, 9];
3944
+ return [3, 9];
3945
3945
  case 8:
3946
3946
  parsedBody = parsedOutput.body;
3947
3947
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -3951,7 +3951,7 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
3951
3951
  message = response.message || response.Message || errorCode;
3952
3952
  response.message = message;
3953
3953
  delete response.Message;
3954
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3954
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3955
3955
  }
3956
3956
  });
3957
3957
  }); };
@@ -3961,7 +3961,7 @@ export var deserializeAws_restJson1UpdateConfigurationProfileCommand = function
3961
3961
  switch (_c.label) {
3962
3962
  case 0:
3963
3963
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3964
- return [2 /*return*/, deserializeAws_restJson1UpdateConfigurationProfileCommandError(output, context)];
3964
+ return [2, deserializeAws_restJson1UpdateConfigurationProfileCommandError(output, context)];
3965
3965
  }
3966
3966
  contents = {
3967
3967
  $metadata: deserializeMetadata(output),
@@ -3975,7 +3975,7 @@ export var deserializeAws_restJson1UpdateConfigurationProfileCommand = function
3975
3975
  };
3976
3976
  _a = __expectNonNull;
3977
3977
  _b = __expectObject;
3978
- return [4 /*yield*/, parseBody(output.body, context)];
3978
+ return [4, parseBody(output.body, context)];
3979
3979
  case 1:
3980
3980
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3981
3981
  if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
@@ -3999,7 +3999,7 @@ export var deserializeAws_restJson1UpdateConfigurationProfileCommand = function
3999
3999
  if (data.Validators !== undefined && data.Validators !== null) {
4000
4000
  contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
4001
4001
  }
4002
- return [2 /*return*/, Promise.resolve(contents)];
4002
+ return [2, Promise.resolve(contents)];
4003
4003
  }
4004
4004
  });
4005
4005
  }); };
@@ -4011,39 +4011,39 @@ var deserializeAws_restJson1UpdateConfigurationProfileCommandError = function (o
4011
4011
  case 0:
4012
4012
  _a = [__assign({}, output)];
4013
4013
  _f = {};
4014
- return [4 /*yield*/, parseBody(output.body, context)];
4014
+ return [4, parseBody(output.body, context)];
4015
4015
  case 1:
4016
4016
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
4017
4017
  errorCode = "UnknownError";
4018
4018
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4019
4019
  _b = errorCode;
4020
4020
  switch (_b) {
4021
- case "BadRequestException": return [3 /*break*/, 2];
4022
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
4023
- case "InternalServerException": return [3 /*break*/, 4];
4024
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
4025
- case "ResourceNotFoundException": return [3 /*break*/, 6];
4026
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
4027
- }
4028
- return [3 /*break*/, 8];
4021
+ case "BadRequestException": return [3, 2];
4022
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
4023
+ case "InternalServerException": return [3, 4];
4024
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
4025
+ case "ResourceNotFoundException": return [3, 6];
4026
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
4027
+ }
4028
+ return [3, 8];
4029
4029
  case 2:
4030
4030
  _c = [{}];
4031
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
4031
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
4032
4032
  case 3:
4033
4033
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4034
- return [3 /*break*/, 9];
4034
+ return [3, 9];
4035
4035
  case 4:
4036
4036
  _d = [{}];
4037
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
4037
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
4038
4038
  case 5:
4039
4039
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4040
- return [3 /*break*/, 9];
4040
+ return [3, 9];
4041
4041
  case 6:
4042
4042
  _e = [{}];
4043
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4043
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4044
4044
  case 7:
4045
4045
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4046
- return [3 /*break*/, 9];
4046
+ return [3, 9];
4047
4047
  case 8:
4048
4048
  parsedBody = parsedOutput.body;
4049
4049
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -4053,7 +4053,7 @@ var deserializeAws_restJson1UpdateConfigurationProfileCommandError = function (o
4053
4053
  message = response.message || response.Message || errorCode;
4054
4054
  response.message = message;
4055
4055
  delete response.Message;
4056
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4056
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
4057
4057
  }
4058
4058
  });
4059
4059
  }); };
@@ -4063,7 +4063,7 @@ export var deserializeAws_restJson1UpdateDeploymentStrategyCommand = function (o
4063
4063
  switch (_c.label) {
4064
4064
  case 0:
4065
4065
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4066
- return [2 /*return*/, deserializeAws_restJson1UpdateDeploymentStrategyCommandError(output, context)];
4066
+ return [2, deserializeAws_restJson1UpdateDeploymentStrategyCommandError(output, context)];
4067
4067
  }
4068
4068
  contents = {
4069
4069
  $metadata: deserializeMetadata(output),
@@ -4078,7 +4078,7 @@ export var deserializeAws_restJson1UpdateDeploymentStrategyCommand = function (o
4078
4078
  };
4079
4079
  _a = __expectNonNull;
4080
4080
  _b = __expectObject;
4081
- return [4 /*yield*/, parseBody(output.body, context)];
4081
+ return [4, parseBody(output.body, context)];
4082
4082
  case 1:
4083
4083
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4084
4084
  if (data.DeploymentDurationInMinutes !== undefined && data.DeploymentDurationInMinutes !== null) {
@@ -4105,7 +4105,7 @@ export var deserializeAws_restJson1UpdateDeploymentStrategyCommand = function (o
4105
4105
  if (data.ReplicateTo !== undefined && data.ReplicateTo !== null) {
4106
4106
  contents.ReplicateTo = __expectString(data.ReplicateTo);
4107
4107
  }
4108
- return [2 /*return*/, Promise.resolve(contents)];
4108
+ return [2, Promise.resolve(contents)];
4109
4109
  }
4110
4110
  });
4111
4111
  }); };
@@ -4117,39 +4117,39 @@ var deserializeAws_restJson1UpdateDeploymentStrategyCommandError = function (out
4117
4117
  case 0:
4118
4118
  _a = [__assign({}, output)];
4119
4119
  _f = {};
4120
- return [4 /*yield*/, parseBody(output.body, context)];
4120
+ return [4, parseBody(output.body, context)];
4121
4121
  case 1:
4122
4122
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
4123
4123
  errorCode = "UnknownError";
4124
4124
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4125
4125
  _b = errorCode;
4126
4126
  switch (_b) {
4127
- case "BadRequestException": return [3 /*break*/, 2];
4128
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
4129
- case "InternalServerException": return [3 /*break*/, 4];
4130
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
4131
- case "ResourceNotFoundException": return [3 /*break*/, 6];
4132
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
4133
- }
4134
- return [3 /*break*/, 8];
4127
+ case "BadRequestException": return [3, 2];
4128
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
4129
+ case "InternalServerException": return [3, 4];
4130
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
4131
+ case "ResourceNotFoundException": return [3, 6];
4132
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
4133
+ }
4134
+ return [3, 8];
4135
4135
  case 2:
4136
4136
  _c = [{}];
4137
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
4137
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
4138
4138
  case 3:
4139
4139
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4140
- return [3 /*break*/, 9];
4140
+ return [3, 9];
4141
4141
  case 4:
4142
4142
  _d = [{}];
4143
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
4143
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
4144
4144
  case 5:
4145
4145
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4146
- return [3 /*break*/, 9];
4146
+ return [3, 9];
4147
4147
  case 6:
4148
4148
  _e = [{}];
4149
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4149
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4150
4150
  case 7:
4151
4151
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4152
- return [3 /*break*/, 9];
4152
+ return [3, 9];
4153
4153
  case 8:
4154
4154
  parsedBody = parsedOutput.body;
4155
4155
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -4159,7 +4159,7 @@ var deserializeAws_restJson1UpdateDeploymentStrategyCommandError = function (out
4159
4159
  message = response.message || response.Message || errorCode;
4160
4160
  response.message = message;
4161
4161
  delete response.Message;
4162
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4162
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
4163
4163
  }
4164
4164
  });
4165
4165
  }); };
@@ -4169,7 +4169,7 @@ export var deserializeAws_restJson1UpdateEnvironmentCommand = function (output,
4169
4169
  switch (_c.label) {
4170
4170
  case 0:
4171
4171
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4172
- return [2 /*return*/, deserializeAws_restJson1UpdateEnvironmentCommandError(output, context)];
4172
+ return [2, deserializeAws_restJson1UpdateEnvironmentCommandError(output, context)];
4173
4173
  }
4174
4174
  contents = {
4175
4175
  $metadata: deserializeMetadata(output),
@@ -4182,7 +4182,7 @@ export var deserializeAws_restJson1UpdateEnvironmentCommand = function (output,
4182
4182
  };
4183
4183
  _a = __expectNonNull;
4184
4184
  _b = __expectObject;
4185
- return [4 /*yield*/, parseBody(output.body, context)];
4185
+ return [4, parseBody(output.body, context)];
4186
4186
  case 1:
4187
4187
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4188
4188
  if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
@@ -4203,7 +4203,7 @@ export var deserializeAws_restJson1UpdateEnvironmentCommand = function (output,
4203
4203
  if (data.State !== undefined && data.State !== null) {
4204
4204
  contents.State = __expectString(data.State);
4205
4205
  }
4206
- return [2 /*return*/, Promise.resolve(contents)];
4206
+ return [2, Promise.resolve(contents)];
4207
4207
  }
4208
4208
  });
4209
4209
  }); };
@@ -4215,39 +4215,39 @@ var deserializeAws_restJson1UpdateEnvironmentCommandError = function (output, co
4215
4215
  case 0:
4216
4216
  _a = [__assign({}, output)];
4217
4217
  _f = {};
4218
- return [4 /*yield*/, parseBody(output.body, context)];
4218
+ return [4, parseBody(output.body, context)];
4219
4219
  case 1:
4220
4220
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
4221
4221
  errorCode = "UnknownError";
4222
4222
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4223
4223
  _b = errorCode;
4224
4224
  switch (_b) {
4225
- case "BadRequestException": return [3 /*break*/, 2];
4226
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
4227
- case "InternalServerException": return [3 /*break*/, 4];
4228
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
4229
- case "ResourceNotFoundException": return [3 /*break*/, 6];
4230
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
4231
- }
4232
- return [3 /*break*/, 8];
4225
+ case "BadRequestException": return [3, 2];
4226
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
4227
+ case "InternalServerException": return [3, 4];
4228
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
4229
+ case "ResourceNotFoundException": return [3, 6];
4230
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
4231
+ }
4232
+ return [3, 8];
4233
4233
  case 2:
4234
4234
  _c = [{}];
4235
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
4235
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
4236
4236
  case 3:
4237
4237
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4238
- return [3 /*break*/, 9];
4238
+ return [3, 9];
4239
4239
  case 4:
4240
4240
  _d = [{}];
4241
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
4241
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
4242
4242
  case 5:
4243
4243
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4244
- return [3 /*break*/, 9];
4244
+ return [3, 9];
4245
4245
  case 6:
4246
4246
  _e = [{}];
4247
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4247
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4248
4248
  case 7:
4249
4249
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4250
- return [3 /*break*/, 9];
4250
+ return [3, 9];
4251
4251
  case 8:
4252
4252
  parsedBody = parsedOutput.body;
4253
4253
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -4257,7 +4257,7 @@ var deserializeAws_restJson1UpdateEnvironmentCommandError = function (output, co
4257
4257
  message = response.message || response.Message || errorCode;
4258
4258
  response.message = message;
4259
4259
  delete response.Message;
4260
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4260
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
4261
4261
  }
4262
4262
  });
4263
4263
  }); };
@@ -4267,15 +4267,15 @@ export var deserializeAws_restJson1ValidateConfigurationCommand = function (outp
4267
4267
  switch (_a.label) {
4268
4268
  case 0:
4269
4269
  if (output.statusCode !== 204 && output.statusCode >= 300) {
4270
- return [2 /*return*/, deserializeAws_restJson1ValidateConfigurationCommandError(output, context)];
4270
+ return [2, deserializeAws_restJson1ValidateConfigurationCommandError(output, context)];
4271
4271
  }
4272
4272
  contents = {
4273
4273
  $metadata: deserializeMetadata(output),
4274
4274
  };
4275
- return [4 /*yield*/, collectBody(output.body, context)];
4275
+ return [4, collectBody(output.body, context)];
4276
4276
  case 1:
4277
4277
  _a.sent();
4278
- return [2 /*return*/, Promise.resolve(contents)];
4278
+ return [2, Promise.resolve(contents)];
4279
4279
  }
4280
4280
  });
4281
4281
  }); };
@@ -4287,39 +4287,39 @@ var deserializeAws_restJson1ValidateConfigurationCommandError = function (output
4287
4287
  case 0:
4288
4288
  _a = [__assign({}, output)];
4289
4289
  _f = {};
4290
- return [4 /*yield*/, parseBody(output.body, context)];
4290
+ return [4, parseBody(output.body, context)];
4291
4291
  case 1:
4292
4292
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
4293
4293
  errorCode = "UnknownError";
4294
4294
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4295
4295
  _b = errorCode;
4296
4296
  switch (_b) {
4297
- case "BadRequestException": return [3 /*break*/, 2];
4298
- case "com.amazonaws.appconfig#BadRequestException": return [3 /*break*/, 2];
4299
- case "InternalServerException": return [3 /*break*/, 4];
4300
- case "com.amazonaws.appconfig#InternalServerException": return [3 /*break*/, 4];
4301
- case "ResourceNotFoundException": return [3 /*break*/, 6];
4302
- case "com.amazonaws.appconfig#ResourceNotFoundException": return [3 /*break*/, 6];
4303
- }
4304
- return [3 /*break*/, 8];
4297
+ case "BadRequestException": return [3, 2];
4298
+ case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
4299
+ case "InternalServerException": return [3, 4];
4300
+ case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
4301
+ case "ResourceNotFoundException": return [3, 6];
4302
+ case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
4303
+ }
4304
+ return [3, 8];
4305
4305
  case 2:
4306
4306
  _c = [{}];
4307
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
4307
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
4308
4308
  case 3:
4309
4309
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4310
- return [3 /*break*/, 9];
4310
+ return [3, 9];
4311
4311
  case 4:
4312
4312
  _d = [{}];
4313
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
4313
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
4314
4314
  case 5:
4315
4315
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4316
- return [3 /*break*/, 9];
4316
+ return [3, 9];
4317
4317
  case 6:
4318
4318
  _e = [{}];
4319
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4319
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
4320
4320
  case 7:
4321
4321
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
4322
- return [3 /*break*/, 9];
4322
+ return [3, 9];
4323
4323
  case 8:
4324
4324
  parsedBody = parsedOutput.body;
4325
4325
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -4329,7 +4329,7 @@ var deserializeAws_restJson1ValidateConfigurationCommandError = function (output
4329
4329
  message = response.message || response.Message || errorCode;
4330
4330
  response.message = message;
4331
4331
  delete response.Message;
4332
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
4332
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
4333
4333
  }
4334
4334
  });
4335
4335
  }); };
@@ -4346,7 +4346,7 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
4346
4346
  if (data.Message !== undefined && data.Message !== null) {
4347
4347
  contents.Message = __expectString(data.Message);
4348
4348
  }
4349
- return [2 /*return*/, contents];
4349
+ return [2, contents];
4350
4350
  });
4351
4351
  }); };
4352
4352
  var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -4362,7 +4362,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
4362
4362
  if (data.Message !== undefined && data.Message !== null) {
4363
4363
  contents.Message = __expectString(data.Message);
4364
4364
  }
4365
- return [2 /*return*/, contents];
4365
+ return [2, contents];
4366
4366
  });
4367
4367
  }); };
4368
4368
  var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -4378,7 +4378,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
4378
4378
  if (data.Message !== undefined && data.Message !== null) {
4379
4379
  contents.Message = __expectString(data.Message);
4380
4380
  }
4381
- return [2 /*return*/, contents];
4381
+ return [2, contents];
4382
4382
  });
4383
4383
  }); };
4384
4384
  var deserializeAws_restJson1PayloadTooLargeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -4406,7 +4406,7 @@ var deserializeAws_restJson1PayloadTooLargeExceptionResponse = function (parsedO
4406
4406
  if (data.Size !== undefined && data.Size !== null) {
4407
4407
  contents.Size = __limitedParseFloat32(data.Size);
4408
4408
  }
4409
- return [2 /*return*/, contents];
4409
+ return [2, contents];
4410
4410
  });
4411
4411
  }); };
4412
4412
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -4426,7 +4426,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
4426
4426
  if (data.ResourceName !== undefined && data.ResourceName !== null) {
4427
4427
  contents.ResourceName = __expectString(data.ResourceName);
4428
4428
  }
4429
- return [2 /*return*/, contents];
4429
+ return [2, contents];
4430
4430
  });
4431
4431
  }); };
4432
4432
  var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -4442,7 +4442,7 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
4442
4442
  if (data.Message !== undefined && data.Message !== null) {
4443
4443
  contents.Message = __expectString(data.Message);
4444
4444
  }
4445
- return [2 /*return*/, contents];
4445
+ return [2, contents];
4446
4446
  });
4447
4447
  }); };
4448
4448
  var serializeAws_restJson1Monitor = function (input, context) {
@@ -4692,7 +4692,6 @@ var deserializeMetadata = function (output) {
4692
4692
  cfId: output.headers["x-amz-cf-id"],
4693
4693
  });
4694
4694
  };
4695
- // Collect low-level response body stream to Uint8Array.
4696
4695
  var collectBody = function (streamBody, context) {
4697
4696
  if (streamBody === void 0) { streamBody = new Uint8Array(); }
4698
4697
  if (streamBody instanceof Uint8Array) {
@@ -4700,7 +4699,6 @@ var collectBody = function (streamBody, context) {
4700
4699
  }
4701
4700
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4702
4701
  };
4703
- // Encode Uint8Array data into string with utf-8.
4704
4702
  var collectBodyString = function (streamBody, context) {
4705
4703
  return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
4706
4704
  };
@@ -4719,9 +4717,6 @@ var parseBody = function (streamBody, context) {
4719
4717
  return {};
4720
4718
  });
4721
4719
  };
4722
- /**
4723
- * Load an error code for the aws.rest-json-1.1 protocol.
4724
- */
4725
4720
  var loadRestJsonErrorCode = function (output, data) {
4726
4721
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4727
4722
  var sanitizeErrorCode = function (rawValue) {