@aws-sdk/client-ivs 3.33.0 → 3.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/Ivs.js +1 -364
  3. package/dist-cjs/IvsClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/BatchGetChannelCommand.js +2 -27
  5. package/{dist/cjs → dist-cjs}/commands/BatchGetStreamKeyCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/CreateChannelCommand.js +2 -27
  7. package/dist-cjs/commands/CreateRecordingConfigurationCommand.js +36 -0
  8. package/{dist/cjs → dist-cjs}/commands/CreateStreamKeyCommand.js +2 -30
  9. package/{dist/cjs → dist-cjs}/commands/DeleteChannelCommand.js +2 -31
  10. package/{dist/cjs → dist-cjs}/commands/DeletePlaybackKeyPairCommand.js +2 -29
  11. package/{dist/cjs → dist-cjs}/commands/DeleteRecordingConfigurationCommand.js +2 -32
  12. package/{dist/cjs → dist-cjs}/commands/DeleteStreamKeyCommand.js +2 -28
  13. package/{dist/cjs → dist-cjs}/commands/GetChannelCommand.js +2 -27
  14. package/{dist/cjs → dist-cjs}/commands/GetPlaybackKeyPairCommand.js +2 -31
  15. package/{dist/cjs → dist-cjs}/commands/GetRecordingConfigurationCommand.js +2 -27
  16. package/{dist/cjs → dist-cjs}/commands/GetStreamCommand.js +2 -27
  17. package/{dist/cjs → dist-cjs}/commands/GetStreamKeyCommand.js +2 -27
  18. package/{dist/cjs → dist-cjs}/commands/ImportPlaybackKeyPairCommand.js +2 -31
  19. package/{dist/cjs → dist-cjs}/commands/ListChannelsCommand.js +2 -30
  20. package/{dist/cjs → dist-cjs}/commands/ListPlaybackKeyPairsCommand.js +2 -28
  21. package/{dist/cjs → dist-cjs}/commands/ListRecordingConfigurationsCommand.js +2 -28
  22. package/{dist/cjs → dist-cjs}/commands/ListStreamKeysCommand.js +2 -27
  23. package/{dist/cjs → dist-cjs}/commands/ListStreamsCommand.js +2 -28
  24. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
  25. package/{dist/cjs → dist-cjs}/commands/PutMetadataCommand.js +2 -33
  26. package/{dist/cjs → dist-cjs}/commands/StopStreamCommand.js +2 -34
  27. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -27
  28. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
  29. package/{dist/cjs → dist-cjs}/commands/UpdateChannelCommand.js +2 -28
  30. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  31. package/{dist/cjs → dist-cjs}/index.js +0 -1
  32. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  33. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -214
  34. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  35. package/{dist/cjs → dist-cjs}/pagination/ListChannelsPaginator.js +1 -12
  36. package/{dist/cjs → dist-cjs}/pagination/ListPlaybackKeyPairsPaginator.js +1 -12
  37. package/{dist/cjs → dist-cjs}/pagination/ListRecordingConfigurationsPaginator.js +1 -12
  38. package/{dist/cjs → dist-cjs}/pagination/ListStreamKeysPaginator.js +1 -12
  39. package/{dist/cjs → dist-cjs}/pagination/ListStreamsPaginator.js +1 -12
  40. package/{dist/cjs → dist-cjs}/pagination/ListTagsForResourcePaginator.js +1 -12
  41. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +23 -29
  42. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  43. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  44. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  45. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  46. package/{dist/es → dist-es}/Ivs.js +2 -365
  47. package/dist-es/IvsClient.js +37 -0
  48. package/{dist/es → dist-es}/commands/BatchGetChannelCommand.js +4 -30
  49. package/{dist/es → dist-es}/commands/BatchGetStreamKeyCommand.js +4 -30
  50. package/{dist/es → dist-es}/commands/CreateChannelCommand.js +4 -30
  51. package/{dist/es → dist-es}/commands/CreateRecordingConfigurationCommand.js +4 -41
  52. package/{dist/es → dist-es}/commands/CreateStreamKeyCommand.js +4 -33
  53. package/{dist/es → dist-es}/commands/DeleteChannelCommand.js +4 -34
  54. package/{dist/es → dist-es}/commands/DeletePlaybackKeyPairCommand.js +4 -32
  55. package/{dist/es → dist-es}/commands/DeleteRecordingConfigurationCommand.js +4 -35
  56. package/{dist/es → dist-es}/commands/DeleteStreamKeyCommand.js +4 -31
  57. package/{dist/es → dist-es}/commands/GetChannelCommand.js +4 -30
  58. package/{dist/es → dist-es}/commands/GetPlaybackKeyPairCommand.js +4 -34
  59. package/{dist/es → dist-es}/commands/GetRecordingConfigurationCommand.js +4 -30
  60. package/{dist/es → dist-es}/commands/GetStreamCommand.js +4 -30
  61. package/{dist/es → dist-es}/commands/GetStreamKeyCommand.js +4 -30
  62. package/{dist/es → dist-es}/commands/ImportPlaybackKeyPairCommand.js +4 -34
  63. package/{dist/es → dist-es}/commands/ListChannelsCommand.js +4 -33
  64. package/{dist/es → dist-es}/commands/ListPlaybackKeyPairsCommand.js +4 -31
  65. package/{dist/es → dist-es}/commands/ListRecordingConfigurationsCommand.js +4 -31
  66. package/{dist/es → dist-es}/commands/ListStreamKeysCommand.js +4 -30
  67. package/{dist/es → dist-es}/commands/ListStreamsCommand.js +4 -31
  68. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
  69. package/{dist/es → dist-es}/commands/PutMetadataCommand.js +4 -36
  70. package/{dist/es → dist-es}/commands/StopStreamCommand.js +4 -37
  71. package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
  72. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
  73. package/{dist/es → dist-es}/commands/UpdateChannelCommand.js +4 -31
  74. package/{dist/es → dist-es}/endpoints.js +1 -2
  75. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  76. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  77. package/{dist/es → dist-es}/models/models_0.js +0 -214
  78. package/dist-es/pagination/Interfaces.js +1 -0
  79. package/{dist/es → dist-es}/pagination/ListChannelsPaginator.js +17 -30
  80. package/{dist/es → dist-es}/pagination/ListPlaybackKeyPairsPaginator.js +17 -30
  81. package/{dist/es → dist-es}/pagination/ListRecordingConfigurationsPaginator.js +17 -30
  82. package/{dist/es → dist-es}/pagination/ListStreamKeysPaginator.js +17 -30
  83. package/{dist/es → dist-es}/pagination/ListStreamsPaginator.js +17 -30
  84. package/{dist/es → dist-es}/pagination/ListTagsForResourcePaginator.js +17 -30
  85. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +606 -612
  86. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  87. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  88. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  89. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  90. package/{dist/types → dist-types}/Ivs.d.ts +2 -2
  91. package/{dist/types → dist-types}/IvsClient.d.ts +8 -8
  92. package/{dist/types → dist-types}/commands/BatchGetChannelCommand.d.ts +2 -2
  93. package/{dist/types → dist-types}/commands/BatchGetStreamKeyCommand.d.ts +2 -2
  94. package/{dist/types → dist-types}/commands/CreateChannelCommand.d.ts +2 -2
  95. package/{dist/types → dist-types}/commands/CreateRecordingConfigurationCommand.d.ts +2 -2
  96. package/{dist/types → dist-types}/commands/CreateStreamKeyCommand.d.ts +2 -2
  97. package/{dist/types → dist-types}/commands/DeleteChannelCommand.d.ts +2 -2
  98. package/{dist/types → dist-types}/commands/DeletePlaybackKeyPairCommand.d.ts +2 -2
  99. package/{dist/types → dist-types}/commands/DeleteRecordingConfigurationCommand.d.ts +2 -2
  100. package/{dist/types → dist-types}/commands/DeleteStreamKeyCommand.d.ts +2 -2
  101. package/{dist/types → dist-types}/commands/GetChannelCommand.d.ts +2 -2
  102. package/{dist/types → dist-types}/commands/GetPlaybackKeyPairCommand.d.ts +2 -2
  103. package/{dist/types → dist-types}/commands/GetRecordingConfigurationCommand.d.ts +2 -2
  104. package/{dist/types → dist-types}/commands/GetStreamCommand.d.ts +2 -2
  105. package/{dist/types → dist-types}/commands/GetStreamKeyCommand.d.ts +2 -2
  106. package/{dist/types → dist-types}/commands/ImportPlaybackKeyPairCommand.d.ts +2 -2
  107. package/{dist/types → dist-types}/commands/ListChannelsCommand.d.ts +2 -2
  108. package/{dist/types → dist-types}/commands/ListPlaybackKeyPairsCommand.d.ts +2 -2
  109. package/{dist/types → dist-types}/commands/ListRecordingConfigurationsCommand.d.ts +2 -2
  110. package/{dist/types → dist-types}/commands/ListStreamKeysCommand.d.ts +2 -2
  111. package/{dist/types → dist-types}/commands/ListStreamsCommand.d.ts +2 -2
  112. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  113. package/{dist/types → dist-types}/commands/PutMetadataCommand.d.ts +2 -2
  114. package/{dist/types → dist-types}/commands/StopStreamCommand.d.ts +2 -2
  115. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  116. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  117. package/{dist/types → dist-types}/commands/UpdateChannelCommand.d.ts +2 -2
  118. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  119. package/{index.ts → dist-types/index.d.ts} +0 -0
  120. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  121. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  122. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  123. package/{dist/types → dist-types}/pagination/ListChannelsPaginator.d.ts +1 -1
  124. package/{dist/types → dist-types}/pagination/ListPlaybackKeyPairsPaginator.d.ts +1 -1
  125. package/{dist/types → dist-types}/pagination/ListRecordingConfigurationsPaginator.d.ts +1 -1
  126. package/{dist/types → dist-types}/pagination/ListStreamKeysPaginator.d.ts +1 -1
  127. package/{dist/types → dist-types}/pagination/ListStreamsPaginator.d.ts +1 -1
  128. package/{dist/types → dist-types}/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  129. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  130. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  131. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  132. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  133. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  134. package/dist-types/ts3.4/Ivs.d.ts +135 -0
  135. package/dist-types/ts3.4/IvsClient.d.ts +93 -0
  136. package/{dist/types → dist-types}/ts3.4/commands/BatchGetChannelCommand.d.ts +4 -22
  137. package/{dist/types → dist-types}/ts3.4/commands/BatchGetStreamKeyCommand.d.ts +4 -22
  138. package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +17 -0
  139. package/dist-types/ts3.4/commands/CreateRecordingConfigurationCommand.d.ts +17 -0
  140. package/dist-types/ts3.4/commands/CreateStreamKeyCommand.d.ts +17 -0
  141. package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +17 -0
  142. package/dist-types/ts3.4/commands/DeletePlaybackKeyPairCommand.d.ts +17 -0
  143. package/dist-types/ts3.4/commands/DeleteRecordingConfigurationCommand.d.ts +17 -0
  144. package/dist-types/ts3.4/commands/DeleteStreamKeyCommand.d.ts +17 -0
  145. package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +17 -0
  146. package/dist-types/ts3.4/commands/GetPlaybackKeyPairCommand.d.ts +17 -0
  147. package/{dist/types → dist-types}/ts3.4/commands/GetRecordingConfigurationCommand.d.ts +4 -22
  148. package/dist-types/ts3.4/commands/GetStreamCommand.d.ts +17 -0
  149. package/dist-types/ts3.4/commands/GetStreamKeyCommand.d.ts +17 -0
  150. package/dist-types/ts3.4/commands/ImportPlaybackKeyPairCommand.d.ts +17 -0
  151. package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +17 -0
  152. package/dist-types/ts3.4/commands/ListPlaybackKeyPairsCommand.d.ts +17 -0
  153. package/{dist/types → dist-types}/ts3.4/commands/ListRecordingConfigurationsCommand.d.ts +4 -23
  154. package/dist-types/ts3.4/commands/ListStreamKeysCommand.d.ts +17 -0
  155. package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +17 -0
  156. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +4 -22
  157. package/dist-types/ts3.4/commands/PutMetadataCommand.d.ts +17 -0
  158. package/dist-types/ts3.4/commands/StopStreamCommand.d.ts +17 -0
  159. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  160. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  161. package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +17 -0
  162. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  163. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  164. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  165. package/dist-types/ts3.4/models/models_0.d.ts +798 -0
  166. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  167. package/{dist/types → dist-types}/ts3.4/pagination/ListChannelsPaginator.d.ts +1 -1
  168. package/{dist/types → dist-types}/ts3.4/pagination/ListPlaybackKeyPairsPaginator.d.ts +1 -1
  169. package/{dist/types → dist-types}/ts3.4/pagination/ListRecordingConfigurationsPaginator.d.ts +1 -1
  170. package/{dist/types → dist-types}/ts3.4/pagination/ListStreamKeysPaginator.d.ts +1 -1
  171. package/{dist/types → dist-types}/ts3.4/pagination/ListStreamsPaginator.d.ts +1 -1
  172. package/{dist/types → dist-types}/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  173. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  174. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  175. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  176. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  177. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  178. package/package.json +52 -49
  179. package/Ivs.ts +0 -1316
  180. package/IvsClient.ts +0 -696
  181. package/commands/BatchGetChannelCommand.ts +0 -94
  182. package/commands/BatchGetStreamKeyCommand.ts +0 -94
  183. package/commands/CreateChannelCommand.ts +0 -94
  184. package/commands/CreateRecordingConfigurationCommand.ts +0 -110
  185. package/commands/CreateStreamKeyCommand.ts +0 -97
  186. package/commands/DeleteChannelCommand.ts +0 -98
  187. package/commands/DeletePlaybackKeyPairCommand.ts +0 -96
  188. package/commands/DeleteRecordingConfigurationCommand.ts +0 -102
  189. package/commands/DeleteStreamKeyCommand.ts +0 -95
  190. package/commands/GetChannelCommand.ts +0 -94
  191. package/commands/GetPlaybackKeyPairCommand.ts +0 -98
  192. package/commands/GetRecordingConfigurationCommand.ts +0 -97
  193. package/commands/GetStreamCommand.ts +0 -90
  194. package/commands/GetStreamKeyCommand.ts +0 -94
  195. package/commands/ImportPlaybackKeyPairCommand.ts +0 -98
  196. package/commands/ListChannelsCommand.ts +0 -97
  197. package/commands/ListPlaybackKeyPairsCommand.ts +0 -95
  198. package/commands/ListRecordingConfigurationsCommand.ts +0 -100
  199. package/commands/ListStreamKeysCommand.ts +0 -94
  200. package/commands/ListStreamsCommand.ts +0 -95
  201. package/commands/ListTagsForResourceCommand.ts +0 -94
  202. package/commands/PutMetadataCommand.ts +0 -100
  203. package/commands/StopStreamCommand.ts +0 -101
  204. package/commands/TagResourceCommand.ts +0 -94
  205. package/commands/UntagResourceCommand.ts +0 -94
  206. package/commands/UpdateChannelCommand.ts +0 -95
  207. package/dist/cjs/Ivs.js.map +0 -1
  208. package/dist/cjs/IvsClient.js +0 -403
  209. package/dist/cjs/IvsClient.js.map +0 -1
  210. package/dist/cjs/commands/BatchGetChannelCommand.js.map +0 -1
  211. package/dist/cjs/commands/BatchGetStreamKeyCommand.js.map +0 -1
  212. package/dist/cjs/commands/CreateChannelCommand.js.map +0 -1
  213. package/dist/cjs/commands/CreateRecordingConfigurationCommand.js +0 -72
  214. package/dist/cjs/commands/CreateRecordingConfigurationCommand.js.map +0 -1
  215. package/dist/cjs/commands/CreateStreamKeyCommand.js.map +0 -1
  216. package/dist/cjs/commands/DeleteChannelCommand.js.map +0 -1
  217. package/dist/cjs/commands/DeletePlaybackKeyPairCommand.js.map +0 -1
  218. package/dist/cjs/commands/DeleteRecordingConfigurationCommand.js.map +0 -1
  219. package/dist/cjs/commands/DeleteStreamKeyCommand.js.map +0 -1
  220. package/dist/cjs/commands/GetChannelCommand.js.map +0 -1
  221. package/dist/cjs/commands/GetPlaybackKeyPairCommand.js.map +0 -1
  222. package/dist/cjs/commands/GetRecordingConfigurationCommand.js.map +0 -1
  223. package/dist/cjs/commands/GetStreamCommand.js.map +0 -1
  224. package/dist/cjs/commands/GetStreamKeyCommand.js.map +0 -1
  225. package/dist/cjs/commands/ImportPlaybackKeyPairCommand.js.map +0 -1
  226. package/dist/cjs/commands/ListChannelsCommand.js.map +0 -1
  227. package/dist/cjs/commands/ListPlaybackKeyPairsCommand.js.map +0 -1
  228. package/dist/cjs/commands/ListRecordingConfigurationsCommand.js.map +0 -1
  229. package/dist/cjs/commands/ListStreamKeysCommand.js.map +0 -1
  230. package/dist/cjs/commands/ListStreamsCommand.js.map +0 -1
  231. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  232. package/dist/cjs/commands/PutMetadataCommand.js.map +0 -1
  233. package/dist/cjs/commands/StopStreamCommand.js.map +0 -1
  234. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  235. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  236. package/dist/cjs/commands/UpdateChannelCommand.js.map +0 -1
  237. package/dist/cjs/endpoints.js.map +0 -1
  238. package/dist/cjs/index.js.map +0 -1
  239. package/dist/cjs/models/index.js.map +0 -1
  240. package/dist/cjs/models/models_0.js.map +0 -1
  241. package/dist/cjs/package.json +0 -91
  242. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  243. package/dist/cjs/pagination/ListChannelsPaginator.js.map +0 -1
  244. package/dist/cjs/pagination/ListPlaybackKeyPairsPaginator.js.map +0 -1
  245. package/dist/cjs/pagination/ListRecordingConfigurationsPaginator.js.map +0 -1
  246. package/dist/cjs/pagination/ListStreamKeysPaginator.js.map +0 -1
  247. package/dist/cjs/pagination/ListStreamsPaginator.js.map +0 -1
  248. package/dist/cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
  249. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  250. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  251. package/dist/cjs/runtimeConfig.js.map +0 -1
  252. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  253. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  254. package/dist/es/Ivs.js.map +0 -1
  255. package/dist/es/IvsClient.js +0 -405
  256. package/dist/es/IvsClient.js.map +0 -1
  257. package/dist/es/commands/BatchGetChannelCommand.js.map +0 -1
  258. package/dist/es/commands/BatchGetStreamKeyCommand.js.map +0 -1
  259. package/dist/es/commands/CreateChannelCommand.js.map +0 -1
  260. package/dist/es/commands/CreateRecordingConfigurationCommand.js.map +0 -1
  261. package/dist/es/commands/CreateStreamKeyCommand.js.map +0 -1
  262. package/dist/es/commands/DeleteChannelCommand.js.map +0 -1
  263. package/dist/es/commands/DeletePlaybackKeyPairCommand.js.map +0 -1
  264. package/dist/es/commands/DeleteRecordingConfigurationCommand.js.map +0 -1
  265. package/dist/es/commands/DeleteStreamKeyCommand.js.map +0 -1
  266. package/dist/es/commands/GetChannelCommand.js.map +0 -1
  267. package/dist/es/commands/GetPlaybackKeyPairCommand.js.map +0 -1
  268. package/dist/es/commands/GetRecordingConfigurationCommand.js.map +0 -1
  269. package/dist/es/commands/GetStreamCommand.js.map +0 -1
  270. package/dist/es/commands/GetStreamKeyCommand.js.map +0 -1
  271. package/dist/es/commands/ImportPlaybackKeyPairCommand.js.map +0 -1
  272. package/dist/es/commands/ListChannelsCommand.js.map +0 -1
  273. package/dist/es/commands/ListPlaybackKeyPairsCommand.js.map +0 -1
  274. package/dist/es/commands/ListRecordingConfigurationsCommand.js.map +0 -1
  275. package/dist/es/commands/ListStreamKeysCommand.js.map +0 -1
  276. package/dist/es/commands/ListStreamsCommand.js.map +0 -1
  277. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  278. package/dist/es/commands/PutMetadataCommand.js.map +0 -1
  279. package/dist/es/commands/StopStreamCommand.js.map +0 -1
  280. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  281. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  282. package/dist/es/commands/UpdateChannelCommand.js.map +0 -1
  283. package/dist/es/endpoints.js.map +0 -1
  284. package/dist/es/index.js +0 -37
  285. package/dist/es/index.js.map +0 -1
  286. package/dist/es/models/index.js +0 -2
  287. package/dist/es/models/index.js.map +0 -1
  288. package/dist/es/models/models_0.js.map +0 -1
  289. package/dist/es/package.json +0 -91
  290. package/dist/es/pagination/Interfaces.js +0 -2
  291. package/dist/es/pagination/Interfaces.js.map +0 -1
  292. package/dist/es/pagination/ListChannelsPaginator.js.map +0 -1
  293. package/dist/es/pagination/ListPlaybackKeyPairsPaginator.js.map +0 -1
  294. package/dist/es/pagination/ListRecordingConfigurationsPaginator.js.map +0 -1
  295. package/dist/es/pagination/ListStreamKeysPaginator.js.map +0 -1
  296. package/dist/es/pagination/ListStreamsPaginator.js.map +0 -1
  297. package/dist/es/pagination/ListTagsForResourcePaginator.js.map +0 -1
  298. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  299. package/dist/es/runtimeConfig.browser.js.map +0 -1
  300. package/dist/es/runtimeConfig.js.map +0 -1
  301. package/dist/es/runtimeConfig.native.js.map +0 -1
  302. package/dist/es/runtimeConfig.shared.js.map +0 -1
  303. package/dist/types/ts3.4/Ivs.d.ts +0 -602
  304. package/dist/types/ts3.4/IvsClient.d.ts +0 -517
  305. package/dist/types/ts3.4/commands/CreateChannelCommand.d.ts +0 -35
  306. package/dist/types/ts3.4/commands/CreateRecordingConfigurationCommand.d.ts +0 -46
  307. package/dist/types/ts3.4/commands/CreateStreamKeyCommand.d.ts +0 -38
  308. package/dist/types/ts3.4/commands/DeleteChannelCommand.d.ts +0 -39
  309. package/dist/types/ts3.4/commands/DeletePlaybackKeyPairCommand.d.ts +0 -37
  310. package/dist/types/ts3.4/commands/DeleteRecordingConfigurationCommand.d.ts +0 -40
  311. package/dist/types/ts3.4/commands/DeleteStreamKeyCommand.d.ts +0 -36
  312. package/dist/types/ts3.4/commands/GetChannelCommand.d.ts +0 -35
  313. package/dist/types/ts3.4/commands/GetPlaybackKeyPairCommand.d.ts +0 -39
  314. package/dist/types/ts3.4/commands/GetStreamCommand.d.ts +0 -35
  315. package/dist/types/ts3.4/commands/GetStreamKeyCommand.d.ts +0 -35
  316. package/dist/types/ts3.4/commands/ImportPlaybackKeyPairCommand.d.ts +0 -39
  317. package/dist/types/ts3.4/commands/ListChannelsCommand.d.ts +0 -38
  318. package/dist/types/ts3.4/commands/ListPlaybackKeyPairsCommand.d.ts +0 -36
  319. package/dist/types/ts3.4/commands/ListStreamKeysCommand.d.ts +0 -35
  320. package/dist/types/ts3.4/commands/ListStreamsCommand.d.ts +0 -36
  321. package/dist/types/ts3.4/commands/PutMetadataCommand.d.ts +0 -41
  322. package/dist/types/ts3.4/commands/StopStreamCommand.d.ts +0 -42
  323. package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
  324. package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
  325. package/dist/types/ts3.4/commands/UpdateChannelCommand.d.ts +0 -36
  326. package/dist/types/ts3.4/models/models_0.d.ts +0 -1340
  327. package/endpoints.ts +0 -57
  328. package/jest.config.js +0 -4
  329. package/models/models_0.ts +0 -1673
  330. package/pagination/Interfaces.ts +0 -7
  331. package/pagination/ListChannelsPaginator.ts +0 -58
  332. package/pagination/ListPlaybackKeyPairsPaginator.ts +0 -58
  333. package/pagination/ListRecordingConfigurationsPaginator.ts +0 -58
  334. package/pagination/ListStreamKeysPaginator.ts +0 -58
  335. package/pagination/ListStreamsPaginator.ts +0 -54
  336. package/pagination/ListTagsForResourcePaginator.ts +0 -58
  337. package/protocols/Aws_restJson1.ts +0 -3326
  338. package/runtimeConfig.browser.ts +0 -40
  339. package/runtimeConfig.native.ts +0 -16
  340. package/runtimeConfig.shared.ts +0 -16
  341. package/runtimeConfig.ts +0 -45
  342. package/tsconfig.es.json +0 -12
  343. package/tsconfig.json +0 -32
@@ -5,7 +5,7 @@ export var serializeAws_restJson1BatchGetChannelCommand = function (input, conte
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
6
6
  return __generator(this, function (_c) {
7
7
  switch (_c.label) {
8
- case 0: return [4 /*yield*/, context.endpoint()];
8
+ case 0: return [4, context.endpoint()];
9
9
  case 1:
10
10
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
11
11
  headers = {
@@ -14,7 +14,7 @@ export var serializeAws_restJson1BatchGetChannelCommand = function (input, conte
14
14
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/BatchGetChannel";
15
15
  body = JSON.stringify(__assign({}, (input.arns !== undefined &&
16
16
  input.arns !== null && { arns: serializeAws_restJson1ChannelArnList(input.arns, context) })));
17
- return [2 /*return*/, new __HttpRequest({
17
+ return [2, new __HttpRequest({
18
18
  protocol: protocol,
19
19
  hostname: hostname,
20
20
  port: port,
@@ -30,7 +30,7 @@ export var serializeAws_restJson1BatchGetStreamKeyCommand = function (input, con
30
30
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
31
31
  return __generator(this, function (_c) {
32
32
  switch (_c.label) {
33
- case 0: return [4 /*yield*/, context.endpoint()];
33
+ case 0: return [4, context.endpoint()];
34
34
  case 1:
35
35
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
36
36
  headers = {
@@ -39,7 +39,7 @@ export var serializeAws_restJson1BatchGetStreamKeyCommand = function (input, con
39
39
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/BatchGetStreamKey";
40
40
  body = JSON.stringify(__assign({}, (input.arns !== undefined &&
41
41
  input.arns !== null && { arns: serializeAws_restJson1StreamKeyArnList(input.arns, context) })));
42
- return [2 /*return*/, new __HttpRequest({
42
+ return [2, new __HttpRequest({
43
43
  protocol: protocol,
44
44
  hostname: hostname,
45
45
  port: port,
@@ -55,7 +55,7 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
55
55
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
56
56
  return __generator(this, function (_c) {
57
57
  switch (_c.label) {
58
- case 0: return [4 /*yield*/, context.endpoint()];
58
+ case 0: return [4, context.endpoint()];
59
59
  case 1:
60
60
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
61
61
  headers = {
@@ -64,7 +64,7 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
64
64
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateChannel";
65
65
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorized !== undefined && input.authorized !== null && { authorized: input.authorized })), (input.latencyMode !== undefined && input.latencyMode !== null && { latencyMode: input.latencyMode })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.recordingConfigurationArn !== undefined &&
66
66
  input.recordingConfigurationArn !== null && { recordingConfigurationArn: input.recordingConfigurationArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })));
67
- return [2 /*return*/, new __HttpRequest({
67
+ return [2, new __HttpRequest({
68
68
  protocol: protocol,
69
69
  hostname: hostname,
70
70
  port: port,
@@ -80,7 +80,7 @@ export var serializeAws_restJson1CreateRecordingConfigurationCommand = function
80
80
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
81
81
  return __generator(this, function (_c) {
82
82
  switch (_c.label) {
83
- case 0: return [4 /*yield*/, context.endpoint()];
83
+ case 0: return [4, context.endpoint()];
84
84
  case 1:
85
85
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
86
86
  headers = {
@@ -91,7 +91,7 @@ export var serializeAws_restJson1CreateRecordingConfigurationCommand = function
91
91
  input.destinationConfiguration !== null && {
92
92
  destinationConfiguration: serializeAws_restJson1DestinationConfiguration(input.destinationConfiguration, context),
93
93
  })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
94
- return [2 /*return*/, new __HttpRequest({
94
+ return [2, new __HttpRequest({
95
95
  protocol: protocol,
96
96
  hostname: hostname,
97
97
  port: port,
@@ -107,7 +107,7 @@ export var serializeAws_restJson1CreateStreamKeyCommand = function (input, conte
107
107
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
108
108
  return __generator(this, function (_c) {
109
109
  switch (_c.label) {
110
- case 0: return [4 /*yield*/, context.endpoint()];
110
+ case 0: return [4, context.endpoint()];
111
111
  case 1:
112
112
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
113
113
  headers = {
@@ -115,7 +115,7 @@ export var serializeAws_restJson1CreateStreamKeyCommand = function (input, conte
115
115
  };
116
116
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateStreamKey";
117
117
  body = JSON.stringify(__assign(__assign({}, (input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
118
- return [2 /*return*/, new __HttpRequest({
118
+ return [2, new __HttpRequest({
119
119
  protocol: protocol,
120
120
  hostname: hostname,
121
121
  port: port,
@@ -131,7 +131,7 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
131
131
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
132
132
  return __generator(this, function (_c) {
133
133
  switch (_c.label) {
134
- case 0: return [4 /*yield*/, context.endpoint()];
134
+ case 0: return [4, context.endpoint()];
135
135
  case 1:
136
136
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
137
137
  headers = {
@@ -139,7 +139,7 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
139
139
  };
140
140
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteChannel";
141
141
  body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
142
- return [2 /*return*/, new __HttpRequest({
142
+ return [2, new __HttpRequest({
143
143
  protocol: protocol,
144
144
  hostname: hostname,
145
145
  port: port,
@@ -155,7 +155,7 @@ export var serializeAws_restJson1DeletePlaybackKeyPairCommand = function (input,
155
155
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
156
156
  return __generator(this, function (_c) {
157
157
  switch (_c.label) {
158
- case 0: return [4 /*yield*/, context.endpoint()];
158
+ case 0: return [4, context.endpoint()];
159
159
  case 1:
160
160
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
161
161
  headers = {
@@ -163,7 +163,7 @@ export var serializeAws_restJson1DeletePlaybackKeyPairCommand = function (input,
163
163
  };
164
164
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeletePlaybackKeyPair";
165
165
  body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
166
- return [2 /*return*/, new __HttpRequest({
166
+ return [2, new __HttpRequest({
167
167
  protocol: protocol,
168
168
  hostname: hostname,
169
169
  port: port,
@@ -179,7 +179,7 @@ export var serializeAws_restJson1DeleteRecordingConfigurationCommand = function
179
179
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
180
180
  return __generator(this, function (_c) {
181
181
  switch (_c.label) {
182
- case 0: return [4 /*yield*/, context.endpoint()];
182
+ case 0: return [4, context.endpoint()];
183
183
  case 1:
184
184
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
185
185
  headers = {
@@ -187,7 +187,7 @@ export var serializeAws_restJson1DeleteRecordingConfigurationCommand = function
187
187
  };
188
188
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteRecordingConfiguration";
189
189
  body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
190
- return [2 /*return*/, new __HttpRequest({
190
+ return [2, new __HttpRequest({
191
191
  protocol: protocol,
192
192
  hostname: hostname,
193
193
  port: port,
@@ -203,7 +203,7 @@ export var serializeAws_restJson1DeleteStreamKeyCommand = function (input, conte
203
203
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
204
204
  return __generator(this, function (_c) {
205
205
  switch (_c.label) {
206
- case 0: return [4 /*yield*/, context.endpoint()];
206
+ case 0: return [4, context.endpoint()];
207
207
  case 1:
208
208
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
209
209
  headers = {
@@ -211,7 +211,7 @@ export var serializeAws_restJson1DeleteStreamKeyCommand = function (input, conte
211
211
  };
212
212
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteStreamKey";
213
213
  body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
214
- return [2 /*return*/, new __HttpRequest({
214
+ return [2, new __HttpRequest({
215
215
  protocol: protocol,
216
216
  hostname: hostname,
217
217
  port: port,
@@ -227,7 +227,7 @@ export var serializeAws_restJson1GetChannelCommand = function (input, context) {
227
227
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
228
228
  return __generator(this, function (_c) {
229
229
  switch (_c.label) {
230
- case 0: return [4 /*yield*/, context.endpoint()];
230
+ case 0: return [4, context.endpoint()];
231
231
  case 1:
232
232
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
233
233
  headers = {
@@ -235,7 +235,7 @@ export var serializeAws_restJson1GetChannelCommand = function (input, context) {
235
235
  };
236
236
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetChannel";
237
237
  body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
238
- return [2 /*return*/, new __HttpRequest({
238
+ return [2, new __HttpRequest({
239
239
  protocol: protocol,
240
240
  hostname: hostname,
241
241
  port: port,
@@ -251,7 +251,7 @@ export var serializeAws_restJson1GetPlaybackKeyPairCommand = function (input, co
251
251
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
252
252
  return __generator(this, function (_c) {
253
253
  switch (_c.label) {
254
- case 0: return [4 /*yield*/, context.endpoint()];
254
+ case 0: return [4, context.endpoint()];
255
255
  case 1:
256
256
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
257
257
  headers = {
@@ -259,7 +259,7 @@ export var serializeAws_restJson1GetPlaybackKeyPairCommand = function (input, co
259
259
  };
260
260
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetPlaybackKeyPair";
261
261
  body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
262
- return [2 /*return*/, new __HttpRequest({
262
+ return [2, new __HttpRequest({
263
263
  protocol: protocol,
264
264
  hostname: hostname,
265
265
  port: port,
@@ -275,7 +275,7 @@ export var serializeAws_restJson1GetRecordingConfigurationCommand = function (in
275
275
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
276
276
  return __generator(this, function (_c) {
277
277
  switch (_c.label) {
278
- case 0: return [4 /*yield*/, context.endpoint()];
278
+ case 0: return [4, context.endpoint()];
279
279
  case 1:
280
280
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
281
281
  headers = {
@@ -283,7 +283,7 @@ export var serializeAws_restJson1GetRecordingConfigurationCommand = function (in
283
283
  };
284
284
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetRecordingConfiguration";
285
285
  body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
286
- return [2 /*return*/, new __HttpRequest({
286
+ return [2, new __HttpRequest({
287
287
  protocol: protocol,
288
288
  hostname: hostname,
289
289
  port: port,
@@ -299,7 +299,7 @@ export var serializeAws_restJson1GetStreamCommand = function (input, context) {
299
299
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
300
300
  return __generator(this, function (_c) {
301
301
  switch (_c.label) {
302
- case 0: return [4 /*yield*/, context.endpoint()];
302
+ case 0: return [4, context.endpoint()];
303
303
  case 1:
304
304
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
305
305
  headers = {
@@ -307,7 +307,7 @@ export var serializeAws_restJson1GetStreamCommand = function (input, context) {
307
307
  };
308
308
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetStream";
309
309
  body = JSON.stringify(__assign({}, (input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn })));
310
- return [2 /*return*/, new __HttpRequest({
310
+ return [2, new __HttpRequest({
311
311
  protocol: protocol,
312
312
  hostname: hostname,
313
313
  port: port,
@@ -323,7 +323,7 @@ export var serializeAws_restJson1GetStreamKeyCommand = function (input, context)
323
323
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
324
324
  return __generator(this, function (_c) {
325
325
  switch (_c.label) {
326
- case 0: return [4 /*yield*/, context.endpoint()];
326
+ case 0: return [4, context.endpoint()];
327
327
  case 1:
328
328
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
329
329
  headers = {
@@ -331,7 +331,7 @@ export var serializeAws_restJson1GetStreamKeyCommand = function (input, context)
331
331
  };
332
332
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetStreamKey";
333
333
  body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
334
- return [2 /*return*/, new __HttpRequest({
334
+ return [2, new __HttpRequest({
335
335
  protocol: protocol,
336
336
  hostname: hostname,
337
337
  port: port,
@@ -347,7 +347,7 @@ export var serializeAws_restJson1ImportPlaybackKeyPairCommand = function (input,
347
347
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
348
348
  return __generator(this, function (_c) {
349
349
  switch (_c.label) {
350
- case 0: return [4 /*yield*/, context.endpoint()];
350
+ case 0: return [4, context.endpoint()];
351
351
  case 1:
352
352
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
353
353
  headers = {
@@ -356,7 +356,7 @@ export var serializeAws_restJson1ImportPlaybackKeyPairCommand = function (input,
356
356
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ImportPlaybackKeyPair";
357
357
  body = JSON.stringify(__assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.publicKeyMaterial !== undefined &&
358
358
  input.publicKeyMaterial !== null && { publicKeyMaterial: input.publicKeyMaterial })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
359
- return [2 /*return*/, new __HttpRequest({
359
+ return [2, new __HttpRequest({
360
360
  protocol: protocol,
361
361
  hostname: hostname,
362
362
  port: port,
@@ -372,7 +372,7 @@ export var serializeAws_restJson1ListChannelsCommand = function (input, context)
372
372
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
373
373
  return __generator(this, function (_c) {
374
374
  switch (_c.label) {
375
- case 0: return [4 /*yield*/, context.endpoint()];
375
+ case 0: return [4, context.endpoint()];
376
376
  case 1:
377
377
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
378
378
  headers = {
@@ -383,7 +383,7 @@ export var serializeAws_restJson1ListChannelsCommand = function (input, context)
383
383
  input.filterByRecordingConfigurationArn !== null && {
384
384
  filterByRecordingConfigurationArn: input.filterByRecordingConfigurationArn,
385
385
  })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
386
- return [2 /*return*/, new __HttpRequest({
386
+ return [2, new __HttpRequest({
387
387
  protocol: protocol,
388
388
  hostname: hostname,
389
389
  port: port,
@@ -399,7 +399,7 @@ export var serializeAws_restJson1ListPlaybackKeyPairsCommand = function (input,
399
399
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
400
400
  return __generator(this, function (_c) {
401
401
  switch (_c.label) {
402
- case 0: return [4 /*yield*/, context.endpoint()];
402
+ case 0: return [4, context.endpoint()];
403
403
  case 1:
404
404
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
405
405
  headers = {
@@ -407,7 +407,7 @@ export var serializeAws_restJson1ListPlaybackKeyPairsCommand = function (input,
407
407
  };
408
408
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListPlaybackKeyPairs";
409
409
  body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
410
- return [2 /*return*/, new __HttpRequest({
410
+ return [2, new __HttpRequest({
411
411
  protocol: protocol,
412
412
  hostname: hostname,
413
413
  port: port,
@@ -423,7 +423,7 @@ export var serializeAws_restJson1ListRecordingConfigurationsCommand = function (
423
423
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
424
424
  return __generator(this, function (_c) {
425
425
  switch (_c.label) {
426
- case 0: return [4 /*yield*/, context.endpoint()];
426
+ case 0: return [4, context.endpoint()];
427
427
  case 1:
428
428
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
429
429
  headers = {
@@ -431,7 +431,7 @@ export var serializeAws_restJson1ListRecordingConfigurationsCommand = function (
431
431
  };
432
432
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListRecordingConfigurations";
433
433
  body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
434
- return [2 /*return*/, new __HttpRequest({
434
+ return [2, new __HttpRequest({
435
435
  protocol: protocol,
436
436
  hostname: hostname,
437
437
  port: port,
@@ -447,7 +447,7 @@ export var serializeAws_restJson1ListStreamKeysCommand = function (input, contex
447
447
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
448
448
  return __generator(this, function (_c) {
449
449
  switch (_c.label) {
450
- case 0: return [4 /*yield*/, context.endpoint()];
450
+ case 0: return [4, context.endpoint()];
451
451
  case 1:
452
452
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
453
453
  headers = {
@@ -455,7 +455,7 @@ export var serializeAws_restJson1ListStreamKeysCommand = function (input, contex
455
455
  };
456
456
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListStreamKeys";
457
457
  body = JSON.stringify(__assign(__assign(__assign({}, (input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
458
- return [2 /*return*/, new __HttpRequest({
458
+ return [2, new __HttpRequest({
459
459
  protocol: protocol,
460
460
  hostname: hostname,
461
461
  port: port,
@@ -471,7 +471,7 @@ export var serializeAws_restJson1ListStreamsCommand = function (input, context)
471
471
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
472
472
  return __generator(this, function (_c) {
473
473
  switch (_c.label) {
474
- case 0: return [4 /*yield*/, context.endpoint()];
474
+ case 0: return [4, context.endpoint()];
475
475
  case 1:
476
476
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
477
477
  headers = {
@@ -479,7 +479,7 @@ export var serializeAws_restJson1ListStreamsCommand = function (input, context)
479
479
  };
480
480
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListStreams";
481
481
  body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
482
- return [2 /*return*/, new __HttpRequest({
482
+ return [2, new __HttpRequest({
483
483
  protocol: protocol,
484
484
  hostname: hostname,
485
485
  port: port,
@@ -495,7 +495,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
495
495
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
496
496
  return __generator(this, function (_c) {
497
497
  switch (_c.label) {
498
- case 0: return [4 /*yield*/, context.endpoint()];
498
+ case 0: return [4, context.endpoint()];
499
499
  case 1:
500
500
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
501
501
  headers = {
@@ -513,7 +513,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
513
513
  throw new Error("No value provided for input HTTP label: resourceArn.");
514
514
  }
515
515
  body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
516
- return [2 /*return*/, new __HttpRequest({
516
+ return [2, new __HttpRequest({
517
517
  protocol: protocol,
518
518
  hostname: hostname,
519
519
  port: port,
@@ -529,7 +529,7 @@ export var serializeAws_restJson1PutMetadataCommand = function (input, context)
529
529
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
530
530
  return __generator(this, function (_c) {
531
531
  switch (_c.label) {
532
- case 0: return [4 /*yield*/, context.endpoint()];
532
+ case 0: return [4, context.endpoint()];
533
533
  case 1:
534
534
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
535
535
  headers = {
@@ -537,7 +537,7 @@ export var serializeAws_restJson1PutMetadataCommand = function (input, context)
537
537
  };
538
538
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutMetadata";
539
539
  body = JSON.stringify(__assign(__assign({}, (input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn })), (input.metadata !== undefined && input.metadata !== null && { metadata: input.metadata })));
540
- return [2 /*return*/, new __HttpRequest({
540
+ return [2, new __HttpRequest({
541
541
  protocol: protocol,
542
542
  hostname: hostname,
543
543
  port: port,
@@ -553,7 +553,7 @@ export var serializeAws_restJson1StopStreamCommand = function (input, context) {
553
553
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
554
554
  return __generator(this, function (_c) {
555
555
  switch (_c.label) {
556
- case 0: return [4 /*yield*/, context.endpoint()];
556
+ case 0: return [4, context.endpoint()];
557
557
  case 1:
558
558
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
559
559
  headers = {
@@ -561,7 +561,7 @@ export var serializeAws_restJson1StopStreamCommand = function (input, context) {
561
561
  };
562
562
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StopStream";
563
563
  body = JSON.stringify(__assign({}, (input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn })));
564
- return [2 /*return*/, new __HttpRequest({
564
+ return [2, new __HttpRequest({
565
565
  protocol: protocol,
566
566
  hostname: hostname,
567
567
  port: port,
@@ -577,7 +577,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
577
577
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
578
578
  return __generator(this, function (_c) {
579
579
  switch (_c.label) {
580
- case 0: return [4 /*yield*/, context.endpoint()];
580
+ case 0: return [4, context.endpoint()];
581
581
  case 1:
582
582
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
583
583
  headers = {
@@ -595,7 +595,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
595
595
  throw new Error("No value provided for input HTTP label: resourceArn.");
596
596
  }
597
597
  body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
598
- return [2 /*return*/, new __HttpRequest({
598
+ return [2, new __HttpRequest({
599
599
  protocol: protocol,
600
600
  hostname: hostname,
601
601
  port: port,
@@ -611,7 +611,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
611
611
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
612
612
  return __generator(this, function (_c) {
613
613
  switch (_c.label) {
614
- case 0: return [4 /*yield*/, context.endpoint()];
614
+ case 0: return [4, context.endpoint()];
615
615
  case 1:
616
616
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
617
617
  headers = {};
@@ -627,7 +627,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
627
627
  throw new Error("No value provided for input HTTP label: resourceArn.");
628
628
  }
629
629
  query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
630
- return [2 /*return*/, new __HttpRequest({
630
+ return [2, new __HttpRequest({
631
631
  protocol: protocol,
632
632
  hostname: hostname,
633
633
  port: port,
@@ -644,7 +644,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
644
644
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
645
645
  return __generator(this, function (_c) {
646
646
  switch (_c.label) {
647
- case 0: return [4 /*yield*/, context.endpoint()];
647
+ case 0: return [4, context.endpoint()];
648
648
  case 1:
649
649
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
650
650
  headers = {
@@ -653,7 +653,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
653
653
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateChannel";
654
654
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })), (input.authorized !== undefined && input.authorized !== null && { authorized: input.authorized })), (input.latencyMode !== undefined && input.latencyMode !== null && { latencyMode: input.latencyMode })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.recordingConfigurationArn !== undefined &&
655
655
  input.recordingConfigurationArn !== null && { recordingConfigurationArn: input.recordingConfigurationArn })), (input.type !== undefined && input.type !== null && { type: input.type })));
656
- return [2 /*return*/, new __HttpRequest({
656
+ return [2, new __HttpRequest({
657
657
  protocol: protocol,
658
658
  hostname: hostname,
659
659
  port: port,
@@ -671,7 +671,7 @@ export var deserializeAws_restJson1BatchGetChannelCommand = function (output, co
671
671
  switch (_c.label) {
672
672
  case 0:
673
673
  if (output.statusCode !== 200 && output.statusCode >= 300) {
674
- return [2 /*return*/, deserializeAws_restJson1BatchGetChannelCommandError(output, context)];
674
+ return [2, deserializeAws_restJson1BatchGetChannelCommandError(output, context)];
675
675
  }
676
676
  contents = {
677
677
  $metadata: deserializeMetadata(output),
@@ -680,7 +680,7 @@ export var deserializeAws_restJson1BatchGetChannelCommand = function (output, co
680
680
  };
681
681
  _a = __expectNonNull;
682
682
  _b = __expectObject;
683
- return [4 /*yield*/, parseBody(output.body, context)];
683
+ return [4, parseBody(output.body, context)];
684
684
  case 1:
685
685
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
686
686
  if (data.channels !== undefined && data.channels !== null) {
@@ -689,7 +689,7 @@ export var deserializeAws_restJson1BatchGetChannelCommand = function (output, co
689
689
  if (data.errors !== undefined && data.errors !== null) {
690
690
  contents.errors = deserializeAws_restJson1BatchErrors(data.errors, context);
691
691
  }
692
- return [2 /*return*/, Promise.resolve(contents)];
692
+ return [2, Promise.resolve(contents)];
693
693
  }
694
694
  });
695
695
  }); };
@@ -701,7 +701,7 @@ var deserializeAws_restJson1BatchGetChannelCommandError = function (output, cont
701
701
  case 0:
702
702
  _a = [__assign({}, output)];
703
703
  _b = {};
704
- return [4 /*yield*/, parseBody(output.body, context)];
704
+ return [4, parseBody(output.body, context)];
705
705
  case 1:
706
706
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
707
707
  errorCode = "UnknownError";
@@ -715,7 +715,7 @@ var deserializeAws_restJson1BatchGetChannelCommandError = function (output, cont
715
715
  message = response.message || response.Message || errorCode;
716
716
  response.message = message;
717
717
  delete response.Message;
718
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
718
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
719
719
  }
720
720
  });
721
721
  }); };
@@ -725,7 +725,7 @@ export var deserializeAws_restJson1BatchGetStreamKeyCommand = function (output,
725
725
  switch (_c.label) {
726
726
  case 0:
727
727
  if (output.statusCode !== 200 && output.statusCode >= 300) {
728
- return [2 /*return*/, deserializeAws_restJson1BatchGetStreamKeyCommandError(output, context)];
728
+ return [2, deserializeAws_restJson1BatchGetStreamKeyCommandError(output, context)];
729
729
  }
730
730
  contents = {
731
731
  $metadata: deserializeMetadata(output),
@@ -734,7 +734,7 @@ export var deserializeAws_restJson1BatchGetStreamKeyCommand = function (output,
734
734
  };
735
735
  _a = __expectNonNull;
736
736
  _b = __expectObject;
737
- return [4 /*yield*/, parseBody(output.body, context)];
737
+ return [4, parseBody(output.body, context)];
738
738
  case 1:
739
739
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
740
740
  if (data.errors !== undefined && data.errors !== null) {
@@ -743,7 +743,7 @@ export var deserializeAws_restJson1BatchGetStreamKeyCommand = function (output,
743
743
  if (data.streamKeys !== undefined && data.streamKeys !== null) {
744
744
  contents.streamKeys = deserializeAws_restJson1StreamKeys(data.streamKeys, context);
745
745
  }
746
- return [2 /*return*/, Promise.resolve(contents)];
746
+ return [2, Promise.resolve(contents)];
747
747
  }
748
748
  });
749
749
  }); };
@@ -755,7 +755,7 @@ var deserializeAws_restJson1BatchGetStreamKeyCommandError = function (output, co
755
755
  case 0:
756
756
  _a = [__assign({}, output)];
757
757
  _b = {};
758
- return [4 /*yield*/, parseBody(output.body, context)];
758
+ return [4, parseBody(output.body, context)];
759
759
  case 1:
760
760
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
761
761
  errorCode = "UnknownError";
@@ -769,7 +769,7 @@ var deserializeAws_restJson1BatchGetStreamKeyCommandError = function (output, co
769
769
  message = response.message || response.Message || errorCode;
770
770
  response.message = message;
771
771
  delete response.Message;
772
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
772
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
773
773
  }
774
774
  });
775
775
  }); };
@@ -779,7 +779,7 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
779
779
  switch (_c.label) {
780
780
  case 0:
781
781
  if (output.statusCode !== 200 && output.statusCode >= 300) {
782
- return [2 /*return*/, deserializeAws_restJson1CreateChannelCommandError(output, context)];
782
+ return [2, deserializeAws_restJson1CreateChannelCommandError(output, context)];
783
783
  }
784
784
  contents = {
785
785
  $metadata: deserializeMetadata(output),
@@ -788,7 +788,7 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
788
788
  };
789
789
  _a = __expectNonNull;
790
790
  _b = __expectObject;
791
- return [4 /*yield*/, parseBody(output.body, context)];
791
+ return [4, parseBody(output.body, context)];
792
792
  case 1:
793
793
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
794
794
  if (data.channel !== undefined && data.channel !== null) {
@@ -797,7 +797,7 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
797
797
  if (data.streamKey !== undefined && data.streamKey !== null) {
798
798
  contents.streamKey = deserializeAws_restJson1StreamKey(data.streamKey, context);
799
799
  }
800
- return [2 /*return*/, Promise.resolve(contents)];
800
+ return [2, Promise.resolve(contents)];
801
801
  }
802
802
  });
803
803
  }); };
@@ -809,55 +809,55 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
809
809
  case 0:
810
810
  _a = [__assign({}, output)];
811
811
  _h = {};
812
- return [4 /*yield*/, parseBody(output.body, context)];
812
+ return [4, parseBody(output.body, context)];
813
813
  case 1:
814
814
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
815
815
  errorCode = "UnknownError";
816
816
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
817
817
  _b = errorCode;
818
818
  switch (_b) {
819
- case "AccessDeniedException": return [3 /*break*/, 2];
820
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
821
- case "PendingVerification": return [3 /*break*/, 4];
822
- case "com.amazonaws.ivs#PendingVerification": return [3 /*break*/, 4];
823
- case "ResourceNotFoundException": return [3 /*break*/, 6];
824
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 6];
825
- case "ServiceQuotaExceededException": return [3 /*break*/, 8];
826
- case "com.amazonaws.ivs#ServiceQuotaExceededException": return [3 /*break*/, 8];
827
- case "ValidationException": return [3 /*break*/, 10];
828
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 10];
829
- }
830
- return [3 /*break*/, 12];
819
+ case "AccessDeniedException": return [3, 2];
820
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
821
+ case "PendingVerification": return [3, 4];
822
+ case "com.amazonaws.ivs#PendingVerification": return [3, 4];
823
+ case "ResourceNotFoundException": return [3, 6];
824
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 6];
825
+ case "ServiceQuotaExceededException": return [3, 8];
826
+ case "com.amazonaws.ivs#ServiceQuotaExceededException": return [3, 8];
827
+ case "ValidationException": return [3, 10];
828
+ case "com.amazonaws.ivs#ValidationException": return [3, 10];
829
+ }
830
+ return [3, 12];
831
831
  case 2:
832
832
  _c = [{}];
833
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
833
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
834
834
  case 3:
835
835
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
836
- return [3 /*break*/, 13];
836
+ return [3, 13];
837
837
  case 4:
838
838
  _d = [{}];
839
- return [4 /*yield*/, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
839
+ return [4, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
840
840
  case 5:
841
841
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
842
- return [3 /*break*/, 13];
842
+ return [3, 13];
843
843
  case 6:
844
844
  _e = [{}];
845
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
845
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
846
846
  case 7:
847
847
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
848
- return [3 /*break*/, 13];
848
+ return [3, 13];
849
849
  case 8:
850
850
  _f = [{}];
851
- return [4 /*yield*/, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
851
+ return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
852
852
  case 9:
853
853
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
854
- return [3 /*break*/, 13];
854
+ return [3, 13];
855
855
  case 10:
856
856
  _g = [{}];
857
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
857
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
858
858
  case 11:
859
859
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
860
- return [3 /*break*/, 13];
860
+ return [3, 13];
861
861
  case 12:
862
862
  parsedBody = parsedOutput.body;
863
863
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -867,7 +867,7 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
867
867
  message = response.message || response.Message || errorCode;
868
868
  response.message = message;
869
869
  delete response.Message;
870
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
870
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
871
871
  }
872
872
  });
873
873
  }); };
@@ -877,7 +877,7 @@ export var deserializeAws_restJson1CreateRecordingConfigurationCommand = functio
877
877
  switch (_c.label) {
878
878
  case 0:
879
879
  if (output.statusCode !== 200 && output.statusCode >= 300) {
880
- return [2 /*return*/, deserializeAws_restJson1CreateRecordingConfigurationCommandError(output, context)];
880
+ return [2, deserializeAws_restJson1CreateRecordingConfigurationCommandError(output, context)];
881
881
  }
882
882
  contents = {
883
883
  $metadata: deserializeMetadata(output),
@@ -885,13 +885,13 @@ export var deserializeAws_restJson1CreateRecordingConfigurationCommand = functio
885
885
  };
886
886
  _a = __expectNonNull;
887
887
  _b = __expectObject;
888
- return [4 /*yield*/, parseBody(output.body, context)];
888
+ return [4, parseBody(output.body, context)];
889
889
  case 1:
890
890
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
891
891
  if (data.recordingConfiguration !== undefined && data.recordingConfiguration !== null) {
892
892
  contents.recordingConfiguration = deserializeAws_restJson1RecordingConfiguration(data.recordingConfiguration, context);
893
893
  }
894
- return [2 /*return*/, Promise.resolve(contents)];
894
+ return [2, Promise.resolve(contents)];
895
895
  }
896
896
  });
897
897
  }); };
@@ -903,63 +903,63 @@ var deserializeAws_restJson1CreateRecordingConfigurationCommandError = function
903
903
  case 0:
904
904
  _a = [__assign({}, output)];
905
905
  _j = {};
906
- return [4 /*yield*/, parseBody(output.body, context)];
906
+ return [4, parseBody(output.body, context)];
907
907
  case 1:
908
908
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
909
909
  errorCode = "UnknownError";
910
910
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
911
911
  _b = errorCode;
912
912
  switch (_b) {
913
- case "AccessDeniedException": return [3 /*break*/, 2];
914
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
915
- case "ConflictException": return [3 /*break*/, 4];
916
- case "com.amazonaws.ivs#ConflictException": return [3 /*break*/, 4];
917
- case "InternalServerException": return [3 /*break*/, 6];
918
- case "com.amazonaws.ivs#InternalServerException": return [3 /*break*/, 6];
919
- case "PendingVerification": return [3 /*break*/, 8];
920
- case "com.amazonaws.ivs#PendingVerification": return [3 /*break*/, 8];
921
- case "ServiceQuotaExceededException": return [3 /*break*/, 10];
922
- case "com.amazonaws.ivs#ServiceQuotaExceededException": return [3 /*break*/, 10];
923
- case "ValidationException": return [3 /*break*/, 12];
924
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 12];
925
- }
926
- return [3 /*break*/, 14];
913
+ case "AccessDeniedException": return [3, 2];
914
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
915
+ case "ConflictException": return [3, 4];
916
+ case "com.amazonaws.ivs#ConflictException": return [3, 4];
917
+ case "InternalServerException": return [3, 6];
918
+ case "com.amazonaws.ivs#InternalServerException": return [3, 6];
919
+ case "PendingVerification": return [3, 8];
920
+ case "com.amazonaws.ivs#PendingVerification": return [3, 8];
921
+ case "ServiceQuotaExceededException": return [3, 10];
922
+ case "com.amazonaws.ivs#ServiceQuotaExceededException": return [3, 10];
923
+ case "ValidationException": return [3, 12];
924
+ case "com.amazonaws.ivs#ValidationException": return [3, 12];
925
+ }
926
+ return [3, 14];
927
927
  case 2:
928
928
  _c = [{}];
929
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
929
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
930
930
  case 3:
931
931
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
932
- return [3 /*break*/, 15];
932
+ return [3, 15];
933
933
  case 4:
934
934
  _d = [{}];
935
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
935
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
936
936
  case 5:
937
937
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
938
- return [3 /*break*/, 15];
938
+ return [3, 15];
939
939
  case 6:
940
940
  _e = [{}];
941
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
941
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
942
942
  case 7:
943
943
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
944
- return [3 /*break*/, 15];
944
+ return [3, 15];
945
945
  case 8:
946
946
  _f = [{}];
947
- return [4 /*yield*/, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
947
+ return [4, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
948
948
  case 9:
949
949
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
950
- return [3 /*break*/, 15];
950
+ return [3, 15];
951
951
  case 10:
952
952
  _g = [{}];
953
- return [4 /*yield*/, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
953
+ return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
954
954
  case 11:
955
955
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
956
- return [3 /*break*/, 15];
956
+ return [3, 15];
957
957
  case 12:
958
958
  _h = [{}];
959
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
959
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
960
960
  case 13:
961
961
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
962
- return [3 /*break*/, 15];
962
+ return [3, 15];
963
963
  case 14:
964
964
  parsedBody = parsedOutput.body;
965
965
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -969,7 +969,7 @@ var deserializeAws_restJson1CreateRecordingConfigurationCommandError = function
969
969
  message = response.message || response.Message || errorCode;
970
970
  response.message = message;
971
971
  delete response.Message;
972
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
972
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
973
973
  }
974
974
  });
975
975
  }); };
@@ -979,7 +979,7 @@ export var deserializeAws_restJson1CreateStreamKeyCommand = function (output, co
979
979
  switch (_c.label) {
980
980
  case 0:
981
981
  if (output.statusCode !== 200 && output.statusCode >= 300) {
982
- return [2 /*return*/, deserializeAws_restJson1CreateStreamKeyCommandError(output, context)];
982
+ return [2, deserializeAws_restJson1CreateStreamKeyCommandError(output, context)];
983
983
  }
984
984
  contents = {
985
985
  $metadata: deserializeMetadata(output),
@@ -987,13 +987,13 @@ export var deserializeAws_restJson1CreateStreamKeyCommand = function (output, co
987
987
  };
988
988
  _a = __expectNonNull;
989
989
  _b = __expectObject;
990
- return [4 /*yield*/, parseBody(output.body, context)];
990
+ return [4, parseBody(output.body, context)];
991
991
  case 1:
992
992
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
993
993
  if (data.streamKey !== undefined && data.streamKey !== null) {
994
994
  contents.streamKey = deserializeAws_restJson1StreamKey(data.streamKey, context);
995
995
  }
996
- return [2 /*return*/, Promise.resolve(contents)];
996
+ return [2, Promise.resolve(contents)];
997
997
  }
998
998
  });
999
999
  }); };
@@ -1005,55 +1005,55 @@ var deserializeAws_restJson1CreateStreamKeyCommandError = function (output, cont
1005
1005
  case 0:
1006
1006
  _a = [__assign({}, output)];
1007
1007
  _h = {};
1008
- return [4 /*yield*/, parseBody(output.body, context)];
1008
+ return [4, parseBody(output.body, context)];
1009
1009
  case 1:
1010
1010
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1011
1011
  errorCode = "UnknownError";
1012
1012
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1013
1013
  _b = errorCode;
1014
1014
  switch (_b) {
1015
- case "AccessDeniedException": return [3 /*break*/, 2];
1016
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
1017
- case "PendingVerification": return [3 /*break*/, 4];
1018
- case "com.amazonaws.ivs#PendingVerification": return [3 /*break*/, 4];
1019
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1020
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 6];
1021
- case "ServiceQuotaExceededException": return [3 /*break*/, 8];
1022
- case "com.amazonaws.ivs#ServiceQuotaExceededException": return [3 /*break*/, 8];
1023
- case "ValidationException": return [3 /*break*/, 10];
1024
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 10];
1025
- }
1026
- return [3 /*break*/, 12];
1015
+ case "AccessDeniedException": return [3, 2];
1016
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
1017
+ case "PendingVerification": return [3, 4];
1018
+ case "com.amazonaws.ivs#PendingVerification": return [3, 4];
1019
+ case "ResourceNotFoundException": return [3, 6];
1020
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 6];
1021
+ case "ServiceQuotaExceededException": return [3, 8];
1022
+ case "com.amazonaws.ivs#ServiceQuotaExceededException": return [3, 8];
1023
+ case "ValidationException": return [3, 10];
1024
+ case "com.amazonaws.ivs#ValidationException": return [3, 10];
1025
+ }
1026
+ return [3, 12];
1027
1027
  case 2:
1028
1028
  _c = [{}];
1029
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1029
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1030
1030
  case 3:
1031
1031
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1032
- return [3 /*break*/, 13];
1032
+ return [3, 13];
1033
1033
  case 4:
1034
1034
  _d = [{}];
1035
- return [4 /*yield*/, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
1035
+ return [4, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
1036
1036
  case 5:
1037
1037
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1038
- return [3 /*break*/, 13];
1038
+ return [3, 13];
1039
1039
  case 6:
1040
1040
  _e = [{}];
1041
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1041
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1042
1042
  case 7:
1043
1043
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1044
- return [3 /*break*/, 13];
1044
+ return [3, 13];
1045
1045
  case 8:
1046
1046
  _f = [{}];
1047
- return [4 /*yield*/, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
1047
+ return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
1048
1048
  case 9:
1049
1049
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1050
- return [3 /*break*/, 13];
1050
+ return [3, 13];
1051
1051
  case 10:
1052
1052
  _g = [{}];
1053
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1053
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1054
1054
  case 11:
1055
1055
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1056
- return [3 /*break*/, 13];
1056
+ return [3, 13];
1057
1057
  case 12:
1058
1058
  parsedBody = parsedOutput.body;
1059
1059
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1063,7 +1063,7 @@ var deserializeAws_restJson1CreateStreamKeyCommandError = function (output, cont
1063
1063
  message = response.message || response.Message || errorCode;
1064
1064
  response.message = message;
1065
1065
  delete response.Message;
1066
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1066
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1067
1067
  }
1068
1068
  });
1069
1069
  }); };
@@ -1073,15 +1073,15 @@ export var deserializeAws_restJson1DeleteChannelCommand = function (output, cont
1073
1073
  switch (_a.label) {
1074
1074
  case 0:
1075
1075
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1076
- return [2 /*return*/, deserializeAws_restJson1DeleteChannelCommandError(output, context)];
1076
+ return [2, deserializeAws_restJson1DeleteChannelCommandError(output, context)];
1077
1077
  }
1078
1078
  contents = {
1079
1079
  $metadata: deserializeMetadata(output),
1080
1080
  };
1081
- return [4 /*yield*/, collectBody(output.body, context)];
1081
+ return [4, collectBody(output.body, context)];
1082
1082
  case 1:
1083
1083
  _a.sent();
1084
- return [2 /*return*/, Promise.resolve(contents)];
1084
+ return [2, Promise.resolve(contents)];
1085
1085
  }
1086
1086
  });
1087
1087
  }); };
@@ -1093,55 +1093,55 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
1093
1093
  case 0:
1094
1094
  _a = [__assign({}, output)];
1095
1095
  _h = {};
1096
- return [4 /*yield*/, parseBody(output.body, context)];
1096
+ return [4, parseBody(output.body, context)];
1097
1097
  case 1:
1098
1098
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1099
1099
  errorCode = "UnknownError";
1100
1100
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1101
1101
  _b = errorCode;
1102
1102
  switch (_b) {
1103
- case "AccessDeniedException": return [3 /*break*/, 2];
1104
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
1105
- case "ConflictException": return [3 /*break*/, 4];
1106
- case "com.amazonaws.ivs#ConflictException": return [3 /*break*/, 4];
1107
- case "PendingVerification": return [3 /*break*/, 6];
1108
- case "com.amazonaws.ivs#PendingVerification": return [3 /*break*/, 6];
1109
- case "ResourceNotFoundException": return [3 /*break*/, 8];
1110
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 8];
1111
- case "ValidationException": return [3 /*break*/, 10];
1112
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 10];
1113
- }
1114
- return [3 /*break*/, 12];
1103
+ case "AccessDeniedException": return [3, 2];
1104
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
1105
+ case "ConflictException": return [3, 4];
1106
+ case "com.amazonaws.ivs#ConflictException": return [3, 4];
1107
+ case "PendingVerification": return [3, 6];
1108
+ case "com.amazonaws.ivs#PendingVerification": return [3, 6];
1109
+ case "ResourceNotFoundException": return [3, 8];
1110
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 8];
1111
+ case "ValidationException": return [3, 10];
1112
+ case "com.amazonaws.ivs#ValidationException": return [3, 10];
1113
+ }
1114
+ return [3, 12];
1115
1115
  case 2:
1116
1116
  _c = [{}];
1117
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1117
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1118
1118
  case 3:
1119
1119
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1120
- return [3 /*break*/, 13];
1120
+ return [3, 13];
1121
1121
  case 4:
1122
1122
  _d = [{}];
1123
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1123
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1124
1124
  case 5:
1125
1125
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1126
- return [3 /*break*/, 13];
1126
+ return [3, 13];
1127
1127
  case 6:
1128
1128
  _e = [{}];
1129
- return [4 /*yield*/, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
1129
+ return [4, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
1130
1130
  case 7:
1131
1131
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1132
- return [3 /*break*/, 13];
1132
+ return [3, 13];
1133
1133
  case 8:
1134
1134
  _f = [{}];
1135
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1135
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1136
1136
  case 9:
1137
1137
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1138
- return [3 /*break*/, 13];
1138
+ return [3, 13];
1139
1139
  case 10:
1140
1140
  _g = [{}];
1141
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1141
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1142
1142
  case 11:
1143
1143
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1144
- return [3 /*break*/, 13];
1144
+ return [3, 13];
1145
1145
  case 12:
1146
1146
  parsedBody = parsedOutput.body;
1147
1147
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1151,7 +1151,7 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
1151
1151
  message = response.message || response.Message || errorCode;
1152
1152
  response.message = message;
1153
1153
  delete response.Message;
1154
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1154
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1155
1155
  }
1156
1156
  });
1157
1157
  }); };
@@ -1161,15 +1161,15 @@ export var deserializeAws_restJson1DeletePlaybackKeyPairCommand = function (outp
1161
1161
  switch (_a.label) {
1162
1162
  case 0:
1163
1163
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1164
- return [2 /*return*/, deserializeAws_restJson1DeletePlaybackKeyPairCommandError(output, context)];
1164
+ return [2, deserializeAws_restJson1DeletePlaybackKeyPairCommandError(output, context)];
1165
1165
  }
1166
1166
  contents = {
1167
1167
  $metadata: deserializeMetadata(output),
1168
1168
  };
1169
- return [4 /*yield*/, collectBody(output.body, context)];
1169
+ return [4, collectBody(output.body, context)];
1170
1170
  case 1:
1171
1171
  _a.sent();
1172
- return [2 /*return*/, Promise.resolve(contents)];
1172
+ return [2, Promise.resolve(contents)];
1173
1173
  }
1174
1174
  });
1175
1175
  }); };
@@ -1181,47 +1181,47 @@ var deserializeAws_restJson1DeletePlaybackKeyPairCommandError = function (output
1181
1181
  case 0:
1182
1182
  _a = [__assign({}, output)];
1183
1183
  _g = {};
1184
- return [4 /*yield*/, parseBody(output.body, context)];
1184
+ return [4, parseBody(output.body, context)];
1185
1185
  case 1:
1186
1186
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1187
1187
  errorCode = "UnknownError";
1188
1188
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1189
1189
  _b = errorCode;
1190
1190
  switch (_b) {
1191
- case "AccessDeniedException": return [3 /*break*/, 2];
1192
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
1193
- case "PendingVerification": return [3 /*break*/, 4];
1194
- case "com.amazonaws.ivs#PendingVerification": return [3 /*break*/, 4];
1195
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1196
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 6];
1197
- case "ValidationException": return [3 /*break*/, 8];
1198
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 8];
1199
- }
1200
- return [3 /*break*/, 10];
1191
+ case "AccessDeniedException": return [3, 2];
1192
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
1193
+ case "PendingVerification": return [3, 4];
1194
+ case "com.amazonaws.ivs#PendingVerification": return [3, 4];
1195
+ case "ResourceNotFoundException": return [3, 6];
1196
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 6];
1197
+ case "ValidationException": return [3, 8];
1198
+ case "com.amazonaws.ivs#ValidationException": return [3, 8];
1199
+ }
1200
+ return [3, 10];
1201
1201
  case 2:
1202
1202
  _c = [{}];
1203
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1203
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1204
1204
  case 3:
1205
1205
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1206
- return [3 /*break*/, 11];
1206
+ return [3, 11];
1207
1207
  case 4:
1208
1208
  _d = [{}];
1209
- return [4 /*yield*/, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
1209
+ return [4, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
1210
1210
  case 5:
1211
1211
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1212
- return [3 /*break*/, 11];
1212
+ return [3, 11];
1213
1213
  case 6:
1214
1214
  _e = [{}];
1215
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1215
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1216
1216
  case 7:
1217
1217
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1218
- return [3 /*break*/, 11];
1218
+ return [3, 11];
1219
1219
  case 8:
1220
1220
  _f = [{}];
1221
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1221
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1222
1222
  case 9:
1223
1223
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1224
- return [3 /*break*/, 11];
1224
+ return [3, 11];
1225
1225
  case 10:
1226
1226
  parsedBody = parsedOutput.body;
1227
1227
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1231,7 +1231,7 @@ var deserializeAws_restJson1DeletePlaybackKeyPairCommandError = function (output
1231
1231
  message = response.message || response.Message || errorCode;
1232
1232
  response.message = message;
1233
1233
  delete response.Message;
1234
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1234
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1235
1235
  }
1236
1236
  });
1237
1237
  }); };
@@ -1241,15 +1241,15 @@ export var deserializeAws_restJson1DeleteRecordingConfigurationCommand = functio
1241
1241
  switch (_a.label) {
1242
1242
  case 0:
1243
1243
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1244
- return [2 /*return*/, deserializeAws_restJson1DeleteRecordingConfigurationCommandError(output, context)];
1244
+ return [2, deserializeAws_restJson1DeleteRecordingConfigurationCommandError(output, context)];
1245
1245
  }
1246
1246
  contents = {
1247
1247
  $metadata: deserializeMetadata(output),
1248
1248
  };
1249
- return [4 /*yield*/, collectBody(output.body, context)];
1249
+ return [4, collectBody(output.body, context)];
1250
1250
  case 1:
1251
1251
  _a.sent();
1252
- return [2 /*return*/, Promise.resolve(contents)];
1252
+ return [2, Promise.resolve(contents)];
1253
1253
  }
1254
1254
  });
1255
1255
  }); };
@@ -1261,55 +1261,55 @@ var deserializeAws_restJson1DeleteRecordingConfigurationCommandError = function
1261
1261
  case 0:
1262
1262
  _a = [__assign({}, output)];
1263
1263
  _h = {};
1264
- return [4 /*yield*/, parseBody(output.body, context)];
1264
+ return [4, parseBody(output.body, context)];
1265
1265
  case 1:
1266
1266
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1267
1267
  errorCode = "UnknownError";
1268
1268
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1269
1269
  _b = errorCode;
1270
1270
  switch (_b) {
1271
- case "AccessDeniedException": return [3 /*break*/, 2];
1272
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
1273
- case "ConflictException": return [3 /*break*/, 4];
1274
- case "com.amazonaws.ivs#ConflictException": return [3 /*break*/, 4];
1275
- case "InternalServerException": return [3 /*break*/, 6];
1276
- case "com.amazonaws.ivs#InternalServerException": return [3 /*break*/, 6];
1277
- case "ResourceNotFoundException": return [3 /*break*/, 8];
1278
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 8];
1279
- case "ValidationException": return [3 /*break*/, 10];
1280
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 10];
1281
- }
1282
- return [3 /*break*/, 12];
1271
+ case "AccessDeniedException": return [3, 2];
1272
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
1273
+ case "ConflictException": return [3, 4];
1274
+ case "com.amazonaws.ivs#ConflictException": return [3, 4];
1275
+ case "InternalServerException": return [3, 6];
1276
+ case "com.amazonaws.ivs#InternalServerException": return [3, 6];
1277
+ case "ResourceNotFoundException": return [3, 8];
1278
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 8];
1279
+ case "ValidationException": return [3, 10];
1280
+ case "com.amazonaws.ivs#ValidationException": return [3, 10];
1281
+ }
1282
+ return [3, 12];
1283
1283
  case 2:
1284
1284
  _c = [{}];
1285
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1285
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1286
1286
  case 3:
1287
1287
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1288
- return [3 /*break*/, 13];
1288
+ return [3, 13];
1289
1289
  case 4:
1290
1290
  _d = [{}];
1291
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1291
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1292
1292
  case 5:
1293
1293
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1294
- return [3 /*break*/, 13];
1294
+ return [3, 13];
1295
1295
  case 6:
1296
1296
  _e = [{}];
1297
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1297
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1298
1298
  case 7:
1299
1299
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1300
- return [3 /*break*/, 13];
1300
+ return [3, 13];
1301
1301
  case 8:
1302
1302
  _f = [{}];
1303
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1303
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1304
1304
  case 9:
1305
1305
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1306
- return [3 /*break*/, 13];
1306
+ return [3, 13];
1307
1307
  case 10:
1308
1308
  _g = [{}];
1309
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1309
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1310
1310
  case 11:
1311
1311
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1312
- return [3 /*break*/, 13];
1312
+ return [3, 13];
1313
1313
  case 12:
1314
1314
  parsedBody = parsedOutput.body;
1315
1315
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1319,7 +1319,7 @@ var deserializeAws_restJson1DeleteRecordingConfigurationCommandError = function
1319
1319
  message = response.message || response.Message || errorCode;
1320
1320
  response.message = message;
1321
1321
  delete response.Message;
1322
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1322
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1323
1323
  }
1324
1324
  });
1325
1325
  }); };
@@ -1329,15 +1329,15 @@ export var deserializeAws_restJson1DeleteStreamKeyCommand = function (output, co
1329
1329
  switch (_a.label) {
1330
1330
  case 0:
1331
1331
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1332
- return [2 /*return*/, deserializeAws_restJson1DeleteStreamKeyCommandError(output, context)];
1332
+ return [2, deserializeAws_restJson1DeleteStreamKeyCommandError(output, context)];
1333
1333
  }
1334
1334
  contents = {
1335
1335
  $metadata: deserializeMetadata(output),
1336
1336
  };
1337
- return [4 /*yield*/, collectBody(output.body, context)];
1337
+ return [4, collectBody(output.body, context)];
1338
1338
  case 1:
1339
1339
  _a.sent();
1340
- return [2 /*return*/, Promise.resolve(contents)];
1340
+ return [2, Promise.resolve(contents)];
1341
1341
  }
1342
1342
  });
1343
1343
  }); };
@@ -1349,47 +1349,47 @@ var deserializeAws_restJson1DeleteStreamKeyCommandError = function (output, cont
1349
1349
  case 0:
1350
1350
  _a = [__assign({}, output)];
1351
1351
  _g = {};
1352
- return [4 /*yield*/, parseBody(output.body, context)];
1352
+ return [4, parseBody(output.body, context)];
1353
1353
  case 1:
1354
1354
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1355
1355
  errorCode = "UnknownError";
1356
1356
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1357
1357
  _b = errorCode;
1358
1358
  switch (_b) {
1359
- case "AccessDeniedException": return [3 /*break*/, 2];
1360
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
1361
- case "PendingVerification": return [3 /*break*/, 4];
1362
- case "com.amazonaws.ivs#PendingVerification": return [3 /*break*/, 4];
1363
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1364
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 6];
1365
- case "ValidationException": return [3 /*break*/, 8];
1366
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 8];
1367
- }
1368
- return [3 /*break*/, 10];
1359
+ case "AccessDeniedException": return [3, 2];
1360
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
1361
+ case "PendingVerification": return [3, 4];
1362
+ case "com.amazonaws.ivs#PendingVerification": return [3, 4];
1363
+ case "ResourceNotFoundException": return [3, 6];
1364
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 6];
1365
+ case "ValidationException": return [3, 8];
1366
+ case "com.amazonaws.ivs#ValidationException": return [3, 8];
1367
+ }
1368
+ return [3, 10];
1369
1369
  case 2:
1370
1370
  _c = [{}];
1371
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1371
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1372
1372
  case 3:
1373
1373
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1374
- return [3 /*break*/, 11];
1374
+ return [3, 11];
1375
1375
  case 4:
1376
1376
  _d = [{}];
1377
- return [4 /*yield*/, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
1377
+ return [4, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
1378
1378
  case 5:
1379
1379
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1380
- return [3 /*break*/, 11];
1380
+ return [3, 11];
1381
1381
  case 6:
1382
1382
  _e = [{}];
1383
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1383
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1384
1384
  case 7:
1385
1385
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1386
- return [3 /*break*/, 11];
1386
+ return [3, 11];
1387
1387
  case 8:
1388
1388
  _f = [{}];
1389
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1389
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1390
1390
  case 9:
1391
1391
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1392
- return [3 /*break*/, 11];
1392
+ return [3, 11];
1393
1393
  case 10:
1394
1394
  parsedBody = parsedOutput.body;
1395
1395
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1399,7 +1399,7 @@ var deserializeAws_restJson1DeleteStreamKeyCommandError = function (output, cont
1399
1399
  message = response.message || response.Message || errorCode;
1400
1400
  response.message = message;
1401
1401
  delete response.Message;
1402
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1402
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1403
1403
  }
1404
1404
  });
1405
1405
  }); };
@@ -1409,7 +1409,7 @@ export var deserializeAws_restJson1GetChannelCommand = function (output, context
1409
1409
  switch (_c.label) {
1410
1410
  case 0:
1411
1411
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1412
- return [2 /*return*/, deserializeAws_restJson1GetChannelCommandError(output, context)];
1412
+ return [2, deserializeAws_restJson1GetChannelCommandError(output, context)];
1413
1413
  }
1414
1414
  contents = {
1415
1415
  $metadata: deserializeMetadata(output),
@@ -1417,13 +1417,13 @@ export var deserializeAws_restJson1GetChannelCommand = function (output, context
1417
1417
  };
1418
1418
  _a = __expectNonNull;
1419
1419
  _b = __expectObject;
1420
- return [4 /*yield*/, parseBody(output.body, context)];
1420
+ return [4, parseBody(output.body, context)];
1421
1421
  case 1:
1422
1422
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1423
1423
  if (data.channel !== undefined && data.channel !== null) {
1424
1424
  contents.channel = deserializeAws_restJson1Channel(data.channel, context);
1425
1425
  }
1426
- return [2 /*return*/, Promise.resolve(contents)];
1426
+ return [2, Promise.resolve(contents)];
1427
1427
  }
1428
1428
  });
1429
1429
  }); };
@@ -1435,39 +1435,39 @@ var deserializeAws_restJson1GetChannelCommandError = function (output, context)
1435
1435
  case 0:
1436
1436
  _a = [__assign({}, output)];
1437
1437
  _f = {};
1438
- return [4 /*yield*/, parseBody(output.body, context)];
1438
+ return [4, parseBody(output.body, context)];
1439
1439
  case 1:
1440
1440
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1441
1441
  errorCode = "UnknownError";
1442
1442
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1443
1443
  _b = errorCode;
1444
1444
  switch (_b) {
1445
- case "AccessDeniedException": return [3 /*break*/, 2];
1446
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
1447
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1448
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 4];
1449
- case "ValidationException": return [3 /*break*/, 6];
1450
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 6];
1451
- }
1452
- return [3 /*break*/, 8];
1445
+ case "AccessDeniedException": return [3, 2];
1446
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
1447
+ case "ResourceNotFoundException": return [3, 4];
1448
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 4];
1449
+ case "ValidationException": return [3, 6];
1450
+ case "com.amazonaws.ivs#ValidationException": return [3, 6];
1451
+ }
1452
+ return [3, 8];
1453
1453
  case 2:
1454
1454
  _c = [{}];
1455
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1455
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1456
1456
  case 3:
1457
1457
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1458
- return [3 /*break*/, 9];
1458
+ return [3, 9];
1459
1459
  case 4:
1460
1460
  _d = [{}];
1461
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1461
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1462
1462
  case 5:
1463
1463
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1464
- return [3 /*break*/, 9];
1464
+ return [3, 9];
1465
1465
  case 6:
1466
1466
  _e = [{}];
1467
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1467
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1468
1468
  case 7:
1469
1469
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1470
- return [3 /*break*/, 9];
1470
+ return [3, 9];
1471
1471
  case 8:
1472
1472
  parsedBody = parsedOutput.body;
1473
1473
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1477,7 +1477,7 @@ var deserializeAws_restJson1GetChannelCommandError = function (output, context)
1477
1477
  message = response.message || response.Message || errorCode;
1478
1478
  response.message = message;
1479
1479
  delete response.Message;
1480
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1480
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1481
1481
  }
1482
1482
  });
1483
1483
  }); };
@@ -1487,7 +1487,7 @@ export var deserializeAws_restJson1GetPlaybackKeyPairCommand = function (output,
1487
1487
  switch (_c.label) {
1488
1488
  case 0:
1489
1489
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1490
- return [2 /*return*/, deserializeAws_restJson1GetPlaybackKeyPairCommandError(output, context)];
1490
+ return [2, deserializeAws_restJson1GetPlaybackKeyPairCommandError(output, context)];
1491
1491
  }
1492
1492
  contents = {
1493
1493
  $metadata: deserializeMetadata(output),
@@ -1495,13 +1495,13 @@ export var deserializeAws_restJson1GetPlaybackKeyPairCommand = function (output,
1495
1495
  };
1496
1496
  _a = __expectNonNull;
1497
1497
  _b = __expectObject;
1498
- return [4 /*yield*/, parseBody(output.body, context)];
1498
+ return [4, parseBody(output.body, context)];
1499
1499
  case 1:
1500
1500
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1501
1501
  if (data.keyPair !== undefined && data.keyPair !== null) {
1502
1502
  contents.keyPair = deserializeAws_restJson1PlaybackKeyPair(data.keyPair, context);
1503
1503
  }
1504
- return [2 /*return*/, Promise.resolve(contents)];
1504
+ return [2, Promise.resolve(contents)];
1505
1505
  }
1506
1506
  });
1507
1507
  }); };
@@ -1513,39 +1513,39 @@ var deserializeAws_restJson1GetPlaybackKeyPairCommandError = function (output, c
1513
1513
  case 0:
1514
1514
  _a = [__assign({}, output)];
1515
1515
  _f = {};
1516
- return [4 /*yield*/, parseBody(output.body, context)];
1516
+ return [4, parseBody(output.body, context)];
1517
1517
  case 1:
1518
1518
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1519
1519
  errorCode = "UnknownError";
1520
1520
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1521
1521
  _b = errorCode;
1522
1522
  switch (_b) {
1523
- case "AccessDeniedException": return [3 /*break*/, 2];
1524
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
1525
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1526
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 4];
1527
- case "ValidationException": return [3 /*break*/, 6];
1528
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 6];
1529
- }
1530
- return [3 /*break*/, 8];
1523
+ case "AccessDeniedException": return [3, 2];
1524
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
1525
+ case "ResourceNotFoundException": return [3, 4];
1526
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 4];
1527
+ case "ValidationException": return [3, 6];
1528
+ case "com.amazonaws.ivs#ValidationException": return [3, 6];
1529
+ }
1530
+ return [3, 8];
1531
1531
  case 2:
1532
1532
  _c = [{}];
1533
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1533
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1534
1534
  case 3:
1535
1535
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1536
- return [3 /*break*/, 9];
1536
+ return [3, 9];
1537
1537
  case 4:
1538
1538
  _d = [{}];
1539
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1539
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1540
1540
  case 5:
1541
1541
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1542
- return [3 /*break*/, 9];
1542
+ return [3, 9];
1543
1543
  case 6:
1544
1544
  _e = [{}];
1545
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1545
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1546
1546
  case 7:
1547
1547
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1548
- return [3 /*break*/, 9];
1548
+ return [3, 9];
1549
1549
  case 8:
1550
1550
  parsedBody = parsedOutput.body;
1551
1551
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1555,7 +1555,7 @@ var deserializeAws_restJson1GetPlaybackKeyPairCommandError = function (output, c
1555
1555
  message = response.message || response.Message || errorCode;
1556
1556
  response.message = message;
1557
1557
  delete response.Message;
1558
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1558
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1559
1559
  }
1560
1560
  });
1561
1561
  }); };
@@ -1565,7 +1565,7 @@ export var deserializeAws_restJson1GetRecordingConfigurationCommand = function (
1565
1565
  switch (_c.label) {
1566
1566
  case 0:
1567
1567
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1568
- return [2 /*return*/, deserializeAws_restJson1GetRecordingConfigurationCommandError(output, context)];
1568
+ return [2, deserializeAws_restJson1GetRecordingConfigurationCommandError(output, context)];
1569
1569
  }
1570
1570
  contents = {
1571
1571
  $metadata: deserializeMetadata(output),
@@ -1573,13 +1573,13 @@ export var deserializeAws_restJson1GetRecordingConfigurationCommand = function (
1573
1573
  };
1574
1574
  _a = __expectNonNull;
1575
1575
  _b = __expectObject;
1576
- return [4 /*yield*/, parseBody(output.body, context)];
1576
+ return [4, parseBody(output.body, context)];
1577
1577
  case 1:
1578
1578
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1579
1579
  if (data.recordingConfiguration !== undefined && data.recordingConfiguration !== null) {
1580
1580
  contents.recordingConfiguration = deserializeAws_restJson1RecordingConfiguration(data.recordingConfiguration, context);
1581
1581
  }
1582
- return [2 /*return*/, Promise.resolve(contents)];
1582
+ return [2, Promise.resolve(contents)];
1583
1583
  }
1584
1584
  });
1585
1585
  }); };
@@ -1591,47 +1591,47 @@ var deserializeAws_restJson1GetRecordingConfigurationCommandError = function (ou
1591
1591
  case 0:
1592
1592
  _a = [__assign({}, output)];
1593
1593
  _g = {};
1594
- return [4 /*yield*/, parseBody(output.body, context)];
1594
+ return [4, parseBody(output.body, context)];
1595
1595
  case 1:
1596
1596
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1597
1597
  errorCode = "UnknownError";
1598
1598
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1599
1599
  _b = errorCode;
1600
1600
  switch (_b) {
1601
- case "AccessDeniedException": return [3 /*break*/, 2];
1602
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
1603
- case "InternalServerException": return [3 /*break*/, 4];
1604
- case "com.amazonaws.ivs#InternalServerException": return [3 /*break*/, 4];
1605
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1606
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 6];
1607
- case "ValidationException": return [3 /*break*/, 8];
1608
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 8];
1609
- }
1610
- return [3 /*break*/, 10];
1601
+ case "AccessDeniedException": return [3, 2];
1602
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
1603
+ case "InternalServerException": return [3, 4];
1604
+ case "com.amazonaws.ivs#InternalServerException": return [3, 4];
1605
+ case "ResourceNotFoundException": return [3, 6];
1606
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 6];
1607
+ case "ValidationException": return [3, 8];
1608
+ case "com.amazonaws.ivs#ValidationException": return [3, 8];
1609
+ }
1610
+ return [3, 10];
1611
1611
  case 2:
1612
1612
  _c = [{}];
1613
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1613
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1614
1614
  case 3:
1615
1615
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1616
- return [3 /*break*/, 11];
1616
+ return [3, 11];
1617
1617
  case 4:
1618
1618
  _d = [{}];
1619
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1619
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
1620
1620
  case 5:
1621
1621
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1622
- return [3 /*break*/, 11];
1622
+ return [3, 11];
1623
1623
  case 6:
1624
1624
  _e = [{}];
1625
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1625
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1626
1626
  case 7:
1627
1627
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1628
- return [3 /*break*/, 11];
1628
+ return [3, 11];
1629
1629
  case 8:
1630
1630
  _f = [{}];
1631
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1631
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1632
1632
  case 9:
1633
1633
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1634
- return [3 /*break*/, 11];
1634
+ return [3, 11];
1635
1635
  case 10:
1636
1636
  parsedBody = parsedOutput.body;
1637
1637
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1641,7 +1641,7 @@ var deserializeAws_restJson1GetRecordingConfigurationCommandError = function (ou
1641
1641
  message = response.message || response.Message || errorCode;
1642
1642
  response.message = message;
1643
1643
  delete response.Message;
1644
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1644
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1645
1645
  }
1646
1646
  });
1647
1647
  }); };
@@ -1651,7 +1651,7 @@ export var deserializeAws_restJson1GetStreamCommand = function (output, context)
1651
1651
  switch (_c.label) {
1652
1652
  case 0:
1653
1653
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1654
- return [2 /*return*/, deserializeAws_restJson1GetStreamCommandError(output, context)];
1654
+ return [2, deserializeAws_restJson1GetStreamCommandError(output, context)];
1655
1655
  }
1656
1656
  contents = {
1657
1657
  $metadata: deserializeMetadata(output),
@@ -1659,13 +1659,13 @@ export var deserializeAws_restJson1GetStreamCommand = function (output, context)
1659
1659
  };
1660
1660
  _a = __expectNonNull;
1661
1661
  _b = __expectObject;
1662
- return [4 /*yield*/, parseBody(output.body, context)];
1662
+ return [4, parseBody(output.body, context)];
1663
1663
  case 1:
1664
1664
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1665
1665
  if (data.stream !== undefined && data.stream !== null) {
1666
1666
  contents.stream = deserializeAws_restJson1_Stream(data.stream, context);
1667
1667
  }
1668
- return [2 /*return*/, Promise.resolve(contents)];
1668
+ return [2, Promise.resolve(contents)];
1669
1669
  }
1670
1670
  });
1671
1671
  }); };
@@ -1677,47 +1677,47 @@ var deserializeAws_restJson1GetStreamCommandError = function (output, context) {
1677
1677
  case 0:
1678
1678
  _a = [__assign({}, output)];
1679
1679
  _g = {};
1680
- return [4 /*yield*/, parseBody(output.body, context)];
1680
+ return [4, parseBody(output.body, context)];
1681
1681
  case 1:
1682
1682
  parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
1683
1683
  errorCode = "UnknownError";
1684
1684
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1685
1685
  _b = errorCode;
1686
1686
  switch (_b) {
1687
- case "AccessDeniedException": return [3 /*break*/, 2];
1688
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
1689
- case "ChannelNotBroadcasting": return [3 /*break*/, 4];
1690
- case "com.amazonaws.ivs#ChannelNotBroadcasting": return [3 /*break*/, 4];
1691
- case "ResourceNotFoundException": return [3 /*break*/, 6];
1692
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 6];
1693
- case "ValidationException": return [3 /*break*/, 8];
1694
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 8];
1695
- }
1696
- return [3 /*break*/, 10];
1687
+ case "AccessDeniedException": return [3, 2];
1688
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
1689
+ case "ChannelNotBroadcasting": return [3, 4];
1690
+ case "com.amazonaws.ivs#ChannelNotBroadcasting": return [3, 4];
1691
+ case "ResourceNotFoundException": return [3, 6];
1692
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 6];
1693
+ case "ValidationException": return [3, 8];
1694
+ case "com.amazonaws.ivs#ValidationException": return [3, 8];
1695
+ }
1696
+ return [3, 10];
1697
1697
  case 2:
1698
1698
  _c = [{}];
1699
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1699
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1700
1700
  case 3:
1701
1701
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1702
- return [3 /*break*/, 11];
1702
+ return [3, 11];
1703
1703
  case 4:
1704
1704
  _d = [{}];
1705
- return [4 /*yield*/, deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context)];
1705
+ return [4, deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context)];
1706
1706
  case 5:
1707
1707
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1708
- return [3 /*break*/, 11];
1708
+ return [3, 11];
1709
1709
  case 6:
1710
1710
  _e = [{}];
1711
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1711
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1712
1712
  case 7:
1713
1713
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1714
- return [3 /*break*/, 11];
1714
+ return [3, 11];
1715
1715
  case 8:
1716
1716
  _f = [{}];
1717
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1717
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1718
1718
  case 9:
1719
1719
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1720
- return [3 /*break*/, 11];
1720
+ return [3, 11];
1721
1721
  case 10:
1722
1722
  parsedBody = parsedOutput.body;
1723
1723
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1727,7 +1727,7 @@ var deserializeAws_restJson1GetStreamCommandError = function (output, context) {
1727
1727
  message = response.message || response.Message || errorCode;
1728
1728
  response.message = message;
1729
1729
  delete response.Message;
1730
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1730
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1731
1731
  }
1732
1732
  });
1733
1733
  }); };
@@ -1737,7 +1737,7 @@ export var deserializeAws_restJson1GetStreamKeyCommand = function (output, conte
1737
1737
  switch (_c.label) {
1738
1738
  case 0:
1739
1739
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1740
- return [2 /*return*/, deserializeAws_restJson1GetStreamKeyCommandError(output, context)];
1740
+ return [2, deserializeAws_restJson1GetStreamKeyCommandError(output, context)];
1741
1741
  }
1742
1742
  contents = {
1743
1743
  $metadata: deserializeMetadata(output),
@@ -1745,13 +1745,13 @@ export var deserializeAws_restJson1GetStreamKeyCommand = function (output, conte
1745
1745
  };
1746
1746
  _a = __expectNonNull;
1747
1747
  _b = __expectObject;
1748
- return [4 /*yield*/, parseBody(output.body, context)];
1748
+ return [4, parseBody(output.body, context)];
1749
1749
  case 1:
1750
1750
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1751
1751
  if (data.streamKey !== undefined && data.streamKey !== null) {
1752
1752
  contents.streamKey = deserializeAws_restJson1StreamKey(data.streamKey, context);
1753
1753
  }
1754
- return [2 /*return*/, Promise.resolve(contents)];
1754
+ return [2, Promise.resolve(contents)];
1755
1755
  }
1756
1756
  });
1757
1757
  }); };
@@ -1763,39 +1763,39 @@ var deserializeAws_restJson1GetStreamKeyCommandError = function (output, context
1763
1763
  case 0:
1764
1764
  _a = [__assign({}, output)];
1765
1765
  _f = {};
1766
- return [4 /*yield*/, parseBody(output.body, context)];
1766
+ return [4, parseBody(output.body, context)];
1767
1767
  case 1:
1768
1768
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1769
1769
  errorCode = "UnknownError";
1770
1770
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1771
1771
  _b = errorCode;
1772
1772
  switch (_b) {
1773
- case "AccessDeniedException": return [3 /*break*/, 2];
1774
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
1775
- case "ResourceNotFoundException": return [3 /*break*/, 4];
1776
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 4];
1777
- case "ValidationException": return [3 /*break*/, 6];
1778
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 6];
1779
- }
1780
- return [3 /*break*/, 8];
1773
+ case "AccessDeniedException": return [3, 2];
1774
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
1775
+ case "ResourceNotFoundException": return [3, 4];
1776
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 4];
1777
+ case "ValidationException": return [3, 6];
1778
+ case "com.amazonaws.ivs#ValidationException": return [3, 6];
1779
+ }
1780
+ return [3, 8];
1781
1781
  case 2:
1782
1782
  _c = [{}];
1783
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1783
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1784
1784
  case 3:
1785
1785
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1786
- return [3 /*break*/, 9];
1786
+ return [3, 9];
1787
1787
  case 4:
1788
1788
  _d = [{}];
1789
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1789
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
1790
1790
  case 5:
1791
1791
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1792
- return [3 /*break*/, 9];
1792
+ return [3, 9];
1793
1793
  case 6:
1794
1794
  _e = [{}];
1795
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1795
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1796
1796
  case 7:
1797
1797
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1798
- return [3 /*break*/, 9];
1798
+ return [3, 9];
1799
1799
  case 8:
1800
1800
  parsedBody = parsedOutput.body;
1801
1801
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1805,7 +1805,7 @@ var deserializeAws_restJson1GetStreamKeyCommandError = function (output, context
1805
1805
  message = response.message || response.Message || errorCode;
1806
1806
  response.message = message;
1807
1807
  delete response.Message;
1808
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1808
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1809
1809
  }
1810
1810
  });
1811
1811
  }); };
@@ -1815,7 +1815,7 @@ export var deserializeAws_restJson1ImportPlaybackKeyPairCommand = function (outp
1815
1815
  switch (_c.label) {
1816
1816
  case 0:
1817
1817
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1818
- return [2 /*return*/, deserializeAws_restJson1ImportPlaybackKeyPairCommandError(output, context)];
1818
+ return [2, deserializeAws_restJson1ImportPlaybackKeyPairCommandError(output, context)];
1819
1819
  }
1820
1820
  contents = {
1821
1821
  $metadata: deserializeMetadata(output),
@@ -1823,13 +1823,13 @@ export var deserializeAws_restJson1ImportPlaybackKeyPairCommand = function (outp
1823
1823
  };
1824
1824
  _a = __expectNonNull;
1825
1825
  _b = __expectObject;
1826
- return [4 /*yield*/, parseBody(output.body, context)];
1826
+ return [4, parseBody(output.body, context)];
1827
1827
  case 1:
1828
1828
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1829
1829
  if (data.keyPair !== undefined && data.keyPair !== null) {
1830
1830
  contents.keyPair = deserializeAws_restJson1PlaybackKeyPair(data.keyPair, context);
1831
1831
  }
1832
- return [2 /*return*/, Promise.resolve(contents)];
1832
+ return [2, Promise.resolve(contents)];
1833
1833
  }
1834
1834
  });
1835
1835
  }); };
@@ -1841,55 +1841,55 @@ var deserializeAws_restJson1ImportPlaybackKeyPairCommandError = function (output
1841
1841
  case 0:
1842
1842
  _a = [__assign({}, output)];
1843
1843
  _h = {};
1844
- return [4 /*yield*/, parseBody(output.body, context)];
1844
+ return [4, parseBody(output.body, context)];
1845
1845
  case 1:
1846
1846
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
1847
1847
  errorCode = "UnknownError";
1848
1848
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1849
1849
  _b = errorCode;
1850
1850
  switch (_b) {
1851
- case "AccessDeniedException": return [3 /*break*/, 2];
1852
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
1853
- case "ConflictException": return [3 /*break*/, 4];
1854
- case "com.amazonaws.ivs#ConflictException": return [3 /*break*/, 4];
1855
- case "PendingVerification": return [3 /*break*/, 6];
1856
- case "com.amazonaws.ivs#PendingVerification": return [3 /*break*/, 6];
1857
- case "ServiceQuotaExceededException": return [3 /*break*/, 8];
1858
- case "com.amazonaws.ivs#ServiceQuotaExceededException": return [3 /*break*/, 8];
1859
- case "ValidationException": return [3 /*break*/, 10];
1860
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 10];
1861
- }
1862
- return [3 /*break*/, 12];
1851
+ case "AccessDeniedException": return [3, 2];
1852
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
1853
+ case "ConflictException": return [3, 4];
1854
+ case "com.amazonaws.ivs#ConflictException": return [3, 4];
1855
+ case "PendingVerification": return [3, 6];
1856
+ case "com.amazonaws.ivs#PendingVerification": return [3, 6];
1857
+ case "ServiceQuotaExceededException": return [3, 8];
1858
+ case "com.amazonaws.ivs#ServiceQuotaExceededException": return [3, 8];
1859
+ case "ValidationException": return [3, 10];
1860
+ case "com.amazonaws.ivs#ValidationException": return [3, 10];
1861
+ }
1862
+ return [3, 12];
1863
1863
  case 2:
1864
1864
  _c = [{}];
1865
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1865
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1866
1866
  case 3:
1867
1867
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1868
- return [3 /*break*/, 13];
1868
+ return [3, 13];
1869
1869
  case 4:
1870
1870
  _d = [{}];
1871
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1871
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1872
1872
  case 5:
1873
1873
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1874
- return [3 /*break*/, 13];
1874
+ return [3, 13];
1875
1875
  case 6:
1876
1876
  _e = [{}];
1877
- return [4 /*yield*/, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
1877
+ return [4, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
1878
1878
  case 7:
1879
1879
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1880
- return [3 /*break*/, 13];
1880
+ return [3, 13];
1881
1881
  case 8:
1882
1882
  _f = [{}];
1883
- return [4 /*yield*/, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
1883
+ return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
1884
1884
  case 9:
1885
1885
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1886
- return [3 /*break*/, 13];
1886
+ return [3, 13];
1887
1887
  case 10:
1888
1888
  _g = [{}];
1889
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1889
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1890
1890
  case 11:
1891
1891
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1892
- return [3 /*break*/, 13];
1892
+ return [3, 13];
1893
1893
  case 12:
1894
1894
  parsedBody = parsedOutput.body;
1895
1895
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1899,7 +1899,7 @@ var deserializeAws_restJson1ImportPlaybackKeyPairCommandError = function (output
1899
1899
  message = response.message || response.Message || errorCode;
1900
1900
  response.message = message;
1901
1901
  delete response.Message;
1902
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1902
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1903
1903
  }
1904
1904
  });
1905
1905
  }); };
@@ -1909,7 +1909,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
1909
1909
  switch (_c.label) {
1910
1910
  case 0:
1911
1911
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1912
- return [2 /*return*/, deserializeAws_restJson1ListChannelsCommandError(output, context)];
1912
+ return [2, deserializeAws_restJson1ListChannelsCommandError(output, context)];
1913
1913
  }
1914
1914
  contents = {
1915
1915
  $metadata: deserializeMetadata(output),
@@ -1918,7 +1918,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
1918
1918
  };
1919
1919
  _a = __expectNonNull;
1920
1920
  _b = __expectObject;
1921
- return [4 /*yield*/, parseBody(output.body, context)];
1921
+ return [4, parseBody(output.body, context)];
1922
1922
  case 1:
1923
1923
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1924
1924
  if (data.channels !== undefined && data.channels !== null) {
@@ -1927,7 +1927,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
1927
1927
  if (data.nextToken !== undefined && data.nextToken !== null) {
1928
1928
  contents.nextToken = __expectString(data.nextToken);
1929
1929
  }
1930
- return [2 /*return*/, Promise.resolve(contents)];
1930
+ return [2, Promise.resolve(contents)];
1931
1931
  }
1932
1932
  });
1933
1933
  }); };
@@ -1939,39 +1939,39 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
1939
1939
  case 0:
1940
1940
  _a = [__assign({}, output)];
1941
1941
  _f = {};
1942
- return [4 /*yield*/, parseBody(output.body, context)];
1942
+ return [4, parseBody(output.body, context)];
1943
1943
  case 1:
1944
1944
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
1945
1945
  errorCode = "UnknownError";
1946
1946
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1947
1947
  _b = errorCode;
1948
1948
  switch (_b) {
1949
- case "AccessDeniedException": return [3 /*break*/, 2];
1950
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
1951
- case "ConflictException": return [3 /*break*/, 4];
1952
- case "com.amazonaws.ivs#ConflictException": return [3 /*break*/, 4];
1953
- case "ValidationException": return [3 /*break*/, 6];
1954
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 6];
1955
- }
1956
- return [3 /*break*/, 8];
1949
+ case "AccessDeniedException": return [3, 2];
1950
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
1951
+ case "ConflictException": return [3, 4];
1952
+ case "com.amazonaws.ivs#ConflictException": return [3, 4];
1953
+ case "ValidationException": return [3, 6];
1954
+ case "com.amazonaws.ivs#ValidationException": return [3, 6];
1955
+ }
1956
+ return [3, 8];
1957
1957
  case 2:
1958
1958
  _c = [{}];
1959
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1959
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
1960
1960
  case 3:
1961
1961
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1962
- return [3 /*break*/, 9];
1962
+ return [3, 9];
1963
1963
  case 4:
1964
1964
  _d = [{}];
1965
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1965
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
1966
1966
  case 5:
1967
1967
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1968
- return [3 /*break*/, 9];
1968
+ return [3, 9];
1969
1969
  case 6:
1970
1970
  _e = [{}];
1971
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1971
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
1972
1972
  case 7:
1973
1973
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
1974
- return [3 /*break*/, 9];
1974
+ return [3, 9];
1975
1975
  case 8:
1976
1976
  parsedBody = parsedOutput.body;
1977
1977
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1981,7 +1981,7 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
1981
1981
  message = response.message || response.Message || errorCode;
1982
1982
  response.message = message;
1983
1983
  delete response.Message;
1984
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1984
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1985
1985
  }
1986
1986
  });
1987
1987
  }); };
@@ -1991,7 +1991,7 @@ export var deserializeAws_restJson1ListPlaybackKeyPairsCommand = function (outpu
1991
1991
  switch (_c.label) {
1992
1992
  case 0:
1993
1993
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1994
- return [2 /*return*/, deserializeAws_restJson1ListPlaybackKeyPairsCommandError(output, context)];
1994
+ return [2, deserializeAws_restJson1ListPlaybackKeyPairsCommandError(output, context)];
1995
1995
  }
1996
1996
  contents = {
1997
1997
  $metadata: deserializeMetadata(output),
@@ -2000,7 +2000,7 @@ export var deserializeAws_restJson1ListPlaybackKeyPairsCommand = function (outpu
2000
2000
  };
2001
2001
  _a = __expectNonNull;
2002
2002
  _b = __expectObject;
2003
- return [4 /*yield*/, parseBody(output.body, context)];
2003
+ return [4, parseBody(output.body, context)];
2004
2004
  case 1:
2005
2005
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2006
2006
  if (data.keyPairs !== undefined && data.keyPairs !== null) {
@@ -2009,7 +2009,7 @@ export var deserializeAws_restJson1ListPlaybackKeyPairsCommand = function (outpu
2009
2009
  if (data.nextToken !== undefined && data.nextToken !== null) {
2010
2010
  contents.nextToken = __expectString(data.nextToken);
2011
2011
  }
2012
- return [2 /*return*/, Promise.resolve(contents)];
2012
+ return [2, Promise.resolve(contents)];
2013
2013
  }
2014
2014
  });
2015
2015
  }); };
@@ -2021,31 +2021,31 @@ var deserializeAws_restJson1ListPlaybackKeyPairsCommandError = function (output,
2021
2021
  case 0:
2022
2022
  _a = [__assign({}, output)];
2023
2023
  _e = {};
2024
- return [4 /*yield*/, parseBody(output.body, context)];
2024
+ return [4, parseBody(output.body, context)];
2025
2025
  case 1:
2026
2026
  parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
2027
2027
  errorCode = "UnknownError";
2028
2028
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2029
2029
  _b = errorCode;
2030
2030
  switch (_b) {
2031
- case "AccessDeniedException": return [3 /*break*/, 2];
2032
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
2033
- case "ValidationException": return [3 /*break*/, 4];
2034
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 4];
2031
+ case "AccessDeniedException": return [3, 2];
2032
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
2033
+ case "ValidationException": return [3, 4];
2034
+ case "com.amazonaws.ivs#ValidationException": return [3, 4];
2035
2035
  }
2036
- return [3 /*break*/, 6];
2036
+ return [3, 6];
2037
2037
  case 2:
2038
2038
  _c = [{}];
2039
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2039
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2040
2040
  case 3:
2041
2041
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2042
- return [3 /*break*/, 7];
2042
+ return [3, 7];
2043
2043
  case 4:
2044
2044
  _d = [{}];
2045
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2045
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2046
2046
  case 5:
2047
2047
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2048
- return [3 /*break*/, 7];
2048
+ return [3, 7];
2049
2049
  case 6:
2050
2050
  parsedBody = parsedOutput.body;
2051
2051
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2055,7 +2055,7 @@ var deserializeAws_restJson1ListPlaybackKeyPairsCommandError = function (output,
2055
2055
  message = response.message || response.Message || errorCode;
2056
2056
  response.message = message;
2057
2057
  delete response.Message;
2058
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2058
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2059
2059
  }
2060
2060
  });
2061
2061
  }); };
@@ -2065,7 +2065,7 @@ export var deserializeAws_restJson1ListRecordingConfigurationsCommand = function
2065
2065
  switch (_c.label) {
2066
2066
  case 0:
2067
2067
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2068
- return [2 /*return*/, deserializeAws_restJson1ListRecordingConfigurationsCommandError(output, context)];
2068
+ return [2, deserializeAws_restJson1ListRecordingConfigurationsCommandError(output, context)];
2069
2069
  }
2070
2070
  contents = {
2071
2071
  $metadata: deserializeMetadata(output),
@@ -2074,7 +2074,7 @@ export var deserializeAws_restJson1ListRecordingConfigurationsCommand = function
2074
2074
  };
2075
2075
  _a = __expectNonNull;
2076
2076
  _b = __expectObject;
2077
- return [4 /*yield*/, parseBody(output.body, context)];
2077
+ return [4, parseBody(output.body, context)];
2078
2078
  case 1:
2079
2079
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2080
2080
  if (data.nextToken !== undefined && data.nextToken !== null) {
@@ -2083,7 +2083,7 @@ export var deserializeAws_restJson1ListRecordingConfigurationsCommand = function
2083
2083
  if (data.recordingConfigurations !== undefined && data.recordingConfigurations !== null) {
2084
2084
  contents.recordingConfigurations = deserializeAws_restJson1RecordingConfigurationList(data.recordingConfigurations, context);
2085
2085
  }
2086
- return [2 /*return*/, Promise.resolve(contents)];
2086
+ return [2, Promise.resolve(contents)];
2087
2087
  }
2088
2088
  });
2089
2089
  }); };
@@ -2095,39 +2095,39 @@ var deserializeAws_restJson1ListRecordingConfigurationsCommandError = function (
2095
2095
  case 0:
2096
2096
  _a = [__assign({}, output)];
2097
2097
  _f = {};
2098
- return [4 /*yield*/, parseBody(output.body, context)];
2098
+ return [4, parseBody(output.body, context)];
2099
2099
  case 1:
2100
2100
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2101
2101
  errorCode = "UnknownError";
2102
2102
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2103
2103
  _b = errorCode;
2104
2104
  switch (_b) {
2105
- case "AccessDeniedException": return [3 /*break*/, 2];
2106
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
2107
- case "InternalServerException": return [3 /*break*/, 4];
2108
- case "com.amazonaws.ivs#InternalServerException": return [3 /*break*/, 4];
2109
- case "ValidationException": return [3 /*break*/, 6];
2110
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 6];
2111
- }
2112
- return [3 /*break*/, 8];
2105
+ case "AccessDeniedException": return [3, 2];
2106
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
2107
+ case "InternalServerException": return [3, 4];
2108
+ case "com.amazonaws.ivs#InternalServerException": return [3, 4];
2109
+ case "ValidationException": return [3, 6];
2110
+ case "com.amazonaws.ivs#ValidationException": return [3, 6];
2111
+ }
2112
+ return [3, 8];
2113
2113
  case 2:
2114
2114
  _c = [{}];
2115
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2115
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2116
2116
  case 3:
2117
2117
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2118
- return [3 /*break*/, 9];
2118
+ return [3, 9];
2119
2119
  case 4:
2120
2120
  _d = [{}];
2121
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2121
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2122
2122
  case 5:
2123
2123
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2124
- return [3 /*break*/, 9];
2124
+ return [3, 9];
2125
2125
  case 6:
2126
2126
  _e = [{}];
2127
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2127
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2128
2128
  case 7:
2129
2129
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2130
- return [3 /*break*/, 9];
2130
+ return [3, 9];
2131
2131
  case 8:
2132
2132
  parsedBody = parsedOutput.body;
2133
2133
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2137,7 +2137,7 @@ var deserializeAws_restJson1ListRecordingConfigurationsCommandError = function (
2137
2137
  message = response.message || response.Message || errorCode;
2138
2138
  response.message = message;
2139
2139
  delete response.Message;
2140
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2140
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2141
2141
  }
2142
2142
  });
2143
2143
  }); };
@@ -2147,7 +2147,7 @@ export var deserializeAws_restJson1ListStreamKeysCommand = function (output, con
2147
2147
  switch (_c.label) {
2148
2148
  case 0:
2149
2149
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2150
- return [2 /*return*/, deserializeAws_restJson1ListStreamKeysCommandError(output, context)];
2150
+ return [2, deserializeAws_restJson1ListStreamKeysCommandError(output, context)];
2151
2151
  }
2152
2152
  contents = {
2153
2153
  $metadata: deserializeMetadata(output),
@@ -2156,7 +2156,7 @@ export var deserializeAws_restJson1ListStreamKeysCommand = function (output, con
2156
2156
  };
2157
2157
  _a = __expectNonNull;
2158
2158
  _b = __expectObject;
2159
- return [4 /*yield*/, parseBody(output.body, context)];
2159
+ return [4, parseBody(output.body, context)];
2160
2160
  case 1:
2161
2161
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2162
2162
  if (data.nextToken !== undefined && data.nextToken !== null) {
@@ -2165,7 +2165,7 @@ export var deserializeAws_restJson1ListStreamKeysCommand = function (output, con
2165
2165
  if (data.streamKeys !== undefined && data.streamKeys !== null) {
2166
2166
  contents.streamKeys = deserializeAws_restJson1StreamKeyList(data.streamKeys, context);
2167
2167
  }
2168
- return [2 /*return*/, Promise.resolve(contents)];
2168
+ return [2, Promise.resolve(contents)];
2169
2169
  }
2170
2170
  });
2171
2171
  }); };
@@ -2177,39 +2177,39 @@ var deserializeAws_restJson1ListStreamKeysCommandError = function (output, conte
2177
2177
  case 0:
2178
2178
  _a = [__assign({}, output)];
2179
2179
  _f = {};
2180
- return [4 /*yield*/, parseBody(output.body, context)];
2180
+ return [4, parseBody(output.body, context)];
2181
2181
  case 1:
2182
2182
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2183
2183
  errorCode = "UnknownError";
2184
2184
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2185
2185
  _b = errorCode;
2186
2186
  switch (_b) {
2187
- case "AccessDeniedException": return [3 /*break*/, 2];
2188
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
2189
- case "ResourceNotFoundException": return [3 /*break*/, 4];
2190
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 4];
2191
- case "ValidationException": return [3 /*break*/, 6];
2192
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 6];
2193
- }
2194
- return [3 /*break*/, 8];
2187
+ case "AccessDeniedException": return [3, 2];
2188
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
2189
+ case "ResourceNotFoundException": return [3, 4];
2190
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 4];
2191
+ case "ValidationException": return [3, 6];
2192
+ case "com.amazonaws.ivs#ValidationException": return [3, 6];
2193
+ }
2194
+ return [3, 8];
2195
2195
  case 2:
2196
2196
  _c = [{}];
2197
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2197
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2198
2198
  case 3:
2199
2199
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2200
- return [3 /*break*/, 9];
2200
+ return [3, 9];
2201
2201
  case 4:
2202
2202
  _d = [{}];
2203
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2203
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2204
2204
  case 5:
2205
2205
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2206
- return [3 /*break*/, 9];
2206
+ return [3, 9];
2207
2207
  case 6:
2208
2208
  _e = [{}];
2209
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2209
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2210
2210
  case 7:
2211
2211
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2212
- return [3 /*break*/, 9];
2212
+ return [3, 9];
2213
2213
  case 8:
2214
2214
  parsedBody = parsedOutput.body;
2215
2215
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2219,7 +2219,7 @@ var deserializeAws_restJson1ListStreamKeysCommandError = function (output, conte
2219
2219
  message = response.message || response.Message || errorCode;
2220
2220
  response.message = message;
2221
2221
  delete response.Message;
2222
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2222
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2223
2223
  }
2224
2224
  });
2225
2225
  }); };
@@ -2229,7 +2229,7 @@ export var deserializeAws_restJson1ListStreamsCommand = function (output, contex
2229
2229
  switch (_c.label) {
2230
2230
  case 0:
2231
2231
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2232
- return [2 /*return*/, deserializeAws_restJson1ListStreamsCommandError(output, context)];
2232
+ return [2, deserializeAws_restJson1ListStreamsCommandError(output, context)];
2233
2233
  }
2234
2234
  contents = {
2235
2235
  $metadata: deserializeMetadata(output),
@@ -2238,7 +2238,7 @@ export var deserializeAws_restJson1ListStreamsCommand = function (output, contex
2238
2238
  };
2239
2239
  _a = __expectNonNull;
2240
2240
  _b = __expectObject;
2241
- return [4 /*yield*/, parseBody(output.body, context)];
2241
+ return [4, parseBody(output.body, context)];
2242
2242
  case 1:
2243
2243
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2244
2244
  if (data.nextToken !== undefined && data.nextToken !== null) {
@@ -2247,7 +2247,7 @@ export var deserializeAws_restJson1ListStreamsCommand = function (output, contex
2247
2247
  if (data.streams !== undefined && data.streams !== null) {
2248
2248
  contents.streams = deserializeAws_restJson1StreamList(data.streams, context);
2249
2249
  }
2250
- return [2 /*return*/, Promise.resolve(contents)];
2250
+ return [2, Promise.resolve(contents)];
2251
2251
  }
2252
2252
  });
2253
2253
  }); };
@@ -2259,23 +2259,23 @@ var deserializeAws_restJson1ListStreamsCommandError = function (output, context)
2259
2259
  case 0:
2260
2260
  _a = [__assign({}, output)];
2261
2261
  _d = {};
2262
- return [4 /*yield*/, parseBody(output.body, context)];
2262
+ return [4, parseBody(output.body, context)];
2263
2263
  case 1:
2264
2264
  parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
2265
2265
  errorCode = "UnknownError";
2266
2266
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2267
2267
  _b = errorCode;
2268
2268
  switch (_b) {
2269
- case "AccessDeniedException": return [3 /*break*/, 2];
2270
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
2269
+ case "AccessDeniedException": return [3, 2];
2270
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
2271
2271
  }
2272
- return [3 /*break*/, 4];
2272
+ return [3, 4];
2273
2273
  case 2:
2274
2274
  _c = [{}];
2275
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2275
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2276
2276
  case 3:
2277
2277
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2278
- return [3 /*break*/, 5];
2278
+ return [3, 5];
2279
2279
  case 4:
2280
2280
  parsedBody = parsedOutput.body;
2281
2281
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2285,7 +2285,7 @@ var deserializeAws_restJson1ListStreamsCommandError = function (output, context)
2285
2285
  message = response.message || response.Message || errorCode;
2286
2286
  response.message = message;
2287
2287
  delete response.Message;
2288
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2288
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2289
2289
  }
2290
2290
  });
2291
2291
  }); };
@@ -2295,7 +2295,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2295
2295
  switch (_c.label) {
2296
2296
  case 0:
2297
2297
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2298
- return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
2298
+ return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
2299
2299
  }
2300
2300
  contents = {
2301
2301
  $metadata: deserializeMetadata(output),
@@ -2304,7 +2304,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2304
2304
  };
2305
2305
  _a = __expectNonNull;
2306
2306
  _b = __expectObject;
2307
- return [4 /*yield*/, parseBody(output.body, context)];
2307
+ return [4, parseBody(output.body, context)];
2308
2308
  case 1:
2309
2309
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2310
2310
  if (data.nextToken !== undefined && data.nextToken !== null) {
@@ -2313,7 +2313,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2313
2313
  if (data.tags !== undefined && data.tags !== null) {
2314
2314
  contents.tags = deserializeAws_restJson1Tags(data.tags, context);
2315
2315
  }
2316
- return [2 /*return*/, Promise.resolve(contents)];
2316
+ return [2, Promise.resolve(contents)];
2317
2317
  }
2318
2318
  });
2319
2319
  }); };
@@ -2325,39 +2325,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2325
2325
  case 0:
2326
2326
  _a = [__assign({}, output)];
2327
2327
  _f = {};
2328
- return [4 /*yield*/, parseBody(output.body, context)];
2328
+ return [4, parseBody(output.body, context)];
2329
2329
  case 1:
2330
2330
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2331
2331
  errorCode = "UnknownError";
2332
2332
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2333
2333
  _b = errorCode;
2334
2334
  switch (_b) {
2335
- case "InternalServerException": return [3 /*break*/, 2];
2336
- case "com.amazonaws.ivs#InternalServerException": return [3 /*break*/, 2];
2337
- case "ResourceNotFoundException": return [3 /*break*/, 4];
2338
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 4];
2339
- case "ValidationException": return [3 /*break*/, 6];
2340
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 6];
2341
- }
2342
- return [3 /*break*/, 8];
2335
+ case "InternalServerException": return [3, 2];
2336
+ case "com.amazonaws.ivs#InternalServerException": return [3, 2];
2337
+ case "ResourceNotFoundException": return [3, 4];
2338
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 4];
2339
+ case "ValidationException": return [3, 6];
2340
+ case "com.amazonaws.ivs#ValidationException": return [3, 6];
2341
+ }
2342
+ return [3, 8];
2343
2343
  case 2:
2344
2344
  _c = [{}];
2345
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2345
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2346
2346
  case 3:
2347
2347
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2348
- return [3 /*break*/, 9];
2348
+ return [3, 9];
2349
2349
  case 4:
2350
2350
  _d = [{}];
2351
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2351
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2352
2352
  case 5:
2353
2353
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2354
- return [3 /*break*/, 9];
2354
+ return [3, 9];
2355
2355
  case 6:
2356
2356
  _e = [{}];
2357
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2357
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2358
2358
  case 7:
2359
2359
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2360
- return [3 /*break*/, 9];
2360
+ return [3, 9];
2361
2361
  case 8:
2362
2362
  parsedBody = parsedOutput.body;
2363
2363
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2367,7 +2367,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2367
2367
  message = response.message || response.Message || errorCode;
2368
2368
  response.message = message;
2369
2369
  delete response.Message;
2370
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2370
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2371
2371
  }
2372
2372
  });
2373
2373
  }); };
@@ -2377,15 +2377,15 @@ export var deserializeAws_restJson1PutMetadataCommand = function (output, contex
2377
2377
  switch (_a.label) {
2378
2378
  case 0:
2379
2379
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2380
- return [2 /*return*/, deserializeAws_restJson1PutMetadataCommandError(output, context)];
2380
+ return [2, deserializeAws_restJson1PutMetadataCommandError(output, context)];
2381
2381
  }
2382
2382
  contents = {
2383
2383
  $metadata: deserializeMetadata(output),
2384
2384
  };
2385
- return [4 /*yield*/, collectBody(output.body, context)];
2385
+ return [4, collectBody(output.body, context)];
2386
2386
  case 1:
2387
2387
  _a.sent();
2388
- return [2 /*return*/, Promise.resolve(contents)];
2388
+ return [2, Promise.resolve(contents)];
2389
2389
  }
2390
2390
  });
2391
2391
  }); };
@@ -2397,55 +2397,55 @@ var deserializeAws_restJson1PutMetadataCommandError = function (output, context)
2397
2397
  case 0:
2398
2398
  _a = [__assign({}, output)];
2399
2399
  _h = {};
2400
- return [4 /*yield*/, parseBody(output.body, context)];
2400
+ return [4, parseBody(output.body, context)];
2401
2401
  case 1:
2402
2402
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2403
2403
  errorCode = "UnknownError";
2404
2404
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2405
2405
  _b = errorCode;
2406
2406
  switch (_b) {
2407
- case "AccessDeniedException": return [3 /*break*/, 2];
2408
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
2409
- case "ChannelNotBroadcasting": return [3 /*break*/, 4];
2410
- case "com.amazonaws.ivs#ChannelNotBroadcasting": return [3 /*break*/, 4];
2411
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2412
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 6];
2413
- case "ThrottlingException": return [3 /*break*/, 8];
2414
- case "com.amazonaws.ivs#ThrottlingException": return [3 /*break*/, 8];
2415
- case "ValidationException": return [3 /*break*/, 10];
2416
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 10];
2417
- }
2418
- return [3 /*break*/, 12];
2407
+ case "AccessDeniedException": return [3, 2];
2408
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
2409
+ case "ChannelNotBroadcasting": return [3, 4];
2410
+ case "com.amazonaws.ivs#ChannelNotBroadcasting": return [3, 4];
2411
+ case "ResourceNotFoundException": return [3, 6];
2412
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 6];
2413
+ case "ThrottlingException": return [3, 8];
2414
+ case "com.amazonaws.ivs#ThrottlingException": return [3, 8];
2415
+ case "ValidationException": return [3, 10];
2416
+ case "com.amazonaws.ivs#ValidationException": return [3, 10];
2417
+ }
2418
+ return [3, 12];
2419
2419
  case 2:
2420
2420
  _c = [{}];
2421
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2421
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2422
2422
  case 3:
2423
2423
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2424
- return [3 /*break*/, 13];
2424
+ return [3, 13];
2425
2425
  case 4:
2426
2426
  _d = [{}];
2427
- return [4 /*yield*/, deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context)];
2427
+ return [4, deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context)];
2428
2428
  case 5:
2429
2429
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2430
- return [3 /*break*/, 13];
2430
+ return [3, 13];
2431
2431
  case 6:
2432
2432
  _e = [{}];
2433
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2433
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2434
2434
  case 7:
2435
2435
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2436
- return [3 /*break*/, 13];
2436
+ return [3, 13];
2437
2437
  case 8:
2438
2438
  _f = [{}];
2439
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2439
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
2440
2440
  case 9:
2441
2441
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2442
- return [3 /*break*/, 13];
2442
+ return [3, 13];
2443
2443
  case 10:
2444
2444
  _g = [{}];
2445
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2445
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2446
2446
  case 11:
2447
2447
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2448
- return [3 /*break*/, 13];
2448
+ return [3, 13];
2449
2449
  case 12:
2450
2450
  parsedBody = parsedOutput.body;
2451
2451
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2455,7 +2455,7 @@ var deserializeAws_restJson1PutMetadataCommandError = function (output, context)
2455
2455
  message = response.message || response.Message || errorCode;
2456
2456
  response.message = message;
2457
2457
  delete response.Message;
2458
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2458
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2459
2459
  }
2460
2460
  });
2461
2461
  }); };
@@ -2465,15 +2465,15 @@ export var deserializeAws_restJson1StopStreamCommand = function (output, context
2465
2465
  switch (_a.label) {
2466
2466
  case 0:
2467
2467
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2468
- return [2 /*return*/, deserializeAws_restJson1StopStreamCommandError(output, context)];
2468
+ return [2, deserializeAws_restJson1StopStreamCommandError(output, context)];
2469
2469
  }
2470
2470
  contents = {
2471
2471
  $metadata: deserializeMetadata(output),
2472
2472
  };
2473
- return [4 /*yield*/, collectBody(output.body, context)];
2473
+ return [4, collectBody(output.body, context)];
2474
2474
  case 1:
2475
2475
  _a.sent();
2476
- return [2 /*return*/, Promise.resolve(contents)];
2476
+ return [2, Promise.resolve(contents)];
2477
2477
  }
2478
2478
  });
2479
2479
  }); };
@@ -2485,55 +2485,55 @@ var deserializeAws_restJson1StopStreamCommandError = function (output, context)
2485
2485
  case 0:
2486
2486
  _a = [__assign({}, output)];
2487
2487
  _h = {};
2488
- return [4 /*yield*/, parseBody(output.body, context)];
2488
+ return [4, parseBody(output.body, context)];
2489
2489
  case 1:
2490
2490
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2491
2491
  errorCode = "UnknownError";
2492
2492
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2493
2493
  _b = errorCode;
2494
2494
  switch (_b) {
2495
- case "AccessDeniedException": return [3 /*break*/, 2];
2496
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
2497
- case "ChannelNotBroadcasting": return [3 /*break*/, 4];
2498
- case "com.amazonaws.ivs#ChannelNotBroadcasting": return [3 /*break*/, 4];
2499
- case "ResourceNotFoundException": return [3 /*break*/, 6];
2500
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 6];
2501
- case "StreamUnavailable": return [3 /*break*/, 8];
2502
- case "com.amazonaws.ivs#StreamUnavailable": return [3 /*break*/, 8];
2503
- case "ValidationException": return [3 /*break*/, 10];
2504
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 10];
2505
- }
2506
- return [3 /*break*/, 12];
2495
+ case "AccessDeniedException": return [3, 2];
2496
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
2497
+ case "ChannelNotBroadcasting": return [3, 4];
2498
+ case "com.amazonaws.ivs#ChannelNotBroadcasting": return [3, 4];
2499
+ case "ResourceNotFoundException": return [3, 6];
2500
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 6];
2501
+ case "StreamUnavailable": return [3, 8];
2502
+ case "com.amazonaws.ivs#StreamUnavailable": return [3, 8];
2503
+ case "ValidationException": return [3, 10];
2504
+ case "com.amazonaws.ivs#ValidationException": return [3, 10];
2505
+ }
2506
+ return [3, 12];
2507
2507
  case 2:
2508
2508
  _c = [{}];
2509
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2509
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2510
2510
  case 3:
2511
2511
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2512
- return [3 /*break*/, 13];
2512
+ return [3, 13];
2513
2513
  case 4:
2514
2514
  _d = [{}];
2515
- return [4 /*yield*/, deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context)];
2515
+ return [4, deserializeAws_restJson1ChannelNotBroadcastingResponse(parsedOutput, context)];
2516
2516
  case 5:
2517
2517
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2518
- return [3 /*break*/, 13];
2518
+ return [3, 13];
2519
2519
  case 6:
2520
2520
  _e = [{}];
2521
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2521
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2522
2522
  case 7:
2523
2523
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2524
- return [3 /*break*/, 13];
2524
+ return [3, 13];
2525
2525
  case 8:
2526
2526
  _f = [{}];
2527
- return [4 /*yield*/, deserializeAws_restJson1StreamUnavailableResponse(parsedOutput, context)];
2527
+ return [4, deserializeAws_restJson1StreamUnavailableResponse(parsedOutput, context)];
2528
2528
  case 9:
2529
2529
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2530
- return [3 /*break*/, 13];
2530
+ return [3, 13];
2531
2531
  case 10:
2532
2532
  _g = [{}];
2533
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2533
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2534
2534
  case 11:
2535
2535
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2536
- return [3 /*break*/, 13];
2536
+ return [3, 13];
2537
2537
  case 12:
2538
2538
  parsedBody = parsedOutput.body;
2539
2539
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2543,7 +2543,7 @@ var deserializeAws_restJson1StopStreamCommandError = function (output, context)
2543
2543
  message = response.message || response.Message || errorCode;
2544
2544
  response.message = message;
2545
2545
  delete response.Message;
2546
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2546
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2547
2547
  }
2548
2548
  });
2549
2549
  }); };
@@ -2553,15 +2553,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
2553
2553
  switch (_a.label) {
2554
2554
  case 0:
2555
2555
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2556
- return [2 /*return*/, deserializeAws_restJson1TagResourceCommandError(output, context)];
2556
+ return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
2557
2557
  }
2558
2558
  contents = {
2559
2559
  $metadata: deserializeMetadata(output),
2560
2560
  };
2561
- return [4 /*yield*/, collectBody(output.body, context)];
2561
+ return [4, collectBody(output.body, context)];
2562
2562
  case 1:
2563
2563
  _a.sent();
2564
- return [2 /*return*/, Promise.resolve(contents)];
2564
+ return [2, Promise.resolve(contents)];
2565
2565
  }
2566
2566
  });
2567
2567
  }); };
@@ -2573,39 +2573,39 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
2573
2573
  case 0:
2574
2574
  _a = [__assign({}, output)];
2575
2575
  _f = {};
2576
- return [4 /*yield*/, parseBody(output.body, context)];
2576
+ return [4, parseBody(output.body, context)];
2577
2577
  case 1:
2578
2578
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2579
2579
  errorCode = "UnknownError";
2580
2580
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2581
2581
  _b = errorCode;
2582
2582
  switch (_b) {
2583
- case "InternalServerException": return [3 /*break*/, 2];
2584
- case "com.amazonaws.ivs#InternalServerException": return [3 /*break*/, 2];
2585
- case "ResourceNotFoundException": return [3 /*break*/, 4];
2586
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 4];
2587
- case "ValidationException": return [3 /*break*/, 6];
2588
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 6];
2589
- }
2590
- return [3 /*break*/, 8];
2583
+ case "InternalServerException": return [3, 2];
2584
+ case "com.amazonaws.ivs#InternalServerException": return [3, 2];
2585
+ case "ResourceNotFoundException": return [3, 4];
2586
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 4];
2587
+ case "ValidationException": return [3, 6];
2588
+ case "com.amazonaws.ivs#ValidationException": return [3, 6];
2589
+ }
2590
+ return [3, 8];
2591
2591
  case 2:
2592
2592
  _c = [{}];
2593
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2593
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2594
2594
  case 3:
2595
2595
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2596
- return [3 /*break*/, 9];
2596
+ return [3, 9];
2597
2597
  case 4:
2598
2598
  _d = [{}];
2599
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2599
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2600
2600
  case 5:
2601
2601
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2602
- return [3 /*break*/, 9];
2602
+ return [3, 9];
2603
2603
  case 6:
2604
2604
  _e = [{}];
2605
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2605
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2606
2606
  case 7:
2607
2607
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2608
- return [3 /*break*/, 9];
2608
+ return [3, 9];
2609
2609
  case 8:
2610
2610
  parsedBody = parsedOutput.body;
2611
2611
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2615,7 +2615,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
2615
2615
  message = response.message || response.Message || errorCode;
2616
2616
  response.message = message;
2617
2617
  delete response.Message;
2618
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2618
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2619
2619
  }
2620
2620
  });
2621
2621
  }); };
@@ -2625,15 +2625,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
2625
2625
  switch (_a.label) {
2626
2626
  case 0:
2627
2627
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2628
- return [2 /*return*/, deserializeAws_restJson1UntagResourceCommandError(output, context)];
2628
+ return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
2629
2629
  }
2630
2630
  contents = {
2631
2631
  $metadata: deserializeMetadata(output),
2632
2632
  };
2633
- return [4 /*yield*/, collectBody(output.body, context)];
2633
+ return [4, collectBody(output.body, context)];
2634
2634
  case 1:
2635
2635
  _a.sent();
2636
- return [2 /*return*/, Promise.resolve(contents)];
2636
+ return [2, Promise.resolve(contents)];
2637
2637
  }
2638
2638
  });
2639
2639
  }); };
@@ -2645,39 +2645,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2645
2645
  case 0:
2646
2646
  _a = [__assign({}, output)];
2647
2647
  _f = {};
2648
- return [4 /*yield*/, parseBody(output.body, context)];
2648
+ return [4, parseBody(output.body, context)];
2649
2649
  case 1:
2650
2650
  parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2651
2651
  errorCode = "UnknownError";
2652
2652
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2653
2653
  _b = errorCode;
2654
2654
  switch (_b) {
2655
- case "InternalServerException": return [3 /*break*/, 2];
2656
- case "com.amazonaws.ivs#InternalServerException": return [3 /*break*/, 2];
2657
- case "ResourceNotFoundException": return [3 /*break*/, 4];
2658
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 4];
2659
- case "ValidationException": return [3 /*break*/, 6];
2660
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 6];
2661
- }
2662
- return [3 /*break*/, 8];
2655
+ case "InternalServerException": return [3, 2];
2656
+ case "com.amazonaws.ivs#InternalServerException": return [3, 2];
2657
+ case "ResourceNotFoundException": return [3, 4];
2658
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 4];
2659
+ case "ValidationException": return [3, 6];
2660
+ case "com.amazonaws.ivs#ValidationException": return [3, 6];
2661
+ }
2662
+ return [3, 8];
2663
2663
  case 2:
2664
2664
  _c = [{}];
2665
- return [4 /*yield*/, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2665
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
2666
2666
  case 3:
2667
2667
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2668
- return [3 /*break*/, 9];
2668
+ return [3, 9];
2669
2669
  case 4:
2670
2670
  _d = [{}];
2671
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2671
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2672
2672
  case 5:
2673
2673
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2674
- return [3 /*break*/, 9];
2674
+ return [3, 9];
2675
2675
  case 6:
2676
2676
  _e = [{}];
2677
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2677
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2678
2678
  case 7:
2679
2679
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2680
- return [3 /*break*/, 9];
2680
+ return [3, 9];
2681
2681
  case 8:
2682
2682
  parsedBody = parsedOutput.body;
2683
2683
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2687,7 +2687,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2687
2687
  message = response.message || response.Message || errorCode;
2688
2688
  response.message = message;
2689
2689
  delete response.Message;
2690
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2690
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2691
2691
  }
2692
2692
  });
2693
2693
  }); };
@@ -2697,7 +2697,7 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
2697
2697
  switch (_c.label) {
2698
2698
  case 0:
2699
2699
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2700
- return [2 /*return*/, deserializeAws_restJson1UpdateChannelCommandError(output, context)];
2700
+ return [2, deserializeAws_restJson1UpdateChannelCommandError(output, context)];
2701
2701
  }
2702
2702
  contents = {
2703
2703
  $metadata: deserializeMetadata(output),
@@ -2705,13 +2705,13 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
2705
2705
  };
2706
2706
  _a = __expectNonNull;
2707
2707
  _b = __expectObject;
2708
- return [4 /*yield*/, parseBody(output.body, context)];
2708
+ return [4, parseBody(output.body, context)];
2709
2709
  case 1:
2710
2710
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2711
2711
  if (data.channel !== undefined && data.channel !== null) {
2712
2712
  contents.channel = deserializeAws_restJson1Channel(data.channel, context);
2713
2713
  }
2714
- return [2 /*return*/, Promise.resolve(contents)];
2714
+ return [2, Promise.resolve(contents)];
2715
2715
  }
2716
2716
  });
2717
2717
  }); };
@@ -2723,55 +2723,55 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
2723
2723
  case 0:
2724
2724
  _a = [__assign({}, output)];
2725
2725
  _h = {};
2726
- return [4 /*yield*/, parseBody(output.body, context)];
2726
+ return [4, parseBody(output.body, context)];
2727
2727
  case 1:
2728
2728
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
2729
2729
  errorCode = "UnknownError";
2730
2730
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2731
2731
  _b = errorCode;
2732
2732
  switch (_b) {
2733
- case "AccessDeniedException": return [3 /*break*/, 2];
2734
- case "com.amazonaws.ivs#AccessDeniedException": return [3 /*break*/, 2];
2735
- case "ConflictException": return [3 /*break*/, 4];
2736
- case "com.amazonaws.ivs#ConflictException": return [3 /*break*/, 4];
2737
- case "PendingVerification": return [3 /*break*/, 6];
2738
- case "com.amazonaws.ivs#PendingVerification": return [3 /*break*/, 6];
2739
- case "ResourceNotFoundException": return [3 /*break*/, 8];
2740
- case "com.amazonaws.ivs#ResourceNotFoundException": return [3 /*break*/, 8];
2741
- case "ValidationException": return [3 /*break*/, 10];
2742
- case "com.amazonaws.ivs#ValidationException": return [3 /*break*/, 10];
2743
- }
2744
- return [3 /*break*/, 12];
2733
+ case "AccessDeniedException": return [3, 2];
2734
+ case "com.amazonaws.ivs#AccessDeniedException": return [3, 2];
2735
+ case "ConflictException": return [3, 4];
2736
+ case "com.amazonaws.ivs#ConflictException": return [3, 4];
2737
+ case "PendingVerification": return [3, 6];
2738
+ case "com.amazonaws.ivs#PendingVerification": return [3, 6];
2739
+ case "ResourceNotFoundException": return [3, 8];
2740
+ case "com.amazonaws.ivs#ResourceNotFoundException": return [3, 8];
2741
+ case "ValidationException": return [3, 10];
2742
+ case "com.amazonaws.ivs#ValidationException": return [3, 10];
2743
+ }
2744
+ return [3, 12];
2745
2745
  case 2:
2746
2746
  _c = [{}];
2747
- return [4 /*yield*/, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2747
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
2748
2748
  case 3:
2749
2749
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2750
- return [3 /*break*/, 13];
2750
+ return [3, 13];
2751
2751
  case 4:
2752
2752
  _d = [{}];
2753
- return [4 /*yield*/, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2753
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
2754
2754
  case 5:
2755
2755
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2756
- return [3 /*break*/, 13];
2756
+ return [3, 13];
2757
2757
  case 6:
2758
2758
  _e = [{}];
2759
- return [4 /*yield*/, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
2759
+ return [4, deserializeAws_restJson1PendingVerificationResponse(parsedOutput, context)];
2760
2760
  case 7:
2761
2761
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2762
- return [3 /*break*/, 13];
2762
+ return [3, 13];
2763
2763
  case 8:
2764
2764
  _f = [{}];
2765
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2765
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
2766
2766
  case 9:
2767
2767
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2768
- return [3 /*break*/, 13];
2768
+ return [3, 13];
2769
2769
  case 10:
2770
2770
  _g = [{}];
2771
- return [4 /*yield*/, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2771
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
2772
2772
  case 11:
2773
2773
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2774
- return [3 /*break*/, 13];
2774
+ return [3, 13];
2775
2775
  case 12:
2776
2776
  parsedBody = parsedOutput.body;
2777
2777
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2781,7 +2781,7 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
2781
2781
  message = response.message || response.Message || errorCode;
2782
2782
  response.message = message;
2783
2783
  delete response.Message;
2784
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2784
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2785
2785
  }
2786
2786
  });
2787
2787
  }); };
@@ -2798,7 +2798,7 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
2798
2798
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2799
2799
  contents.exceptionMessage = __expectString(data.exceptionMessage);
2800
2800
  }
2801
- return [2 /*return*/, contents];
2801
+ return [2, contents];
2802
2802
  });
2803
2803
  }); };
2804
2804
  var deserializeAws_restJson1ChannelNotBroadcastingResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2814,7 +2814,7 @@ var deserializeAws_restJson1ChannelNotBroadcastingResponse = function (parsedOut
2814
2814
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2815
2815
  contents.exceptionMessage = __expectString(data.exceptionMessage);
2816
2816
  }
2817
- return [2 /*return*/, contents];
2817
+ return [2, contents];
2818
2818
  });
2819
2819
  }); };
2820
2820
  var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2830,7 +2830,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
2830
2830
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2831
2831
  contents.exceptionMessage = __expectString(data.exceptionMessage);
2832
2832
  }
2833
- return [2 /*return*/, contents];
2833
+ return [2, contents];
2834
2834
  });
2835
2835
  }); };
2836
2836
  var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2846,7 +2846,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
2846
2846
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2847
2847
  contents.exceptionMessage = __expectString(data.exceptionMessage);
2848
2848
  }
2849
- return [2 /*return*/, contents];
2849
+ return [2, contents];
2850
2850
  });
2851
2851
  }); };
2852
2852
  var deserializeAws_restJson1PendingVerificationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2862,7 +2862,7 @@ var deserializeAws_restJson1PendingVerificationResponse = function (parsedOutput
2862
2862
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2863
2863
  contents.exceptionMessage = __expectString(data.exceptionMessage);
2864
2864
  }
2865
- return [2 /*return*/, contents];
2865
+ return [2, contents];
2866
2866
  });
2867
2867
  }); };
2868
2868
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2878,7 +2878,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
2878
2878
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2879
2879
  contents.exceptionMessage = __expectString(data.exceptionMessage);
2880
2880
  }
2881
- return [2 /*return*/, contents];
2881
+ return [2, contents];
2882
2882
  });
2883
2883
  }); };
2884
2884
  var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2894,7 +2894,7 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
2894
2894
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2895
2895
  contents.exceptionMessage = __expectString(data.exceptionMessage);
2896
2896
  }
2897
- return [2 /*return*/, contents];
2897
+ return [2, contents];
2898
2898
  });
2899
2899
  }); };
2900
2900
  var deserializeAws_restJson1StreamUnavailableResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2910,7 +2910,7 @@ var deserializeAws_restJson1StreamUnavailableResponse = function (parsedOutput,
2910
2910
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2911
2911
  contents.exceptionMessage = __expectString(data.exceptionMessage);
2912
2912
  }
2913
- return [2 /*return*/, contents];
2913
+ return [2, contents];
2914
2914
  });
2915
2915
  }); };
2916
2916
  var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2926,7 +2926,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
2926
2926
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2927
2927
  contents.exceptionMessage = __expectString(data.exceptionMessage);
2928
2928
  }
2929
- return [2 /*return*/, contents];
2929
+ return [2, contents];
2930
2930
  });
2931
2931
  }); };
2932
2932
  var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2942,7 +2942,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
2942
2942
  if (data.exceptionMessage !== undefined && data.exceptionMessage !== null) {
2943
2943
  contents.exceptionMessage = __expectString(data.exceptionMessage);
2944
2944
  }
2945
- return [2 /*return*/, contents];
2945
+ return [2, contents];
2946
2946
  });
2947
2947
  }); };
2948
2948
  var serializeAws_restJson1ChannelArnList = function (input, context) {
@@ -3214,7 +3214,6 @@ var deserializeMetadata = function (output) {
3214
3214
  cfId: output.headers["x-amz-cf-id"],
3215
3215
  });
3216
3216
  };
3217
- // Collect low-level response body stream to Uint8Array.
3218
3217
  var collectBody = function (streamBody, context) {
3219
3218
  if (streamBody === void 0) { streamBody = new Uint8Array(); }
3220
3219
  if (streamBody instanceof Uint8Array) {
@@ -3222,7 +3221,6 @@ var collectBody = function (streamBody, context) {
3222
3221
  }
3223
3222
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3224
3223
  };
3225
- // Encode Uint8Array data into string with utf-8.
3226
3224
  var collectBodyString = function (streamBody, context) {
3227
3225
  return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
3228
3226
  };
@@ -3241,9 +3239,6 @@ var parseBody = function (streamBody, context) {
3241
3239
  return {};
3242
3240
  });
3243
3241
  };
3244
- /**
3245
- * Load an error code for the aws.rest-json-1.1 protocol.
3246
- */
3247
3242
  var loadRestJsonErrorCode = function (output, data) {
3248
3243
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
3249
3244
  var sanitizeErrorCode = function (rawValue) {
@@ -3268,4 +3263,3 @@ var loadRestJsonErrorCode = function (output, data) {
3268
3263
  }
3269
3264
  return "";
3270
3265
  };
3271
- //# sourceMappingURL=Aws_restJson1.js.map