@aws-sdk/client-mediatailor 3.31.0 → 3.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (463) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +7 -7
  3. package/{dist/cjs → dist-cjs}/MediaTailor.js +16 -1
  4. package/dist-cjs/MediaTailor.js.map +1 -0
  5. package/{dist/cjs → dist-cjs}/MediaTailorClient.js +14 -14
  6. package/dist-cjs/MediaTailorClient.js.map +1 -0
  7. package/dist-cjs/commands/ConfigureLogsForPlaybackConfigurationCommand.js +61 -0
  8. package/dist-cjs/commands/ConfigureLogsForPlaybackConfigurationCommand.js.map +1 -0
  9. package/{dist/cjs → dist-cjs}/commands/CreateChannelCommand.js +5 -5
  10. package/dist-cjs/commands/CreateChannelCommand.js.map +1 -0
  11. package/{dist/cjs → dist-cjs}/commands/CreateProgramCommand.js +5 -5
  12. package/dist-cjs/commands/CreateProgramCommand.js.map +1 -0
  13. package/{dist/cjs → dist-cjs}/commands/CreateSourceLocationCommand.js +5 -5
  14. package/dist-cjs/commands/CreateSourceLocationCommand.js.map +1 -0
  15. package/{dist/cjs → dist-cjs}/commands/CreateVodSourceCommand.js +5 -5
  16. package/dist-cjs/commands/CreateVodSourceCommand.js.map +1 -0
  17. package/{dist/cjs → dist-cjs}/commands/DeleteChannelCommand.js +5 -5
  18. package/dist-cjs/commands/DeleteChannelCommand.js.map +1 -0
  19. package/{dist/cjs → dist-cjs}/commands/DeleteChannelPolicyCommand.js +5 -5
  20. package/dist-cjs/commands/DeleteChannelPolicyCommand.js.map +1 -0
  21. package/{dist/cjs → dist-cjs}/commands/DeletePlaybackConfigurationCommand.js +5 -5
  22. package/dist-cjs/commands/DeletePlaybackConfigurationCommand.js.map +1 -0
  23. package/{dist/cjs → dist-cjs}/commands/DeleteProgramCommand.js +5 -5
  24. package/dist-cjs/commands/DeleteProgramCommand.js.map +1 -0
  25. package/{dist/cjs → dist-cjs}/commands/DeleteSourceLocationCommand.js +5 -5
  26. package/dist-cjs/commands/DeleteSourceLocationCommand.js.map +1 -0
  27. package/{dist/cjs → dist-cjs}/commands/DeleteVodSourceCommand.js +5 -5
  28. package/dist-cjs/commands/DeleteVodSourceCommand.js.map +1 -0
  29. package/{dist/cjs → dist-cjs}/commands/DescribeChannelCommand.js +5 -5
  30. package/dist-cjs/commands/DescribeChannelCommand.js.map +1 -0
  31. package/{dist/cjs → dist-cjs}/commands/DescribeProgramCommand.js +5 -5
  32. package/dist-cjs/commands/DescribeProgramCommand.js.map +1 -0
  33. package/{dist/cjs → dist-cjs}/commands/DescribeSourceLocationCommand.js +5 -5
  34. package/dist-cjs/commands/DescribeSourceLocationCommand.js.map +1 -0
  35. package/{dist/cjs → dist-cjs}/commands/DescribeVodSourceCommand.js +5 -5
  36. package/dist-cjs/commands/DescribeVodSourceCommand.js.map +1 -0
  37. package/{dist/cjs → dist-cjs}/commands/GetChannelPolicyCommand.js +5 -5
  38. package/dist-cjs/commands/GetChannelPolicyCommand.js.map +1 -0
  39. package/{dist/cjs → dist-cjs}/commands/GetChannelScheduleCommand.js +5 -5
  40. package/dist-cjs/commands/GetChannelScheduleCommand.js.map +1 -0
  41. package/{dist/cjs → dist-cjs}/commands/GetPlaybackConfigurationCommand.js +5 -5
  42. package/dist-cjs/commands/GetPlaybackConfigurationCommand.js.map +1 -0
  43. package/{dist/cjs → dist-cjs}/commands/ListAlertsCommand.js +5 -5
  44. package/dist-cjs/commands/ListAlertsCommand.js.map +1 -0
  45. package/{dist/cjs → dist-cjs}/commands/ListChannelsCommand.js +5 -5
  46. package/dist-cjs/commands/ListChannelsCommand.js.map +1 -0
  47. package/{dist/cjs → dist-cjs}/commands/ListPlaybackConfigurationsCommand.js +5 -5
  48. package/dist-cjs/commands/ListPlaybackConfigurationsCommand.js.map +1 -0
  49. package/{dist/cjs → dist-cjs}/commands/ListSourceLocationsCommand.js +5 -5
  50. package/dist-cjs/commands/ListSourceLocationsCommand.js.map +1 -0
  51. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +5 -5
  52. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
  53. package/{dist/cjs → dist-cjs}/commands/ListVodSourcesCommand.js +5 -5
  54. package/dist-cjs/commands/ListVodSourcesCommand.js.map +1 -0
  55. package/{dist/cjs → dist-cjs}/commands/PutChannelPolicyCommand.js +5 -5
  56. package/dist-cjs/commands/PutChannelPolicyCommand.js.map +1 -0
  57. package/{dist/cjs → dist-cjs}/commands/PutPlaybackConfigurationCommand.js +5 -5
  58. package/dist-cjs/commands/PutPlaybackConfigurationCommand.js.map +1 -0
  59. package/{dist/cjs → dist-cjs}/commands/StartChannelCommand.js +5 -5
  60. package/dist-cjs/commands/StartChannelCommand.js.map +1 -0
  61. package/{dist/cjs → dist-cjs}/commands/StopChannelCommand.js +5 -5
  62. package/dist-cjs/commands/StopChannelCommand.js.map +1 -0
  63. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
  64. package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
  65. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
  66. package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
  67. package/{dist/cjs → dist-cjs}/commands/UpdateChannelCommand.js +5 -5
  68. package/dist-cjs/commands/UpdateChannelCommand.js.map +1 -0
  69. package/{dist/cjs → dist-cjs}/commands/UpdateSourceLocationCommand.js +5 -5
  70. package/dist-cjs/commands/UpdateSourceLocationCommand.js.map +1 -0
  71. package/{dist/cjs → dist-cjs}/commands/UpdateVodSourceCommand.js +5 -5
  72. package/dist-cjs/commands/UpdateVodSourceCommand.js.map +1 -0
  73. package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
  74. package/dist-cjs/endpoints.js.map +1 -0
  75. package/dist-cjs/index.js +47 -0
  76. package/dist-cjs/index.js.map +1 -0
  77. package/{dist/cjs → dist-cjs}/models/index.js +1 -1
  78. package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
  79. package/{dist/cjs → dist-cjs}/models/models_0.js +30 -3
  80. package/dist-cjs/models/models_0.js.map +1 -0
  81. package/{dist/cjs → dist-cjs}/pagination/GetChannelSchedulePaginator.js +1 -1
  82. package/dist-cjs/pagination/GetChannelSchedulePaginator.js.map +1 -0
  83. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
  84. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
  85. package/{dist/cjs → dist-cjs}/pagination/ListAlertsPaginator.js +1 -1
  86. package/dist-cjs/pagination/ListAlertsPaginator.js.map +1 -0
  87. package/{dist/cjs → dist-cjs}/pagination/ListChannelsPaginator.js +1 -1
  88. package/dist-cjs/pagination/ListChannelsPaginator.js.map +1 -0
  89. package/{dist/cjs → dist-cjs}/pagination/ListPlaybackConfigurationsPaginator.js +1 -1
  90. package/dist-cjs/pagination/ListPlaybackConfigurationsPaginator.js.map +1 -0
  91. package/{dist/cjs → dist-cjs}/pagination/ListSourceLocationsPaginator.js +1 -1
  92. package/dist-cjs/pagination/ListSourceLocationsPaginator.js.map +1 -0
  93. package/{dist/cjs → dist-cjs}/pagination/ListVodSourcesPaginator.js +1 -1
  94. package/dist-cjs/pagination/ListVodSourcesPaginator.js.map +1 -0
  95. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +311 -227
  96. package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
  97. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
  98. package/dist-cjs/runtimeConfig.browser.js.map +1 -0
  99. package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
  100. package/dist-cjs/runtimeConfig.js.map +1 -0
  101. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
  102. package/dist-cjs/runtimeConfig.native.js.map +1 -0
  103. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
  104. package/dist-cjs/runtimeConfig.shared.js.map +1 -0
  105. package/{dist/es → dist-es}/MediaTailor.js +17 -5
  106. package/dist-es/MediaTailor.js.map +1 -0
  107. package/{dist/es → dist-es}/MediaTailorClient.js +2 -10
  108. package/dist-es/MediaTailorClient.js.map +1 -0
  109. package/dist-es/commands/ConfigureLogsForPlaybackConfigurationCommand.js +40 -0
  110. package/dist-es/commands/ConfigureLogsForPlaybackConfigurationCommand.js.map +1 -0
  111. package/{dist/es → dist-es}/commands/CreateChannelCommand.js +4 -29
  112. package/dist-es/commands/CreateChannelCommand.js.map +1 -0
  113. package/{dist/es → dist-es}/commands/CreateProgramCommand.js +4 -29
  114. package/dist-es/commands/CreateProgramCommand.js.map +1 -0
  115. package/{dist/es → dist-es}/commands/CreateSourceLocationCommand.js +4 -29
  116. package/dist-es/commands/CreateSourceLocationCommand.js.map +1 -0
  117. package/{dist/es → dist-es}/commands/CreateVodSourceCommand.js +4 -29
  118. package/dist-es/commands/CreateVodSourceCommand.js.map +1 -0
  119. package/{dist/es → dist-es}/commands/DeleteChannelCommand.js +4 -29
  120. package/dist-es/commands/DeleteChannelCommand.js.map +1 -0
  121. package/{dist/es → dist-es}/commands/DeleteChannelPolicyCommand.js +4 -29
  122. package/dist-es/commands/DeleteChannelPolicyCommand.js.map +1 -0
  123. package/{dist/es → dist-es}/commands/DeletePlaybackConfigurationCommand.js +4 -29
  124. package/dist-es/commands/DeletePlaybackConfigurationCommand.js.map +1 -0
  125. package/{dist/es → dist-es}/commands/DeleteProgramCommand.js +4 -29
  126. package/dist-es/commands/DeleteProgramCommand.js.map +1 -0
  127. package/{dist/es → dist-es}/commands/DeleteSourceLocationCommand.js +4 -29
  128. package/dist-es/commands/DeleteSourceLocationCommand.js.map +1 -0
  129. package/{dist/es → dist-es}/commands/DeleteVodSourceCommand.js +4 -29
  130. package/dist-es/commands/DeleteVodSourceCommand.js.map +1 -0
  131. package/{dist/es → dist-es}/commands/DescribeChannelCommand.js +4 -29
  132. package/dist-es/commands/DescribeChannelCommand.js.map +1 -0
  133. package/{dist/es → dist-es}/commands/DescribeProgramCommand.js +4 -29
  134. package/dist-es/commands/DescribeProgramCommand.js.map +1 -0
  135. package/{dist/es → dist-es}/commands/DescribeSourceLocationCommand.js +4 -29
  136. package/dist-es/commands/DescribeSourceLocationCommand.js.map +1 -0
  137. package/{dist/es → dist-es}/commands/DescribeVodSourceCommand.js +4 -29
  138. package/dist-es/commands/DescribeVodSourceCommand.js.map +1 -0
  139. package/{dist/es → dist-es}/commands/GetChannelPolicyCommand.js +4 -29
  140. package/dist-es/commands/GetChannelPolicyCommand.js.map +1 -0
  141. package/{dist/es → dist-es}/commands/GetChannelScheduleCommand.js +4 -29
  142. package/dist-es/commands/GetChannelScheduleCommand.js.map +1 -0
  143. package/{dist/es → dist-es}/commands/GetPlaybackConfigurationCommand.js +4 -29
  144. package/dist-es/commands/GetPlaybackConfigurationCommand.js.map +1 -0
  145. package/{dist/es → dist-es}/commands/ListAlertsCommand.js +4 -29
  146. package/dist-es/commands/ListAlertsCommand.js.map +1 -0
  147. package/{dist/es → dist-es}/commands/ListChannelsCommand.js +4 -29
  148. package/dist-es/commands/ListChannelsCommand.js.map +1 -0
  149. package/{dist/es → dist-es}/commands/ListPlaybackConfigurationsCommand.js +4 -29
  150. package/dist-es/commands/ListPlaybackConfigurationsCommand.js.map +1 -0
  151. package/{dist/es → dist-es}/commands/ListSourceLocationsCommand.js +4 -29
  152. package/dist-es/commands/ListSourceLocationsCommand.js.map +1 -0
  153. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -29
  154. package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
  155. package/{dist/es → dist-es}/commands/ListVodSourcesCommand.js +4 -29
  156. package/dist-es/commands/ListVodSourcesCommand.js.map +1 -0
  157. package/{dist/es → dist-es}/commands/PutChannelPolicyCommand.js +4 -29
  158. package/dist-es/commands/PutChannelPolicyCommand.js.map +1 -0
  159. package/{dist/es → dist-es}/commands/PutPlaybackConfigurationCommand.js +4 -29
  160. package/dist-es/commands/PutPlaybackConfigurationCommand.js.map +1 -0
  161. package/{dist/es → dist-es}/commands/StartChannelCommand.js +4 -29
  162. package/dist-es/commands/StartChannelCommand.js.map +1 -0
  163. package/{dist/es → dist-es}/commands/StopChannelCommand.js +4 -29
  164. package/dist-es/commands/StopChannelCommand.js.map +1 -0
  165. package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -29
  166. package/dist-es/commands/TagResourceCommand.js.map +1 -0
  167. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -29
  168. package/dist-es/commands/UntagResourceCommand.js.map +1 -0
  169. package/{dist/es → dist-es}/commands/UpdateChannelCommand.js +4 -29
  170. package/dist-es/commands/UpdateChannelCommand.js.map +1 -0
  171. package/{dist/es → dist-es}/commands/UpdateSourceLocationCommand.js +4 -29
  172. package/dist-es/commands/UpdateSourceLocationCommand.js.map +1 -0
  173. package/{dist/es → dist-es}/commands/UpdateVodSourceCommand.js +4 -29
  174. package/dist-es/commands/UpdateVodSourceCommand.js.map +1 -0
  175. package/{dist/es → dist-es}/endpoints.js +1 -1
  176. package/dist-es/endpoints.js.map +1 -0
  177. package/{dist/es → dist-es}/index.js +1 -0
  178. package/dist-es/index.js.map +1 -0
  179. package/{dist/es → dist-es}/models/index.js +0 -0
  180. package/dist-es/models/index.js.map +1 -0
  181. package/{dist/es → dist-es}/models/models_0.js +12 -279
  182. package/dist-es/models/models_0.js.map +1 -0
  183. package/{dist/es → dist-es}/pagination/GetChannelSchedulePaginator.js +17 -29
  184. package/dist-es/pagination/GetChannelSchedulePaginator.js.map +1 -0
  185. package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
  186. package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
  187. package/{dist/es → dist-es}/pagination/ListAlertsPaginator.js +17 -29
  188. package/dist-es/pagination/ListAlertsPaginator.js.map +1 -0
  189. package/{dist/es → dist-es}/pagination/ListChannelsPaginator.js +17 -29
  190. package/dist-es/pagination/ListChannelsPaginator.js.map +1 -0
  191. package/{dist/es → dist-es}/pagination/ListPlaybackConfigurationsPaginator.js +17 -29
  192. package/dist-es/pagination/ListPlaybackConfigurationsPaginator.js.map +1 -0
  193. package/{dist/es → dist-es}/pagination/ListSourceLocationsPaginator.js +17 -29
  194. package/dist-es/pagination/ListSourceLocationsPaginator.js.map +1 -0
  195. package/{dist/es → dist-es}/pagination/ListVodSourcesPaginator.js +17 -29
  196. package/dist-es/pagination/ListVodSourcesPaginator.js.map +1 -0
  197. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +336 -245
  198. package/dist-es/protocols/Aws_restJson1.js.map +1 -0
  199. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
  200. package/dist-es/runtimeConfig.browser.js.map +1 -0
  201. package/{dist/es → dist-es}/runtimeConfig.js +2 -5
  202. package/dist-es/runtimeConfig.js.map +1 -0
  203. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
  204. package/dist-es/runtimeConfig.native.js.map +1 -0
  205. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
  206. package/dist-es/runtimeConfig.shared.js.map +1 -0
  207. package/{dist/types → dist-types}/MediaTailor.d.ts +9 -2
  208. package/{dist/types/ts3.4 → dist-types}/MediaTailorClient.d.ts +165 -164
  209. package/dist-types/commands/ConfigureLogsForPlaybackConfigurationCommand.d.ts +35 -0
  210. package/{dist/types → dist-types}/commands/CreateChannelCommand.d.ts +2 -2
  211. package/{dist/types → dist-types}/commands/CreateProgramCommand.d.ts +2 -2
  212. package/{dist/types → dist-types}/commands/CreateSourceLocationCommand.d.ts +2 -2
  213. package/{dist/types → dist-types}/commands/CreateVodSourceCommand.d.ts +2 -2
  214. package/{dist/types → dist-types}/commands/DeleteChannelCommand.d.ts +2 -2
  215. package/{dist/types → dist-types}/commands/DeleteChannelPolicyCommand.d.ts +2 -2
  216. package/{dist/types → dist-types}/commands/DeletePlaybackConfigurationCommand.d.ts +2 -2
  217. package/{dist/types → dist-types}/commands/DeleteProgramCommand.d.ts +2 -2
  218. package/{dist/types → dist-types}/commands/DeleteSourceLocationCommand.d.ts +2 -2
  219. package/{dist/types → dist-types}/commands/DeleteVodSourceCommand.d.ts +2 -2
  220. package/{dist/types → dist-types}/commands/DescribeChannelCommand.d.ts +2 -2
  221. package/{dist/types → dist-types}/commands/DescribeProgramCommand.d.ts +2 -2
  222. package/{dist/types → dist-types}/commands/DescribeSourceLocationCommand.d.ts +2 -2
  223. package/{dist/types → dist-types}/commands/DescribeVodSourceCommand.d.ts +2 -2
  224. package/{dist/types → dist-types}/commands/GetChannelPolicyCommand.d.ts +2 -2
  225. package/{dist/types → dist-types}/commands/GetChannelScheduleCommand.d.ts +2 -2
  226. package/{dist/types → dist-types}/commands/GetPlaybackConfigurationCommand.d.ts +2 -2
  227. package/{dist/types → dist-types}/commands/ListAlertsCommand.d.ts +2 -2
  228. package/{dist/types → dist-types}/commands/ListChannelsCommand.d.ts +2 -2
  229. package/{dist/types → dist-types}/commands/ListPlaybackConfigurationsCommand.d.ts +2 -2
  230. package/{dist/types → dist-types}/commands/ListSourceLocationsCommand.d.ts +2 -2
  231. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  232. package/{dist/types → dist-types}/commands/ListVodSourcesCommand.d.ts +2 -2
  233. package/{dist/types → dist-types}/commands/PutChannelPolicyCommand.d.ts +2 -2
  234. package/{dist/types → dist-types}/commands/PutPlaybackConfigurationCommand.d.ts +2 -2
  235. package/{dist/types → dist-types}/commands/StartChannelCommand.d.ts +2 -2
  236. package/{dist/types → dist-types}/commands/StopChannelCommand.d.ts +2 -2
  237. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  238. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  239. package/{dist/types → dist-types}/commands/UpdateChannelCommand.d.ts +2 -2
  240. package/{dist/types → dist-types}/commands/UpdateSourceLocationCommand.d.ts +2 -2
  241. package/{dist/types → dist-types}/commands/UpdateVodSourceCommand.d.ts +2 -2
  242. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  243. package/{dist/types/ts3.4 → dist-types}/index.d.ts +43 -42
  244. package/{dist/types → dist-types}/models/index.d.ts +0 -0
  245. package/{dist/types → dist-types}/models/models_0.d.ts +63 -1
  246. package/{dist/types → dist-types}/pagination/GetChannelSchedulePaginator.d.ts +1 -1
  247. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  248. package/{dist/types → dist-types}/pagination/ListAlertsPaginator.d.ts +1 -1
  249. package/{dist/types → dist-types}/pagination/ListChannelsPaginator.d.ts +1 -1
  250. package/{dist/types → dist-types}/pagination/ListPlaybackConfigurationsPaginator.d.ts +1 -1
  251. package/{dist/types → dist-types}/pagination/ListSourceLocationsPaginator.d.ts +1 -1
  252. package/{dist/types → dist-types}/pagination/ListVodSourcesPaginator.d.ts +1 -1
  253. package/{dist/types/ts3.4 → dist-types}/protocols/Aws_restJson1.d.ts +101 -98
  254. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
  255. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  256. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
  257. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  258. package/{dist/types → dist-types}/ts3.4/MediaTailor.d.ts +9 -2
  259. package/{dist/types → dist-types/ts3.4}/MediaTailorClient.d.ts +165 -164
  260. package/dist-types/ts3.4/commands/ConfigureLogsForPlaybackConfigurationCommand.d.ts +35 -0
  261. package/{dist/types → dist-types}/ts3.4/commands/CreateChannelCommand.d.ts +2 -2
  262. package/{dist/types → dist-types}/ts3.4/commands/CreateProgramCommand.d.ts +2 -2
  263. package/{dist/types → dist-types}/ts3.4/commands/CreateSourceLocationCommand.d.ts +2 -2
  264. package/{dist/types → dist-types}/ts3.4/commands/CreateVodSourceCommand.d.ts +2 -2
  265. package/{dist/types → dist-types}/ts3.4/commands/DeleteChannelCommand.d.ts +2 -2
  266. package/{dist/types → dist-types}/ts3.4/commands/DeleteChannelPolicyCommand.d.ts +2 -2
  267. package/{dist/types → dist-types}/ts3.4/commands/DeletePlaybackConfigurationCommand.d.ts +2 -2
  268. package/{dist/types → dist-types}/ts3.4/commands/DeleteProgramCommand.d.ts +2 -2
  269. package/{dist/types → dist-types}/ts3.4/commands/DeleteSourceLocationCommand.d.ts +2 -2
  270. package/{dist/types → dist-types}/ts3.4/commands/DeleteVodSourceCommand.d.ts +2 -2
  271. package/{dist/types → dist-types}/ts3.4/commands/DescribeChannelCommand.d.ts +2 -2
  272. package/{dist/types → dist-types}/ts3.4/commands/DescribeProgramCommand.d.ts +2 -2
  273. package/{dist/types → dist-types}/ts3.4/commands/DescribeSourceLocationCommand.d.ts +2 -2
  274. package/{dist/types → dist-types}/ts3.4/commands/DescribeVodSourceCommand.d.ts +2 -2
  275. package/{dist/types → dist-types}/ts3.4/commands/GetChannelPolicyCommand.d.ts +2 -2
  276. package/{dist/types → dist-types}/ts3.4/commands/GetChannelScheduleCommand.d.ts +2 -2
  277. package/{dist/types → dist-types}/ts3.4/commands/GetPlaybackConfigurationCommand.d.ts +2 -2
  278. package/{dist/types → dist-types}/ts3.4/commands/ListAlertsCommand.d.ts +2 -2
  279. package/{dist/types → dist-types}/ts3.4/commands/ListChannelsCommand.d.ts +2 -2
  280. package/{dist/types → dist-types}/ts3.4/commands/ListPlaybackConfigurationsCommand.d.ts +2 -2
  281. package/{dist/types → dist-types}/ts3.4/commands/ListSourceLocationsCommand.d.ts +2 -2
  282. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
  283. package/{dist/types → dist-types}/ts3.4/commands/ListVodSourcesCommand.d.ts +2 -2
  284. package/{dist/types → dist-types}/ts3.4/commands/PutChannelPolicyCommand.d.ts +2 -2
  285. package/{dist/types → dist-types}/ts3.4/commands/PutPlaybackConfigurationCommand.d.ts +2 -2
  286. package/{dist/types → dist-types}/ts3.4/commands/StartChannelCommand.d.ts +2 -2
  287. package/{dist/types → dist-types}/ts3.4/commands/StopChannelCommand.d.ts +2 -2
  288. package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
  289. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
  290. package/{dist/types → dist-types}/ts3.4/commands/UpdateChannelCommand.d.ts +2 -2
  291. package/{dist/types → dist-types}/ts3.4/commands/UpdateSourceLocationCommand.d.ts +2 -2
  292. package/{dist/types → dist-types}/ts3.4/commands/UpdateVodSourceCommand.d.ts +2 -2
  293. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  294. package/{dist/types → dist-types/ts3.4}/index.d.ts +43 -42
  295. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  296. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +63 -1
  297. package/{dist/types → dist-types}/ts3.4/pagination/GetChannelSchedulePaginator.d.ts +1 -1
  298. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  299. package/{dist/types → dist-types}/ts3.4/pagination/ListAlertsPaginator.d.ts +1 -1
  300. package/{dist/types → dist-types}/ts3.4/pagination/ListChannelsPaginator.d.ts +1 -1
  301. package/{dist/types → dist-types}/ts3.4/pagination/ListPlaybackConfigurationsPaginator.d.ts +1 -1
  302. package/{dist/types → dist-types}/ts3.4/pagination/ListSourceLocationsPaginator.d.ts +1 -1
  303. package/{dist/types → dist-types}/ts3.4/pagination/ListVodSourcesPaginator.d.ts +1 -1
  304. package/{dist/types → dist-types/ts3.4}/protocols/Aws_restJson1.d.ts +101 -98
  305. package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
  306. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  307. package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
  308. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  309. package/package.json +50 -50
  310. package/{MediaTailor.ts → src/MediaTailor.ts} +42 -2
  311. package/{MediaTailorClient.ts → src/MediaTailorClient.ts} +64 -57
  312. package/src/commands/ConfigureLogsForPlaybackConfigurationCommand.ts +107 -0
  313. package/{commands → src/commands}/CreateChannelCommand.ts +8 -7
  314. package/{commands → src/commands}/CreateProgramCommand.ts +8 -7
  315. package/{commands → src/commands}/CreateSourceLocationCommand.ts +8 -7
  316. package/{commands → src/commands}/CreateVodSourceCommand.ts +8 -7
  317. package/{commands → src/commands}/DeleteChannelCommand.ts +8 -7
  318. package/{commands → src/commands}/DeleteChannelPolicyCommand.ts +8 -7
  319. package/{commands → src/commands}/DeletePlaybackConfigurationCommand.ts +8 -7
  320. package/{commands → src/commands}/DeleteProgramCommand.ts +8 -7
  321. package/{commands → src/commands}/DeleteSourceLocationCommand.ts +8 -7
  322. package/{commands → src/commands}/DeleteVodSourceCommand.ts +8 -7
  323. package/{commands → src/commands}/DescribeChannelCommand.ts +8 -7
  324. package/{commands → src/commands}/DescribeProgramCommand.ts +8 -7
  325. package/{commands → src/commands}/DescribeSourceLocationCommand.ts +8 -7
  326. package/{commands → src/commands}/DescribeVodSourceCommand.ts +8 -7
  327. package/{commands → src/commands}/GetChannelPolicyCommand.ts +8 -7
  328. package/{commands → src/commands}/GetChannelScheduleCommand.ts +8 -7
  329. package/{commands → src/commands}/GetPlaybackConfigurationCommand.ts +8 -7
  330. package/{commands → src/commands}/ListAlertsCommand.ts +8 -7
  331. package/{commands → src/commands}/ListChannelsCommand.ts +8 -7
  332. package/{commands → src/commands}/ListPlaybackConfigurationsCommand.ts +8 -7
  333. package/{commands → src/commands}/ListSourceLocationsCommand.ts +8 -7
  334. package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
  335. package/{commands → src/commands}/ListVodSourcesCommand.ts +8 -7
  336. package/{commands → src/commands}/PutChannelPolicyCommand.ts +8 -7
  337. package/{commands → src/commands}/PutPlaybackConfigurationCommand.ts +8 -7
  338. package/{commands → src/commands}/StartChannelCommand.ts +8 -7
  339. package/{commands → src/commands}/StopChannelCommand.ts +8 -7
  340. package/{commands → src/commands}/TagResourceCommand.ts +8 -7
  341. package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
  342. package/{commands → src/commands}/UpdateChannelCommand.ts +8 -7
  343. package/{commands → src/commands}/UpdateSourceLocationCommand.ts +8 -7
  344. package/{commands → src/commands}/UpdateVodSourceCommand.ts +8 -7
  345. package/{endpoints.ts → src/endpoints.ts} +1 -1
  346. package/{index.ts → src/index.ts} +1 -0
  347. package/{models → src/models}/index.ts +0 -0
  348. package/{models → src/models}/models_0.ts +80 -1
  349. package/{pagination → src/pagination}/GetChannelSchedulePaginator.ts +4 -3
  350. package/{pagination → src/pagination}/Interfaces.ts +2 -1
  351. package/{pagination → src/pagination}/ListAlertsPaginator.ts +3 -2
  352. package/{pagination → src/pagination}/ListChannelsPaginator.ts +4 -3
  353. package/{pagination → src/pagination}/ListPlaybackConfigurationsPaginator.ts +4 -3
  354. package/{pagination → src/pagination}/ListSourceLocationsPaginator.ts +4 -3
  355. package/{pagination → src/pagination}/ListVodSourcesPaginator.ts +4 -3
  356. package/{protocols → src/protocols}/Aws_restJson1.ts +160 -56
  357. package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
  358. package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
  359. package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
  360. package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
  361. package/tsconfig.es.json +1 -3
  362. package/tsconfig.json +7 -7
  363. package/tsconfig.types.json +9 -0
  364. package/dist/cjs/MediaTailor.js.map +0 -1
  365. package/dist/cjs/MediaTailorClient.js.map +0 -1
  366. package/dist/cjs/commands/CreateChannelCommand.js.map +0 -1
  367. package/dist/cjs/commands/CreateProgramCommand.js.map +0 -1
  368. package/dist/cjs/commands/CreateSourceLocationCommand.js.map +0 -1
  369. package/dist/cjs/commands/CreateVodSourceCommand.js.map +0 -1
  370. package/dist/cjs/commands/DeleteChannelCommand.js.map +0 -1
  371. package/dist/cjs/commands/DeleteChannelPolicyCommand.js.map +0 -1
  372. package/dist/cjs/commands/DeletePlaybackConfigurationCommand.js.map +0 -1
  373. package/dist/cjs/commands/DeleteProgramCommand.js.map +0 -1
  374. package/dist/cjs/commands/DeleteSourceLocationCommand.js.map +0 -1
  375. package/dist/cjs/commands/DeleteVodSourceCommand.js.map +0 -1
  376. package/dist/cjs/commands/DescribeChannelCommand.js.map +0 -1
  377. package/dist/cjs/commands/DescribeProgramCommand.js.map +0 -1
  378. package/dist/cjs/commands/DescribeSourceLocationCommand.js.map +0 -1
  379. package/dist/cjs/commands/DescribeVodSourceCommand.js.map +0 -1
  380. package/dist/cjs/commands/GetChannelPolicyCommand.js.map +0 -1
  381. package/dist/cjs/commands/GetChannelScheduleCommand.js.map +0 -1
  382. package/dist/cjs/commands/GetPlaybackConfigurationCommand.js.map +0 -1
  383. package/dist/cjs/commands/ListAlertsCommand.js.map +0 -1
  384. package/dist/cjs/commands/ListChannelsCommand.js.map +0 -1
  385. package/dist/cjs/commands/ListPlaybackConfigurationsCommand.js.map +0 -1
  386. package/dist/cjs/commands/ListSourceLocationsCommand.js.map +0 -1
  387. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  388. package/dist/cjs/commands/ListVodSourcesCommand.js.map +0 -1
  389. package/dist/cjs/commands/PutChannelPolicyCommand.js.map +0 -1
  390. package/dist/cjs/commands/PutPlaybackConfigurationCommand.js.map +0 -1
  391. package/dist/cjs/commands/StartChannelCommand.js.map +0 -1
  392. package/dist/cjs/commands/StopChannelCommand.js.map +0 -1
  393. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  394. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  395. package/dist/cjs/commands/UpdateChannelCommand.js.map +0 -1
  396. package/dist/cjs/commands/UpdateSourceLocationCommand.js.map +0 -1
  397. package/dist/cjs/commands/UpdateVodSourceCommand.js.map +0 -1
  398. package/dist/cjs/endpoints.js.map +0 -1
  399. package/dist/cjs/index.js +0 -46
  400. package/dist/cjs/index.js.map +0 -1
  401. package/dist/cjs/models/models_0.js.map +0 -1
  402. package/dist/cjs/package.json +0 -91
  403. package/dist/cjs/pagination/GetChannelSchedulePaginator.js.map +0 -1
  404. package/dist/cjs/pagination/ListAlertsPaginator.js.map +0 -1
  405. package/dist/cjs/pagination/ListChannelsPaginator.js.map +0 -1
  406. package/dist/cjs/pagination/ListPlaybackConfigurationsPaginator.js.map +0 -1
  407. package/dist/cjs/pagination/ListSourceLocationsPaginator.js.map +0 -1
  408. package/dist/cjs/pagination/ListVodSourcesPaginator.js.map +0 -1
  409. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  410. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  411. package/dist/cjs/runtimeConfig.js.map +0 -1
  412. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  413. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  414. package/dist/es/MediaTailor.js.map +0 -1
  415. package/dist/es/MediaTailorClient.js.map +0 -1
  416. package/dist/es/commands/CreateChannelCommand.js.map +0 -1
  417. package/dist/es/commands/CreateProgramCommand.js.map +0 -1
  418. package/dist/es/commands/CreateSourceLocationCommand.js.map +0 -1
  419. package/dist/es/commands/CreateVodSourceCommand.js.map +0 -1
  420. package/dist/es/commands/DeleteChannelCommand.js.map +0 -1
  421. package/dist/es/commands/DeleteChannelPolicyCommand.js.map +0 -1
  422. package/dist/es/commands/DeletePlaybackConfigurationCommand.js.map +0 -1
  423. package/dist/es/commands/DeleteProgramCommand.js.map +0 -1
  424. package/dist/es/commands/DeleteSourceLocationCommand.js.map +0 -1
  425. package/dist/es/commands/DeleteVodSourceCommand.js.map +0 -1
  426. package/dist/es/commands/DescribeChannelCommand.js.map +0 -1
  427. package/dist/es/commands/DescribeProgramCommand.js.map +0 -1
  428. package/dist/es/commands/DescribeSourceLocationCommand.js.map +0 -1
  429. package/dist/es/commands/DescribeVodSourceCommand.js.map +0 -1
  430. package/dist/es/commands/GetChannelPolicyCommand.js.map +0 -1
  431. package/dist/es/commands/GetChannelScheduleCommand.js.map +0 -1
  432. package/dist/es/commands/GetPlaybackConfigurationCommand.js.map +0 -1
  433. package/dist/es/commands/ListAlertsCommand.js.map +0 -1
  434. package/dist/es/commands/ListChannelsCommand.js.map +0 -1
  435. package/dist/es/commands/ListPlaybackConfigurationsCommand.js.map +0 -1
  436. package/dist/es/commands/ListSourceLocationsCommand.js.map +0 -1
  437. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  438. package/dist/es/commands/ListVodSourcesCommand.js.map +0 -1
  439. package/dist/es/commands/PutChannelPolicyCommand.js.map +0 -1
  440. package/dist/es/commands/PutPlaybackConfigurationCommand.js.map +0 -1
  441. package/dist/es/commands/StartChannelCommand.js.map +0 -1
  442. package/dist/es/commands/StopChannelCommand.js.map +0 -1
  443. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  444. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  445. package/dist/es/commands/UpdateChannelCommand.js.map +0 -1
  446. package/dist/es/commands/UpdateSourceLocationCommand.js.map +0 -1
  447. package/dist/es/commands/UpdateVodSourceCommand.js.map +0 -1
  448. package/dist/es/endpoints.js.map +0 -1
  449. package/dist/es/index.js.map +0 -1
  450. package/dist/es/models/index.js.map +0 -1
  451. package/dist/es/models/models_0.js.map +0 -1
  452. package/dist/es/package.json +0 -91
  453. package/dist/es/pagination/GetChannelSchedulePaginator.js.map +0 -1
  454. package/dist/es/pagination/ListAlertsPaginator.js.map +0 -1
  455. package/dist/es/pagination/ListChannelsPaginator.js.map +0 -1
  456. package/dist/es/pagination/ListPlaybackConfigurationsPaginator.js.map +0 -1
  457. package/dist/es/pagination/ListSourceLocationsPaginator.js.map +0 -1
  458. package/dist/es/pagination/ListVodSourcesPaginator.js.map +0 -1
  459. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  460. package/dist/es/runtimeConfig.browser.js.map +0 -1
  461. package/dist/es/runtimeConfig.js.map +0 -1
  462. package/dist/es/runtimeConfig.native.js.map +0 -1
  463. package/dist/es/runtimeConfig.shared.js.map +0 -1
@@ -1,11 +1,37 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
3
  import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
4
+ export var serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
6
+ return __generator(this, function (_c) {
7
+ switch (_c.label) {
8
+ case 0: return [4, context.endpoint()];
9
+ case 1:
10
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
11
+ headers = {
12
+ "content-type": "application/json",
13
+ };
14
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configureLogs/playbackConfiguration";
15
+ body = JSON.stringify(__assign(__assign({}, (input.PercentEnabled !== undefined &&
16
+ input.PercentEnabled !== null && { PercentEnabled: input.PercentEnabled })), (input.PlaybackConfigurationName !== undefined &&
17
+ input.PlaybackConfigurationName !== null && { PlaybackConfigurationName: input.PlaybackConfigurationName })));
18
+ return [2, new __HttpRequest({
19
+ protocol: protocol,
20
+ hostname: hostname,
21
+ port: port,
22
+ method: "PUT",
23
+ headers: headers,
24
+ path: resolvedPath,
25
+ body: body,
26
+ })];
27
+ }
28
+ });
29
+ }); };
4
30
  export var serializeAws_restJson1CreateChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
31
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
6
32
  return __generator(this, function (_c) {
7
33
  switch (_c.label) {
8
- case 0: return [4 /*yield*/, context.endpoint()];
34
+ case 0: return [4, context.endpoint()];
9
35
  case 1:
10
36
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
11
37
  headers = {
@@ -26,7 +52,7 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
26
52
  input.FillerSlate !== null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) })), (input.Outputs !== undefined &&
27
53
  input.Outputs !== null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) })), (input.PlaybackMode !== undefined && input.PlaybackMode !== null && { PlaybackMode: input.PlaybackMode })), (input.Tags !== undefined &&
28
54
  input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
29
- return [2 /*return*/, new __HttpRequest({
55
+ return [2, new __HttpRequest({
30
56
  protocol: protocol,
31
57
  hostname: hostname,
32
58
  port: port,
@@ -42,7 +68,7 @@ export var serializeAws_restJson1CreateProgramCommand = function (input, context
42
68
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
43
69
  return __generator(this, function (_c) {
44
70
  switch (_c.label) {
45
- case 0: return [4 /*yield*/, context.endpoint()];
71
+ case 0: return [4, context.endpoint()];
46
72
  case 1:
47
73
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
48
74
  headers = {
@@ -76,7 +102,7 @@ export var serializeAws_restJson1CreateProgramCommand = function (input, context
76
102
  ScheduleConfiguration: serializeAws_restJson1ScheduleConfiguration(input.ScheduleConfiguration, context),
77
103
  })), (input.SourceLocationName !== undefined &&
78
104
  input.SourceLocationName !== null && { SourceLocationName: input.SourceLocationName })), (input.VodSourceName !== undefined && input.VodSourceName !== null && { VodSourceName: input.VodSourceName })));
79
- return [2 /*return*/, new __HttpRequest({
105
+ return [2, new __HttpRequest({
80
106
  protocol: protocol,
81
107
  hostname: hostname,
82
108
  port: port,
@@ -92,7 +118,7 @@ export var serializeAws_restJson1CreateSourceLocationCommand = function (input,
92
118
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
93
119
  return __generator(this, function (_c) {
94
120
  switch (_c.label) {
95
- case 0: return [4 /*yield*/, context.endpoint()];
121
+ case 0: return [4, context.endpoint()];
96
122
  case 1:
97
123
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
98
124
  headers = {
@@ -120,7 +146,7 @@ export var serializeAws_restJson1CreateSourceLocationCommand = function (input,
120
146
  HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
121
147
  })), (input.Tags !== undefined &&
122
148
  input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
123
- return [2 /*return*/, new __HttpRequest({
149
+ return [2, new __HttpRequest({
124
150
  protocol: protocol,
125
151
  hostname: hostname,
126
152
  port: port,
@@ -136,7 +162,7 @@ export var serializeAws_restJson1CreateVodSourceCommand = function (input, conte
136
162
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
137
163
  return __generator(this, function (_c) {
138
164
  switch (_c.label) {
139
- case 0: return [4 /*yield*/, context.endpoint()];
165
+ case 0: return [4, context.endpoint()];
140
166
  case 1:
141
167
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
142
168
  headers = {
@@ -169,7 +195,7 @@ export var serializeAws_restJson1CreateVodSourceCommand = function (input, conte
169
195
  HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
170
196
  })), (input.Tags !== undefined &&
171
197
  input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
172
- return [2 /*return*/, new __HttpRequest({
198
+ return [2, new __HttpRequest({
173
199
  protocol: protocol,
174
200
  hostname: hostname,
175
201
  port: port,
@@ -185,7 +211,7 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
185
211
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
186
212
  return __generator(this, function (_c) {
187
213
  switch (_c.label) {
188
- case 0: return [4 /*yield*/, context.endpoint()];
214
+ case 0: return [4, context.endpoint()];
189
215
  case 1:
190
216
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
191
217
  headers = {};
@@ -200,7 +226,7 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
200
226
  else {
201
227
  throw new Error("No value provided for input HTTP label: ChannelName.");
202
228
  }
203
- return [2 /*return*/, new __HttpRequest({
229
+ return [2, new __HttpRequest({
204
230
  protocol: protocol,
205
231
  hostname: hostname,
206
232
  port: port,
@@ -216,7 +242,7 @@ export var serializeAws_restJson1DeleteChannelPolicyCommand = function (input, c
216
242
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
217
243
  return __generator(this, function (_c) {
218
244
  switch (_c.label) {
219
- case 0: return [4 /*yield*/, context.endpoint()];
245
+ case 0: return [4, context.endpoint()];
220
246
  case 1:
221
247
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
222
248
  headers = {};
@@ -231,7 +257,7 @@ export var serializeAws_restJson1DeleteChannelPolicyCommand = function (input, c
231
257
  else {
232
258
  throw new Error("No value provided for input HTTP label: ChannelName.");
233
259
  }
234
- return [2 /*return*/, new __HttpRequest({
260
+ return [2, new __HttpRequest({
235
261
  protocol: protocol,
236
262
  hostname: hostname,
237
263
  port: port,
@@ -247,7 +273,7 @@ export var serializeAws_restJson1DeletePlaybackConfigurationCommand = function (
247
273
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
248
274
  return __generator(this, function (_c) {
249
275
  switch (_c.label) {
250
- case 0: return [4 /*yield*/, context.endpoint()];
276
+ case 0: return [4, context.endpoint()];
251
277
  case 1:
252
278
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
253
279
  headers = {};
@@ -262,7 +288,7 @@ export var serializeAws_restJson1DeletePlaybackConfigurationCommand = function (
262
288
  else {
263
289
  throw new Error("No value provided for input HTTP label: Name.");
264
290
  }
265
- return [2 /*return*/, new __HttpRequest({
291
+ return [2, new __HttpRequest({
266
292
  protocol: protocol,
267
293
  hostname: hostname,
268
294
  port: port,
@@ -278,7 +304,7 @@ export var serializeAws_restJson1DeleteProgramCommand = function (input, context
278
304
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
279
305
  return __generator(this, function (_c) {
280
306
  switch (_c.label) {
281
- case 0: return [4 /*yield*/, context.endpoint()];
307
+ case 0: return [4, context.endpoint()];
282
308
  case 1:
283
309
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
284
310
  headers = {};
@@ -304,7 +330,7 @@ export var serializeAws_restJson1DeleteProgramCommand = function (input, context
304
330
  else {
305
331
  throw new Error("No value provided for input HTTP label: ProgramName.");
306
332
  }
307
- return [2 /*return*/, new __HttpRequest({
333
+ return [2, new __HttpRequest({
308
334
  protocol: protocol,
309
335
  hostname: hostname,
310
336
  port: port,
@@ -320,7 +346,7 @@ export var serializeAws_restJson1DeleteSourceLocationCommand = function (input,
320
346
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
321
347
  return __generator(this, function (_c) {
322
348
  switch (_c.label) {
323
- case 0: return [4 /*yield*/, context.endpoint()];
349
+ case 0: return [4, context.endpoint()];
324
350
  case 1:
325
351
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
326
352
  headers = {};
@@ -335,7 +361,7 @@ export var serializeAws_restJson1DeleteSourceLocationCommand = function (input,
335
361
  else {
336
362
  throw new Error("No value provided for input HTTP label: SourceLocationName.");
337
363
  }
338
- return [2 /*return*/, new __HttpRequest({
364
+ return [2, new __HttpRequest({
339
365
  protocol: protocol,
340
366
  hostname: hostname,
341
367
  port: port,
@@ -351,7 +377,7 @@ export var serializeAws_restJson1DeleteVodSourceCommand = function (input, conte
351
377
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
352
378
  return __generator(this, function (_c) {
353
379
  switch (_c.label) {
354
- case 0: return [4 /*yield*/, context.endpoint()];
380
+ case 0: return [4, context.endpoint()];
355
381
  case 1:
356
382
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
357
383
  headers = {};
@@ -377,7 +403,7 @@ export var serializeAws_restJson1DeleteVodSourceCommand = function (input, conte
377
403
  else {
378
404
  throw new Error("No value provided for input HTTP label: VodSourceName.");
379
405
  }
380
- return [2 /*return*/, new __HttpRequest({
406
+ return [2, new __HttpRequest({
381
407
  protocol: protocol,
382
408
  hostname: hostname,
383
409
  port: port,
@@ -393,7 +419,7 @@ export var serializeAws_restJson1DescribeChannelCommand = function (input, conte
393
419
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
394
420
  return __generator(this, function (_c) {
395
421
  switch (_c.label) {
396
- case 0: return [4 /*yield*/, context.endpoint()];
422
+ case 0: return [4, context.endpoint()];
397
423
  case 1:
398
424
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
399
425
  headers = {};
@@ -408,7 +434,7 @@ export var serializeAws_restJson1DescribeChannelCommand = function (input, conte
408
434
  else {
409
435
  throw new Error("No value provided for input HTTP label: ChannelName.");
410
436
  }
411
- return [2 /*return*/, new __HttpRequest({
437
+ return [2, new __HttpRequest({
412
438
  protocol: protocol,
413
439
  hostname: hostname,
414
440
  port: port,
@@ -424,7 +450,7 @@ export var serializeAws_restJson1DescribeProgramCommand = function (input, conte
424
450
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
425
451
  return __generator(this, function (_c) {
426
452
  switch (_c.label) {
427
- case 0: return [4 /*yield*/, context.endpoint()];
453
+ case 0: return [4, context.endpoint()];
428
454
  case 1:
429
455
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
430
456
  headers = {};
@@ -450,7 +476,7 @@ export var serializeAws_restJson1DescribeProgramCommand = function (input, conte
450
476
  else {
451
477
  throw new Error("No value provided for input HTTP label: ProgramName.");
452
478
  }
453
- return [2 /*return*/, new __HttpRequest({
479
+ return [2, new __HttpRequest({
454
480
  protocol: protocol,
455
481
  hostname: hostname,
456
482
  port: port,
@@ -466,7 +492,7 @@ export var serializeAws_restJson1DescribeSourceLocationCommand = function (input
466
492
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
467
493
  return __generator(this, function (_c) {
468
494
  switch (_c.label) {
469
- case 0: return [4 /*yield*/, context.endpoint()];
495
+ case 0: return [4, context.endpoint()];
470
496
  case 1:
471
497
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
472
498
  headers = {};
@@ -481,7 +507,7 @@ export var serializeAws_restJson1DescribeSourceLocationCommand = function (input
481
507
  else {
482
508
  throw new Error("No value provided for input HTTP label: SourceLocationName.");
483
509
  }
484
- return [2 /*return*/, new __HttpRequest({
510
+ return [2, new __HttpRequest({
485
511
  protocol: protocol,
486
512
  hostname: hostname,
487
513
  port: port,
@@ -497,7 +523,7 @@ export var serializeAws_restJson1DescribeVodSourceCommand = function (input, con
497
523
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
498
524
  return __generator(this, function (_c) {
499
525
  switch (_c.label) {
500
- case 0: return [4 /*yield*/, context.endpoint()];
526
+ case 0: return [4, context.endpoint()];
501
527
  case 1:
502
528
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
503
529
  headers = {};
@@ -523,7 +549,7 @@ export var serializeAws_restJson1DescribeVodSourceCommand = function (input, con
523
549
  else {
524
550
  throw new Error("No value provided for input HTTP label: VodSourceName.");
525
551
  }
526
- return [2 /*return*/, new __HttpRequest({
552
+ return [2, new __HttpRequest({
527
553
  protocol: protocol,
528
554
  hostname: hostname,
529
555
  port: port,
@@ -539,7 +565,7 @@ export var serializeAws_restJson1GetChannelPolicyCommand = function (input, cont
539
565
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
540
566
  return __generator(this, function (_c) {
541
567
  switch (_c.label) {
542
- case 0: return [4 /*yield*/, context.endpoint()];
568
+ case 0: return [4, context.endpoint()];
543
569
  case 1:
544
570
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
545
571
  headers = {};
@@ -554,7 +580,7 @@ export var serializeAws_restJson1GetChannelPolicyCommand = function (input, cont
554
580
  else {
555
581
  throw new Error("No value provided for input HTTP label: ChannelName.");
556
582
  }
557
- return [2 /*return*/, new __HttpRequest({
583
+ return [2, new __HttpRequest({
558
584
  protocol: protocol,
559
585
  hostname: hostname,
560
586
  port: port,
@@ -570,7 +596,7 @@ export var serializeAws_restJson1GetChannelScheduleCommand = function (input, co
570
596
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
571
597
  return __generator(this, function (_c) {
572
598
  switch (_c.label) {
573
- case 0: return [4 /*yield*/, context.endpoint()];
599
+ case 0: return [4, context.endpoint()];
574
600
  case 1:
575
601
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
576
602
  headers = {};
@@ -586,7 +612,7 @@ export var serializeAws_restJson1GetChannelScheduleCommand = function (input, co
586
612
  throw new Error("No value provided for input HTTP label: ChannelName.");
587
613
  }
588
614
  query = __assign(__assign(__assign({}, (input.DurationMinutes !== undefined && { durationMinutes: input.DurationMinutes })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
589
- return [2 /*return*/, new __HttpRequest({
615
+ return [2, new __HttpRequest({
590
616
  protocol: protocol,
591
617
  hostname: hostname,
592
618
  port: port,
@@ -603,7 +629,7 @@ export var serializeAws_restJson1GetPlaybackConfigurationCommand = function (inp
603
629
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
604
630
  return __generator(this, function (_c) {
605
631
  switch (_c.label) {
606
- case 0: return [4 /*yield*/, context.endpoint()];
632
+ case 0: return [4, context.endpoint()];
607
633
  case 1:
608
634
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
609
635
  headers = {};
@@ -618,7 +644,7 @@ export var serializeAws_restJson1GetPlaybackConfigurationCommand = function (inp
618
644
  else {
619
645
  throw new Error("No value provided for input HTTP label: Name.");
620
646
  }
621
- return [2 /*return*/, new __HttpRequest({
647
+ return [2, new __HttpRequest({
622
648
  protocol: protocol,
623
649
  hostname: hostname,
624
650
  port: port,
@@ -634,13 +660,13 @@ export var serializeAws_restJson1ListAlertsCommand = function (input, context) {
634
660
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
635
661
  return __generator(this, function (_c) {
636
662
  switch (_c.label) {
637
- case 0: return [4 /*yield*/, context.endpoint()];
663
+ case 0: return [4, context.endpoint()];
638
664
  case 1:
639
665
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
640
666
  headers = {};
641
667
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alerts";
642
668
  query = __assign(__assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.ResourceArn !== undefined && { resourceArn: input.ResourceArn }));
643
- return [2 /*return*/, new __HttpRequest({
669
+ return [2, new __HttpRequest({
644
670
  protocol: protocol,
645
671
  hostname: hostname,
646
672
  port: port,
@@ -657,13 +683,13 @@ export var serializeAws_restJson1ListChannelsCommand = function (input, context)
657
683
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
658
684
  return __generator(this, function (_c) {
659
685
  switch (_c.label) {
660
- case 0: return [4 /*yield*/, context.endpoint()];
686
+ case 0: return [4, context.endpoint()];
661
687
  case 1:
662
688
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
663
689
  headers = {};
664
690
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
665
691
  query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
666
- return [2 /*return*/, new __HttpRequest({
692
+ return [2, new __HttpRequest({
667
693
  protocol: protocol,
668
694
  hostname: hostname,
669
695
  port: port,
@@ -680,13 +706,13 @@ export var serializeAws_restJson1ListPlaybackConfigurationsCommand = function (i
680
706
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
681
707
  return __generator(this, function (_c) {
682
708
  switch (_c.label) {
683
- case 0: return [4 /*yield*/, context.endpoint()];
709
+ case 0: return [4, context.endpoint()];
684
710
  case 1:
685
711
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
686
712
  headers = {};
687
713
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/playbackConfigurations";
688
714
  query = __assign(__assign({}, (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { NextToken: input.NextToken }));
689
- return [2 /*return*/, new __HttpRequest({
715
+ return [2, new __HttpRequest({
690
716
  protocol: protocol,
691
717
  hostname: hostname,
692
718
  port: port,
@@ -703,13 +729,13 @@ export var serializeAws_restJson1ListSourceLocationsCommand = function (input, c
703
729
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
704
730
  return __generator(this, function (_c) {
705
731
  switch (_c.label) {
706
- case 0: return [4 /*yield*/, context.endpoint()];
732
+ case 0: return [4, context.endpoint()];
707
733
  case 1:
708
734
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
709
735
  headers = {};
710
736
  resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sourceLocations";
711
737
  query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
712
- return [2 /*return*/, new __HttpRequest({
738
+ return [2, new __HttpRequest({
713
739
  protocol: protocol,
714
740
  hostname: hostname,
715
741
  port: port,
@@ -726,7 +752,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
726
752
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
727
753
  return __generator(this, function (_c) {
728
754
  switch (_c.label) {
729
- case 0: return [4 /*yield*/, context.endpoint()];
755
+ case 0: return [4, context.endpoint()];
730
756
  case 1:
731
757
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
732
758
  headers = {};
@@ -741,7 +767,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
741
767
  else {
742
768
  throw new Error("No value provided for input HTTP label: ResourceArn.");
743
769
  }
744
- return [2 /*return*/, new __HttpRequest({
770
+ return [2, new __HttpRequest({
745
771
  protocol: protocol,
746
772
  hostname: hostname,
747
773
  port: port,
@@ -757,7 +783,7 @@ export var serializeAws_restJson1ListVodSourcesCommand = function (input, contex
757
783
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
758
784
  return __generator(this, function (_c) {
759
785
  switch (_c.label) {
760
- case 0: return [4 /*yield*/, context.endpoint()];
786
+ case 0: return [4, context.endpoint()];
761
787
  case 1:
762
788
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
763
789
  headers = {};
@@ -774,7 +800,7 @@ export var serializeAws_restJson1ListVodSourcesCommand = function (input, contex
774
800
  throw new Error("No value provided for input HTTP label: SourceLocationName.");
775
801
  }
776
802
  query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
777
- return [2 /*return*/, new __HttpRequest({
803
+ return [2, new __HttpRequest({
778
804
  protocol: protocol,
779
805
  hostname: hostname,
780
806
  port: port,
@@ -791,7 +817,7 @@ export var serializeAws_restJson1PutChannelPolicyCommand = function (input, cont
791
817
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
792
818
  return __generator(this, function (_c) {
793
819
  switch (_c.label) {
794
- case 0: return [4 /*yield*/, context.endpoint()];
820
+ case 0: return [4, context.endpoint()];
795
821
  case 1:
796
822
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
797
823
  headers = {
@@ -809,7 +835,7 @@ export var serializeAws_restJson1PutChannelPolicyCommand = function (input, cont
809
835
  throw new Error("No value provided for input HTTP label: ChannelName.");
810
836
  }
811
837
  body = JSON.stringify(__assign({}, (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy })));
812
- return [2 /*return*/, new __HttpRequest({
838
+ return [2, new __HttpRequest({
813
839
  protocol: protocol,
814
840
  hostname: hostname,
815
841
  port: port,
@@ -825,7 +851,7 @@ export var serializeAws_restJson1PutPlaybackConfigurationCommand = function (inp
825
851
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
826
852
  return __generator(this, function (_c) {
827
853
  switch (_c.label) {
828
- case 0: return [4 /*yield*/, context.endpoint()];
854
+ case 0: return [4, context.endpoint()];
829
855
  case 1:
830
856
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
831
857
  headers = {
@@ -859,7 +885,7 @@ export var serializeAws_restJson1PutPlaybackConfigurationCommand = function (inp
859
885
  input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })), (input.TranscodeProfileName !== undefined &&
860
886
  input.TranscodeProfileName !== null && { TranscodeProfileName: input.TranscodeProfileName })), (input.VideoContentSourceUrl !== undefined &&
861
887
  input.VideoContentSourceUrl !== null && { VideoContentSourceUrl: input.VideoContentSourceUrl })));
862
- return [2 /*return*/, new __HttpRequest({
888
+ return [2, new __HttpRequest({
863
889
  protocol: protocol,
864
890
  hostname: hostname,
865
891
  port: port,
@@ -875,7 +901,7 @@ export var serializeAws_restJson1StartChannelCommand = function (input, context)
875
901
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
876
902
  return __generator(this, function (_c) {
877
903
  switch (_c.label) {
878
- case 0: return [4 /*yield*/, context.endpoint()];
904
+ case 0: return [4, context.endpoint()];
879
905
  case 1:
880
906
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
881
907
  headers = {};
@@ -890,7 +916,7 @@ export var serializeAws_restJson1StartChannelCommand = function (input, context)
890
916
  else {
891
917
  throw new Error("No value provided for input HTTP label: ChannelName.");
892
918
  }
893
- return [2 /*return*/, new __HttpRequest({
919
+ return [2, new __HttpRequest({
894
920
  protocol: protocol,
895
921
  hostname: hostname,
896
922
  port: port,
@@ -906,7 +932,7 @@ export var serializeAws_restJson1StopChannelCommand = function (input, context)
906
932
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
907
933
  return __generator(this, function (_c) {
908
934
  switch (_c.label) {
909
- case 0: return [4 /*yield*/, context.endpoint()];
935
+ case 0: return [4, context.endpoint()];
910
936
  case 1:
911
937
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
912
938
  headers = {};
@@ -921,7 +947,7 @@ export var serializeAws_restJson1StopChannelCommand = function (input, context)
921
947
  else {
922
948
  throw new Error("No value provided for input HTTP label: ChannelName.");
923
949
  }
924
- return [2 /*return*/, new __HttpRequest({
950
+ return [2, new __HttpRequest({
925
951
  protocol: protocol,
926
952
  hostname: hostname,
927
953
  port: port,
@@ -937,7 +963,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
937
963
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
938
964
  return __generator(this, function (_c) {
939
965
  switch (_c.label) {
940
- case 0: return [4 /*yield*/, context.endpoint()];
966
+ case 0: return [4, context.endpoint()];
941
967
  case 1:
942
968
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
943
969
  headers = {
@@ -956,7 +982,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
956
982
  }
957
983
  body = JSON.stringify(__assign({}, (input.Tags !== undefined &&
958
984
  input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
959
- return [2 /*return*/, new __HttpRequest({
985
+ return [2, new __HttpRequest({
960
986
  protocol: protocol,
961
987
  hostname: hostname,
962
988
  port: port,
@@ -972,7 +998,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
972
998
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
973
999
  return __generator(this, function (_c) {
974
1000
  switch (_c.label) {
975
- case 0: return [4 /*yield*/, context.endpoint()];
1001
+ case 0: return [4, context.endpoint()];
976
1002
  case 1:
977
1003
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
978
1004
  headers = {};
@@ -988,7 +1014,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
988
1014
  throw new Error("No value provided for input HTTP label: ResourceArn.");
989
1015
  }
990
1016
  query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
991
- return [2 /*return*/, new __HttpRequest({
1017
+ return [2, new __HttpRequest({
992
1018
  protocol: protocol,
993
1019
  hostname: hostname,
994
1020
  port: port,
@@ -1005,7 +1031,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
1005
1031
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
1006
1032
  return __generator(this, function (_c) {
1007
1033
  switch (_c.label) {
1008
- case 0: return [4 /*yield*/, context.endpoint()];
1034
+ case 0: return [4, context.endpoint()];
1009
1035
  case 1:
1010
1036
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1011
1037
  headers = {
@@ -1024,7 +1050,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
1024
1050
  }
1025
1051
  body = JSON.stringify(__assign({}, (input.Outputs !== undefined &&
1026
1052
  input.Outputs !== null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) })));
1027
- return [2 /*return*/, new __HttpRequest({
1053
+ return [2, new __HttpRequest({
1028
1054
  protocol: protocol,
1029
1055
  hostname: hostname,
1030
1056
  port: port,
@@ -1040,7 +1066,7 @@ export var serializeAws_restJson1UpdateSourceLocationCommand = function (input,
1040
1066
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
1041
1067
  return __generator(this, function (_c) {
1042
1068
  switch (_c.label) {
1043
- case 0: return [4 /*yield*/, context.endpoint()];
1069
+ case 0: return [4, context.endpoint()];
1044
1070
  case 1:
1045
1071
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1046
1072
  headers = {
@@ -1067,7 +1093,7 @@ export var serializeAws_restJson1UpdateSourceLocationCommand = function (input,
1067
1093
  input.HttpConfiguration !== null && {
1068
1094
  HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
1069
1095
  })));
1070
- return [2 /*return*/, new __HttpRequest({
1096
+ return [2, new __HttpRequest({
1071
1097
  protocol: protocol,
1072
1098
  hostname: hostname,
1073
1099
  port: port,
@@ -1083,7 +1109,7 @@ export var serializeAws_restJson1UpdateVodSourceCommand = function (input, conte
1083
1109
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
1084
1110
  return __generator(this, function (_c) {
1085
1111
  switch (_c.label) {
1086
- case 0: return [4 /*yield*/, context.endpoint()];
1112
+ case 0: return [4, context.endpoint()];
1087
1113
  case 1:
1088
1114
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1089
1115
  headers = {
@@ -1115,7 +1141,7 @@ export var serializeAws_restJson1UpdateVodSourceCommand = function (input, conte
1115
1141
  input.HttpPackageConfigurations !== null && {
1116
1142
  HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
1117
1143
  })));
1118
- return [2 /*return*/, new __HttpRequest({
1144
+ return [2, new __HttpRequest({
1119
1145
  protocol: protocol,
1120
1146
  hostname: hostname,
1121
1147
  port: port,
@@ -1127,13 +1153,67 @@ export var serializeAws_restJson1UpdateVodSourceCommand = function (input, conte
1127
1153
  }
1128
1154
  });
1129
1155
  }); };
1156
+ export var deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1157
+ var contents, data, _a, _b;
1158
+ return __generator(this, function (_c) {
1159
+ switch (_c.label) {
1160
+ case 0:
1161
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1162
+ return [2, deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError(output, context)];
1163
+ }
1164
+ contents = {
1165
+ $metadata: deserializeMetadata(output),
1166
+ PercentEnabled: undefined,
1167
+ PlaybackConfigurationName: undefined,
1168
+ };
1169
+ _a = __expectNonNull;
1170
+ _b = __expectObject;
1171
+ return [4, parseBody(output.body, context)];
1172
+ case 1:
1173
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1174
+ if (data.PercentEnabled !== undefined && data.PercentEnabled !== null) {
1175
+ contents.PercentEnabled = __expectInt32(data.PercentEnabled);
1176
+ }
1177
+ if (data.PlaybackConfigurationName !== undefined && data.PlaybackConfigurationName !== null) {
1178
+ contents.PlaybackConfigurationName = __expectString(data.PlaybackConfigurationName);
1179
+ }
1180
+ return [2, Promise.resolve(contents)];
1181
+ }
1182
+ });
1183
+ }); };
1184
+ var deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1185
+ var parsedOutput, _a, response, errorCode, parsedBody, message;
1186
+ var _b;
1187
+ return __generator(this, function (_c) {
1188
+ switch (_c.label) {
1189
+ case 0:
1190
+ _a = [__assign({}, output)];
1191
+ _b = {};
1192
+ return [4, parseBody(output.body, context)];
1193
+ case 1:
1194
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1195
+ errorCode = "UnknownError";
1196
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1197
+ switch (errorCode) {
1198
+ default:
1199
+ parsedBody = parsedOutput.body;
1200
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1201
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
1202
+ }
1203
+ message = response.message || response.Message || errorCode;
1204
+ response.message = message;
1205
+ delete response.Message;
1206
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1207
+ }
1208
+ });
1209
+ }); };
1130
1210
  export var deserializeAws_restJson1CreateChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1131
1211
  var contents, data, _a, _b;
1132
1212
  return __generator(this, function (_c) {
1133
1213
  switch (_c.label) {
1134
1214
  case 0:
1135
1215
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1136
- return [2 /*return*/, deserializeAws_restJson1CreateChannelCommandError(output, context)];
1216
+ return [2, deserializeAws_restJson1CreateChannelCommandError(output, context)];
1137
1217
  }
1138
1218
  contents = {
1139
1219
  $metadata: deserializeMetadata(output),
@@ -1149,7 +1229,7 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
1149
1229
  };
1150
1230
  _a = __expectNonNull;
1151
1231
  _b = __expectObject;
1152
- return [4 /*yield*/, parseBody(output.body, context)];
1232
+ return [4, parseBody(output.body, context)];
1153
1233
  case 1:
1154
1234
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1155
1235
  if (data.Arn !== undefined && data.Arn !== null) {
@@ -1179,7 +1259,7 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
1179
1259
  if (data.tags !== undefined && data.tags !== null) {
1180
1260
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
1181
1261
  }
1182
- return [2 /*return*/, Promise.resolve(contents)];
1262
+ return [2, Promise.resolve(contents)];
1183
1263
  }
1184
1264
  });
1185
1265
  }); };
@@ -1191,7 +1271,7 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
1191
1271
  case 0:
1192
1272
  _a = [__assign({}, output)];
1193
1273
  _b = {};
1194
- return [4 /*yield*/, parseBody(output.body, context)];
1274
+ return [4, parseBody(output.body, context)];
1195
1275
  case 1:
1196
1276
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1197
1277
  errorCode = "UnknownError";
@@ -1205,7 +1285,7 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
1205
1285
  message = response.message || response.Message || errorCode;
1206
1286
  response.message = message;
1207
1287
  delete response.Message;
1208
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1288
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1209
1289
  }
1210
1290
  });
1211
1291
  }); };
@@ -1215,7 +1295,7 @@ export var deserializeAws_restJson1CreateProgramCommand = function (output, cont
1215
1295
  switch (_c.label) {
1216
1296
  case 0:
1217
1297
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1218
- return [2 /*return*/, deserializeAws_restJson1CreateProgramCommandError(output, context)];
1298
+ return [2, deserializeAws_restJson1CreateProgramCommandError(output, context)];
1219
1299
  }
1220
1300
  contents = {
1221
1301
  $metadata: deserializeMetadata(output),
@@ -1230,7 +1310,7 @@ export var deserializeAws_restJson1CreateProgramCommand = function (output, cont
1230
1310
  };
1231
1311
  _a = __expectNonNull;
1232
1312
  _b = __expectObject;
1233
- return [4 /*yield*/, parseBody(output.body, context)];
1313
+ return [4, parseBody(output.body, context)];
1234
1314
  case 1:
1235
1315
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1236
1316
  if (data.AdBreaks !== undefined && data.AdBreaks !== null) {
@@ -1257,7 +1337,7 @@ export var deserializeAws_restJson1CreateProgramCommand = function (output, cont
1257
1337
  if (data.VodSourceName !== undefined && data.VodSourceName !== null) {
1258
1338
  contents.VodSourceName = __expectString(data.VodSourceName);
1259
1339
  }
1260
- return [2 /*return*/, Promise.resolve(contents)];
1340
+ return [2, Promise.resolve(contents)];
1261
1341
  }
1262
1342
  });
1263
1343
  }); };
@@ -1269,7 +1349,7 @@ var deserializeAws_restJson1CreateProgramCommandError = function (output, contex
1269
1349
  case 0:
1270
1350
  _a = [__assign({}, output)];
1271
1351
  _b = {};
1272
- return [4 /*yield*/, parseBody(output.body, context)];
1352
+ return [4, parseBody(output.body, context)];
1273
1353
  case 1:
1274
1354
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1275
1355
  errorCode = "UnknownError";
@@ -1283,7 +1363,7 @@ var deserializeAws_restJson1CreateProgramCommandError = function (output, contex
1283
1363
  message = response.message || response.Message || errorCode;
1284
1364
  response.message = message;
1285
1365
  delete response.Message;
1286
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1366
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1287
1367
  }
1288
1368
  });
1289
1369
  }); };
@@ -1293,7 +1373,7 @@ export var deserializeAws_restJson1CreateSourceLocationCommand = function (outpu
1293
1373
  switch (_c.label) {
1294
1374
  case 0:
1295
1375
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1296
- return [2 /*return*/, deserializeAws_restJson1CreateSourceLocationCommandError(output, context)];
1376
+ return [2, deserializeAws_restJson1CreateSourceLocationCommandError(output, context)];
1297
1377
  }
1298
1378
  contents = {
1299
1379
  $metadata: deserializeMetadata(output),
@@ -1308,7 +1388,7 @@ export var deserializeAws_restJson1CreateSourceLocationCommand = function (outpu
1308
1388
  };
1309
1389
  _a = __expectNonNull;
1310
1390
  _b = __expectObject;
1311
- return [4 /*yield*/, parseBody(output.body, context)];
1391
+ return [4, parseBody(output.body, context)];
1312
1392
  case 1:
1313
1393
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1314
1394
  if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
@@ -1335,7 +1415,7 @@ export var deserializeAws_restJson1CreateSourceLocationCommand = function (outpu
1335
1415
  if (data.tags !== undefined && data.tags !== null) {
1336
1416
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
1337
1417
  }
1338
- return [2 /*return*/, Promise.resolve(contents)];
1418
+ return [2, Promise.resolve(contents)];
1339
1419
  }
1340
1420
  });
1341
1421
  }); };
@@ -1347,7 +1427,7 @@ var deserializeAws_restJson1CreateSourceLocationCommandError = function (output,
1347
1427
  case 0:
1348
1428
  _a = [__assign({}, output)];
1349
1429
  _b = {};
1350
- return [4 /*yield*/, parseBody(output.body, context)];
1430
+ return [4, parseBody(output.body, context)];
1351
1431
  case 1:
1352
1432
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1353
1433
  errorCode = "UnknownError";
@@ -1361,7 +1441,7 @@ var deserializeAws_restJson1CreateSourceLocationCommandError = function (output,
1361
1441
  message = response.message || response.Message || errorCode;
1362
1442
  response.message = message;
1363
1443
  delete response.Message;
1364
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1444
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1365
1445
  }
1366
1446
  });
1367
1447
  }); };
@@ -1371,7 +1451,7 @@ export var deserializeAws_restJson1CreateVodSourceCommand = function (output, co
1371
1451
  switch (_c.label) {
1372
1452
  case 0:
1373
1453
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1374
- return [2 /*return*/, deserializeAws_restJson1CreateVodSourceCommandError(output, context)];
1454
+ return [2, deserializeAws_restJson1CreateVodSourceCommandError(output, context)];
1375
1455
  }
1376
1456
  contents = {
1377
1457
  $metadata: deserializeMetadata(output),
@@ -1385,7 +1465,7 @@ export var deserializeAws_restJson1CreateVodSourceCommand = function (output, co
1385
1465
  };
1386
1466
  _a = __expectNonNull;
1387
1467
  _b = __expectObject;
1388
- return [4 /*yield*/, parseBody(output.body, context)];
1468
+ return [4, parseBody(output.body, context)];
1389
1469
  case 1:
1390
1470
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1391
1471
  if (data.Arn !== undefined && data.Arn !== null) {
@@ -1409,7 +1489,7 @@ export var deserializeAws_restJson1CreateVodSourceCommand = function (output, co
1409
1489
  if (data.VodSourceName !== undefined && data.VodSourceName !== null) {
1410
1490
  contents.VodSourceName = __expectString(data.VodSourceName);
1411
1491
  }
1412
- return [2 /*return*/, Promise.resolve(contents)];
1492
+ return [2, Promise.resolve(contents)];
1413
1493
  }
1414
1494
  });
1415
1495
  }); };
@@ -1421,7 +1501,7 @@ var deserializeAws_restJson1CreateVodSourceCommandError = function (output, cont
1421
1501
  case 0:
1422
1502
  _a = [__assign({}, output)];
1423
1503
  _b = {};
1424
- return [4 /*yield*/, parseBody(output.body, context)];
1504
+ return [4, parseBody(output.body, context)];
1425
1505
  case 1:
1426
1506
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1427
1507
  errorCode = "UnknownError";
@@ -1435,7 +1515,7 @@ var deserializeAws_restJson1CreateVodSourceCommandError = function (output, cont
1435
1515
  message = response.message || response.Message || errorCode;
1436
1516
  response.message = message;
1437
1517
  delete response.Message;
1438
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1518
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1439
1519
  }
1440
1520
  });
1441
1521
  }); };
@@ -1445,15 +1525,15 @@ export var deserializeAws_restJson1DeleteChannelCommand = function (output, cont
1445
1525
  switch (_a.label) {
1446
1526
  case 0:
1447
1527
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1448
- return [2 /*return*/, deserializeAws_restJson1DeleteChannelCommandError(output, context)];
1528
+ return [2, deserializeAws_restJson1DeleteChannelCommandError(output, context)];
1449
1529
  }
1450
1530
  contents = {
1451
1531
  $metadata: deserializeMetadata(output),
1452
1532
  };
1453
- return [4 /*yield*/, collectBody(output.body, context)];
1533
+ return [4, collectBody(output.body, context)];
1454
1534
  case 1:
1455
1535
  _a.sent();
1456
- return [2 /*return*/, Promise.resolve(contents)];
1536
+ return [2, Promise.resolve(contents)];
1457
1537
  }
1458
1538
  });
1459
1539
  }); };
@@ -1465,7 +1545,7 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
1465
1545
  case 0:
1466
1546
  _a = [__assign({}, output)];
1467
1547
  _b = {};
1468
- return [4 /*yield*/, parseBody(output.body, context)];
1548
+ return [4, parseBody(output.body, context)];
1469
1549
  case 1:
1470
1550
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1471
1551
  errorCode = "UnknownError";
@@ -1479,7 +1559,7 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
1479
1559
  message = response.message || response.Message || errorCode;
1480
1560
  response.message = message;
1481
1561
  delete response.Message;
1482
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1562
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1483
1563
  }
1484
1564
  });
1485
1565
  }); };
@@ -1489,15 +1569,15 @@ export var deserializeAws_restJson1DeleteChannelPolicyCommand = function (output
1489
1569
  switch (_a.label) {
1490
1570
  case 0:
1491
1571
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1492
- return [2 /*return*/, deserializeAws_restJson1DeleteChannelPolicyCommandError(output, context)];
1572
+ return [2, deserializeAws_restJson1DeleteChannelPolicyCommandError(output, context)];
1493
1573
  }
1494
1574
  contents = {
1495
1575
  $metadata: deserializeMetadata(output),
1496
1576
  };
1497
- return [4 /*yield*/, collectBody(output.body, context)];
1577
+ return [4, collectBody(output.body, context)];
1498
1578
  case 1:
1499
1579
  _a.sent();
1500
- return [2 /*return*/, Promise.resolve(contents)];
1580
+ return [2, Promise.resolve(contents)];
1501
1581
  }
1502
1582
  });
1503
1583
  }); };
@@ -1509,7 +1589,7 @@ var deserializeAws_restJson1DeleteChannelPolicyCommandError = function (output,
1509
1589
  case 0:
1510
1590
  _a = [__assign({}, output)];
1511
1591
  _b = {};
1512
- return [4 /*yield*/, parseBody(output.body, context)];
1592
+ return [4, parseBody(output.body, context)];
1513
1593
  case 1:
1514
1594
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1515
1595
  errorCode = "UnknownError";
@@ -1523,7 +1603,7 @@ var deserializeAws_restJson1DeleteChannelPolicyCommandError = function (output,
1523
1603
  message = response.message || response.Message || errorCode;
1524
1604
  response.message = message;
1525
1605
  delete response.Message;
1526
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1606
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1527
1607
  }
1528
1608
  });
1529
1609
  }); };
@@ -1533,15 +1613,15 @@ export var deserializeAws_restJson1DeletePlaybackConfigurationCommand = function
1533
1613
  switch (_a.label) {
1534
1614
  case 0:
1535
1615
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1536
- return [2 /*return*/, deserializeAws_restJson1DeletePlaybackConfigurationCommandError(output, context)];
1616
+ return [2, deserializeAws_restJson1DeletePlaybackConfigurationCommandError(output, context)];
1537
1617
  }
1538
1618
  contents = {
1539
1619
  $metadata: deserializeMetadata(output),
1540
1620
  };
1541
- return [4 /*yield*/, collectBody(output.body, context)];
1621
+ return [4, collectBody(output.body, context)];
1542
1622
  case 1:
1543
1623
  _a.sent();
1544
- return [2 /*return*/, Promise.resolve(contents)];
1624
+ return [2, Promise.resolve(contents)];
1545
1625
  }
1546
1626
  });
1547
1627
  }); };
@@ -1553,7 +1633,7 @@ var deserializeAws_restJson1DeletePlaybackConfigurationCommandError = function (
1553
1633
  case 0:
1554
1634
  _a = [__assign({}, output)];
1555
1635
  _b = {};
1556
- return [4 /*yield*/, parseBody(output.body, context)];
1636
+ return [4, parseBody(output.body, context)];
1557
1637
  case 1:
1558
1638
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1559
1639
  errorCode = "UnknownError";
@@ -1567,7 +1647,7 @@ var deserializeAws_restJson1DeletePlaybackConfigurationCommandError = function (
1567
1647
  message = response.message || response.Message || errorCode;
1568
1648
  response.message = message;
1569
1649
  delete response.Message;
1570
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1650
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1571
1651
  }
1572
1652
  });
1573
1653
  }); };
@@ -1577,15 +1657,15 @@ export var deserializeAws_restJson1DeleteProgramCommand = function (output, cont
1577
1657
  switch (_a.label) {
1578
1658
  case 0:
1579
1659
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1580
- return [2 /*return*/, deserializeAws_restJson1DeleteProgramCommandError(output, context)];
1660
+ return [2, deserializeAws_restJson1DeleteProgramCommandError(output, context)];
1581
1661
  }
1582
1662
  contents = {
1583
1663
  $metadata: deserializeMetadata(output),
1584
1664
  };
1585
- return [4 /*yield*/, collectBody(output.body, context)];
1665
+ return [4, collectBody(output.body, context)];
1586
1666
  case 1:
1587
1667
  _a.sent();
1588
- return [2 /*return*/, Promise.resolve(contents)];
1668
+ return [2, Promise.resolve(contents)];
1589
1669
  }
1590
1670
  });
1591
1671
  }); };
@@ -1597,7 +1677,7 @@ var deserializeAws_restJson1DeleteProgramCommandError = function (output, contex
1597
1677
  case 0:
1598
1678
  _a = [__assign({}, output)];
1599
1679
  _b = {};
1600
- return [4 /*yield*/, parseBody(output.body, context)];
1680
+ return [4, parseBody(output.body, context)];
1601
1681
  case 1:
1602
1682
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1603
1683
  errorCode = "UnknownError";
@@ -1611,7 +1691,7 @@ var deserializeAws_restJson1DeleteProgramCommandError = function (output, contex
1611
1691
  message = response.message || response.Message || errorCode;
1612
1692
  response.message = message;
1613
1693
  delete response.Message;
1614
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1694
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1615
1695
  }
1616
1696
  });
1617
1697
  }); };
@@ -1621,15 +1701,15 @@ export var deserializeAws_restJson1DeleteSourceLocationCommand = function (outpu
1621
1701
  switch (_a.label) {
1622
1702
  case 0:
1623
1703
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1624
- return [2 /*return*/, deserializeAws_restJson1DeleteSourceLocationCommandError(output, context)];
1704
+ return [2, deserializeAws_restJson1DeleteSourceLocationCommandError(output, context)];
1625
1705
  }
1626
1706
  contents = {
1627
1707
  $metadata: deserializeMetadata(output),
1628
1708
  };
1629
- return [4 /*yield*/, collectBody(output.body, context)];
1709
+ return [4, collectBody(output.body, context)];
1630
1710
  case 1:
1631
1711
  _a.sent();
1632
- return [2 /*return*/, Promise.resolve(contents)];
1712
+ return [2, Promise.resolve(contents)];
1633
1713
  }
1634
1714
  });
1635
1715
  }); };
@@ -1641,7 +1721,7 @@ var deserializeAws_restJson1DeleteSourceLocationCommandError = function (output,
1641
1721
  case 0:
1642
1722
  _a = [__assign({}, output)];
1643
1723
  _b = {};
1644
- return [4 /*yield*/, parseBody(output.body, context)];
1724
+ return [4, parseBody(output.body, context)];
1645
1725
  case 1:
1646
1726
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1647
1727
  errorCode = "UnknownError";
@@ -1655,7 +1735,7 @@ var deserializeAws_restJson1DeleteSourceLocationCommandError = function (output,
1655
1735
  message = response.message || response.Message || errorCode;
1656
1736
  response.message = message;
1657
1737
  delete response.Message;
1658
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1738
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1659
1739
  }
1660
1740
  });
1661
1741
  }); };
@@ -1665,15 +1745,15 @@ export var deserializeAws_restJson1DeleteVodSourceCommand = function (output, co
1665
1745
  switch (_a.label) {
1666
1746
  case 0:
1667
1747
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1668
- return [2 /*return*/, deserializeAws_restJson1DeleteVodSourceCommandError(output, context)];
1748
+ return [2, deserializeAws_restJson1DeleteVodSourceCommandError(output, context)];
1669
1749
  }
1670
1750
  contents = {
1671
1751
  $metadata: deserializeMetadata(output),
1672
1752
  };
1673
- return [4 /*yield*/, collectBody(output.body, context)];
1753
+ return [4, collectBody(output.body, context)];
1674
1754
  case 1:
1675
1755
  _a.sent();
1676
- return [2 /*return*/, Promise.resolve(contents)];
1756
+ return [2, Promise.resolve(contents)];
1677
1757
  }
1678
1758
  });
1679
1759
  }); };
@@ -1685,7 +1765,7 @@ var deserializeAws_restJson1DeleteVodSourceCommandError = function (output, cont
1685
1765
  case 0:
1686
1766
  _a = [__assign({}, output)];
1687
1767
  _b = {};
1688
- return [4 /*yield*/, parseBody(output.body, context)];
1768
+ return [4, parseBody(output.body, context)];
1689
1769
  case 1:
1690
1770
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1691
1771
  errorCode = "UnknownError";
@@ -1699,7 +1779,7 @@ var deserializeAws_restJson1DeleteVodSourceCommandError = function (output, cont
1699
1779
  message = response.message || response.Message || errorCode;
1700
1780
  response.message = message;
1701
1781
  delete response.Message;
1702
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1782
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1703
1783
  }
1704
1784
  });
1705
1785
  }); };
@@ -1709,7 +1789,7 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
1709
1789
  switch (_c.label) {
1710
1790
  case 0:
1711
1791
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1712
- return [2 /*return*/, deserializeAws_restJson1DescribeChannelCommandError(output, context)];
1792
+ return [2, deserializeAws_restJson1DescribeChannelCommandError(output, context)];
1713
1793
  }
1714
1794
  contents = {
1715
1795
  $metadata: deserializeMetadata(output),
@@ -1725,7 +1805,7 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
1725
1805
  };
1726
1806
  _a = __expectNonNull;
1727
1807
  _b = __expectObject;
1728
- return [4 /*yield*/, parseBody(output.body, context)];
1808
+ return [4, parseBody(output.body, context)];
1729
1809
  case 1:
1730
1810
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1731
1811
  if (data.Arn !== undefined && data.Arn !== null) {
@@ -1755,7 +1835,7 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
1755
1835
  if (data.tags !== undefined && data.tags !== null) {
1756
1836
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
1757
1837
  }
1758
- return [2 /*return*/, Promise.resolve(contents)];
1838
+ return [2, Promise.resolve(contents)];
1759
1839
  }
1760
1840
  });
1761
1841
  }); };
@@ -1767,7 +1847,7 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
1767
1847
  case 0:
1768
1848
  _a = [__assign({}, output)];
1769
1849
  _b = {};
1770
- return [4 /*yield*/, parseBody(output.body, context)];
1850
+ return [4, parseBody(output.body, context)];
1771
1851
  case 1:
1772
1852
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1773
1853
  errorCode = "UnknownError";
@@ -1781,7 +1861,7 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
1781
1861
  message = response.message || response.Message || errorCode;
1782
1862
  response.message = message;
1783
1863
  delete response.Message;
1784
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1864
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1785
1865
  }
1786
1866
  });
1787
1867
  }); };
@@ -1791,7 +1871,7 @@ export var deserializeAws_restJson1DescribeProgramCommand = function (output, co
1791
1871
  switch (_c.label) {
1792
1872
  case 0:
1793
1873
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1794
- return [2 /*return*/, deserializeAws_restJson1DescribeProgramCommandError(output, context)];
1874
+ return [2, deserializeAws_restJson1DescribeProgramCommandError(output, context)];
1795
1875
  }
1796
1876
  contents = {
1797
1877
  $metadata: deserializeMetadata(output),
@@ -1806,7 +1886,7 @@ export var deserializeAws_restJson1DescribeProgramCommand = function (output, co
1806
1886
  };
1807
1887
  _a = __expectNonNull;
1808
1888
  _b = __expectObject;
1809
- return [4 /*yield*/, parseBody(output.body, context)];
1889
+ return [4, parseBody(output.body, context)];
1810
1890
  case 1:
1811
1891
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1812
1892
  if (data.AdBreaks !== undefined && data.AdBreaks !== null) {
@@ -1833,7 +1913,7 @@ export var deserializeAws_restJson1DescribeProgramCommand = function (output, co
1833
1913
  if (data.VodSourceName !== undefined && data.VodSourceName !== null) {
1834
1914
  contents.VodSourceName = __expectString(data.VodSourceName);
1835
1915
  }
1836
- return [2 /*return*/, Promise.resolve(contents)];
1916
+ return [2, Promise.resolve(contents)];
1837
1917
  }
1838
1918
  });
1839
1919
  }); };
@@ -1845,7 +1925,7 @@ var deserializeAws_restJson1DescribeProgramCommandError = function (output, cont
1845
1925
  case 0:
1846
1926
  _a = [__assign({}, output)];
1847
1927
  _b = {};
1848
- return [4 /*yield*/, parseBody(output.body, context)];
1928
+ return [4, parseBody(output.body, context)];
1849
1929
  case 1:
1850
1930
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1851
1931
  errorCode = "UnknownError";
@@ -1859,7 +1939,7 @@ var deserializeAws_restJson1DescribeProgramCommandError = function (output, cont
1859
1939
  message = response.message || response.Message || errorCode;
1860
1940
  response.message = message;
1861
1941
  delete response.Message;
1862
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
1942
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1863
1943
  }
1864
1944
  });
1865
1945
  }); };
@@ -1869,7 +1949,7 @@ export var deserializeAws_restJson1DescribeSourceLocationCommand = function (out
1869
1949
  switch (_c.label) {
1870
1950
  case 0:
1871
1951
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1872
- return [2 /*return*/, deserializeAws_restJson1DescribeSourceLocationCommandError(output, context)];
1952
+ return [2, deserializeAws_restJson1DescribeSourceLocationCommandError(output, context)];
1873
1953
  }
1874
1954
  contents = {
1875
1955
  $metadata: deserializeMetadata(output),
@@ -1884,7 +1964,7 @@ export var deserializeAws_restJson1DescribeSourceLocationCommand = function (out
1884
1964
  };
1885
1965
  _a = __expectNonNull;
1886
1966
  _b = __expectObject;
1887
- return [4 /*yield*/, parseBody(output.body, context)];
1967
+ return [4, parseBody(output.body, context)];
1888
1968
  case 1:
1889
1969
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1890
1970
  if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
@@ -1911,7 +1991,7 @@ export var deserializeAws_restJson1DescribeSourceLocationCommand = function (out
1911
1991
  if (data.tags !== undefined && data.tags !== null) {
1912
1992
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
1913
1993
  }
1914
- return [2 /*return*/, Promise.resolve(contents)];
1994
+ return [2, Promise.resolve(contents)];
1915
1995
  }
1916
1996
  });
1917
1997
  }); };
@@ -1923,7 +2003,7 @@ var deserializeAws_restJson1DescribeSourceLocationCommandError = function (outpu
1923
2003
  case 0:
1924
2004
  _a = [__assign({}, output)];
1925
2005
  _b = {};
1926
- return [4 /*yield*/, parseBody(output.body, context)];
2006
+ return [4, parseBody(output.body, context)];
1927
2007
  case 1:
1928
2008
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1929
2009
  errorCode = "UnknownError";
@@ -1937,7 +2017,7 @@ var deserializeAws_restJson1DescribeSourceLocationCommandError = function (outpu
1937
2017
  message = response.message || response.Message || errorCode;
1938
2018
  response.message = message;
1939
2019
  delete response.Message;
1940
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2020
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
1941
2021
  }
1942
2022
  });
1943
2023
  }); };
@@ -1947,7 +2027,7 @@ export var deserializeAws_restJson1DescribeVodSourceCommand = function (output,
1947
2027
  switch (_c.label) {
1948
2028
  case 0:
1949
2029
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1950
- return [2 /*return*/, deserializeAws_restJson1DescribeVodSourceCommandError(output, context)];
2030
+ return [2, deserializeAws_restJson1DescribeVodSourceCommandError(output, context)];
1951
2031
  }
1952
2032
  contents = {
1953
2033
  $metadata: deserializeMetadata(output),
@@ -1961,7 +2041,7 @@ export var deserializeAws_restJson1DescribeVodSourceCommand = function (output,
1961
2041
  };
1962
2042
  _a = __expectNonNull;
1963
2043
  _b = __expectObject;
1964
- return [4 /*yield*/, parseBody(output.body, context)];
2044
+ return [4, parseBody(output.body, context)];
1965
2045
  case 1:
1966
2046
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1967
2047
  if (data.Arn !== undefined && data.Arn !== null) {
@@ -1985,7 +2065,7 @@ export var deserializeAws_restJson1DescribeVodSourceCommand = function (output,
1985
2065
  if (data.VodSourceName !== undefined && data.VodSourceName !== null) {
1986
2066
  contents.VodSourceName = __expectString(data.VodSourceName);
1987
2067
  }
1988
- return [2 /*return*/, Promise.resolve(contents)];
2068
+ return [2, Promise.resolve(contents)];
1989
2069
  }
1990
2070
  });
1991
2071
  }); };
@@ -1997,7 +2077,7 @@ var deserializeAws_restJson1DescribeVodSourceCommandError = function (output, co
1997
2077
  case 0:
1998
2078
  _a = [__assign({}, output)];
1999
2079
  _b = {};
2000
- return [4 /*yield*/, parseBody(output.body, context)];
2080
+ return [4, parseBody(output.body, context)];
2001
2081
  case 1:
2002
2082
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2003
2083
  errorCode = "UnknownError";
@@ -2011,7 +2091,7 @@ var deserializeAws_restJson1DescribeVodSourceCommandError = function (output, co
2011
2091
  message = response.message || response.Message || errorCode;
2012
2092
  response.message = message;
2013
2093
  delete response.Message;
2014
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2094
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2015
2095
  }
2016
2096
  });
2017
2097
  }); };
@@ -2021,7 +2101,7 @@ export var deserializeAws_restJson1GetChannelPolicyCommand = function (output, c
2021
2101
  switch (_c.label) {
2022
2102
  case 0:
2023
2103
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2024
- return [2 /*return*/, deserializeAws_restJson1GetChannelPolicyCommandError(output, context)];
2104
+ return [2, deserializeAws_restJson1GetChannelPolicyCommandError(output, context)];
2025
2105
  }
2026
2106
  contents = {
2027
2107
  $metadata: deserializeMetadata(output),
@@ -2029,13 +2109,13 @@ export var deserializeAws_restJson1GetChannelPolicyCommand = function (output, c
2029
2109
  };
2030
2110
  _a = __expectNonNull;
2031
2111
  _b = __expectObject;
2032
- return [4 /*yield*/, parseBody(output.body, context)];
2112
+ return [4, parseBody(output.body, context)];
2033
2113
  case 1:
2034
2114
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2035
2115
  if (data.Policy !== undefined && data.Policy !== null) {
2036
2116
  contents.Policy = __expectString(data.Policy);
2037
2117
  }
2038
- return [2 /*return*/, Promise.resolve(contents)];
2118
+ return [2, Promise.resolve(contents)];
2039
2119
  }
2040
2120
  });
2041
2121
  }); };
@@ -2047,7 +2127,7 @@ var deserializeAws_restJson1GetChannelPolicyCommandError = function (output, con
2047
2127
  case 0:
2048
2128
  _a = [__assign({}, output)];
2049
2129
  _b = {};
2050
- return [4 /*yield*/, parseBody(output.body, context)];
2130
+ return [4, parseBody(output.body, context)];
2051
2131
  case 1:
2052
2132
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2053
2133
  errorCode = "UnknownError";
@@ -2061,7 +2141,7 @@ var deserializeAws_restJson1GetChannelPolicyCommandError = function (output, con
2061
2141
  message = response.message || response.Message || errorCode;
2062
2142
  response.message = message;
2063
2143
  delete response.Message;
2064
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2144
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2065
2145
  }
2066
2146
  });
2067
2147
  }); };
@@ -2071,7 +2151,7 @@ export var deserializeAws_restJson1GetChannelScheduleCommand = function (output,
2071
2151
  switch (_c.label) {
2072
2152
  case 0:
2073
2153
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2074
- return [2 /*return*/, deserializeAws_restJson1GetChannelScheduleCommandError(output, context)];
2154
+ return [2, deserializeAws_restJson1GetChannelScheduleCommandError(output, context)];
2075
2155
  }
2076
2156
  contents = {
2077
2157
  $metadata: deserializeMetadata(output),
@@ -2080,7 +2160,7 @@ export var deserializeAws_restJson1GetChannelScheduleCommand = function (output,
2080
2160
  };
2081
2161
  _a = __expectNonNull;
2082
2162
  _b = __expectObject;
2083
- return [4 /*yield*/, parseBody(output.body, context)];
2163
+ return [4, parseBody(output.body, context)];
2084
2164
  case 1:
2085
2165
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2086
2166
  if (data.Items !== undefined && data.Items !== null) {
@@ -2089,7 +2169,7 @@ export var deserializeAws_restJson1GetChannelScheduleCommand = function (output,
2089
2169
  if (data.NextToken !== undefined && data.NextToken !== null) {
2090
2170
  contents.NextToken = __expectString(data.NextToken);
2091
2171
  }
2092
- return [2 /*return*/, Promise.resolve(contents)];
2172
+ return [2, Promise.resolve(contents)];
2093
2173
  }
2094
2174
  });
2095
2175
  }); };
@@ -2101,7 +2181,7 @@ var deserializeAws_restJson1GetChannelScheduleCommandError = function (output, c
2101
2181
  case 0:
2102
2182
  _a = [__assign({}, output)];
2103
2183
  _b = {};
2104
- return [4 /*yield*/, parseBody(output.body, context)];
2184
+ return [4, parseBody(output.body, context)];
2105
2185
  case 1:
2106
2186
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2107
2187
  errorCode = "UnknownError";
@@ -2115,7 +2195,7 @@ var deserializeAws_restJson1GetChannelScheduleCommandError = function (output, c
2115
2195
  message = response.message || response.Message || errorCode;
2116
2196
  response.message = message;
2117
2197
  delete response.Message;
2118
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2198
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2119
2199
  }
2120
2200
  });
2121
2201
  }); };
@@ -2125,7 +2205,7 @@ export var deserializeAws_restJson1GetPlaybackConfigurationCommand = function (o
2125
2205
  switch (_c.label) {
2126
2206
  case 0:
2127
2207
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2128
- return [2 /*return*/, deserializeAws_restJson1GetPlaybackConfigurationCommandError(output, context)];
2208
+ return [2, deserializeAws_restJson1GetPlaybackConfigurationCommandError(output, context)];
2129
2209
  }
2130
2210
  contents = {
2131
2211
  $metadata: deserializeMetadata(output),
@@ -2137,6 +2217,7 @@ export var deserializeAws_restJson1GetPlaybackConfigurationCommand = function (o
2137
2217
  DashConfiguration: undefined,
2138
2218
  HlsConfiguration: undefined,
2139
2219
  LivePreRollConfiguration: undefined,
2220
+ LogConfiguration: undefined,
2140
2221
  ManifestProcessingRules: undefined,
2141
2222
  Name: undefined,
2142
2223
  PersonalizationThresholdSeconds: undefined,
@@ -2150,7 +2231,7 @@ export var deserializeAws_restJson1GetPlaybackConfigurationCommand = function (o
2150
2231
  };
2151
2232
  _a = __expectNonNull;
2152
2233
  _b = __expectObject;
2153
- return [4 /*yield*/, parseBody(output.body, context)];
2234
+ return [4, parseBody(output.body, context)];
2154
2235
  case 1:
2155
2236
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2156
2237
  if (data.AdDecisionServerUrl !== undefined && data.AdDecisionServerUrl !== null) {
@@ -2177,6 +2258,9 @@ export var deserializeAws_restJson1GetPlaybackConfigurationCommand = function (o
2177
2258
  if (data.LivePreRollConfiguration !== undefined && data.LivePreRollConfiguration !== null) {
2178
2259
  contents.LivePreRollConfiguration = deserializeAws_restJson1LivePreRollConfiguration(data.LivePreRollConfiguration, context);
2179
2260
  }
2261
+ if (data.LogConfiguration !== undefined && data.LogConfiguration !== null) {
2262
+ contents.LogConfiguration = deserializeAws_restJson1LogConfiguration(data.LogConfiguration, context);
2263
+ }
2180
2264
  if (data.ManifestProcessingRules !== undefined && data.ManifestProcessingRules !== null) {
2181
2265
  contents.ManifestProcessingRules = deserializeAws_restJson1ManifestProcessingRules(data.ManifestProcessingRules, context);
2182
2266
  }
@@ -2207,7 +2291,7 @@ export var deserializeAws_restJson1GetPlaybackConfigurationCommand = function (o
2207
2291
  if (data.VideoContentSourceUrl !== undefined && data.VideoContentSourceUrl !== null) {
2208
2292
  contents.VideoContentSourceUrl = __expectString(data.VideoContentSourceUrl);
2209
2293
  }
2210
- return [2 /*return*/, Promise.resolve(contents)];
2294
+ return [2, Promise.resolve(contents)];
2211
2295
  }
2212
2296
  });
2213
2297
  }); };
@@ -2219,7 +2303,7 @@ var deserializeAws_restJson1GetPlaybackConfigurationCommandError = function (out
2219
2303
  case 0:
2220
2304
  _a = [__assign({}, output)];
2221
2305
  _b = {};
2222
- return [4 /*yield*/, parseBody(output.body, context)];
2306
+ return [4, parseBody(output.body, context)];
2223
2307
  case 1:
2224
2308
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2225
2309
  errorCode = "UnknownError";
@@ -2233,7 +2317,7 @@ var deserializeAws_restJson1GetPlaybackConfigurationCommandError = function (out
2233
2317
  message = response.message || response.Message || errorCode;
2234
2318
  response.message = message;
2235
2319
  delete response.Message;
2236
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2320
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2237
2321
  }
2238
2322
  });
2239
2323
  }); };
@@ -2243,7 +2327,7 @@ export var deserializeAws_restJson1ListAlertsCommand = function (output, context
2243
2327
  switch (_c.label) {
2244
2328
  case 0:
2245
2329
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2246
- return [2 /*return*/, deserializeAws_restJson1ListAlertsCommandError(output, context)];
2330
+ return [2, deserializeAws_restJson1ListAlertsCommandError(output, context)];
2247
2331
  }
2248
2332
  contents = {
2249
2333
  $metadata: deserializeMetadata(output),
@@ -2252,7 +2336,7 @@ export var deserializeAws_restJson1ListAlertsCommand = function (output, context
2252
2336
  };
2253
2337
  _a = __expectNonNull;
2254
2338
  _b = __expectObject;
2255
- return [4 /*yield*/, parseBody(output.body, context)];
2339
+ return [4, parseBody(output.body, context)];
2256
2340
  case 1:
2257
2341
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2258
2342
  if (data.Items !== undefined && data.Items !== null) {
@@ -2261,7 +2345,7 @@ export var deserializeAws_restJson1ListAlertsCommand = function (output, context
2261
2345
  if (data.NextToken !== undefined && data.NextToken !== null) {
2262
2346
  contents.NextToken = __expectString(data.NextToken);
2263
2347
  }
2264
- return [2 /*return*/, Promise.resolve(contents)];
2348
+ return [2, Promise.resolve(contents)];
2265
2349
  }
2266
2350
  });
2267
2351
  }); };
@@ -2273,7 +2357,7 @@ var deserializeAws_restJson1ListAlertsCommandError = function (output, context)
2273
2357
  case 0:
2274
2358
  _a = [__assign({}, output)];
2275
2359
  _b = {};
2276
- return [4 /*yield*/, parseBody(output.body, context)];
2360
+ return [4, parseBody(output.body, context)];
2277
2361
  case 1:
2278
2362
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2279
2363
  errorCode = "UnknownError";
@@ -2287,7 +2371,7 @@ var deserializeAws_restJson1ListAlertsCommandError = function (output, context)
2287
2371
  message = response.message || response.Message || errorCode;
2288
2372
  response.message = message;
2289
2373
  delete response.Message;
2290
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2374
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2291
2375
  }
2292
2376
  });
2293
2377
  }); };
@@ -2297,7 +2381,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
2297
2381
  switch (_c.label) {
2298
2382
  case 0:
2299
2383
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2300
- return [2 /*return*/, deserializeAws_restJson1ListChannelsCommandError(output, context)];
2384
+ return [2, deserializeAws_restJson1ListChannelsCommandError(output, context)];
2301
2385
  }
2302
2386
  contents = {
2303
2387
  $metadata: deserializeMetadata(output),
@@ -2306,7 +2390,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
2306
2390
  };
2307
2391
  _a = __expectNonNull;
2308
2392
  _b = __expectObject;
2309
- return [4 /*yield*/, parseBody(output.body, context)];
2393
+ return [4, parseBody(output.body, context)];
2310
2394
  case 1:
2311
2395
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2312
2396
  if (data.Items !== undefined && data.Items !== null) {
@@ -2315,7 +2399,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
2315
2399
  if (data.NextToken !== undefined && data.NextToken !== null) {
2316
2400
  contents.NextToken = __expectString(data.NextToken);
2317
2401
  }
2318
- return [2 /*return*/, Promise.resolve(contents)];
2402
+ return [2, Promise.resolve(contents)];
2319
2403
  }
2320
2404
  });
2321
2405
  }); };
@@ -2327,7 +2411,7 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
2327
2411
  case 0:
2328
2412
  _a = [__assign({}, output)];
2329
2413
  _b = {};
2330
- return [4 /*yield*/, parseBody(output.body, context)];
2414
+ return [4, parseBody(output.body, context)];
2331
2415
  case 1:
2332
2416
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2333
2417
  errorCode = "UnknownError";
@@ -2341,7 +2425,7 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
2341
2425
  message = response.message || response.Message || errorCode;
2342
2426
  response.message = message;
2343
2427
  delete response.Message;
2344
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2428
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2345
2429
  }
2346
2430
  });
2347
2431
  }); };
@@ -2351,7 +2435,7 @@ export var deserializeAws_restJson1ListPlaybackConfigurationsCommand = function
2351
2435
  switch (_c.label) {
2352
2436
  case 0:
2353
2437
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2354
- return [2 /*return*/, deserializeAws_restJson1ListPlaybackConfigurationsCommandError(output, context)];
2438
+ return [2, deserializeAws_restJson1ListPlaybackConfigurationsCommandError(output, context)];
2355
2439
  }
2356
2440
  contents = {
2357
2441
  $metadata: deserializeMetadata(output),
@@ -2360,7 +2444,7 @@ export var deserializeAws_restJson1ListPlaybackConfigurationsCommand = function
2360
2444
  };
2361
2445
  _a = __expectNonNull;
2362
2446
  _b = __expectObject;
2363
- return [4 /*yield*/, parseBody(output.body, context)];
2447
+ return [4, parseBody(output.body, context)];
2364
2448
  case 1:
2365
2449
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2366
2450
  if (data.Items !== undefined && data.Items !== null) {
@@ -2369,7 +2453,7 @@ export var deserializeAws_restJson1ListPlaybackConfigurationsCommand = function
2369
2453
  if (data.NextToken !== undefined && data.NextToken !== null) {
2370
2454
  contents.NextToken = __expectString(data.NextToken);
2371
2455
  }
2372
- return [2 /*return*/, Promise.resolve(contents)];
2456
+ return [2, Promise.resolve(contents)];
2373
2457
  }
2374
2458
  });
2375
2459
  }); };
@@ -2381,7 +2465,7 @@ var deserializeAws_restJson1ListPlaybackConfigurationsCommandError = function (o
2381
2465
  case 0:
2382
2466
  _a = [__assign({}, output)];
2383
2467
  _b = {};
2384
- return [4 /*yield*/, parseBody(output.body, context)];
2468
+ return [4, parseBody(output.body, context)];
2385
2469
  case 1:
2386
2470
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2387
2471
  errorCode = "UnknownError";
@@ -2395,7 +2479,7 @@ var deserializeAws_restJson1ListPlaybackConfigurationsCommandError = function (o
2395
2479
  message = response.message || response.Message || errorCode;
2396
2480
  response.message = message;
2397
2481
  delete response.Message;
2398
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2482
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2399
2483
  }
2400
2484
  });
2401
2485
  }); };
@@ -2405,7 +2489,7 @@ export var deserializeAws_restJson1ListSourceLocationsCommand = function (output
2405
2489
  switch (_c.label) {
2406
2490
  case 0:
2407
2491
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2408
- return [2 /*return*/, deserializeAws_restJson1ListSourceLocationsCommandError(output, context)];
2492
+ return [2, deserializeAws_restJson1ListSourceLocationsCommandError(output, context)];
2409
2493
  }
2410
2494
  contents = {
2411
2495
  $metadata: deserializeMetadata(output),
@@ -2414,7 +2498,7 @@ export var deserializeAws_restJson1ListSourceLocationsCommand = function (output
2414
2498
  };
2415
2499
  _a = __expectNonNull;
2416
2500
  _b = __expectObject;
2417
- return [4 /*yield*/, parseBody(output.body, context)];
2501
+ return [4, parseBody(output.body, context)];
2418
2502
  case 1:
2419
2503
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2420
2504
  if (data.Items !== undefined && data.Items !== null) {
@@ -2423,7 +2507,7 @@ export var deserializeAws_restJson1ListSourceLocationsCommand = function (output
2423
2507
  if (data.NextToken !== undefined && data.NextToken !== null) {
2424
2508
  contents.NextToken = __expectString(data.NextToken);
2425
2509
  }
2426
- return [2 /*return*/, Promise.resolve(contents)];
2510
+ return [2, Promise.resolve(contents)];
2427
2511
  }
2428
2512
  });
2429
2513
  }); };
@@ -2435,7 +2519,7 @@ var deserializeAws_restJson1ListSourceLocationsCommandError = function (output,
2435
2519
  case 0:
2436
2520
  _a = [__assign({}, output)];
2437
2521
  _b = {};
2438
- return [4 /*yield*/, parseBody(output.body, context)];
2522
+ return [4, parseBody(output.body, context)];
2439
2523
  case 1:
2440
2524
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2441
2525
  errorCode = "UnknownError";
@@ -2449,7 +2533,7 @@ var deserializeAws_restJson1ListSourceLocationsCommandError = function (output,
2449
2533
  message = response.message || response.Message || errorCode;
2450
2534
  response.message = message;
2451
2535
  delete response.Message;
2452
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2536
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2453
2537
  }
2454
2538
  });
2455
2539
  }); };
@@ -2459,7 +2543,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2459
2543
  switch (_c.label) {
2460
2544
  case 0:
2461
2545
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2462
- return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
2546
+ return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
2463
2547
  }
2464
2548
  contents = {
2465
2549
  $metadata: deserializeMetadata(output),
@@ -2467,13 +2551,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2467
2551
  };
2468
2552
  _a = __expectNonNull;
2469
2553
  _b = __expectObject;
2470
- return [4 /*yield*/, parseBody(output.body, context)];
2554
+ return [4, parseBody(output.body, context)];
2471
2555
  case 1:
2472
2556
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2473
2557
  if (data.tags !== undefined && data.tags !== null) {
2474
2558
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
2475
2559
  }
2476
- return [2 /*return*/, Promise.resolve(contents)];
2560
+ return [2, Promise.resolve(contents)];
2477
2561
  }
2478
2562
  });
2479
2563
  }); };
@@ -2485,23 +2569,23 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2485
2569
  case 0:
2486
2570
  _a = [__assign({}, output)];
2487
2571
  _d = {};
2488
- return [4 /*yield*/, parseBody(output.body, context)];
2572
+ return [4, parseBody(output.body, context)];
2489
2573
  case 1:
2490
2574
  parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
2491
2575
  errorCode = "UnknownError";
2492
2576
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2493
2577
  _b = errorCode;
2494
2578
  switch (_b) {
2495
- case "BadRequestException": return [3 /*break*/, 2];
2496
- case "com.amazonaws.mediatailor#BadRequestException": return [3 /*break*/, 2];
2579
+ case "BadRequestException": return [3, 2];
2580
+ case "com.amazonaws.mediatailor#BadRequestException": return [3, 2];
2497
2581
  }
2498
- return [3 /*break*/, 4];
2582
+ return [3, 4];
2499
2583
  case 2:
2500
2584
  _c = [{}];
2501
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2585
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2502
2586
  case 3:
2503
2587
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2504
- return [3 /*break*/, 5];
2588
+ return [3, 5];
2505
2589
  case 4:
2506
2590
  parsedBody = parsedOutput.body;
2507
2591
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2511,7 +2595,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2511
2595
  message = response.message || response.Message || errorCode;
2512
2596
  response.message = message;
2513
2597
  delete response.Message;
2514
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2598
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2515
2599
  }
2516
2600
  });
2517
2601
  }); };
@@ -2521,7 +2605,7 @@ export var deserializeAws_restJson1ListVodSourcesCommand = function (output, con
2521
2605
  switch (_c.label) {
2522
2606
  case 0:
2523
2607
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2524
- return [2 /*return*/, deserializeAws_restJson1ListVodSourcesCommandError(output, context)];
2608
+ return [2, deserializeAws_restJson1ListVodSourcesCommandError(output, context)];
2525
2609
  }
2526
2610
  contents = {
2527
2611
  $metadata: deserializeMetadata(output),
@@ -2530,7 +2614,7 @@ export var deserializeAws_restJson1ListVodSourcesCommand = function (output, con
2530
2614
  };
2531
2615
  _a = __expectNonNull;
2532
2616
  _b = __expectObject;
2533
- return [4 /*yield*/, parseBody(output.body, context)];
2617
+ return [4, parseBody(output.body, context)];
2534
2618
  case 1:
2535
2619
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2536
2620
  if (data.Items !== undefined && data.Items !== null) {
@@ -2539,7 +2623,7 @@ export var deserializeAws_restJson1ListVodSourcesCommand = function (output, con
2539
2623
  if (data.NextToken !== undefined && data.NextToken !== null) {
2540
2624
  contents.NextToken = __expectString(data.NextToken);
2541
2625
  }
2542
- return [2 /*return*/, Promise.resolve(contents)];
2626
+ return [2, Promise.resolve(contents)];
2543
2627
  }
2544
2628
  });
2545
2629
  }); };
@@ -2551,7 +2635,7 @@ var deserializeAws_restJson1ListVodSourcesCommandError = function (output, conte
2551
2635
  case 0:
2552
2636
  _a = [__assign({}, output)];
2553
2637
  _b = {};
2554
- return [4 /*yield*/, parseBody(output.body, context)];
2638
+ return [4, parseBody(output.body, context)];
2555
2639
  case 1:
2556
2640
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2557
2641
  errorCode = "UnknownError";
@@ -2565,7 +2649,7 @@ var deserializeAws_restJson1ListVodSourcesCommandError = function (output, conte
2565
2649
  message = response.message || response.Message || errorCode;
2566
2650
  response.message = message;
2567
2651
  delete response.Message;
2568
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2652
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2569
2653
  }
2570
2654
  });
2571
2655
  }); };
@@ -2575,15 +2659,15 @@ export var deserializeAws_restJson1PutChannelPolicyCommand = function (output, c
2575
2659
  switch (_a.label) {
2576
2660
  case 0:
2577
2661
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2578
- return [2 /*return*/, deserializeAws_restJson1PutChannelPolicyCommandError(output, context)];
2662
+ return [2, deserializeAws_restJson1PutChannelPolicyCommandError(output, context)];
2579
2663
  }
2580
2664
  contents = {
2581
2665
  $metadata: deserializeMetadata(output),
2582
2666
  };
2583
- return [4 /*yield*/, collectBody(output.body, context)];
2667
+ return [4, collectBody(output.body, context)];
2584
2668
  case 1:
2585
2669
  _a.sent();
2586
- return [2 /*return*/, Promise.resolve(contents)];
2670
+ return [2, Promise.resolve(contents)];
2587
2671
  }
2588
2672
  });
2589
2673
  }); };
@@ -2595,7 +2679,7 @@ var deserializeAws_restJson1PutChannelPolicyCommandError = function (output, con
2595
2679
  case 0:
2596
2680
  _a = [__assign({}, output)];
2597
2681
  _b = {};
2598
- return [4 /*yield*/, parseBody(output.body, context)];
2682
+ return [4, parseBody(output.body, context)];
2599
2683
  case 1:
2600
2684
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2601
2685
  errorCode = "UnknownError";
@@ -2609,7 +2693,7 @@ var deserializeAws_restJson1PutChannelPolicyCommandError = function (output, con
2609
2693
  message = response.message || response.Message || errorCode;
2610
2694
  response.message = message;
2611
2695
  delete response.Message;
2612
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2696
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2613
2697
  }
2614
2698
  });
2615
2699
  }); };
@@ -2619,7 +2703,7 @@ export var deserializeAws_restJson1PutPlaybackConfigurationCommand = function (o
2619
2703
  switch (_c.label) {
2620
2704
  case 0:
2621
2705
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2622
- return [2 /*return*/, deserializeAws_restJson1PutPlaybackConfigurationCommandError(output, context)];
2706
+ return [2, deserializeAws_restJson1PutPlaybackConfigurationCommandError(output, context)];
2623
2707
  }
2624
2708
  contents = {
2625
2709
  $metadata: deserializeMetadata(output),
@@ -2631,6 +2715,7 @@ export var deserializeAws_restJson1PutPlaybackConfigurationCommand = function (o
2631
2715
  DashConfiguration: undefined,
2632
2716
  HlsConfiguration: undefined,
2633
2717
  LivePreRollConfiguration: undefined,
2718
+ LogConfiguration: undefined,
2634
2719
  ManifestProcessingRules: undefined,
2635
2720
  Name: undefined,
2636
2721
  PersonalizationThresholdSeconds: undefined,
@@ -2644,7 +2729,7 @@ export var deserializeAws_restJson1PutPlaybackConfigurationCommand = function (o
2644
2729
  };
2645
2730
  _a = __expectNonNull;
2646
2731
  _b = __expectObject;
2647
- return [4 /*yield*/, parseBody(output.body, context)];
2732
+ return [4, parseBody(output.body, context)];
2648
2733
  case 1:
2649
2734
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2650
2735
  if (data.AdDecisionServerUrl !== undefined && data.AdDecisionServerUrl !== null) {
@@ -2671,6 +2756,9 @@ export var deserializeAws_restJson1PutPlaybackConfigurationCommand = function (o
2671
2756
  if (data.LivePreRollConfiguration !== undefined && data.LivePreRollConfiguration !== null) {
2672
2757
  contents.LivePreRollConfiguration = deserializeAws_restJson1LivePreRollConfiguration(data.LivePreRollConfiguration, context);
2673
2758
  }
2759
+ if (data.LogConfiguration !== undefined && data.LogConfiguration !== null) {
2760
+ contents.LogConfiguration = deserializeAws_restJson1LogConfiguration(data.LogConfiguration, context);
2761
+ }
2674
2762
  if (data.ManifestProcessingRules !== undefined && data.ManifestProcessingRules !== null) {
2675
2763
  contents.ManifestProcessingRules = deserializeAws_restJson1ManifestProcessingRules(data.ManifestProcessingRules, context);
2676
2764
  }
@@ -2701,7 +2789,7 @@ export var deserializeAws_restJson1PutPlaybackConfigurationCommand = function (o
2701
2789
  if (data.VideoContentSourceUrl !== undefined && data.VideoContentSourceUrl !== null) {
2702
2790
  contents.VideoContentSourceUrl = __expectString(data.VideoContentSourceUrl);
2703
2791
  }
2704
- return [2 /*return*/, Promise.resolve(contents)];
2792
+ return [2, Promise.resolve(contents)];
2705
2793
  }
2706
2794
  });
2707
2795
  }); };
@@ -2713,7 +2801,7 @@ var deserializeAws_restJson1PutPlaybackConfigurationCommandError = function (out
2713
2801
  case 0:
2714
2802
  _a = [__assign({}, output)];
2715
2803
  _b = {};
2716
- return [4 /*yield*/, parseBody(output.body, context)];
2804
+ return [4, parseBody(output.body, context)];
2717
2805
  case 1:
2718
2806
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2719
2807
  errorCode = "UnknownError";
@@ -2727,7 +2815,7 @@ var deserializeAws_restJson1PutPlaybackConfigurationCommandError = function (out
2727
2815
  message = response.message || response.Message || errorCode;
2728
2816
  response.message = message;
2729
2817
  delete response.Message;
2730
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2818
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2731
2819
  }
2732
2820
  });
2733
2821
  }); };
@@ -2737,15 +2825,15 @@ export var deserializeAws_restJson1StartChannelCommand = function (output, conte
2737
2825
  switch (_a.label) {
2738
2826
  case 0:
2739
2827
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2740
- return [2 /*return*/, deserializeAws_restJson1StartChannelCommandError(output, context)];
2828
+ return [2, deserializeAws_restJson1StartChannelCommandError(output, context)];
2741
2829
  }
2742
2830
  contents = {
2743
2831
  $metadata: deserializeMetadata(output),
2744
2832
  };
2745
- return [4 /*yield*/, collectBody(output.body, context)];
2833
+ return [4, collectBody(output.body, context)];
2746
2834
  case 1:
2747
2835
  _a.sent();
2748
- return [2 /*return*/, Promise.resolve(contents)];
2836
+ return [2, Promise.resolve(contents)];
2749
2837
  }
2750
2838
  });
2751
2839
  }); };
@@ -2757,7 +2845,7 @@ var deserializeAws_restJson1StartChannelCommandError = function (output, context
2757
2845
  case 0:
2758
2846
  _a = [__assign({}, output)];
2759
2847
  _b = {};
2760
- return [4 /*yield*/, parseBody(output.body, context)];
2848
+ return [4, parseBody(output.body, context)];
2761
2849
  case 1:
2762
2850
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2763
2851
  errorCode = "UnknownError";
@@ -2771,7 +2859,7 @@ var deserializeAws_restJson1StartChannelCommandError = function (output, context
2771
2859
  message = response.message || response.Message || errorCode;
2772
2860
  response.message = message;
2773
2861
  delete response.Message;
2774
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2862
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2775
2863
  }
2776
2864
  });
2777
2865
  }); };
@@ -2781,15 +2869,15 @@ export var deserializeAws_restJson1StopChannelCommand = function (output, contex
2781
2869
  switch (_a.label) {
2782
2870
  case 0:
2783
2871
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2784
- return [2 /*return*/, deserializeAws_restJson1StopChannelCommandError(output, context)];
2872
+ return [2, deserializeAws_restJson1StopChannelCommandError(output, context)];
2785
2873
  }
2786
2874
  contents = {
2787
2875
  $metadata: deserializeMetadata(output),
2788
2876
  };
2789
- return [4 /*yield*/, collectBody(output.body, context)];
2877
+ return [4, collectBody(output.body, context)];
2790
2878
  case 1:
2791
2879
  _a.sent();
2792
- return [2 /*return*/, Promise.resolve(contents)];
2880
+ return [2, Promise.resolve(contents)];
2793
2881
  }
2794
2882
  });
2795
2883
  }); };
@@ -2801,7 +2889,7 @@ var deserializeAws_restJson1StopChannelCommandError = function (output, context)
2801
2889
  case 0:
2802
2890
  _a = [__assign({}, output)];
2803
2891
  _b = {};
2804
- return [4 /*yield*/, parseBody(output.body, context)];
2892
+ return [4, parseBody(output.body, context)];
2805
2893
  case 1:
2806
2894
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2807
2895
  errorCode = "UnknownError";
@@ -2815,7 +2903,7 @@ var deserializeAws_restJson1StopChannelCommandError = function (output, context)
2815
2903
  message = response.message || response.Message || errorCode;
2816
2904
  response.message = message;
2817
2905
  delete response.Message;
2818
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2906
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2819
2907
  }
2820
2908
  });
2821
2909
  }); };
@@ -2825,15 +2913,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
2825
2913
  switch (_a.label) {
2826
2914
  case 0:
2827
2915
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2828
- return [2 /*return*/, deserializeAws_restJson1TagResourceCommandError(output, context)];
2916
+ return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
2829
2917
  }
2830
2918
  contents = {
2831
2919
  $metadata: deserializeMetadata(output),
2832
2920
  };
2833
- return [4 /*yield*/, collectBody(output.body, context)];
2921
+ return [4, collectBody(output.body, context)];
2834
2922
  case 1:
2835
2923
  _a.sent();
2836
- return [2 /*return*/, Promise.resolve(contents)];
2924
+ return [2, Promise.resolve(contents)];
2837
2925
  }
2838
2926
  });
2839
2927
  }); };
@@ -2845,23 +2933,23 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
2845
2933
  case 0:
2846
2934
  _a = [__assign({}, output)];
2847
2935
  _d = {};
2848
- return [4 /*yield*/, parseBody(output.body, context)];
2936
+ return [4, parseBody(output.body, context)];
2849
2937
  case 1:
2850
2938
  parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
2851
2939
  errorCode = "UnknownError";
2852
2940
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2853
2941
  _b = errorCode;
2854
2942
  switch (_b) {
2855
- case "BadRequestException": return [3 /*break*/, 2];
2856
- case "com.amazonaws.mediatailor#BadRequestException": return [3 /*break*/, 2];
2943
+ case "BadRequestException": return [3, 2];
2944
+ case "com.amazonaws.mediatailor#BadRequestException": return [3, 2];
2857
2945
  }
2858
- return [3 /*break*/, 4];
2946
+ return [3, 4];
2859
2947
  case 2:
2860
2948
  _c = [{}];
2861
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2949
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2862
2950
  case 3:
2863
2951
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2864
- return [3 /*break*/, 5];
2952
+ return [3, 5];
2865
2953
  case 4:
2866
2954
  parsedBody = parsedOutput.body;
2867
2955
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2871,7 +2959,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
2871
2959
  message = response.message || response.Message || errorCode;
2872
2960
  response.message = message;
2873
2961
  delete response.Message;
2874
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
2962
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2875
2963
  }
2876
2964
  });
2877
2965
  }); };
@@ -2881,15 +2969,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
2881
2969
  switch (_a.label) {
2882
2970
  case 0:
2883
2971
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2884
- return [2 /*return*/, deserializeAws_restJson1UntagResourceCommandError(output, context)];
2972
+ return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
2885
2973
  }
2886
2974
  contents = {
2887
2975
  $metadata: deserializeMetadata(output),
2888
2976
  };
2889
- return [4 /*yield*/, collectBody(output.body, context)];
2977
+ return [4, collectBody(output.body, context)];
2890
2978
  case 1:
2891
2979
  _a.sent();
2892
- return [2 /*return*/, Promise.resolve(contents)];
2980
+ return [2, Promise.resolve(contents)];
2893
2981
  }
2894
2982
  });
2895
2983
  }); };
@@ -2901,23 +2989,23 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2901
2989
  case 0:
2902
2990
  _a = [__assign({}, output)];
2903
2991
  _d = {};
2904
- return [4 /*yield*/, parseBody(output.body, context)];
2992
+ return [4, parseBody(output.body, context)];
2905
2993
  case 1:
2906
2994
  parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
2907
2995
  errorCode = "UnknownError";
2908
2996
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2909
2997
  _b = errorCode;
2910
2998
  switch (_b) {
2911
- case "BadRequestException": return [3 /*break*/, 2];
2912
- case "com.amazonaws.mediatailor#BadRequestException": return [3 /*break*/, 2];
2999
+ case "BadRequestException": return [3, 2];
3000
+ case "com.amazonaws.mediatailor#BadRequestException": return [3, 2];
2913
3001
  }
2914
- return [3 /*break*/, 4];
3002
+ return [3, 4];
2915
3003
  case 2:
2916
3004
  _c = [{}];
2917
- return [4 /*yield*/, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
3005
+ return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
2918
3006
  case 3:
2919
3007
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
2920
- return [3 /*break*/, 5];
3008
+ return [3, 5];
2921
3009
  case 4:
2922
3010
  parsedBody = parsedOutput.body;
2923
3011
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2927,7 +3015,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2927
3015
  message = response.message || response.Message || errorCode;
2928
3016
  response.message = message;
2929
3017
  delete response.Message;
2930
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3018
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
2931
3019
  }
2932
3020
  });
2933
3021
  }); };
@@ -2937,7 +3025,7 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
2937
3025
  switch (_c.label) {
2938
3026
  case 0:
2939
3027
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2940
- return [2 /*return*/, deserializeAws_restJson1UpdateChannelCommandError(output, context)];
3028
+ return [2, deserializeAws_restJson1UpdateChannelCommandError(output, context)];
2941
3029
  }
2942
3030
  contents = {
2943
3031
  $metadata: deserializeMetadata(output),
@@ -2953,7 +3041,7 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
2953
3041
  };
2954
3042
  _a = __expectNonNull;
2955
3043
  _b = __expectObject;
2956
- return [4 /*yield*/, parseBody(output.body, context)];
3044
+ return [4, parseBody(output.body, context)];
2957
3045
  case 1:
2958
3046
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2959
3047
  if (data.Arn !== undefined && data.Arn !== null) {
@@ -2983,7 +3071,7 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
2983
3071
  if (data.tags !== undefined && data.tags !== null) {
2984
3072
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
2985
3073
  }
2986
- return [2 /*return*/, Promise.resolve(contents)];
3074
+ return [2, Promise.resolve(contents)];
2987
3075
  }
2988
3076
  });
2989
3077
  }); };
@@ -2995,7 +3083,7 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
2995
3083
  case 0:
2996
3084
  _a = [__assign({}, output)];
2997
3085
  _b = {};
2998
- return [4 /*yield*/, parseBody(output.body, context)];
3086
+ return [4, parseBody(output.body, context)];
2999
3087
  case 1:
3000
3088
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
3001
3089
  errorCode = "UnknownError";
@@ -3009,7 +3097,7 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
3009
3097
  message = response.message || response.Message || errorCode;
3010
3098
  response.message = message;
3011
3099
  delete response.Message;
3012
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3100
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3013
3101
  }
3014
3102
  });
3015
3103
  }); };
@@ -3019,7 +3107,7 @@ export var deserializeAws_restJson1UpdateSourceLocationCommand = function (outpu
3019
3107
  switch (_c.label) {
3020
3108
  case 0:
3021
3109
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3022
- return [2 /*return*/, deserializeAws_restJson1UpdateSourceLocationCommandError(output, context)];
3110
+ return [2, deserializeAws_restJson1UpdateSourceLocationCommandError(output, context)];
3023
3111
  }
3024
3112
  contents = {
3025
3113
  $metadata: deserializeMetadata(output),
@@ -3034,7 +3122,7 @@ export var deserializeAws_restJson1UpdateSourceLocationCommand = function (outpu
3034
3122
  };
3035
3123
  _a = __expectNonNull;
3036
3124
  _b = __expectObject;
3037
- return [4 /*yield*/, parseBody(output.body, context)];
3125
+ return [4, parseBody(output.body, context)];
3038
3126
  case 1:
3039
3127
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3040
3128
  if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
@@ -3061,7 +3149,7 @@ export var deserializeAws_restJson1UpdateSourceLocationCommand = function (outpu
3061
3149
  if (data.tags !== undefined && data.tags !== null) {
3062
3150
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
3063
3151
  }
3064
- return [2 /*return*/, Promise.resolve(contents)];
3152
+ return [2, Promise.resolve(contents)];
3065
3153
  }
3066
3154
  });
3067
3155
  }); };
@@ -3073,7 +3161,7 @@ var deserializeAws_restJson1UpdateSourceLocationCommandError = function (output,
3073
3161
  case 0:
3074
3162
  _a = [__assign({}, output)];
3075
3163
  _b = {};
3076
- return [4 /*yield*/, parseBody(output.body, context)];
3164
+ return [4, parseBody(output.body, context)];
3077
3165
  case 1:
3078
3166
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
3079
3167
  errorCode = "UnknownError";
@@ -3087,7 +3175,7 @@ var deserializeAws_restJson1UpdateSourceLocationCommandError = function (output,
3087
3175
  message = response.message || response.Message || errorCode;
3088
3176
  response.message = message;
3089
3177
  delete response.Message;
3090
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3178
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3091
3179
  }
3092
3180
  });
3093
3181
  }); };
@@ -3097,7 +3185,7 @@ export var deserializeAws_restJson1UpdateVodSourceCommand = function (output, co
3097
3185
  switch (_c.label) {
3098
3186
  case 0:
3099
3187
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3100
- return [2 /*return*/, deserializeAws_restJson1UpdateVodSourceCommandError(output, context)];
3188
+ return [2, deserializeAws_restJson1UpdateVodSourceCommandError(output, context)];
3101
3189
  }
3102
3190
  contents = {
3103
3191
  $metadata: deserializeMetadata(output),
@@ -3111,7 +3199,7 @@ export var deserializeAws_restJson1UpdateVodSourceCommand = function (output, co
3111
3199
  };
3112
3200
  _a = __expectNonNull;
3113
3201
  _b = __expectObject;
3114
- return [4 /*yield*/, parseBody(output.body, context)];
3202
+ return [4, parseBody(output.body, context)];
3115
3203
  case 1:
3116
3204
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3117
3205
  if (data.Arn !== undefined && data.Arn !== null) {
@@ -3135,7 +3223,7 @@ export var deserializeAws_restJson1UpdateVodSourceCommand = function (output, co
3135
3223
  if (data.VodSourceName !== undefined && data.VodSourceName !== null) {
3136
3224
  contents.VodSourceName = __expectString(data.VodSourceName);
3137
3225
  }
3138
- return [2 /*return*/, Promise.resolve(contents)];
3226
+ return [2, Promise.resolve(contents)];
3139
3227
  }
3140
3228
  });
3141
3229
  }); };
@@ -3147,7 +3235,7 @@ var deserializeAws_restJson1UpdateVodSourceCommandError = function (output, cont
3147
3235
  case 0:
3148
3236
  _a = [__assign({}, output)];
3149
3237
  _b = {};
3150
- return [4 /*yield*/, parseBody(output.body, context)];
3238
+ return [4, parseBody(output.body, context)];
3151
3239
  case 1:
3152
3240
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
3153
3241
  errorCode = "UnknownError";
@@ -3161,7 +3249,7 @@ var deserializeAws_restJson1UpdateVodSourceCommandError = function (output, cont
3161
3249
  message = response.message || response.Message || errorCode;
3162
3250
  response.message = message;
3163
3251
  delete response.Message;
3164
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
3252
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
3165
3253
  }
3166
3254
  });
3167
3255
  }); };
@@ -3178,7 +3266,7 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
3178
3266
  if (data.Message !== undefined && data.Message !== null) {
3179
3267
  contents.Message = __expectString(data.Message);
3180
3268
  }
3181
- return [2 /*return*/, contents];
3269
+ return [2, contents];
3182
3270
  });
3183
3271
  }); };
3184
3272
  var serializeAws_restJson1__listOfAdBreak = function (input, context) {
@@ -3575,6 +3663,11 @@ var deserializeAws_restJson1LivePreRollConfiguration = function (output, context
3575
3663
  MaxDurationSeconds: __expectInt32(output.MaxDurationSeconds),
3576
3664
  };
3577
3665
  };
3666
+ var deserializeAws_restJson1LogConfiguration = function (output, context) {
3667
+ return {
3668
+ PercentEnabled: __expectInt32(output.PercentEnabled),
3669
+ };
3670
+ };
3578
3671
  var deserializeAws_restJson1ManifestProcessingRules = function (output, context) {
3579
3672
  return {
3580
3673
  AdMarkerPassthrough: output.AdMarkerPassthrough !== undefined && output.AdMarkerPassthrough !== null
@@ -3606,6 +3699,9 @@ var deserializeAws_restJson1PlaybackConfiguration = function (output, context) {
3606
3699
  LivePreRollConfiguration: output.LivePreRollConfiguration !== undefined && output.LivePreRollConfiguration !== null
3607
3700
  ? deserializeAws_restJson1LivePreRollConfiguration(output.LivePreRollConfiguration, context)
3608
3701
  : undefined,
3702
+ LogConfiguration: output.LogConfiguration !== undefined && output.LogConfiguration !== null
3703
+ ? deserializeAws_restJson1LogConfiguration(output.LogConfiguration, context)
3704
+ : undefined,
3609
3705
  ManifestProcessingRules: output.ManifestProcessingRules !== undefined && output.ManifestProcessingRules !== null
3610
3706
  ? deserializeAws_restJson1ManifestProcessingRules(output.ManifestProcessingRules, context)
3611
3707
  : undefined,
@@ -3745,7 +3841,6 @@ var deserializeMetadata = function (output) {
3745
3841
  cfId: output.headers["x-amz-cf-id"],
3746
3842
  });
3747
3843
  };
3748
- // Collect low-level response body stream to Uint8Array.
3749
3844
  var collectBody = function (streamBody, context) {
3750
3845
  if (streamBody === void 0) { streamBody = new Uint8Array(); }
3751
3846
  if (streamBody instanceof Uint8Array) {
@@ -3753,7 +3848,6 @@ var collectBody = function (streamBody, context) {
3753
3848
  }
3754
3849
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3755
3850
  };
3756
- // Encode Uint8Array data into string with utf-8.
3757
3851
  var collectBodyString = function (streamBody, context) {
3758
3852
  return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
3759
3853
  };
@@ -3772,9 +3866,6 @@ var parseBody = function (streamBody, context) {
3772
3866
  return {};
3773
3867
  });
3774
3868
  };
3775
- /**
3776
- * Load an error code for the aws.rest-json-1.1 protocol.
3777
- */
3778
3869
  var loadRestJsonErrorCode = function (output, data) {
3779
3870
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
3780
3871
  var sanitizeErrorCode = function (rawValue) {