@aws-sdk/client-service-catalog-appregistry 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 (338) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/{dist/cjs → dist-cjs}/ServiceCatalogAppRegistry.js +1 -1
  3. package/dist-cjs/ServiceCatalogAppRegistry.js.map +1 -0
  4. package/{dist/cjs → dist-cjs}/ServiceCatalogAppRegistryClient.js +14 -14
  5. package/dist-cjs/ServiceCatalogAppRegistryClient.js.map +1 -0
  6. package/{dist/cjs → dist-cjs}/commands/AssociateAttributeGroupCommand.js +5 -5
  7. package/dist-cjs/commands/AssociateAttributeGroupCommand.js.map +1 -0
  8. package/{dist/cjs → dist-cjs}/commands/AssociateResourceCommand.js +5 -5
  9. package/dist-cjs/commands/AssociateResourceCommand.js.map +1 -0
  10. package/{dist/cjs → dist-cjs}/commands/CreateApplicationCommand.js +5 -5
  11. package/dist-cjs/commands/CreateApplicationCommand.js.map +1 -0
  12. package/{dist/cjs → dist-cjs}/commands/CreateAttributeGroupCommand.js +5 -5
  13. package/dist-cjs/commands/CreateAttributeGroupCommand.js.map +1 -0
  14. package/{dist/cjs → dist-cjs}/commands/DeleteApplicationCommand.js +5 -5
  15. package/dist-cjs/commands/DeleteApplicationCommand.js.map +1 -0
  16. package/{dist/cjs → dist-cjs}/commands/DeleteAttributeGroupCommand.js +5 -5
  17. package/dist-cjs/commands/DeleteAttributeGroupCommand.js.map +1 -0
  18. package/{dist/cjs → dist-cjs}/commands/DisassociateAttributeGroupCommand.js +5 -5
  19. package/dist-cjs/commands/DisassociateAttributeGroupCommand.js.map +1 -0
  20. package/{dist/cjs → dist-cjs}/commands/DisassociateResourceCommand.js +5 -5
  21. package/dist-cjs/commands/DisassociateResourceCommand.js.map +1 -0
  22. package/{dist/cjs → dist-cjs}/commands/GetApplicationCommand.js +5 -5
  23. package/dist-cjs/commands/GetApplicationCommand.js.map +1 -0
  24. package/{dist/cjs → dist-cjs}/commands/GetAssociatedResourceCommand.js +5 -5
  25. package/dist-cjs/commands/GetAssociatedResourceCommand.js.map +1 -0
  26. package/{dist/cjs → dist-cjs}/commands/GetAttributeGroupCommand.js +5 -5
  27. package/dist-cjs/commands/GetAttributeGroupCommand.js.map +1 -0
  28. package/{dist/cjs → dist-cjs}/commands/ListApplicationsCommand.js +5 -5
  29. package/dist-cjs/commands/ListApplicationsCommand.js.map +1 -0
  30. package/{dist/cjs → dist-cjs}/commands/ListAssociatedAttributeGroupsCommand.js +5 -5
  31. package/dist-cjs/commands/ListAssociatedAttributeGroupsCommand.js.map +1 -0
  32. package/{dist/cjs → dist-cjs}/commands/ListAssociatedResourcesCommand.js +5 -5
  33. package/dist-cjs/commands/ListAssociatedResourcesCommand.js.map +1 -0
  34. package/{dist/cjs → dist-cjs}/commands/ListAttributeGroupsCommand.js +5 -5
  35. package/dist-cjs/commands/ListAttributeGroupsCommand.js.map +1 -0
  36. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +5 -5
  37. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
  38. package/{dist/cjs → dist-cjs}/commands/SyncResourceCommand.js +5 -5
  39. package/dist-cjs/commands/SyncResourceCommand.js.map +1 -0
  40. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
  41. package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
  42. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
  43. package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
  44. package/{dist/cjs → dist-cjs}/commands/UpdateApplicationCommand.js +5 -5
  45. package/dist-cjs/commands/UpdateApplicationCommand.js.map +1 -0
  46. package/{dist/cjs → dist-cjs}/commands/UpdateAttributeGroupCommand.js +5 -5
  47. package/dist-cjs/commands/UpdateAttributeGroupCommand.js.map +1 -0
  48. package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
  49. package/dist-cjs/endpoints.js.map +1 -0
  50. package/dist-cjs/index.js +33 -0
  51. package/dist-cjs/index.js.map +1 -0
  52. package/{dist/cjs → dist-cjs}/models/index.js +1 -1
  53. package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
  54. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
  55. package/dist-cjs/models/models_0.js.map +1 -0
  56. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
  57. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
  58. package/{dist/cjs → dist-cjs}/pagination/ListApplicationsPaginator.js +1 -1
  59. package/dist-cjs/pagination/ListApplicationsPaginator.js.map +1 -0
  60. package/{dist/cjs → dist-cjs}/pagination/ListAssociatedAttributeGroupsPaginator.js +1 -1
  61. package/dist-cjs/pagination/ListAssociatedAttributeGroupsPaginator.js.map +1 -0
  62. package/{dist/cjs → dist-cjs}/pagination/ListAssociatedResourcesPaginator.js +1 -1
  63. package/dist-cjs/pagination/ListAssociatedResourcesPaginator.js.map +1 -0
  64. package/{dist/cjs → dist-cjs}/pagination/ListAttributeGroupsPaginator.js +1 -1
  65. package/dist-cjs/pagination/ListAttributeGroupsPaginator.js.map +1 -0
  66. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +119 -119
  67. package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
  68. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
  69. package/dist-cjs/runtimeConfig.browser.js.map +1 -0
  70. package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
  71. package/dist-cjs/runtimeConfig.js.map +1 -0
  72. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
  73. package/dist-cjs/runtimeConfig.native.js.map +1 -0
  74. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
  75. package/dist-cjs/runtimeConfig.shared.js.map +1 -0
  76. package/{dist/es → dist-es}/ServiceCatalogAppRegistry.js +2 -5
  77. package/dist-es/ServiceCatalogAppRegistry.js.map +1 -0
  78. package/{dist/es → dist-es}/ServiceCatalogAppRegistryClient.js +2 -10
  79. package/dist-es/ServiceCatalogAppRegistryClient.js.map +1 -0
  80. package/{dist/es → dist-es}/commands/AssociateAttributeGroupCommand.js +4 -31
  81. package/dist-es/commands/AssociateAttributeGroupCommand.js.map +1 -0
  82. package/{dist/es → dist-es}/commands/AssociateResourceCommand.js +4 -29
  83. package/dist-es/commands/AssociateResourceCommand.js.map +1 -0
  84. package/{dist/es → dist-es}/commands/CreateApplicationCommand.js +4 -29
  85. package/dist-es/commands/CreateApplicationCommand.js.map +1 -0
  86. package/{dist/es → dist-es}/commands/CreateAttributeGroupCommand.js +4 -32
  87. package/dist-es/commands/CreateAttributeGroupCommand.js.map +1 -0
  88. package/{dist/es → dist-es}/commands/DeleteApplicationCommand.js +4 -29
  89. package/dist-es/commands/DeleteApplicationCommand.js.map +1 -0
  90. package/{dist/es → dist-es}/commands/DeleteAttributeGroupCommand.js +4 -29
  91. package/dist-es/commands/DeleteAttributeGroupCommand.js.map +1 -0
  92. package/{dist/es → dist-es}/commands/DisassociateAttributeGroupCommand.js +4 -29
  93. package/dist-es/commands/DisassociateAttributeGroupCommand.js.map +1 -0
  94. package/{dist/es → dist-es}/commands/DisassociateResourceCommand.js +4 -29
  95. package/dist-es/commands/DisassociateResourceCommand.js.map +1 -0
  96. package/{dist/es → dist-es}/commands/GetApplicationCommand.js +4 -29
  97. package/dist-es/commands/GetApplicationCommand.js.map +1 -0
  98. package/{dist/es → dist-es}/commands/GetAssociatedResourceCommand.js +4 -29
  99. package/dist-es/commands/GetAssociatedResourceCommand.js.map +1 -0
  100. package/{dist/es → dist-es}/commands/GetAttributeGroupCommand.js +4 -29
  101. package/dist-es/commands/GetAttributeGroupCommand.js.map +1 -0
  102. package/{dist/es → dist-es}/commands/ListApplicationsCommand.js +4 -29
  103. package/dist-es/commands/ListApplicationsCommand.js.map +1 -0
  104. package/{dist/es → dist-es}/commands/ListAssociatedAttributeGroupsCommand.js +4 -29
  105. package/dist-es/commands/ListAssociatedAttributeGroupsCommand.js.map +1 -0
  106. package/{dist/es → dist-es}/commands/ListAssociatedResourcesCommand.js +4 -29
  107. package/dist-es/commands/ListAssociatedResourcesCommand.js.map +1 -0
  108. package/{dist/es → dist-es}/commands/ListAttributeGroupsCommand.js +4 -29
  109. package/dist-es/commands/ListAttributeGroupsCommand.js.map +1 -0
  110. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -29
  111. package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
  112. package/{dist/es → dist-es}/commands/SyncResourceCommand.js +4 -30
  113. package/dist-es/commands/SyncResourceCommand.js.map +1 -0
  114. package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -31
  115. package/dist-es/commands/TagResourceCommand.js.map +1 -0
  116. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
  117. package/dist-es/commands/UntagResourceCommand.js.map +1 -0
  118. package/{dist/es → dist-es}/commands/UpdateApplicationCommand.js +4 -29
  119. package/dist-es/commands/UpdateApplicationCommand.js.map +1 -0
  120. package/{dist/es → dist-es}/commands/UpdateAttributeGroupCommand.js +4 -29
  121. package/dist-es/commands/UpdateAttributeGroupCommand.js.map +1 -0
  122. package/{dist/es → dist-es}/endpoints.js +1 -1
  123. package/dist-es/endpoints.js.map +1 -0
  124. package/{dist/es → dist-es}/index.js +0 -0
  125. package/dist-es/index.js.map +1 -0
  126. package/{dist/es → dist-es}/models/index.js +0 -0
  127. package/dist-es/models/index.js.map +1 -0
  128. package/{dist/es → dist-es}/models/models_0.js +0 -168
  129. package/dist-es/models/models_0.js.map +1 -0
  130. package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
  131. package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
  132. package/{dist/es → dist-es}/pagination/ListApplicationsPaginator.js +17 -29
  133. package/dist-es/pagination/ListApplicationsPaginator.js.map +1 -0
  134. package/{dist/es → dist-es}/pagination/ListAssociatedAttributeGroupsPaginator.js +17 -29
  135. package/dist-es/pagination/ListAssociatedAttributeGroupsPaginator.js.map +1 -0
  136. package/{dist/es → dist-es}/pagination/ListAssociatedResourcesPaginator.js +17 -29
  137. package/dist-es/pagination/ListAssociatedResourcesPaginator.js.map +1 -0
  138. package/{dist/es → dist-es}/pagination/ListAttributeGroupsPaginator.js +17 -29
  139. package/dist-es/pagination/ListAttributeGroupsPaginator.js.map +1 -0
  140. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +447 -452
  141. package/dist-es/protocols/Aws_restJson1.js.map +1 -0
  142. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
  143. package/dist-es/runtimeConfig.browser.js.map +1 -0
  144. package/{dist/es → dist-es}/runtimeConfig.js +2 -5
  145. package/dist-es/runtimeConfig.js.map +1 -0
  146. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
  147. package/dist-es/runtimeConfig.native.js.map +1 -0
  148. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
  149. package/dist-es/runtimeConfig.shared.js.map +1 -0
  150. package/{dist/types → dist-types}/ServiceCatalogAppRegistry.d.ts +2 -2
  151. package/{dist/types → dist-types}/ServiceCatalogAppRegistryClient.d.ts +8 -8
  152. package/{dist/types → dist-types}/commands/AssociateAttributeGroupCommand.d.ts +3 -3
  153. package/{dist/types → dist-types}/commands/AssociateResourceCommand.d.ts +3 -3
  154. package/{dist/types → dist-types}/commands/CreateApplicationCommand.d.ts +3 -3
  155. package/{dist/types → dist-types}/commands/CreateAttributeGroupCommand.d.ts +3 -3
  156. package/{dist/types → dist-types}/commands/DeleteApplicationCommand.d.ts +3 -3
  157. package/{dist/types → dist-types}/commands/DeleteAttributeGroupCommand.d.ts +3 -3
  158. package/{dist/types → dist-types}/commands/DisassociateAttributeGroupCommand.d.ts +3 -3
  159. package/{dist/types → dist-types}/commands/DisassociateResourceCommand.d.ts +3 -3
  160. package/{dist/types → dist-types}/commands/GetApplicationCommand.d.ts +3 -3
  161. package/{dist/types → dist-types}/commands/GetAssociatedResourceCommand.d.ts +3 -3
  162. package/{dist/types → dist-types}/commands/GetAttributeGroupCommand.d.ts +3 -3
  163. package/{dist/types → dist-types}/commands/ListApplicationsCommand.d.ts +3 -3
  164. package/{dist/types → dist-types}/commands/ListAssociatedAttributeGroupsCommand.d.ts +3 -3
  165. package/{dist/types → dist-types}/commands/ListAssociatedResourcesCommand.d.ts +3 -3
  166. package/{dist/types → dist-types}/commands/ListAttributeGroupsCommand.d.ts +3 -3
  167. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +3 -3
  168. package/{dist/types → dist-types}/commands/SyncResourceCommand.d.ts +3 -3
  169. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +3 -3
  170. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +3 -3
  171. package/{dist/types → dist-types}/commands/UpdateApplicationCommand.d.ts +3 -3
  172. package/{dist/types → dist-types}/commands/UpdateAttributeGroupCommand.d.ts +3 -3
  173. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  174. package/{dist/types → dist-types}/index.d.ts +0 -0
  175. package/{dist/types → dist-types}/models/index.d.ts +0 -0
  176. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  177. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  178. package/{dist/types → dist-types}/pagination/ListApplicationsPaginator.d.ts +1 -1
  179. package/{dist/types → dist-types}/pagination/ListAssociatedAttributeGroupsPaginator.d.ts +1 -1
  180. package/{dist/types → dist-types}/pagination/ListAssociatedResourcesPaginator.d.ts +1 -1
  181. package/{dist/types → dist-types}/pagination/ListAttributeGroupsPaginator.d.ts +1 -1
  182. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  183. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
  184. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  185. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  186. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  187. package/{dist/types → dist-types}/ts3.4/ServiceCatalogAppRegistry.d.ts +2 -2
  188. package/{dist/types → dist-types}/ts3.4/ServiceCatalogAppRegistryClient.d.ts +8 -8
  189. package/{dist/types → dist-types}/ts3.4/commands/AssociateAttributeGroupCommand.d.ts +3 -3
  190. package/{dist/types → dist-types}/ts3.4/commands/AssociateResourceCommand.d.ts +3 -3
  191. package/{dist/types → dist-types}/ts3.4/commands/CreateApplicationCommand.d.ts +3 -3
  192. package/{dist/types → dist-types}/ts3.4/commands/CreateAttributeGroupCommand.d.ts +3 -3
  193. package/{dist/types → dist-types}/ts3.4/commands/DeleteApplicationCommand.d.ts +3 -3
  194. package/{dist/types → dist-types}/ts3.4/commands/DeleteAttributeGroupCommand.d.ts +3 -3
  195. package/{dist/types → dist-types}/ts3.4/commands/DisassociateAttributeGroupCommand.d.ts +3 -3
  196. package/{dist/types → dist-types}/ts3.4/commands/DisassociateResourceCommand.d.ts +3 -3
  197. package/{dist/types → dist-types}/ts3.4/commands/GetApplicationCommand.d.ts +3 -3
  198. package/{dist/types → dist-types}/ts3.4/commands/GetAssociatedResourceCommand.d.ts +3 -3
  199. package/{dist/types → dist-types}/ts3.4/commands/GetAttributeGroupCommand.d.ts +3 -3
  200. package/{dist/types → dist-types}/ts3.4/commands/ListApplicationsCommand.d.ts +3 -3
  201. package/{dist/types → dist-types}/ts3.4/commands/ListAssociatedAttributeGroupsCommand.d.ts +3 -3
  202. package/{dist/types → dist-types}/ts3.4/commands/ListAssociatedResourcesCommand.d.ts +3 -3
  203. package/{dist/types → dist-types}/ts3.4/commands/ListAttributeGroupsCommand.d.ts +3 -3
  204. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +3 -3
  205. package/{dist/types → dist-types}/ts3.4/commands/SyncResourceCommand.d.ts +3 -3
  206. package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +3 -3
  207. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +3 -3
  208. package/{dist/types → dist-types}/ts3.4/commands/UpdateApplicationCommand.d.ts +3 -3
  209. package/{dist/types → dist-types}/ts3.4/commands/UpdateAttributeGroupCommand.d.ts +3 -3
  210. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  211. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  212. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  213. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  214. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  215. package/{dist/types → dist-types}/ts3.4/pagination/ListApplicationsPaginator.d.ts +1 -1
  216. package/{dist/types → dist-types}/ts3.4/pagination/ListAssociatedAttributeGroupsPaginator.d.ts +1 -1
  217. package/{dist/types → dist-types}/ts3.4/pagination/ListAssociatedResourcesPaginator.d.ts +1 -1
  218. package/{dist/types → dist-types}/ts3.4/pagination/ListAttributeGroupsPaginator.d.ts +1 -1
  219. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  220. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
  221. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  222. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  223. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  224. package/package.json +50 -50
  225. package/{ServiceCatalogAppRegistry.ts → src/ServiceCatalogAppRegistry.ts} +3 -2
  226. package/{ServiceCatalogAppRegistryClient.ts → src/ServiceCatalogAppRegistryClient.ts} +58 -57
  227. package/{commands → src/commands}/AssociateAttributeGroupCommand.ts +12 -11
  228. package/{commands → src/commands}/AssociateResourceCommand.ts +12 -11
  229. package/{commands → src/commands}/CreateApplicationCommand.ts +12 -11
  230. package/{commands → src/commands}/CreateAttributeGroupCommand.ts +12 -11
  231. package/{commands → src/commands}/DeleteApplicationCommand.ts +12 -11
  232. package/{commands → src/commands}/DeleteAttributeGroupCommand.ts +12 -11
  233. package/{commands → src/commands}/DisassociateAttributeGroupCommand.ts +12 -11
  234. package/{commands → src/commands}/DisassociateResourceCommand.ts +12 -11
  235. package/{commands → src/commands}/GetApplicationCommand.ts +12 -11
  236. package/{commands → src/commands}/GetAssociatedResourceCommand.ts +12 -11
  237. package/{commands → src/commands}/GetAttributeGroupCommand.ts +12 -11
  238. package/{commands → src/commands}/ListApplicationsCommand.ts +12 -11
  239. package/{commands → src/commands}/ListAssociatedAttributeGroupsCommand.ts +12 -11
  240. package/{commands → src/commands}/ListAssociatedResourcesCommand.ts +12 -11
  241. package/{commands → src/commands}/ListAttributeGroupsCommand.ts +12 -11
  242. package/{commands → src/commands}/ListTagsForResourceCommand.ts +12 -11
  243. package/{commands → src/commands}/SyncResourceCommand.ts +12 -11
  244. package/{commands → src/commands}/TagResourceCommand.ts +12 -11
  245. package/{commands → src/commands}/UntagResourceCommand.ts +12 -11
  246. package/{commands → src/commands}/UpdateApplicationCommand.ts +12 -11
  247. package/{commands → src/commands}/UpdateAttributeGroupCommand.ts +12 -11
  248. package/{endpoints.ts → src/endpoints.ts} +1 -1
  249. package/{index.ts → src/index.ts} +0 -0
  250. package/{models → src/models}/index.ts +0 -0
  251. package/{models → src/models}/models_0.ts +0 -0
  252. package/{pagination → src/pagination}/Interfaces.ts +2 -1
  253. package/{pagination → src/pagination}/ListApplicationsPaginator.ts +4 -3
  254. package/{pagination → src/pagination}/ListAssociatedAttributeGroupsPaginator.ts +4 -3
  255. package/{pagination → src/pagination}/ListAssociatedResourcesPaginator.ts +4 -3
  256. package/{pagination → src/pagination}/ListAttributeGroupsPaginator.ts +4 -3
  257. package/{protocols → src/protocols}/Aws_restJson1.ts +43 -42
  258. package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +4 -3
  259. package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +2 -1
  260. package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
  261. package/{runtimeConfig.ts → src/runtimeConfig.ts} +5 -4
  262. package/tsconfig.es.json +1 -3
  263. package/tsconfig.json +7 -7
  264. package/tsconfig.types.json +9 -0
  265. package/dist/cjs/ServiceCatalogAppRegistry.js.map +0 -1
  266. package/dist/cjs/ServiceCatalogAppRegistryClient.js.map +0 -1
  267. package/dist/cjs/commands/AssociateAttributeGroupCommand.js.map +0 -1
  268. package/dist/cjs/commands/AssociateResourceCommand.js.map +0 -1
  269. package/dist/cjs/commands/CreateApplicationCommand.js.map +0 -1
  270. package/dist/cjs/commands/CreateAttributeGroupCommand.js.map +0 -1
  271. package/dist/cjs/commands/DeleteApplicationCommand.js.map +0 -1
  272. package/dist/cjs/commands/DeleteAttributeGroupCommand.js.map +0 -1
  273. package/dist/cjs/commands/DisassociateAttributeGroupCommand.js.map +0 -1
  274. package/dist/cjs/commands/DisassociateResourceCommand.js.map +0 -1
  275. package/dist/cjs/commands/GetApplicationCommand.js.map +0 -1
  276. package/dist/cjs/commands/GetAssociatedResourceCommand.js.map +0 -1
  277. package/dist/cjs/commands/GetAttributeGroupCommand.js.map +0 -1
  278. package/dist/cjs/commands/ListApplicationsCommand.js.map +0 -1
  279. package/dist/cjs/commands/ListAssociatedAttributeGroupsCommand.js.map +0 -1
  280. package/dist/cjs/commands/ListAssociatedResourcesCommand.js.map +0 -1
  281. package/dist/cjs/commands/ListAttributeGroupsCommand.js.map +0 -1
  282. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  283. package/dist/cjs/commands/SyncResourceCommand.js.map +0 -1
  284. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  285. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  286. package/dist/cjs/commands/UpdateApplicationCommand.js.map +0 -1
  287. package/dist/cjs/commands/UpdateAttributeGroupCommand.js.map +0 -1
  288. package/dist/cjs/endpoints.js.map +0 -1
  289. package/dist/cjs/index.js +0 -33
  290. package/dist/cjs/index.js.map +0 -1
  291. package/dist/cjs/models/models_0.js.map +0 -1
  292. package/dist/cjs/package.json +0 -93
  293. package/dist/cjs/pagination/ListApplicationsPaginator.js.map +0 -1
  294. package/dist/cjs/pagination/ListAssociatedAttributeGroupsPaginator.js.map +0 -1
  295. package/dist/cjs/pagination/ListAssociatedResourcesPaginator.js.map +0 -1
  296. package/dist/cjs/pagination/ListAttributeGroupsPaginator.js.map +0 -1
  297. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  298. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  299. package/dist/cjs/runtimeConfig.js.map +0 -1
  300. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  301. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  302. package/dist/es/ServiceCatalogAppRegistry.js.map +0 -1
  303. package/dist/es/ServiceCatalogAppRegistryClient.js.map +0 -1
  304. package/dist/es/commands/AssociateAttributeGroupCommand.js.map +0 -1
  305. package/dist/es/commands/AssociateResourceCommand.js.map +0 -1
  306. package/dist/es/commands/CreateApplicationCommand.js.map +0 -1
  307. package/dist/es/commands/CreateAttributeGroupCommand.js.map +0 -1
  308. package/dist/es/commands/DeleteApplicationCommand.js.map +0 -1
  309. package/dist/es/commands/DeleteAttributeGroupCommand.js.map +0 -1
  310. package/dist/es/commands/DisassociateAttributeGroupCommand.js.map +0 -1
  311. package/dist/es/commands/DisassociateResourceCommand.js.map +0 -1
  312. package/dist/es/commands/GetApplicationCommand.js.map +0 -1
  313. package/dist/es/commands/GetAssociatedResourceCommand.js.map +0 -1
  314. package/dist/es/commands/GetAttributeGroupCommand.js.map +0 -1
  315. package/dist/es/commands/ListApplicationsCommand.js.map +0 -1
  316. package/dist/es/commands/ListAssociatedAttributeGroupsCommand.js.map +0 -1
  317. package/dist/es/commands/ListAssociatedResourcesCommand.js.map +0 -1
  318. package/dist/es/commands/ListAttributeGroupsCommand.js.map +0 -1
  319. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  320. package/dist/es/commands/SyncResourceCommand.js.map +0 -1
  321. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  322. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  323. package/dist/es/commands/UpdateApplicationCommand.js.map +0 -1
  324. package/dist/es/commands/UpdateAttributeGroupCommand.js.map +0 -1
  325. package/dist/es/endpoints.js.map +0 -1
  326. package/dist/es/index.js.map +0 -1
  327. package/dist/es/models/index.js.map +0 -1
  328. package/dist/es/models/models_0.js.map +0 -1
  329. package/dist/es/package.json +0 -93
  330. package/dist/es/pagination/ListApplicationsPaginator.js.map +0 -1
  331. package/dist/es/pagination/ListAssociatedAttributeGroupsPaginator.js.map +0 -1
  332. package/dist/es/pagination/ListAssociatedResourcesPaginator.js.map +0 -1
  333. package/dist/es/pagination/ListAttributeGroupsPaginator.js.map +0 -1
  334. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  335. package/dist/es/runtimeConfig.browser.js.map +0 -1
  336. package/dist/es/runtimeConfig.js.map +0 -1
  337. package/dist/es/runtimeConfig.native.js.map +0 -1
  338. package/dist/es/runtimeConfig.shared.js.map +0 -1
@@ -6,7 +6,7 @@ export var serializeAws_restJson1AssociateAttributeGroupCommand = function (inpu
6
6
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
7
7
  return __generator(this, function (_c) {
8
8
  switch (_c.label) {
9
- case 0: return [4 /*yield*/, context.endpoint()];
9
+ case 0: return [4, context.endpoint()];
10
10
  case 1:
11
11
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
12
12
  headers = {};
@@ -32,7 +32,7 @@ export var serializeAws_restJson1AssociateAttributeGroupCommand = function (inpu
32
32
  else {
33
33
  throw new Error("No value provided for input HTTP label: attributeGroup.");
34
34
  }
35
- return [2 /*return*/, new __HttpRequest({
35
+ return [2, new __HttpRequest({
36
36
  protocol: protocol,
37
37
  hostname: hostname,
38
38
  port: port,
@@ -48,7 +48,7 @@ export var serializeAws_restJson1AssociateResourceCommand = function (input, con
48
48
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
49
49
  return __generator(this, function (_c) {
50
50
  switch (_c.label) {
51
- case 0: return [4 /*yield*/, context.endpoint()];
51
+ case 0: return [4, context.endpoint()];
52
52
  case 1:
53
53
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
54
54
  headers = {};
@@ -84,7 +84,7 @@ export var serializeAws_restJson1AssociateResourceCommand = function (input, con
84
84
  else {
85
85
  throw new Error("No value provided for input HTTP label: resource.");
86
86
  }
87
- return [2 /*return*/, new __HttpRequest({
87
+ return [2, new __HttpRequest({
88
88
  protocol: protocol,
89
89
  hostname: hostname,
90
90
  port: port,
@@ -101,7 +101,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
101
101
  var _c;
102
102
  return __generator(this, function (_d) {
103
103
  switch (_d.label) {
104
- case 0: return [4 /*yield*/, context.endpoint()];
104
+ case 0: return [4, context.endpoint()];
105
105
  case 1:
106
106
  _a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
107
107
  headers = {
@@ -109,7 +109,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
109
109
  };
110
110
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
111
111
  body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (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_restJson1Tags(input.tags, context) })));
112
- return [2 /*return*/, new __HttpRequest({
112
+ return [2, new __HttpRequest({
113
113
  protocol: protocol,
114
114
  hostname: hostname,
115
115
  port: port,
@@ -126,7 +126,7 @@ export var serializeAws_restJson1CreateAttributeGroupCommand = function (input,
126
126
  var _c;
127
127
  return __generator(this, function (_d) {
128
128
  switch (_d.label) {
129
- case 0: return [4 /*yield*/, context.endpoint()];
129
+ case 0: return [4, context.endpoint()];
130
130
  case 1:
131
131
  _a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
132
132
  headers = {
@@ -134,7 +134,7 @@ export var serializeAws_restJson1CreateAttributeGroupCommand = function (input,
134
134
  };
135
135
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/attribute-groups";
136
136
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.attributes !== undefined && input.attributes !== null && { attributes: input.attributes })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (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_restJson1Tags(input.tags, context) })));
137
- return [2 /*return*/, new __HttpRequest({
137
+ return [2, new __HttpRequest({
138
138
  protocol: protocol,
139
139
  hostname: hostname,
140
140
  port: port,
@@ -150,7 +150,7 @@ export var serializeAws_restJson1DeleteApplicationCommand = function (input, con
150
150
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
151
151
  return __generator(this, function (_c) {
152
152
  switch (_c.label) {
153
- case 0: return [4 /*yield*/, context.endpoint()];
153
+ case 0: return [4, context.endpoint()];
154
154
  case 1:
155
155
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
156
156
  headers = {};
@@ -165,7 +165,7 @@ export var serializeAws_restJson1DeleteApplicationCommand = function (input, con
165
165
  else {
166
166
  throw new Error("No value provided for input HTTP label: application.");
167
167
  }
168
- return [2 /*return*/, new __HttpRequest({
168
+ return [2, new __HttpRequest({
169
169
  protocol: protocol,
170
170
  hostname: hostname,
171
171
  port: port,
@@ -181,7 +181,7 @@ export var serializeAws_restJson1DeleteAttributeGroupCommand = function (input,
181
181
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
182
182
  return __generator(this, function (_c) {
183
183
  switch (_c.label) {
184
- case 0: return [4 /*yield*/, context.endpoint()];
184
+ case 0: return [4, context.endpoint()];
185
185
  case 1:
186
186
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
187
187
  headers = {};
@@ -196,7 +196,7 @@ export var serializeAws_restJson1DeleteAttributeGroupCommand = function (input,
196
196
  else {
197
197
  throw new Error("No value provided for input HTTP label: attributeGroup.");
198
198
  }
199
- return [2 /*return*/, new __HttpRequest({
199
+ return [2, new __HttpRequest({
200
200
  protocol: protocol,
201
201
  hostname: hostname,
202
202
  port: port,
@@ -212,7 +212,7 @@ export var serializeAws_restJson1DisassociateAttributeGroupCommand = function (i
212
212
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
213
213
  return __generator(this, function (_c) {
214
214
  switch (_c.label) {
215
- case 0: return [4 /*yield*/, context.endpoint()];
215
+ case 0: return [4, context.endpoint()];
216
216
  case 1:
217
217
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
218
218
  headers = {};
@@ -238,7 +238,7 @@ export var serializeAws_restJson1DisassociateAttributeGroupCommand = function (i
238
238
  else {
239
239
  throw new Error("No value provided for input HTTP label: attributeGroup.");
240
240
  }
241
- return [2 /*return*/, new __HttpRequest({
241
+ return [2, new __HttpRequest({
242
242
  protocol: protocol,
243
243
  hostname: hostname,
244
244
  port: port,
@@ -254,7 +254,7 @@ export var serializeAws_restJson1DisassociateResourceCommand = function (input,
254
254
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
255
255
  return __generator(this, function (_c) {
256
256
  switch (_c.label) {
257
- case 0: return [4 /*yield*/, context.endpoint()];
257
+ case 0: return [4, context.endpoint()];
258
258
  case 1:
259
259
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
260
260
  headers = {};
@@ -290,7 +290,7 @@ export var serializeAws_restJson1DisassociateResourceCommand = function (input,
290
290
  else {
291
291
  throw new Error("No value provided for input HTTP label: resource.");
292
292
  }
293
- return [2 /*return*/, new __HttpRequest({
293
+ return [2, new __HttpRequest({
294
294
  protocol: protocol,
295
295
  hostname: hostname,
296
296
  port: port,
@@ -306,7 +306,7 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
306
306
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
307
307
  return __generator(this, function (_c) {
308
308
  switch (_c.label) {
309
- case 0: return [4 /*yield*/, context.endpoint()];
309
+ case 0: return [4, context.endpoint()];
310
310
  case 1:
311
311
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
312
312
  headers = {};
@@ -321,7 +321,7 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
321
321
  else {
322
322
  throw new Error("No value provided for input HTTP label: application.");
323
323
  }
324
- return [2 /*return*/, new __HttpRequest({
324
+ return [2, new __HttpRequest({
325
325
  protocol: protocol,
326
326
  hostname: hostname,
327
327
  port: port,
@@ -337,7 +337,7 @@ export var serializeAws_restJson1GetAssociatedResourceCommand = function (input,
337
337
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
338
338
  return __generator(this, function (_c) {
339
339
  switch (_c.label) {
340
- case 0: return [4 /*yield*/, context.endpoint()];
340
+ case 0: return [4, context.endpoint()];
341
341
  case 1:
342
342
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
343
343
  headers = {};
@@ -373,7 +373,7 @@ export var serializeAws_restJson1GetAssociatedResourceCommand = function (input,
373
373
  else {
374
374
  throw new Error("No value provided for input HTTP label: resource.");
375
375
  }
376
- return [2 /*return*/, new __HttpRequest({
376
+ return [2, new __HttpRequest({
377
377
  protocol: protocol,
378
378
  hostname: hostname,
379
379
  port: port,
@@ -389,7 +389,7 @@ export var serializeAws_restJson1GetAttributeGroupCommand = function (input, con
389
389
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
390
390
  return __generator(this, function (_c) {
391
391
  switch (_c.label) {
392
- case 0: return [4 /*yield*/, context.endpoint()];
392
+ case 0: return [4, context.endpoint()];
393
393
  case 1:
394
394
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
395
395
  headers = {};
@@ -404,7 +404,7 @@ export var serializeAws_restJson1GetAttributeGroupCommand = function (input, con
404
404
  else {
405
405
  throw new Error("No value provided for input HTTP label: attributeGroup.");
406
406
  }
407
- return [2 /*return*/, new __HttpRequest({
407
+ return [2, new __HttpRequest({
408
408
  protocol: protocol,
409
409
  hostname: hostname,
410
410
  port: port,
@@ -420,13 +420,13 @@ export var serializeAws_restJson1ListApplicationsCommand = function (input, cont
420
420
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
421
421
  return __generator(this, function (_c) {
422
422
  switch (_c.label) {
423
- case 0: return [4 /*yield*/, context.endpoint()];
423
+ case 0: return [4, context.endpoint()];
424
424
  case 1:
425
425
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
426
426
  headers = {};
427
427
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
428
428
  query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
429
- return [2 /*return*/, new __HttpRequest({
429
+ return [2, new __HttpRequest({
430
430
  protocol: protocol,
431
431
  hostname: hostname,
432
432
  port: port,
@@ -443,7 +443,7 @@ export var serializeAws_restJson1ListAssociatedAttributeGroupsCommand = function
443
443
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
444
444
  return __generator(this, function (_c) {
445
445
  switch (_c.label) {
446
- case 0: return [4 /*yield*/, context.endpoint()];
446
+ case 0: return [4, context.endpoint()];
447
447
  case 1:
448
448
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
449
449
  headers = {};
@@ -460,7 +460,7 @@ export var serializeAws_restJson1ListAssociatedAttributeGroupsCommand = function
460
460
  throw new Error("No value provided for input HTTP label: application.");
461
461
  }
462
462
  query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
463
- return [2 /*return*/, new __HttpRequest({
463
+ return [2, new __HttpRequest({
464
464
  protocol: protocol,
465
465
  hostname: hostname,
466
466
  port: port,
@@ -477,7 +477,7 @@ export var serializeAws_restJson1ListAssociatedResourcesCommand = function (inpu
477
477
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
478
478
  return __generator(this, function (_c) {
479
479
  switch (_c.label) {
480
- case 0: return [4 /*yield*/, context.endpoint()];
480
+ case 0: return [4, context.endpoint()];
481
481
  case 1:
482
482
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
483
483
  headers = {};
@@ -493,7 +493,7 @@ export var serializeAws_restJson1ListAssociatedResourcesCommand = function (inpu
493
493
  throw new Error("No value provided for input HTTP label: application.");
494
494
  }
495
495
  query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
496
- return [2 /*return*/, new __HttpRequest({
496
+ return [2, new __HttpRequest({
497
497
  protocol: protocol,
498
498
  hostname: hostname,
499
499
  port: port,
@@ -510,13 +510,13 @@ export var serializeAws_restJson1ListAttributeGroupsCommand = function (input, c
510
510
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
511
511
  return __generator(this, function (_c) {
512
512
  switch (_c.label) {
513
- case 0: return [4 /*yield*/, context.endpoint()];
513
+ case 0: return [4, context.endpoint()];
514
514
  case 1:
515
515
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
516
516
  headers = {};
517
517
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/attribute-groups";
518
518
  query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
519
- return [2 /*return*/, new __HttpRequest({
519
+ return [2, new __HttpRequest({
520
520
  protocol: protocol,
521
521
  hostname: hostname,
522
522
  port: port,
@@ -533,7 +533,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
533
533
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
534
534
  return __generator(this, function (_c) {
535
535
  switch (_c.label) {
536
- case 0: return [4 /*yield*/, context.endpoint()];
536
+ case 0: return [4, context.endpoint()];
537
537
  case 1:
538
538
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
539
539
  headers = {};
@@ -548,7 +548,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
548
548
  else {
549
549
  throw new Error("No value provided for input HTTP label: resourceArn.");
550
550
  }
551
- return [2 /*return*/, new __HttpRequest({
551
+ return [2, new __HttpRequest({
552
552
  protocol: protocol,
553
553
  hostname: hostname,
554
554
  port: port,
@@ -564,7 +564,7 @@ export var serializeAws_restJson1SyncResourceCommand = function (input, context)
564
564
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
565
565
  return __generator(this, function (_c) {
566
566
  switch (_c.label) {
567
- case 0: return [4 /*yield*/, context.endpoint()];
567
+ case 0: return [4, context.endpoint()];
568
568
  case 1:
569
569
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
570
570
  headers = {};
@@ -589,7 +589,7 @@ export var serializeAws_restJson1SyncResourceCommand = function (input, context)
589
589
  else {
590
590
  throw new Error("No value provided for input HTTP label: resource.");
591
591
  }
592
- return [2 /*return*/, new __HttpRequest({
592
+ return [2, new __HttpRequest({
593
593
  protocol: protocol,
594
594
  hostname: hostname,
595
595
  port: port,
@@ -605,7 +605,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
605
605
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
606
606
  return __generator(this, function (_c) {
607
607
  switch (_c.label) {
608
- case 0: return [4 /*yield*/, context.endpoint()];
608
+ case 0: return [4, context.endpoint()];
609
609
  case 1:
610
610
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
611
611
  headers = {
@@ -623,7 +623,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
623
623
  throw new Error("No value provided for input HTTP label: resourceArn.");
624
624
  }
625
625
  body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
626
- return [2 /*return*/, new __HttpRequest({
626
+ return [2, new __HttpRequest({
627
627
  protocol: protocol,
628
628
  hostname: hostname,
629
629
  port: port,
@@ -639,7 +639,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
639
639
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
640
640
  return __generator(this, function (_c) {
641
641
  switch (_c.label) {
642
- case 0: return [4 /*yield*/, context.endpoint()];
642
+ case 0: return [4, context.endpoint()];
643
643
  case 1:
644
644
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
645
645
  headers = {};
@@ -655,7 +655,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
655
655
  throw new Error("No value provided for input HTTP label: resourceArn.");
656
656
  }
657
657
  query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
658
- return [2 /*return*/, new __HttpRequest({
658
+ return [2, new __HttpRequest({
659
659
  protocol: protocol,
660
660
  hostname: hostname,
661
661
  port: port,
@@ -672,7 +672,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
672
672
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
673
673
  return __generator(this, function (_c) {
674
674
  switch (_c.label) {
675
- case 0: return [4 /*yield*/, context.endpoint()];
675
+ case 0: return [4, context.endpoint()];
676
676
  case 1:
677
677
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
678
678
  headers = {
@@ -690,7 +690,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
690
690
  throw new Error("No value provided for input HTTP label: application.");
691
691
  }
692
692
  body = JSON.stringify(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })));
693
- return [2 /*return*/, new __HttpRequest({
693
+ return [2, new __HttpRequest({
694
694
  protocol: protocol,
695
695
  hostname: hostname,
696
696
  port: port,
@@ -706,7 +706,7 @@ export var serializeAws_restJson1UpdateAttributeGroupCommand = function (input,
706
706
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
707
707
  return __generator(this, function (_c) {
708
708
  switch (_c.label) {
709
- case 0: return [4 /*yield*/, context.endpoint()];
709
+ case 0: return [4, context.endpoint()];
710
710
  case 1:
711
711
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
712
712
  headers = {
@@ -724,7 +724,7 @@ export var serializeAws_restJson1UpdateAttributeGroupCommand = function (input,
724
724
  throw new Error("No value provided for input HTTP label: attributeGroup.");
725
725
  }
726
726
  body = JSON.stringify(__assign(__assign(__assign({}, (input.attributes !== undefined && input.attributes !== null && { attributes: input.attributes })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })));
727
- return [2 /*return*/, new __HttpRequest({
727
+ return [2, new __HttpRequest({
728
728
  protocol: protocol,
729
729
  hostname: hostname,
730
730
  port: port,
@@ -742,7 +742,7 @@ export var deserializeAws_restJson1AssociateAttributeGroupCommand = function (ou
742
742
  switch (_c.label) {
743
743
  case 0:
744
744
  if (output.statusCode !== 200 && output.statusCode >= 300) {
745
- return [2 /*return*/, deserializeAws_restJson1AssociateAttributeGroupCommandError(output, context)];
745
+ return [2, deserializeAws_restJson1AssociateAttributeGroupCommandError(output, context)];
746
746
  }
747
747
  contents = {
748
748
  $metadata: deserializeMetadata(output),
@@ -751,7 +751,7 @@ export var deserializeAws_restJson1AssociateAttributeGroupCommand = function (ou
751
751
  };
752
752
  _a = __expectNonNull;
753
753
  _b = __expectObject;
754
- return [4 /*yield*/, parseBody(output.body, context)];
754
+ return [4, parseBody(output.body, context)];
755
755
  case 1:
756
756
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
757
757
  if (data.applicationArn !== undefined && data.applicationArn !== null) {
@@ -760,7 +760,7 @@ export var deserializeAws_restJson1AssociateAttributeGroupCommand = function (ou
760
760
  if (data.attributeGroupArn !== undefined && data.attributeGroupArn !== null) {
761
761
  contents.attributeGroupArn = __expectString(data.attributeGroupArn);
762
762
  }
763
- return [2 /*return*/, Promise.resolve(contents)];
763
+ return [2, Promise.resolve(contents)];
764
764
  }
765
765
  });
766
766
  }); };
@@ -772,47 +772,47 @@ var deserializeAws_restJson1AssociateAttributeGroupCommandError = function (outp
772
772
  case 0:
773
773
  _a = [__assign({}, output)];
774
774
  _g = {};
775
- return [4 /*yield*/, parseBody(output.body, context)];
775
+ return [4, parseBody(output.body, context)];
776
776
  case 1:
777
777
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
778
778
  errorCode = "UnknownError";
779
779
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
780
780
  _b = errorCode;
781
781
  switch (_b) {
782
- case "InternalServerException": return [3 /*break*/, 2];
783
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
784
- case "ResourceNotFoundException": return [3 /*break*/, 4];
785
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 4];
786
- case "ServiceQuotaExceededException": return [3 /*break*/, 6];
787
- case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3 /*break*/, 6];
788
- case "ValidationException": return [3 /*break*/, 8];
789
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 8];
790
- }
791
- return [3 /*break*/, 10];
782
+ case "InternalServerException": return [3, 2];
783
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
784
+ case "ResourceNotFoundException": return [3, 4];
785
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
786
+ case "ServiceQuotaExceededException": return [3, 6];
787
+ case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3, 6];
788
+ case "ValidationException": return [3, 8];
789
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
790
+ }
791
+ return [3, 10];
792
792
  case 2:
793
793
  _c = [{}];
794
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
794
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
795
795
  case 3:
796
796
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
797
- return [3 /*break*/, 11];
797
+ return [3, 11];
798
798
  case 4:
799
799
  _d = [{}];
800
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
800
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
801
801
  case 5:
802
802
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
803
- return [3 /*break*/, 11];
803
+ return [3, 11];
804
804
  case 6:
805
805
  _e = [{}];
806
- return [4 /*yield*/, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
806
+ return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
807
807
  case 7:
808
808
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
809
- return [3 /*break*/, 11];
809
+ return [3, 11];
810
810
  case 8:
811
811
  _f = [{}];
812
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
812
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
813
813
  case 9:
814
814
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
815
- return [3 /*break*/, 11];
815
+ return [3, 11];
816
816
  case 10:
817
817
  parsedBody = parsedOutput.body;
818
818
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -822,7 +822,7 @@ var deserializeAws_restJson1AssociateAttributeGroupCommandError = function (outp
822
822
  message = response.message || response.Message || errorCode;
823
823
  response.message = message;
824
824
  delete response.Message;
825
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
825
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
826
826
  }
827
827
  });
828
828
  }); };
@@ -832,7 +832,7 @@ export var deserializeAws_restJson1AssociateResourceCommand = function (output,
832
832
  switch (_c.label) {
833
833
  case 0:
834
834
  if (output.statusCode !== 200 && output.statusCode >= 300) {
835
- return [2 /*return*/, deserializeAws_restJson1AssociateResourceCommandError(output, context)];
835
+ return [2, deserializeAws_restJson1AssociateResourceCommandError(output, context)];
836
836
  }
837
837
  contents = {
838
838
  $metadata: deserializeMetadata(output),
@@ -841,7 +841,7 @@ export var deserializeAws_restJson1AssociateResourceCommand = function (output,
841
841
  };
842
842
  _a = __expectNonNull;
843
843
  _b = __expectObject;
844
- return [4 /*yield*/, parseBody(output.body, context)];
844
+ return [4, parseBody(output.body, context)];
845
845
  case 1:
846
846
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
847
847
  if (data.applicationArn !== undefined && data.applicationArn !== null) {
@@ -850,7 +850,7 @@ export var deserializeAws_restJson1AssociateResourceCommand = function (output,
850
850
  if (data.resourceArn !== undefined && data.resourceArn !== null) {
851
851
  contents.resourceArn = __expectString(data.resourceArn);
852
852
  }
853
- return [2 /*return*/, Promise.resolve(contents)];
853
+ return [2, Promise.resolve(contents)];
854
854
  }
855
855
  });
856
856
  }); };
@@ -862,47 +862,47 @@ var deserializeAws_restJson1AssociateResourceCommandError = function (output, co
862
862
  case 0:
863
863
  _a = [__assign({}, output)];
864
864
  _g = {};
865
- return [4 /*yield*/, parseBody(output.body, context)];
865
+ return [4, parseBody(output.body, context)];
866
866
  case 1:
867
867
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
868
868
  errorCode = "UnknownError";
869
869
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
870
870
  _b = errorCode;
871
871
  switch (_b) {
872
- case "ConflictException": return [3 /*break*/, 2];
873
- case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3 /*break*/, 2];
874
- case "InternalServerException": return [3 /*break*/, 4];
875
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 4];
876
- case "ResourceNotFoundException": return [3 /*break*/, 6];
877
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 6];
878
- case "ServiceQuotaExceededException": return [3 /*break*/, 8];
879
- case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3 /*break*/, 8];
880
- }
881
- return [3 /*break*/, 10];
872
+ case "ConflictException": return [3, 2];
873
+ case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
874
+ case "InternalServerException": return [3, 4];
875
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
876
+ case "ResourceNotFoundException": return [3, 6];
877
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
878
+ case "ServiceQuotaExceededException": return [3, 8];
879
+ case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3, 8];
880
+ }
881
+ return [3, 10];
882
882
  case 2:
883
883
  _c = [{}];
884
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
884
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
885
885
  case 3:
886
886
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
887
- return [3 /*break*/, 11];
887
+ return [3, 11];
888
888
  case 4:
889
889
  _d = [{}];
890
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
890
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
891
891
  case 5:
892
892
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
893
- return [3 /*break*/, 11];
893
+ return [3, 11];
894
894
  case 6:
895
895
  _e = [{}];
896
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
896
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
897
897
  case 7:
898
898
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
899
- return [3 /*break*/, 11];
899
+ return [3, 11];
900
900
  case 8:
901
901
  _f = [{}];
902
- return [4 /*yield*/, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
902
+ return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
903
903
  case 9:
904
904
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
905
- return [3 /*break*/, 11];
905
+ return [3, 11];
906
906
  case 10:
907
907
  parsedBody = parsedOutput.body;
908
908
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -912,7 +912,7 @@ var deserializeAws_restJson1AssociateResourceCommandError = function (output, co
912
912
  message = response.message || response.Message || errorCode;
913
913
  response.message = message;
914
914
  delete response.Message;
915
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
915
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
916
916
  }
917
917
  });
918
918
  }); };
@@ -922,7 +922,7 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
922
922
  switch (_c.label) {
923
923
  case 0:
924
924
  if (output.statusCode !== 201 && output.statusCode >= 300) {
925
- return [2 /*return*/, deserializeAws_restJson1CreateApplicationCommandError(output, context)];
925
+ return [2, deserializeAws_restJson1CreateApplicationCommandError(output, context)];
926
926
  }
927
927
  contents = {
928
928
  $metadata: deserializeMetadata(output),
@@ -930,13 +930,13 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
930
930
  };
931
931
  _a = __expectNonNull;
932
932
  _b = __expectObject;
933
- return [4 /*yield*/, parseBody(output.body, context)];
933
+ return [4, parseBody(output.body, context)];
934
934
  case 1:
935
935
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
936
936
  if (data.application !== undefined && data.application !== null) {
937
937
  contents.application = deserializeAws_restJson1Application(data.application, context);
938
938
  }
939
- return [2 /*return*/, Promise.resolve(contents)];
939
+ return [2, Promise.resolve(contents)];
940
940
  }
941
941
  });
942
942
  }); };
@@ -948,39 +948,39 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
948
948
  case 0:
949
949
  _a = [__assign({}, output)];
950
950
  _f = {};
951
- return [4 /*yield*/, parseBody(output.body, context)];
951
+ return [4, parseBody(output.body, context)];
952
952
  case 1:
953
953
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
954
954
  errorCode = "UnknownError";
955
955
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
956
956
  _b = errorCode;
957
957
  switch (_b) {
958
- case "ConflictException": return [3 /*break*/, 2];
959
- case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3 /*break*/, 2];
960
- case "InternalServerException": return [3 /*break*/, 4];
961
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 4];
962
- case "ServiceQuotaExceededException": return [3 /*break*/, 6];
963
- case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3 /*break*/, 6];
964
- }
965
- return [3 /*break*/, 8];
958
+ case "ConflictException": return [3, 2];
959
+ case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
960
+ case "InternalServerException": return [3, 4];
961
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
962
+ case "ServiceQuotaExceededException": return [3, 6];
963
+ case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3, 6];
964
+ }
965
+ return [3, 8];
966
966
  case 2:
967
967
  _c = [{}];
968
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
968
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
969
969
  case 3:
970
970
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
971
- return [3 /*break*/, 9];
971
+ return [3, 9];
972
972
  case 4:
973
973
  _d = [{}];
974
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
974
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
975
975
  case 5:
976
976
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
977
- return [3 /*break*/, 9];
977
+ return [3, 9];
978
978
  case 6:
979
979
  _e = [{}];
980
- return [4 /*yield*/, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
980
+ return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
981
981
  case 7:
982
982
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
983
- return [3 /*break*/, 9];
983
+ return [3, 9];
984
984
  case 8:
985
985
  parsedBody = parsedOutput.body;
986
986
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -990,7 +990,7 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
990
990
  message = response.message || response.Message || errorCode;
991
991
  response.message = message;
992
992
  delete response.Message;
993
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
993
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
994
994
  }
995
995
  });
996
996
  }); };
@@ -1000,7 +1000,7 @@ export var deserializeAws_restJson1CreateAttributeGroupCommand = function (outpu
1000
1000
  switch (_c.label) {
1001
1001
  case 0:
1002
1002
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1003
- return [2 /*return*/, deserializeAws_restJson1CreateAttributeGroupCommandError(output, context)];
1003
+ return [2, deserializeAws_restJson1CreateAttributeGroupCommandError(output, context)];
1004
1004
  }
1005
1005
  contents = {
1006
1006
  $metadata: deserializeMetadata(output),
@@ -1008,13 +1008,13 @@ export var deserializeAws_restJson1CreateAttributeGroupCommand = function (outpu
1008
1008
  };
1009
1009
  _a = __expectNonNull;
1010
1010
  _b = __expectObject;
1011
- return [4 /*yield*/, parseBody(output.body, context)];
1011
+ return [4, parseBody(output.body, context)];
1012
1012
  case 1:
1013
1013
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1014
1014
  if (data.attributeGroup !== undefined && data.attributeGroup !== null) {
1015
1015
  contents.attributeGroup = deserializeAws_restJson1AttributeGroup(data.attributeGroup, context);
1016
1016
  }
1017
- return [2 /*return*/, Promise.resolve(contents)];
1017
+ return [2, Promise.resolve(contents)];
1018
1018
  }
1019
1019
  });
1020
1020
  }); };
@@ -1026,47 +1026,47 @@ var deserializeAws_restJson1CreateAttributeGroupCommandError = function (output,
1026
1026
  case 0:
1027
1027
  _a = [__assign({}, output)];
1028
1028
  _g = {};
1029
- return [4 /*yield*/, parseBody(output.body, context)];
1029
+ return [4, parseBody(output.body, context)];
1030
1030
  case 1:
1031
1031
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1032
1032
  errorCode = "UnknownError";
1033
1033
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1034
1034
  _b = errorCode;
1035
1035
  switch (_b) {
1036
- case "ConflictException": return [3 /*break*/, 2];
1037
- case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3 /*break*/, 2];
1038
- case "InternalServerException": return [3 /*break*/, 4];
1039
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 4];
1040
- case "ServiceQuotaExceededException": return [3 /*break*/, 6];
1041
- case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3 /*break*/, 6];
1042
- case "ValidationException": return [3 /*break*/, 8];
1043
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 8];
1044
- }
1045
- return [3 /*break*/, 10];
1036
+ case "ConflictException": return [3, 2];
1037
+ case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
1038
+ case "InternalServerException": return [3, 4];
1039
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
1040
+ case "ServiceQuotaExceededException": return [3, 6];
1041
+ case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3, 6];
1042
+ case "ValidationException": return [3, 8];
1043
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
1044
+ }
1045
+ return [3, 10];
1046
1046
  case 2:
1047
1047
  _c = [{}];
1048
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1048
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1049
1049
  case 3:
1050
1050
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1051
- return [3 /*break*/, 11];
1051
+ return [3, 11];
1052
1052
  case 4:
1053
1053
  _d = [{}];
1054
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1054
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1055
1055
  case 5:
1056
1056
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1057
- return [3 /*break*/, 11];
1057
+ return [3, 11];
1058
1058
  case 6:
1059
1059
  _e = [{}];
1060
- return [4 /*yield*/, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
1060
+ return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
1061
1061
  case 7:
1062
1062
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1063
- return [3 /*break*/, 11];
1063
+ return [3, 11];
1064
1064
  case 8:
1065
1065
  _f = [{}];
1066
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1066
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1067
1067
  case 9:
1068
1068
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1069
- return [3 /*break*/, 11];
1069
+ return [3, 11];
1070
1070
  case 10:
1071
1071
  parsedBody = parsedOutput.body;
1072
1072
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1076,7 +1076,7 @@ var deserializeAws_restJson1CreateAttributeGroupCommandError = function (output,
1076
1076
  message = response.message || response.Message || errorCode;
1077
1077
  response.message = message;
1078
1078
  delete response.Message;
1079
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1079
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1080
1080
  }
1081
1081
  });
1082
1082
  }); };
@@ -1086,7 +1086,7 @@ export var deserializeAws_restJson1DeleteApplicationCommand = function (output,
1086
1086
  switch (_c.label) {
1087
1087
  case 0:
1088
1088
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1089
- return [2 /*return*/, deserializeAws_restJson1DeleteApplicationCommandError(output, context)];
1089
+ return [2, deserializeAws_restJson1DeleteApplicationCommandError(output, context)];
1090
1090
  }
1091
1091
  contents = {
1092
1092
  $metadata: deserializeMetadata(output),
@@ -1094,13 +1094,13 @@ export var deserializeAws_restJson1DeleteApplicationCommand = function (output,
1094
1094
  };
1095
1095
  _a = __expectNonNull;
1096
1096
  _b = __expectObject;
1097
- return [4 /*yield*/, parseBody(output.body, context)];
1097
+ return [4, parseBody(output.body, context)];
1098
1098
  case 1:
1099
1099
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1100
1100
  if (data.application !== undefined && data.application !== null) {
1101
1101
  contents.application = deserializeAws_restJson1ApplicationSummary(data.application, context);
1102
1102
  }
1103
- return [2 /*return*/, Promise.resolve(contents)];
1103
+ return [2, Promise.resolve(contents)];
1104
1104
  }
1105
1105
  });
1106
1106
  }); };
@@ -1112,39 +1112,39 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
1112
1112
  case 0:
1113
1113
  _a = [__assign({}, output)];
1114
1114
  _f = {};
1115
- return [4 /*yield*/, parseBody(output.body, context)];
1115
+ return [4, parseBody(output.body, context)];
1116
1116
  case 1:
1117
1117
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1118
1118
  errorCode = "UnknownError";
1119
1119
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1120
1120
  _b = errorCode;
1121
1121
  switch (_b) {
1122
- case "InternalServerException": return [3 /*break*/, 2];
1123
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
1124
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1125
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 4];
1126
- case "ValidationException": return [3 /*break*/, 6];
1127
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 6];
1128
- }
1129
- return [3 /*break*/, 8];
1122
+ case "InternalServerException": return [3, 2];
1123
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1124
+ case "ResourceNotFoundException": return [3, 4];
1125
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
1126
+ case "ValidationException": return [3, 6];
1127
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
1128
+ }
1129
+ return [3, 8];
1130
1130
  case 2:
1131
1131
  _c = [{}];
1132
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1132
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1133
1133
  case 3:
1134
1134
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1135
- return [3 /*break*/, 9];
1135
+ return [3, 9];
1136
1136
  case 4:
1137
1137
  _d = [{}];
1138
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1138
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1139
1139
  case 5:
1140
1140
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1141
- return [3 /*break*/, 9];
1141
+ return [3, 9];
1142
1142
  case 6:
1143
1143
  _e = [{}];
1144
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1144
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1145
1145
  case 7:
1146
1146
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1147
- return [3 /*break*/, 9];
1147
+ return [3, 9];
1148
1148
  case 8:
1149
1149
  parsedBody = parsedOutput.body;
1150
1150
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1154,7 +1154,7 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
1154
1154
  message = response.message || response.Message || errorCode;
1155
1155
  response.message = message;
1156
1156
  delete response.Message;
1157
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1157
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1158
1158
  }
1159
1159
  });
1160
1160
  }); };
@@ -1164,7 +1164,7 @@ export var deserializeAws_restJson1DeleteAttributeGroupCommand = function (outpu
1164
1164
  switch (_c.label) {
1165
1165
  case 0:
1166
1166
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1167
- return [2 /*return*/, deserializeAws_restJson1DeleteAttributeGroupCommandError(output, context)];
1167
+ return [2, deserializeAws_restJson1DeleteAttributeGroupCommandError(output, context)];
1168
1168
  }
1169
1169
  contents = {
1170
1170
  $metadata: deserializeMetadata(output),
@@ -1172,13 +1172,13 @@ export var deserializeAws_restJson1DeleteAttributeGroupCommand = function (outpu
1172
1172
  };
1173
1173
  _a = __expectNonNull;
1174
1174
  _b = __expectObject;
1175
- return [4 /*yield*/, parseBody(output.body, context)];
1175
+ return [4, parseBody(output.body, context)];
1176
1176
  case 1:
1177
1177
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1178
1178
  if (data.attributeGroup !== undefined && data.attributeGroup !== null) {
1179
1179
  contents.attributeGroup = deserializeAws_restJson1AttributeGroupSummary(data.attributeGroup, context);
1180
1180
  }
1181
- return [2 /*return*/, Promise.resolve(contents)];
1181
+ return [2, Promise.resolve(contents)];
1182
1182
  }
1183
1183
  });
1184
1184
  }); };
@@ -1190,39 +1190,39 @@ var deserializeAws_restJson1DeleteAttributeGroupCommandError = function (output,
1190
1190
  case 0:
1191
1191
  _a = [__assign({}, output)];
1192
1192
  _f = {};
1193
- return [4 /*yield*/, parseBody(output.body, context)];
1193
+ return [4, parseBody(output.body, context)];
1194
1194
  case 1:
1195
1195
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1196
1196
  errorCode = "UnknownError";
1197
1197
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1198
1198
  _b = errorCode;
1199
1199
  switch (_b) {
1200
- case "InternalServerException": return [3 /*break*/, 2];
1201
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
1202
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1203
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 4];
1204
- case "ValidationException": return [3 /*break*/, 6];
1205
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 6];
1206
- }
1207
- return [3 /*break*/, 8];
1200
+ case "InternalServerException": return [3, 2];
1201
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1202
+ case "ResourceNotFoundException": return [3, 4];
1203
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
1204
+ case "ValidationException": return [3, 6];
1205
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
1206
+ }
1207
+ return [3, 8];
1208
1208
  case 2:
1209
1209
  _c = [{}];
1210
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1210
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1211
1211
  case 3:
1212
1212
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1213
- return [3 /*break*/, 9];
1213
+ return [3, 9];
1214
1214
  case 4:
1215
1215
  _d = [{}];
1216
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1216
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1217
1217
  case 5:
1218
1218
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1219
- return [3 /*break*/, 9];
1219
+ return [3, 9];
1220
1220
  case 6:
1221
1221
  _e = [{}];
1222
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1222
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1223
1223
  case 7:
1224
1224
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1225
- return [3 /*break*/, 9];
1225
+ return [3, 9];
1226
1226
  case 8:
1227
1227
  parsedBody = parsedOutput.body;
1228
1228
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1232,7 +1232,7 @@ var deserializeAws_restJson1DeleteAttributeGroupCommandError = function (output,
1232
1232
  message = response.message || response.Message || errorCode;
1233
1233
  response.message = message;
1234
1234
  delete response.Message;
1235
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1235
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1236
1236
  }
1237
1237
  });
1238
1238
  }); };
@@ -1242,7 +1242,7 @@ export var deserializeAws_restJson1DisassociateAttributeGroupCommand = function
1242
1242
  switch (_c.label) {
1243
1243
  case 0:
1244
1244
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1245
- return [2 /*return*/, deserializeAws_restJson1DisassociateAttributeGroupCommandError(output, context)];
1245
+ return [2, deserializeAws_restJson1DisassociateAttributeGroupCommandError(output, context)];
1246
1246
  }
1247
1247
  contents = {
1248
1248
  $metadata: deserializeMetadata(output),
@@ -1251,7 +1251,7 @@ export var deserializeAws_restJson1DisassociateAttributeGroupCommand = function
1251
1251
  };
1252
1252
  _a = __expectNonNull;
1253
1253
  _b = __expectObject;
1254
- return [4 /*yield*/, parseBody(output.body, context)];
1254
+ return [4, parseBody(output.body, context)];
1255
1255
  case 1:
1256
1256
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1257
1257
  if (data.applicationArn !== undefined && data.applicationArn !== null) {
@@ -1260,7 +1260,7 @@ export var deserializeAws_restJson1DisassociateAttributeGroupCommand = function
1260
1260
  if (data.attributeGroupArn !== undefined && data.attributeGroupArn !== null) {
1261
1261
  contents.attributeGroupArn = __expectString(data.attributeGroupArn);
1262
1262
  }
1263
- return [2 /*return*/, Promise.resolve(contents)];
1263
+ return [2, Promise.resolve(contents)];
1264
1264
  }
1265
1265
  });
1266
1266
  }); };
@@ -1272,39 +1272,39 @@ var deserializeAws_restJson1DisassociateAttributeGroupCommandError = function (o
1272
1272
  case 0:
1273
1273
  _a = [__assign({}, output)];
1274
1274
  _f = {};
1275
- return [4 /*yield*/, parseBody(output.body, context)];
1275
+ return [4, parseBody(output.body, context)];
1276
1276
  case 1:
1277
1277
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1278
1278
  errorCode = "UnknownError";
1279
1279
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1280
1280
  _b = errorCode;
1281
1281
  switch (_b) {
1282
- case "InternalServerException": return [3 /*break*/, 2];
1283
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
1284
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1285
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 4];
1286
- case "ValidationException": return [3 /*break*/, 6];
1287
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 6];
1288
- }
1289
- return [3 /*break*/, 8];
1282
+ case "InternalServerException": return [3, 2];
1283
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1284
+ case "ResourceNotFoundException": return [3, 4];
1285
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
1286
+ case "ValidationException": return [3, 6];
1287
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
1288
+ }
1289
+ return [3, 8];
1290
1290
  case 2:
1291
1291
  _c = [{}];
1292
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1292
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1293
1293
  case 3:
1294
1294
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1295
- return [3 /*break*/, 9];
1295
+ return [3, 9];
1296
1296
  case 4:
1297
1297
  _d = [{}];
1298
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1298
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1299
1299
  case 5:
1300
1300
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1301
- return [3 /*break*/, 9];
1301
+ return [3, 9];
1302
1302
  case 6:
1303
1303
  _e = [{}];
1304
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1304
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1305
1305
  case 7:
1306
1306
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1307
- return [3 /*break*/, 9];
1307
+ return [3, 9];
1308
1308
  case 8:
1309
1309
  parsedBody = parsedOutput.body;
1310
1310
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1314,7 +1314,7 @@ var deserializeAws_restJson1DisassociateAttributeGroupCommandError = function (o
1314
1314
  message = response.message || response.Message || errorCode;
1315
1315
  response.message = message;
1316
1316
  delete response.Message;
1317
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1317
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1318
1318
  }
1319
1319
  });
1320
1320
  }); };
@@ -1324,7 +1324,7 @@ export var deserializeAws_restJson1DisassociateResourceCommand = function (outpu
1324
1324
  switch (_c.label) {
1325
1325
  case 0:
1326
1326
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1327
- return [2 /*return*/, deserializeAws_restJson1DisassociateResourceCommandError(output, context)];
1327
+ return [2, deserializeAws_restJson1DisassociateResourceCommandError(output, context)];
1328
1328
  }
1329
1329
  contents = {
1330
1330
  $metadata: deserializeMetadata(output),
@@ -1333,7 +1333,7 @@ export var deserializeAws_restJson1DisassociateResourceCommand = function (outpu
1333
1333
  };
1334
1334
  _a = __expectNonNull;
1335
1335
  _b = __expectObject;
1336
- return [4 /*yield*/, parseBody(output.body, context)];
1336
+ return [4, parseBody(output.body, context)];
1337
1337
  case 1:
1338
1338
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1339
1339
  if (data.applicationArn !== undefined && data.applicationArn !== null) {
@@ -1342,7 +1342,7 @@ export var deserializeAws_restJson1DisassociateResourceCommand = function (outpu
1342
1342
  if (data.resourceArn !== undefined && data.resourceArn !== null) {
1343
1343
  contents.resourceArn = __expectString(data.resourceArn);
1344
1344
  }
1345
- return [2 /*return*/, Promise.resolve(contents)];
1345
+ return [2, Promise.resolve(contents)];
1346
1346
  }
1347
1347
  });
1348
1348
  }); };
@@ -1354,31 +1354,31 @@ var deserializeAws_restJson1DisassociateResourceCommandError = function (output,
1354
1354
  case 0:
1355
1355
  _a = [__assign({}, output)];
1356
1356
  _e = {};
1357
- return [4 /*yield*/, parseBody(output.body, context)];
1357
+ return [4, parseBody(output.body, context)];
1358
1358
  case 1:
1359
1359
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1360
1360
  errorCode = "UnknownError";
1361
1361
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1362
1362
  _b = errorCode;
1363
1363
  switch (_b) {
1364
- case "InternalServerException": return [3 /*break*/, 2];
1365
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
1366
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1367
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 4];
1364
+ case "InternalServerException": return [3, 2];
1365
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1366
+ case "ResourceNotFoundException": return [3, 4];
1367
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
1368
1368
  }
1369
- return [3 /*break*/, 6];
1369
+ return [3, 6];
1370
1370
  case 2:
1371
1371
  _c = [{}];
1372
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1372
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1373
1373
  case 3:
1374
1374
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1375
- return [3 /*break*/, 7];
1375
+ return [3, 7];
1376
1376
  case 4:
1377
1377
  _d = [{}];
1378
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1378
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1379
1379
  case 5:
1380
1380
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1381
- return [3 /*break*/, 7];
1381
+ return [3, 7];
1382
1382
  case 6:
1383
1383
  parsedBody = parsedOutput.body;
1384
1384
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1388,7 +1388,7 @@ var deserializeAws_restJson1DisassociateResourceCommandError = function (output,
1388
1388
  message = response.message || response.Message || errorCode;
1389
1389
  response.message = message;
1390
1390
  delete response.Message;
1391
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1391
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1392
1392
  }
1393
1393
  });
1394
1394
  }); };
@@ -1398,7 +1398,7 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
1398
1398
  switch (_c.label) {
1399
1399
  case 0:
1400
1400
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1401
- return [2 /*return*/, deserializeAws_restJson1GetApplicationCommandError(output, context)];
1401
+ return [2, deserializeAws_restJson1GetApplicationCommandError(output, context)];
1402
1402
  }
1403
1403
  contents = {
1404
1404
  $metadata: deserializeMetadata(output),
@@ -1414,7 +1414,7 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
1414
1414
  };
1415
1415
  _a = __expectNonNull;
1416
1416
  _b = __expectObject;
1417
- return [4 /*yield*/, parseBody(output.body, context)];
1417
+ return [4, parseBody(output.body, context)];
1418
1418
  case 1:
1419
1419
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1420
1420
  if (data.arn !== undefined && data.arn !== null) {
@@ -1444,7 +1444,7 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
1444
1444
  if (data.tags !== undefined && data.tags !== null) {
1445
1445
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
1446
1446
  }
1447
- return [2 /*return*/, Promise.resolve(contents)];
1447
+ return [2, Promise.resolve(contents)];
1448
1448
  }
1449
1449
  });
1450
1450
  }); };
@@ -1456,39 +1456,39 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
1456
1456
  case 0:
1457
1457
  _a = [__assign({}, output)];
1458
1458
  _f = {};
1459
- return [4 /*yield*/, parseBody(output.body, context)];
1459
+ return [4, parseBody(output.body, context)];
1460
1460
  case 1:
1461
1461
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1462
1462
  errorCode = "UnknownError";
1463
1463
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1464
1464
  _b = errorCode;
1465
1465
  switch (_b) {
1466
- case "InternalServerException": return [3 /*break*/, 2];
1467
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
1468
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1469
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 4];
1470
- case "ValidationException": return [3 /*break*/, 6];
1471
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 6];
1472
- }
1473
- return [3 /*break*/, 8];
1466
+ case "InternalServerException": return [3, 2];
1467
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1468
+ case "ResourceNotFoundException": return [3, 4];
1469
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
1470
+ case "ValidationException": return [3, 6];
1471
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
1472
+ }
1473
+ return [3, 8];
1474
1474
  case 2:
1475
1475
  _c = [{}];
1476
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1476
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1477
1477
  case 3:
1478
1478
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1479
- return [3 /*break*/, 9];
1479
+ return [3, 9];
1480
1480
  case 4:
1481
1481
  _d = [{}];
1482
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1482
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1483
1483
  case 5:
1484
1484
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1485
- return [3 /*break*/, 9];
1485
+ return [3, 9];
1486
1486
  case 6:
1487
1487
  _e = [{}];
1488
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1488
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1489
1489
  case 7:
1490
1490
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1491
- return [3 /*break*/, 9];
1491
+ return [3, 9];
1492
1492
  case 8:
1493
1493
  parsedBody = parsedOutput.body;
1494
1494
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1498,7 +1498,7 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
1498
1498
  message = response.message || response.Message || errorCode;
1499
1499
  response.message = message;
1500
1500
  delete response.Message;
1501
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1501
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1502
1502
  }
1503
1503
  });
1504
1504
  }); };
@@ -1508,7 +1508,7 @@ export var deserializeAws_restJson1GetAssociatedResourceCommand = function (outp
1508
1508
  switch (_c.label) {
1509
1509
  case 0:
1510
1510
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1511
- return [2 /*return*/, deserializeAws_restJson1GetAssociatedResourceCommandError(output, context)];
1511
+ return [2, deserializeAws_restJson1GetAssociatedResourceCommandError(output, context)];
1512
1512
  }
1513
1513
  contents = {
1514
1514
  $metadata: deserializeMetadata(output),
@@ -1516,13 +1516,13 @@ export var deserializeAws_restJson1GetAssociatedResourceCommand = function (outp
1516
1516
  };
1517
1517
  _a = __expectNonNull;
1518
1518
  _b = __expectObject;
1519
- return [4 /*yield*/, parseBody(output.body, context)];
1519
+ return [4, parseBody(output.body, context)];
1520
1520
  case 1:
1521
1521
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1522
1522
  if (data.resource !== undefined && data.resource !== null) {
1523
1523
  contents.resource = deserializeAws_restJson1Resource(data.resource, context);
1524
1524
  }
1525
- return [2 /*return*/, Promise.resolve(contents)];
1525
+ return [2, Promise.resolve(contents)];
1526
1526
  }
1527
1527
  });
1528
1528
  }); };
@@ -1534,39 +1534,39 @@ var deserializeAws_restJson1GetAssociatedResourceCommandError = function (output
1534
1534
  case 0:
1535
1535
  _a = [__assign({}, output)];
1536
1536
  _f = {};
1537
- return [4 /*yield*/, parseBody(output.body, context)];
1537
+ return [4, parseBody(output.body, context)];
1538
1538
  case 1:
1539
1539
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1540
1540
  errorCode = "UnknownError";
1541
1541
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1542
1542
  _b = errorCode;
1543
1543
  switch (_b) {
1544
- case "InternalServerException": return [3 /*break*/, 2];
1545
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
1546
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1547
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 4];
1548
- case "ValidationException": return [3 /*break*/, 6];
1549
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 6];
1550
- }
1551
- return [3 /*break*/, 8];
1544
+ case "InternalServerException": return [3, 2];
1545
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1546
+ case "ResourceNotFoundException": return [3, 4];
1547
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
1548
+ case "ValidationException": return [3, 6];
1549
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
1550
+ }
1551
+ return [3, 8];
1552
1552
  case 2:
1553
1553
  _c = [{}];
1554
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1554
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1555
1555
  case 3:
1556
1556
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1557
- return [3 /*break*/, 9];
1557
+ return [3, 9];
1558
1558
  case 4:
1559
1559
  _d = [{}];
1560
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1560
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1561
1561
  case 5:
1562
1562
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1563
- return [3 /*break*/, 9];
1563
+ return [3, 9];
1564
1564
  case 6:
1565
1565
  _e = [{}];
1566
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1566
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1567
1567
  case 7:
1568
1568
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1569
- return [3 /*break*/, 9];
1569
+ return [3, 9];
1570
1570
  case 8:
1571
1571
  parsedBody = parsedOutput.body;
1572
1572
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1576,7 +1576,7 @@ var deserializeAws_restJson1GetAssociatedResourceCommandError = function (output
1576
1576
  message = response.message || response.Message || errorCode;
1577
1577
  response.message = message;
1578
1578
  delete response.Message;
1579
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1579
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1580
1580
  }
1581
1581
  });
1582
1582
  }); };
@@ -1586,7 +1586,7 @@ export var deserializeAws_restJson1GetAttributeGroupCommand = function (output,
1586
1586
  switch (_c.label) {
1587
1587
  case 0:
1588
1588
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1589
- return [2 /*return*/, deserializeAws_restJson1GetAttributeGroupCommandError(output, context)];
1589
+ return [2, deserializeAws_restJson1GetAttributeGroupCommandError(output, context)];
1590
1590
  }
1591
1591
  contents = {
1592
1592
  $metadata: deserializeMetadata(output),
@@ -1601,7 +1601,7 @@ export var deserializeAws_restJson1GetAttributeGroupCommand = function (output,
1601
1601
  };
1602
1602
  _a = __expectNonNull;
1603
1603
  _b = __expectObject;
1604
- return [4 /*yield*/, parseBody(output.body, context)];
1604
+ return [4, parseBody(output.body, context)];
1605
1605
  case 1:
1606
1606
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1607
1607
  if (data.arn !== undefined && data.arn !== null) {
@@ -1628,7 +1628,7 @@ export var deserializeAws_restJson1GetAttributeGroupCommand = function (output,
1628
1628
  if (data.tags !== undefined && data.tags !== null) {
1629
1629
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
1630
1630
  }
1631
- return [2 /*return*/, Promise.resolve(contents)];
1631
+ return [2, Promise.resolve(contents)];
1632
1632
  }
1633
1633
  });
1634
1634
  }); };
@@ -1640,39 +1640,39 @@ var deserializeAws_restJson1GetAttributeGroupCommandError = function (output, co
1640
1640
  case 0:
1641
1641
  _a = [__assign({}, output)];
1642
1642
  _f = {};
1643
- return [4 /*yield*/, parseBody(output.body, context)];
1643
+ return [4, parseBody(output.body, context)];
1644
1644
  case 1:
1645
1645
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1646
1646
  errorCode = "UnknownError";
1647
1647
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1648
1648
  _b = errorCode;
1649
1649
  switch (_b) {
1650
- case "InternalServerException": return [3 /*break*/, 2];
1651
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
1652
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1653
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 4];
1654
- case "ValidationException": return [3 /*break*/, 6];
1655
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 6];
1656
- }
1657
- return [3 /*break*/, 8];
1650
+ case "InternalServerException": return [3, 2];
1651
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1652
+ case "ResourceNotFoundException": return [3, 4];
1653
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
1654
+ case "ValidationException": return [3, 6];
1655
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
1656
+ }
1657
+ return [3, 8];
1658
1658
  case 2:
1659
1659
  _c = [{}];
1660
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1660
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1661
1661
  case 3:
1662
1662
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1663
- return [3 /*break*/, 9];
1663
+ return [3, 9];
1664
1664
  case 4:
1665
1665
  _d = [{}];
1666
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1666
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1667
1667
  case 5:
1668
1668
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1669
- return [3 /*break*/, 9];
1669
+ return [3, 9];
1670
1670
  case 6:
1671
1671
  _e = [{}];
1672
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1672
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1673
1673
  case 7:
1674
1674
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1675
- return [3 /*break*/, 9];
1675
+ return [3, 9];
1676
1676
  case 8:
1677
1677
  parsedBody = parsedOutput.body;
1678
1678
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1682,7 +1682,7 @@ var deserializeAws_restJson1GetAttributeGroupCommandError = function (output, co
1682
1682
  message = response.message || response.Message || errorCode;
1683
1683
  response.message = message;
1684
1684
  delete response.Message;
1685
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1685
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1686
1686
  }
1687
1687
  });
1688
1688
  }); };
@@ -1692,7 +1692,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
1692
1692
  switch (_c.label) {
1693
1693
  case 0:
1694
1694
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1695
- return [2 /*return*/, deserializeAws_restJson1ListApplicationsCommandError(output, context)];
1695
+ return [2, deserializeAws_restJson1ListApplicationsCommandError(output, context)];
1696
1696
  }
1697
1697
  contents = {
1698
1698
  $metadata: deserializeMetadata(output),
@@ -1701,7 +1701,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
1701
1701
  };
1702
1702
  _a = __expectNonNull;
1703
1703
  _b = __expectObject;
1704
- return [4 /*yield*/, parseBody(output.body, context)];
1704
+ return [4, parseBody(output.body, context)];
1705
1705
  case 1:
1706
1706
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1707
1707
  if (data.applications !== undefined && data.applications !== null) {
@@ -1710,7 +1710,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
1710
1710
  if (data.nextToken !== undefined && data.nextToken !== null) {
1711
1711
  contents.nextToken = __expectString(data.nextToken);
1712
1712
  }
1713
- return [2 /*return*/, Promise.resolve(contents)];
1713
+ return [2, Promise.resolve(contents)];
1714
1714
  }
1715
1715
  });
1716
1716
  }); };
@@ -1722,31 +1722,31 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
1722
1722
  case 0:
1723
1723
  _a = [__assign({}, output)];
1724
1724
  _e = {};
1725
- return [4 /*yield*/, parseBody(output.body, context)];
1725
+ return [4, parseBody(output.body, context)];
1726
1726
  case 1:
1727
1727
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1728
1728
  errorCode = "UnknownError";
1729
1729
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1730
1730
  _b = errorCode;
1731
1731
  switch (_b) {
1732
- case "InternalServerException": return [3 /*break*/, 2];
1733
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
1734
- case "ValidationException": return [3 /*break*/, 4];
1735
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 4];
1732
+ case "InternalServerException": return [3, 2];
1733
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1734
+ case "ValidationException": return [3, 4];
1735
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 4];
1736
1736
  }
1737
- return [3 /*break*/, 6];
1737
+ return [3, 6];
1738
1738
  case 2:
1739
1739
  _c = [{}];
1740
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1740
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1741
1741
  case 3:
1742
1742
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1743
- return [3 /*break*/, 7];
1743
+ return [3, 7];
1744
1744
  case 4:
1745
1745
  _d = [{}];
1746
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1746
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1747
1747
  case 5:
1748
1748
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1749
- return [3 /*break*/, 7];
1749
+ return [3, 7];
1750
1750
  case 6:
1751
1751
  parsedBody = parsedOutput.body;
1752
1752
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1756,7 +1756,7 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
1756
1756
  message = response.message || response.Message || errorCode;
1757
1757
  response.message = message;
1758
1758
  delete response.Message;
1759
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1759
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1760
1760
  }
1761
1761
  });
1762
1762
  }); };
@@ -1766,7 +1766,7 @@ export var deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = functi
1766
1766
  switch (_c.label) {
1767
1767
  case 0:
1768
1768
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1769
- return [2 /*return*/, deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError(output, context)];
1769
+ return [2, deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError(output, context)];
1770
1770
  }
1771
1771
  contents = {
1772
1772
  $metadata: deserializeMetadata(output),
@@ -1775,7 +1775,7 @@ export var deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = functi
1775
1775
  };
1776
1776
  _a = __expectNonNull;
1777
1777
  _b = __expectObject;
1778
- return [4 /*yield*/, parseBody(output.body, context)];
1778
+ return [4, parseBody(output.body, context)];
1779
1779
  case 1:
1780
1780
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1781
1781
  if (data.attributeGroups !== undefined && data.attributeGroups !== null) {
@@ -1784,7 +1784,7 @@ export var deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = functi
1784
1784
  if (data.nextToken !== undefined && data.nextToken !== null) {
1785
1785
  contents.nextToken = __expectString(data.nextToken);
1786
1786
  }
1787
- return [2 /*return*/, Promise.resolve(contents)];
1787
+ return [2, Promise.resolve(contents)];
1788
1788
  }
1789
1789
  });
1790
1790
  }); };
@@ -1796,39 +1796,39 @@ var deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = function
1796
1796
  case 0:
1797
1797
  _a = [__assign({}, output)];
1798
1798
  _f = {};
1799
- return [4 /*yield*/, parseBody(output.body, context)];
1799
+ return [4, parseBody(output.body, context)];
1800
1800
  case 1:
1801
1801
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1802
1802
  errorCode = "UnknownError";
1803
1803
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1804
1804
  _b = errorCode;
1805
1805
  switch (_b) {
1806
- case "InternalServerException": return [3 /*break*/, 2];
1807
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
1808
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1809
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 4];
1810
- case "ValidationException": return [3 /*break*/, 6];
1811
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 6];
1812
- }
1813
- return [3 /*break*/, 8];
1806
+ case "InternalServerException": return [3, 2];
1807
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1808
+ case "ResourceNotFoundException": return [3, 4];
1809
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
1810
+ case "ValidationException": return [3, 6];
1811
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
1812
+ }
1813
+ return [3, 8];
1814
1814
  case 2:
1815
1815
  _c = [{}];
1816
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1816
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1817
1817
  case 3:
1818
1818
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1819
- return [3 /*break*/, 9];
1819
+ return [3, 9];
1820
1820
  case 4:
1821
1821
  _d = [{}];
1822
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1822
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1823
1823
  case 5:
1824
1824
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1825
- return [3 /*break*/, 9];
1825
+ return [3, 9];
1826
1826
  case 6:
1827
1827
  _e = [{}];
1828
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1828
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1829
1829
  case 7:
1830
1830
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1831
- return [3 /*break*/, 9];
1831
+ return [3, 9];
1832
1832
  case 8:
1833
1833
  parsedBody = parsedOutput.body;
1834
1834
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1838,7 +1838,7 @@ var deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = function
1838
1838
  message = response.message || response.Message || errorCode;
1839
1839
  response.message = message;
1840
1840
  delete response.Message;
1841
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1841
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1842
1842
  }
1843
1843
  });
1844
1844
  }); };
@@ -1848,7 +1848,7 @@ export var deserializeAws_restJson1ListAssociatedResourcesCommand = function (ou
1848
1848
  switch (_c.label) {
1849
1849
  case 0:
1850
1850
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1851
- return [2 /*return*/, deserializeAws_restJson1ListAssociatedResourcesCommandError(output, context)];
1851
+ return [2, deserializeAws_restJson1ListAssociatedResourcesCommandError(output, context)];
1852
1852
  }
1853
1853
  contents = {
1854
1854
  $metadata: deserializeMetadata(output),
@@ -1857,7 +1857,7 @@ export var deserializeAws_restJson1ListAssociatedResourcesCommand = function (ou
1857
1857
  };
1858
1858
  _a = __expectNonNull;
1859
1859
  _b = __expectObject;
1860
- return [4 /*yield*/, parseBody(output.body, context)];
1860
+ return [4, parseBody(output.body, context)];
1861
1861
  case 1:
1862
1862
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1863
1863
  if (data.nextToken !== undefined && data.nextToken !== null) {
@@ -1866,7 +1866,7 @@ export var deserializeAws_restJson1ListAssociatedResourcesCommand = function (ou
1866
1866
  if (data.resources !== undefined && data.resources !== null) {
1867
1867
  contents.resources = deserializeAws_restJson1Resources(data.resources, context);
1868
1868
  }
1869
- return [2 /*return*/, Promise.resolve(contents)];
1869
+ return [2, Promise.resolve(contents)];
1870
1870
  }
1871
1871
  });
1872
1872
  }); };
@@ -1878,39 +1878,39 @@ var deserializeAws_restJson1ListAssociatedResourcesCommandError = function (outp
1878
1878
  case 0:
1879
1879
  _a = [__assign({}, output)];
1880
1880
  _f = {};
1881
- return [4 /*yield*/, parseBody(output.body, context)];
1881
+ return [4, parseBody(output.body, context)];
1882
1882
  case 1:
1883
1883
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1884
1884
  errorCode = "UnknownError";
1885
1885
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1886
1886
  _b = errorCode;
1887
1887
  switch (_b) {
1888
- case "InternalServerException": return [3 /*break*/, 2];
1889
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
1890
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1891
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 4];
1892
- case "ValidationException": return [3 /*break*/, 6];
1893
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 6];
1894
- }
1895
- return [3 /*break*/, 8];
1888
+ case "InternalServerException": return [3, 2];
1889
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1890
+ case "ResourceNotFoundException": return [3, 4];
1891
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
1892
+ case "ValidationException": return [3, 6];
1893
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
1894
+ }
1895
+ return [3, 8];
1896
1896
  case 2:
1897
1897
  _c = [{}];
1898
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1898
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1899
1899
  case 3:
1900
1900
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1901
- return [3 /*break*/, 9];
1901
+ return [3, 9];
1902
1902
  case 4:
1903
1903
  _d = [{}];
1904
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1904
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1905
1905
  case 5:
1906
1906
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1907
- return [3 /*break*/, 9];
1907
+ return [3, 9];
1908
1908
  case 6:
1909
1909
  _e = [{}];
1910
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1910
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1911
1911
  case 7:
1912
1912
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1913
- return [3 /*break*/, 9];
1913
+ return [3, 9];
1914
1914
  case 8:
1915
1915
  parsedBody = parsedOutput.body;
1916
1916
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1920,7 +1920,7 @@ var deserializeAws_restJson1ListAssociatedResourcesCommandError = function (outp
1920
1920
  message = response.message || response.Message || errorCode;
1921
1921
  response.message = message;
1922
1922
  delete response.Message;
1923
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1923
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1924
1924
  }
1925
1925
  });
1926
1926
  }); };
@@ -1930,7 +1930,7 @@ export var deserializeAws_restJson1ListAttributeGroupsCommand = function (output
1930
1930
  switch (_c.label) {
1931
1931
  case 0:
1932
1932
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1933
- return [2 /*return*/, deserializeAws_restJson1ListAttributeGroupsCommandError(output, context)];
1933
+ return [2, deserializeAws_restJson1ListAttributeGroupsCommandError(output, context)];
1934
1934
  }
1935
1935
  contents = {
1936
1936
  $metadata: deserializeMetadata(output),
@@ -1939,7 +1939,7 @@ export var deserializeAws_restJson1ListAttributeGroupsCommand = function (output
1939
1939
  };
1940
1940
  _a = __expectNonNull;
1941
1941
  _b = __expectObject;
1942
- return [4 /*yield*/, parseBody(output.body, context)];
1942
+ return [4, parseBody(output.body, context)];
1943
1943
  case 1:
1944
1944
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1945
1945
  if (data.attributeGroups !== undefined && data.attributeGroups !== null) {
@@ -1948,7 +1948,7 @@ export var deserializeAws_restJson1ListAttributeGroupsCommand = function (output
1948
1948
  if (data.nextToken !== undefined && data.nextToken !== null) {
1949
1949
  contents.nextToken = __expectString(data.nextToken);
1950
1950
  }
1951
- return [2 /*return*/, Promise.resolve(contents)];
1951
+ return [2, Promise.resolve(contents)];
1952
1952
  }
1953
1953
  });
1954
1954
  }); };
@@ -1960,31 +1960,31 @@ var deserializeAws_restJson1ListAttributeGroupsCommandError = function (output,
1960
1960
  case 0:
1961
1961
  _a = [__assign({}, output)];
1962
1962
  _e = {};
1963
- return [4 /*yield*/, parseBody(output.body, context)];
1963
+ return [4, parseBody(output.body, context)];
1964
1964
  case 1:
1965
1965
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
1966
1966
  errorCode = "UnknownError";
1967
1967
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1968
1968
  _b = errorCode;
1969
1969
  switch (_b) {
1970
- case "InternalServerException": return [3 /*break*/, 2];
1971
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
1972
- case "ValidationException": return [3 /*break*/, 4];
1973
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 4];
1970
+ case "InternalServerException": return [3, 2];
1971
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
1972
+ case "ValidationException": return [3, 4];
1973
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 4];
1974
1974
  }
1975
- return [3 /*break*/, 6];
1975
+ return [3, 6];
1976
1976
  case 2:
1977
1977
  _c = [{}];
1978
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1978
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1979
1979
  case 3:
1980
1980
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1981
- return [3 /*break*/, 7];
1981
+ return [3, 7];
1982
1982
  case 4:
1983
1983
  _d = [{}];
1984
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1984
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1985
1985
  case 5:
1986
1986
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1987
- return [3 /*break*/, 7];
1987
+ return [3, 7];
1988
1988
  case 6:
1989
1989
  parsedBody = parsedOutput.body;
1990
1990
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1994,7 +1994,7 @@ var deserializeAws_restJson1ListAttributeGroupsCommandError = function (output,
1994
1994
  message = response.message || response.Message || errorCode;
1995
1995
  response.message = message;
1996
1996
  delete response.Message;
1997
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1997
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1998
1998
  }
1999
1999
  });
2000
2000
  }); };
@@ -2004,7 +2004,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2004
2004
  switch (_c.label) {
2005
2005
  case 0:
2006
2006
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2007
- return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
2007
+ return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
2008
2008
  }
2009
2009
  contents = {
2010
2010
  $metadata: deserializeMetadata(output),
@@ -2012,13 +2012,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2012
2012
  };
2013
2013
  _a = __expectNonNull;
2014
2014
  _b = __expectObject;
2015
- return [4 /*yield*/, parseBody(output.body, context)];
2015
+ return [4, parseBody(output.body, context)];
2016
2016
  case 1:
2017
2017
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2018
2018
  if (data.tags !== undefined && data.tags !== null) {
2019
2019
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
2020
2020
  }
2021
- return [2 /*return*/, Promise.resolve(contents)];
2021
+ return [2, Promise.resolve(contents)];
2022
2022
  }
2023
2023
  });
2024
2024
  }); };
@@ -2030,39 +2030,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2030
2030
  case 0:
2031
2031
  _a = [__assign({}, output)];
2032
2032
  _f = {};
2033
- return [4 /*yield*/, parseBody(output.body, context)];
2033
+ return [4, parseBody(output.body, context)];
2034
2034
  case 1:
2035
2035
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2036
2036
  errorCode = "UnknownError";
2037
2037
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2038
2038
  _b = errorCode;
2039
2039
  switch (_b) {
2040
- case "InternalServerException": return [3 /*break*/, 2];
2041
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
2042
- case "ResourceNotFoundException": return [3 /*break*/, 4];
2043
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 4];
2044
- case "ValidationException": return [3 /*break*/, 6];
2045
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 6];
2046
- }
2047
- return [3 /*break*/, 8];
2040
+ case "InternalServerException": return [3, 2];
2041
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
2042
+ case "ResourceNotFoundException": return [3, 4];
2043
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
2044
+ case "ValidationException": return [3, 6];
2045
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
2046
+ }
2047
+ return [3, 8];
2048
2048
  case 2:
2049
2049
  _c = [{}];
2050
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2050
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2051
2051
  case 3:
2052
2052
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2053
- return [3 /*break*/, 9];
2053
+ return [3, 9];
2054
2054
  case 4:
2055
2055
  _d = [{}];
2056
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2056
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2057
2057
  case 5:
2058
2058
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2059
- return [3 /*break*/, 9];
2059
+ return [3, 9];
2060
2060
  case 6:
2061
2061
  _e = [{}];
2062
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2062
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2063
2063
  case 7:
2064
2064
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2065
- return [3 /*break*/, 9];
2065
+ return [3, 9];
2066
2066
  case 8:
2067
2067
  parsedBody = parsedOutput.body;
2068
2068
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2072,7 +2072,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2072
2072
  message = response.message || response.Message || errorCode;
2073
2073
  response.message = message;
2074
2074
  delete response.Message;
2075
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2075
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2076
2076
  }
2077
2077
  });
2078
2078
  }); };
@@ -2082,7 +2082,7 @@ export var deserializeAws_restJson1SyncResourceCommand = function (output, conte
2082
2082
  switch (_c.label) {
2083
2083
  case 0:
2084
2084
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2085
- return [2 /*return*/, deserializeAws_restJson1SyncResourceCommandError(output, context)];
2085
+ return [2, deserializeAws_restJson1SyncResourceCommandError(output, context)];
2086
2086
  }
2087
2087
  contents = {
2088
2088
  $metadata: deserializeMetadata(output),
@@ -2092,7 +2092,7 @@ export var deserializeAws_restJson1SyncResourceCommand = function (output, conte
2092
2092
  };
2093
2093
  _a = __expectNonNull;
2094
2094
  _b = __expectObject;
2095
- return [4 /*yield*/, parseBody(output.body, context)];
2095
+ return [4, parseBody(output.body, context)];
2096
2096
  case 1:
2097
2097
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2098
2098
  if (data.actionTaken !== undefined && data.actionTaken !== null) {
@@ -2104,7 +2104,7 @@ export var deserializeAws_restJson1SyncResourceCommand = function (output, conte
2104
2104
  if (data.resourceArn !== undefined && data.resourceArn !== null) {
2105
2105
  contents.resourceArn = __expectString(data.resourceArn);
2106
2106
  }
2107
- return [2 /*return*/, Promise.resolve(contents)];
2107
+ return [2, Promise.resolve(contents)];
2108
2108
  }
2109
2109
  });
2110
2110
  }); };
@@ -2116,39 +2116,39 @@ var deserializeAws_restJson1SyncResourceCommandError = function (output, context
2116
2116
  case 0:
2117
2117
  _a = [__assign({}, output)];
2118
2118
  _f = {};
2119
- return [4 /*yield*/, parseBody(output.body, context)];
2119
+ return [4, parseBody(output.body, context)];
2120
2120
  case 1:
2121
2121
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2122
2122
  errorCode = "UnknownError";
2123
2123
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2124
2124
  _b = errorCode;
2125
2125
  switch (_b) {
2126
- case "ConflictException": return [3 /*break*/, 2];
2127
- case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3 /*break*/, 2];
2128
- case "InternalServerException": return [3 /*break*/, 4];
2129
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 4];
2130
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2131
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 6];
2132
- }
2133
- return [3 /*break*/, 8];
2126
+ case "ConflictException": return [3, 2];
2127
+ case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
2128
+ case "InternalServerException": return [3, 4];
2129
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
2130
+ case "ResourceNotFoundException": return [3, 6];
2131
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
2132
+ }
2133
+ return [3, 8];
2134
2134
  case 2:
2135
2135
  _c = [{}];
2136
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2136
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2137
2137
  case 3:
2138
2138
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2139
- return [3 /*break*/, 9];
2139
+ return [3, 9];
2140
2140
  case 4:
2141
2141
  _d = [{}];
2142
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2142
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2143
2143
  case 5:
2144
2144
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2145
- return [3 /*break*/, 9];
2145
+ return [3, 9];
2146
2146
  case 6:
2147
2147
  _e = [{}];
2148
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2148
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2149
2149
  case 7:
2150
2150
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2151
- return [3 /*break*/, 9];
2151
+ return [3, 9];
2152
2152
  case 8:
2153
2153
  parsedBody = parsedOutput.body;
2154
2154
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2158,7 +2158,7 @@ var deserializeAws_restJson1SyncResourceCommandError = function (output, context
2158
2158
  message = response.message || response.Message || errorCode;
2159
2159
  response.message = message;
2160
2160
  delete response.Message;
2161
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2161
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2162
2162
  }
2163
2163
  });
2164
2164
  }); };
@@ -2168,15 +2168,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
2168
2168
  switch (_a.label) {
2169
2169
  case 0:
2170
2170
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2171
- return [2 /*return*/, deserializeAws_restJson1TagResourceCommandError(output, context)];
2171
+ return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
2172
2172
  }
2173
2173
  contents = {
2174
2174
  $metadata: deserializeMetadata(output),
2175
2175
  };
2176
- return [4 /*yield*/, collectBody(output.body, context)];
2176
+ return [4, collectBody(output.body, context)];
2177
2177
  case 1:
2178
2178
  _a.sent();
2179
- return [2 /*return*/, Promise.resolve(contents)];
2179
+ return [2, Promise.resolve(contents)];
2180
2180
  }
2181
2181
  });
2182
2182
  }); };
@@ -2188,39 +2188,39 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
2188
2188
  case 0:
2189
2189
  _a = [__assign({}, output)];
2190
2190
  _f = {};
2191
- return [4 /*yield*/, parseBody(output.body, context)];
2191
+ return [4, parseBody(output.body, context)];
2192
2192
  case 1:
2193
2193
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2194
2194
  errorCode = "UnknownError";
2195
2195
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2196
2196
  _b = errorCode;
2197
2197
  switch (_b) {
2198
- case "InternalServerException": return [3 /*break*/, 2];
2199
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
2200
- case "ResourceNotFoundException": return [3 /*break*/, 4];
2201
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 4];
2202
- case "ValidationException": return [3 /*break*/, 6];
2203
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 6];
2204
- }
2205
- return [3 /*break*/, 8];
2198
+ case "InternalServerException": return [3, 2];
2199
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
2200
+ case "ResourceNotFoundException": return [3, 4];
2201
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
2202
+ case "ValidationException": return [3, 6];
2203
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
2204
+ }
2205
+ return [3, 8];
2206
2206
  case 2:
2207
2207
  _c = [{}];
2208
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2208
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2209
2209
  case 3:
2210
2210
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2211
- return [3 /*break*/, 9];
2211
+ return [3, 9];
2212
2212
  case 4:
2213
2213
  _d = [{}];
2214
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2214
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2215
2215
  case 5:
2216
2216
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2217
- return [3 /*break*/, 9];
2217
+ return [3, 9];
2218
2218
  case 6:
2219
2219
  _e = [{}];
2220
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2220
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2221
2221
  case 7:
2222
2222
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2223
- return [3 /*break*/, 9];
2223
+ return [3, 9];
2224
2224
  case 8:
2225
2225
  parsedBody = parsedOutput.body;
2226
2226
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2230,7 +2230,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
2230
2230
  message = response.message || response.Message || errorCode;
2231
2231
  response.message = message;
2232
2232
  delete response.Message;
2233
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2233
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2234
2234
  }
2235
2235
  });
2236
2236
  }); };
@@ -2240,15 +2240,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
2240
2240
  switch (_a.label) {
2241
2241
  case 0:
2242
2242
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2243
- return [2 /*return*/, deserializeAws_restJson1UntagResourceCommandError(output, context)];
2243
+ return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
2244
2244
  }
2245
2245
  contents = {
2246
2246
  $metadata: deserializeMetadata(output),
2247
2247
  };
2248
- return [4 /*yield*/, collectBody(output.body, context)];
2248
+ return [4, collectBody(output.body, context)];
2249
2249
  case 1:
2250
2250
  _a.sent();
2251
- return [2 /*return*/, Promise.resolve(contents)];
2251
+ return [2, Promise.resolve(contents)];
2252
2252
  }
2253
2253
  });
2254
2254
  }); };
@@ -2260,39 +2260,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2260
2260
  case 0:
2261
2261
  _a = [__assign({}, output)];
2262
2262
  _f = {};
2263
- return [4 /*yield*/, parseBody(output.body, context)];
2263
+ return [4, parseBody(output.body, context)];
2264
2264
  case 1:
2265
2265
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2266
2266
  errorCode = "UnknownError";
2267
2267
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2268
2268
  _b = errorCode;
2269
2269
  switch (_b) {
2270
- case "InternalServerException": return [3 /*break*/, 2];
2271
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 2];
2272
- case "ResourceNotFoundException": return [3 /*break*/, 4];
2273
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 4];
2274
- case "ValidationException": return [3 /*break*/, 6];
2275
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 6];
2276
- }
2277
- return [3 /*break*/, 8];
2270
+ case "InternalServerException": return [3, 2];
2271
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
2272
+ case "ResourceNotFoundException": return [3, 4];
2273
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
2274
+ case "ValidationException": return [3, 6];
2275
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
2276
+ }
2277
+ return [3, 8];
2278
2278
  case 2:
2279
2279
  _c = [{}];
2280
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2280
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2281
2281
  case 3:
2282
2282
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2283
- return [3 /*break*/, 9];
2283
+ return [3, 9];
2284
2284
  case 4:
2285
2285
  _d = [{}];
2286
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2286
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2287
2287
  case 5:
2288
2288
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2289
- return [3 /*break*/, 9];
2289
+ return [3, 9];
2290
2290
  case 6:
2291
2291
  _e = [{}];
2292
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2292
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2293
2293
  case 7:
2294
2294
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2295
- return [3 /*break*/, 9];
2295
+ return [3, 9];
2296
2296
  case 8:
2297
2297
  parsedBody = parsedOutput.body;
2298
2298
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2302,7 +2302,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2302
2302
  message = response.message || response.Message || errorCode;
2303
2303
  response.message = message;
2304
2304
  delete response.Message;
2305
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2305
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2306
2306
  }
2307
2307
  });
2308
2308
  }); };
@@ -2312,7 +2312,7 @@ export var deserializeAws_restJson1UpdateApplicationCommand = function (output,
2312
2312
  switch (_c.label) {
2313
2313
  case 0:
2314
2314
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2315
- return [2 /*return*/, deserializeAws_restJson1UpdateApplicationCommandError(output, context)];
2315
+ return [2, deserializeAws_restJson1UpdateApplicationCommandError(output, context)];
2316
2316
  }
2317
2317
  contents = {
2318
2318
  $metadata: deserializeMetadata(output),
@@ -2320,13 +2320,13 @@ export var deserializeAws_restJson1UpdateApplicationCommand = function (output,
2320
2320
  };
2321
2321
  _a = __expectNonNull;
2322
2322
  _b = __expectObject;
2323
- return [4 /*yield*/, parseBody(output.body, context)];
2323
+ return [4, parseBody(output.body, context)];
2324
2324
  case 1:
2325
2325
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2326
2326
  if (data.application !== undefined && data.application !== null) {
2327
2327
  contents.application = deserializeAws_restJson1Application(data.application, context);
2328
2328
  }
2329
- return [2 /*return*/, Promise.resolve(contents)];
2329
+ return [2, Promise.resolve(contents)];
2330
2330
  }
2331
2331
  });
2332
2332
  }); };
@@ -2338,39 +2338,39 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
2338
2338
  case 0:
2339
2339
  _a = [__assign({}, output)];
2340
2340
  _f = {};
2341
- return [4 /*yield*/, parseBody(output.body, context)];
2341
+ return [4, parseBody(output.body, context)];
2342
2342
  case 1:
2343
2343
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2344
2344
  errorCode = "UnknownError";
2345
2345
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2346
2346
  _b = errorCode;
2347
2347
  switch (_b) {
2348
- case "ConflictException": return [3 /*break*/, 2];
2349
- case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3 /*break*/, 2];
2350
- case "InternalServerException": return [3 /*break*/, 4];
2351
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 4];
2352
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2353
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 6];
2354
- }
2355
- return [3 /*break*/, 8];
2348
+ case "ConflictException": return [3, 2];
2349
+ case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
2350
+ case "InternalServerException": return [3, 4];
2351
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
2352
+ case "ResourceNotFoundException": return [3, 6];
2353
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
2354
+ }
2355
+ return [3, 8];
2356
2356
  case 2:
2357
2357
  _c = [{}];
2358
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2358
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2359
2359
  case 3:
2360
2360
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2361
- return [3 /*break*/, 9];
2361
+ return [3, 9];
2362
2362
  case 4:
2363
2363
  _d = [{}];
2364
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2364
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2365
2365
  case 5:
2366
2366
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2367
- return [3 /*break*/, 9];
2367
+ return [3, 9];
2368
2368
  case 6:
2369
2369
  _e = [{}];
2370
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2370
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2371
2371
  case 7:
2372
2372
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2373
- return [3 /*break*/, 9];
2373
+ return [3, 9];
2374
2374
  case 8:
2375
2375
  parsedBody = parsedOutput.body;
2376
2376
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2380,7 +2380,7 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
2380
2380
  message = response.message || response.Message || errorCode;
2381
2381
  response.message = message;
2382
2382
  delete response.Message;
2383
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2383
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2384
2384
  }
2385
2385
  });
2386
2386
  }); };
@@ -2390,7 +2390,7 @@ export var deserializeAws_restJson1UpdateAttributeGroupCommand = function (outpu
2390
2390
  switch (_c.label) {
2391
2391
  case 0:
2392
2392
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2393
- return [2 /*return*/, deserializeAws_restJson1UpdateAttributeGroupCommandError(output, context)];
2393
+ return [2, deserializeAws_restJson1UpdateAttributeGroupCommandError(output, context)];
2394
2394
  }
2395
2395
  contents = {
2396
2396
  $metadata: deserializeMetadata(output),
@@ -2398,13 +2398,13 @@ export var deserializeAws_restJson1UpdateAttributeGroupCommand = function (outpu
2398
2398
  };
2399
2399
  _a = __expectNonNull;
2400
2400
  _b = __expectObject;
2401
- return [4 /*yield*/, parseBody(output.body, context)];
2401
+ return [4, parseBody(output.body, context)];
2402
2402
  case 1:
2403
2403
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2404
2404
  if (data.attributeGroup !== undefined && data.attributeGroup !== null) {
2405
2405
  contents.attributeGroup = deserializeAws_restJson1AttributeGroup(data.attributeGroup, context);
2406
2406
  }
2407
- return [2 /*return*/, Promise.resolve(contents)];
2407
+ return [2, Promise.resolve(contents)];
2408
2408
  }
2409
2409
  });
2410
2410
  }); };
@@ -2416,47 +2416,47 @@ var deserializeAws_restJson1UpdateAttributeGroupCommandError = function (output,
2416
2416
  case 0:
2417
2417
  _a = [__assign({}, output)];
2418
2418
  _g = {};
2419
- return [4 /*yield*/, parseBody(output.body, context)];
2419
+ return [4, parseBody(output.body, context)];
2420
2420
  case 1:
2421
2421
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2422
2422
  errorCode = "UnknownError";
2423
2423
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2424
2424
  _b = errorCode;
2425
2425
  switch (_b) {
2426
- case "ConflictException": return [3 /*break*/, 2];
2427
- case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3 /*break*/, 2];
2428
- case "InternalServerException": return [3 /*break*/, 4];
2429
- case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3 /*break*/, 4];
2430
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2431
- case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3 /*break*/, 6];
2432
- case "ValidationException": return [3 /*break*/, 8];
2433
- case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3 /*break*/, 8];
2434
- }
2435
- return [3 /*break*/, 10];
2426
+ case "ConflictException": return [3, 2];
2427
+ case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
2428
+ case "InternalServerException": return [3, 4];
2429
+ case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
2430
+ case "ResourceNotFoundException": return [3, 6];
2431
+ case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
2432
+ case "ValidationException": return [3, 8];
2433
+ case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
2434
+ }
2435
+ return [3, 10];
2436
2436
  case 2:
2437
2437
  _c = [{}];
2438
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2438
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2439
2439
  case 3:
2440
2440
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2441
- return [3 /*break*/, 11];
2441
+ return [3, 11];
2442
2442
  case 4:
2443
2443
  _d = [{}];
2444
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2444
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2445
2445
  case 5:
2446
2446
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2447
- return [3 /*break*/, 11];
2447
+ return [3, 11];
2448
2448
  case 6:
2449
2449
  _e = [{}];
2450
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2450
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2451
2451
  case 7:
2452
2452
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2453
- return [3 /*break*/, 11];
2453
+ return [3, 11];
2454
2454
  case 8:
2455
2455
  _f = [{}];
2456
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2456
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2457
2457
  case 9:
2458
2458
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2459
- return [3 /*break*/, 11];
2459
+ return [3, 11];
2460
2460
  case 10:
2461
2461
  parsedBody = parsedOutput.body;
2462
2462
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2466,7 +2466,7 @@ var deserializeAws_restJson1UpdateAttributeGroupCommandError = function (output,
2466
2466
  message = response.message || response.Message || errorCode;
2467
2467
  response.message = message;
2468
2468
  delete response.Message;
2469
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2469
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2470
2470
  }
2471
2471
  });
2472
2472
  }); };
@@ -2483,7 +2483,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
2483
2483
  if (data.message !== undefined && data.message !== null) {
2484
2484
  contents.message = __expectString(data.message);
2485
2485
  }
2486
- return [2 /*return*/, contents];
2486
+ return [2, contents];
2487
2487
  });
2488
2488
  }); };
2489
2489
  var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2499,7 +2499,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
2499
2499
  if (data.message !== undefined && data.message !== null) {
2500
2500
  contents.message = __expectString(data.message);
2501
2501
  }
2502
- return [2 /*return*/, contents];
2502
+ return [2, contents];
2503
2503
  });
2504
2504
  }); };
2505
2505
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2515,7 +2515,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
2515
2515
  if (data.message !== undefined && data.message !== null) {
2516
2516
  contents.message = __expectString(data.message);
2517
2517
  }
2518
- return [2 /*return*/, contents];
2518
+ return [2, contents];
2519
2519
  });
2520
2520
  }); };
2521
2521
  var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2531,7 +2531,7 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
2531
2531
  if (data.message !== undefined && data.message !== null) {
2532
2532
  contents.message = __expectString(data.message);
2533
2533
  }
2534
- return [2 /*return*/, contents];
2534
+ return [2, contents];
2535
2535
  });
2536
2536
  }); };
2537
2537
  var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2547,7 +2547,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
2547
2547
  if (data.message !== undefined && data.message !== null) {
2548
2548
  contents.message = __expectString(data.message);
2549
2549
  }
2550
- return [2 /*return*/, contents];
2550
+ return [2, contents];
2551
2551
  });
2552
2552
  }); };
2553
2553
  var serializeAws_restJson1Tags = function (input, context) {
@@ -2720,7 +2720,6 @@ var deserializeMetadata = function (output) {
2720
2720
  cfId: output.headers["x-amz-cf-id"],
2721
2721
  });
2722
2722
  };
2723
- // Collect low-level response body stream to Uint8Array.
2724
2723
  var collectBody = function (streamBody, context) {
2725
2724
  if (streamBody === void 0) { streamBody = new Uint8Array(); }
2726
2725
  if (streamBody instanceof Uint8Array) {
@@ -2728,7 +2727,6 @@ var collectBody = function (streamBody, context) {
2728
2727
  }
2729
2728
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2730
2729
  };
2731
- // Encode Uint8Array data into string with utf-8.
2732
2730
  var collectBodyString = function (streamBody, context) {
2733
2731
  return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
2734
2732
  };
@@ -2747,9 +2745,6 @@ var parseBody = function (streamBody, context) {
2747
2745
  return {};
2748
2746
  });
2749
2747
  };
2750
- /**
2751
- * Load an error code for the aws.rest-json-1.1 protocol.
2752
- */
2753
2748
  var loadRestJsonErrorCode = function (output, data) {
2754
2749
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
2755
2750
  var sanitizeErrorCode = function (rawValue) {