@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,3 +1,27 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import {
3
+ expectBoolean as __expectBoolean,
4
+ expectInt32 as __expectInt32,
5
+ expectLong as __expectLong,
6
+ expectNonNull as __expectNonNull,
7
+ expectNumber as __expectNumber,
8
+ expectObject as __expectObject,
9
+ expectString as __expectString,
10
+ extendedEncodeURIComponent as __extendedEncodeURIComponent,
11
+ parseEpochTimestamp as __parseEpochTimestamp,
12
+ } from "@aws-sdk/smithy-client";
13
+ import {
14
+ Endpoint as __Endpoint,
15
+ MetadataBearer as __MetadataBearer,
16
+ ResponseMetadata as __ResponseMetadata,
17
+ SerdeContext as __SerdeContext,
18
+ SmithyException as __SmithyException,
19
+ } from "@aws-sdk/types";
20
+
21
+ import {
22
+ ConfigureLogsForPlaybackConfigurationCommandInput,
23
+ ConfigureLogsForPlaybackConfigurationCommandOutput,
24
+ } from "../commands/ConfigureLogsForPlaybackConfigurationCommand";
1
25
  import { CreateChannelCommandInput, CreateChannelCommandOutput } from "../commands/CreateChannelCommand";
2
26
  import { CreateProgramCommandInput, CreateProgramCommandOutput } from "../commands/CreateProgramCommand";
3
27
  import {
@@ -82,6 +106,7 @@ import {
82
106
  HttpConfiguration,
83
107
  HttpPackageConfiguration,
84
108
  LivePreRollConfiguration,
109
+ LogConfiguration,
85
110
  ManifestProcessingRules,
86
111
  PlaybackConfiguration,
87
112
  RequestOutputItem,
@@ -96,25 +121,34 @@ import {
96
121
  Transition,
97
122
  VodSource,
98
123
  } from "../models/models_0";
99
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
100
- import {
101
- expectBoolean as __expectBoolean,
102
- expectInt32 as __expectInt32,
103
- expectLong as __expectLong,
104
- expectNonNull as __expectNonNull,
105
- expectNumber as __expectNumber,
106
- expectObject as __expectObject,
107
- expectString as __expectString,
108
- extendedEncodeURIComponent as __extendedEncodeURIComponent,
109
- parseEpochTimestamp as __parseEpochTimestamp,
110
- } from "@aws-sdk/smithy-client";
111
- import {
112
- Endpoint as __Endpoint,
113
- MetadataBearer as __MetadataBearer,
114
- ResponseMetadata as __ResponseMetadata,
115
- SerdeContext as __SerdeContext,
116
- SmithyException as __SmithyException,
117
- } from "@aws-sdk/types";
124
+
125
+ export const serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = async (
126
+ input: ConfigureLogsForPlaybackConfigurationCommandInput,
127
+ context: __SerdeContext
128
+ ): Promise<__HttpRequest> => {
129
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
130
+ const headers: any = {
131
+ "content-type": "application/json",
132
+ };
133
+ const resolvedPath =
134
+ `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/playbackConfiguration";
135
+ let body: any;
136
+ body = JSON.stringify({
137
+ ...(input.PercentEnabled !== undefined &&
138
+ input.PercentEnabled !== null && { PercentEnabled: input.PercentEnabled }),
139
+ ...(input.PlaybackConfigurationName !== undefined &&
140
+ input.PlaybackConfigurationName !== null && { PlaybackConfigurationName: input.PlaybackConfigurationName }),
141
+ });
142
+ return new __HttpRequest({
143
+ protocol,
144
+ hostname,
145
+ port,
146
+ method: "PUT",
147
+ headers,
148
+ path: resolvedPath,
149
+ body,
150
+ });
151
+ };
118
152
 
119
153
  export const serializeAws_restJson1CreateChannelCommand = async (
120
154
  input: CreateChannelCommandInput,
@@ -736,7 +770,7 @@ export const serializeAws_restJson1ListAlertsCommand = async (
736
770
  ): Promise<__HttpRequest> => {
737
771
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
738
772
  const headers: any = {};
739
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alerts";
773
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alerts";
740
774
  const query: any = {
741
775
  ...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
742
776
  ...(input.NextToken !== undefined && { nextToken: input.NextToken }),
@@ -761,7 +795,7 @@ export const serializeAws_restJson1ListChannelsCommand = async (
761
795
  ): Promise<__HttpRequest> => {
762
796
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
763
797
  const headers: any = {};
764
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
798
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
765
799
  const query: any = {
766
800
  ...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
767
801
  ...(input.NextToken !== undefined && { nextToken: input.NextToken }),
@@ -785,7 +819,8 @@ export const serializeAws_restJson1ListPlaybackConfigurationsCommand = async (
785
819
  ): Promise<__HttpRequest> => {
786
820
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
787
821
  const headers: any = {};
788
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfigurations";
822
+ const resolvedPath =
823
+ `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfigurations";
789
824
  const query: any = {
790
825
  ...(input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }),
791
826
  ...(input.NextToken !== undefined && { NextToken: input.NextToken }),
@@ -809,7 +844,7 @@ export const serializeAws_restJson1ListSourceLocationsCommand = async (
809
844
  ): Promise<__HttpRequest> => {
810
845
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
811
846
  const headers: any = {};
812
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocations";
847
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocations";
813
848
  const query: any = {
814
849
  ...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
815
850
  ...(input.NextToken !== undefined && { nextToken: input.NextToken }),
@@ -932,7 +967,7 @@ export const serializeAws_restJson1PutPlaybackConfigurationCommand = async (
932
967
  const headers: any = {
933
968
  "content-type": "application/json",
934
969
  };
935
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration";
970
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration";
936
971
  let body: any;
937
972
  body = JSON.stringify({
938
973
  ...(input.AdDecisionServerUrl !== undefined &&
@@ -1246,6 +1281,57 @@ export const serializeAws_restJson1UpdateVodSourceCommand = async (
1246
1281
  });
1247
1282
  };
1248
1283
 
1284
+ export const deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = async (
1285
+ output: __HttpResponse,
1286
+ context: __SerdeContext
1287
+ ): Promise<ConfigureLogsForPlaybackConfigurationCommandOutput> => {
1288
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1289
+ return deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError(output, context);
1290
+ }
1291
+ const contents: ConfigureLogsForPlaybackConfigurationCommandOutput = {
1292
+ $metadata: deserializeMetadata(output),
1293
+ PercentEnabled: undefined,
1294
+ PlaybackConfigurationName: undefined,
1295
+ };
1296
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1297
+ if (data.PercentEnabled !== undefined && data.PercentEnabled !== null) {
1298
+ contents.PercentEnabled = __expectInt32(data.PercentEnabled);
1299
+ }
1300
+ if (data.PlaybackConfigurationName !== undefined && data.PlaybackConfigurationName !== null) {
1301
+ contents.PlaybackConfigurationName = __expectString(data.PlaybackConfigurationName);
1302
+ }
1303
+ return Promise.resolve(contents);
1304
+ };
1305
+
1306
+ const deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError = async (
1307
+ output: __HttpResponse,
1308
+ context: __SerdeContext
1309
+ ): Promise<ConfigureLogsForPlaybackConfigurationCommandOutput> => {
1310
+ const parsedOutput: any = {
1311
+ ...output,
1312
+ body: await parseBody(output.body, context),
1313
+ };
1314
+ let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1315
+ let errorCode = "UnknownError";
1316
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1317
+ switch (errorCode) {
1318
+ default:
1319
+ const parsedBody = parsedOutput.body;
1320
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1321
+ response = {
1322
+ ...parsedBody,
1323
+ name: `${errorCode}`,
1324
+ message: parsedBody.message || parsedBody.Message || errorCode,
1325
+ $fault: "client",
1326
+ $metadata: deserializeMetadata(output),
1327
+ } as any;
1328
+ }
1329
+ const message = response.message || response.Message || errorCode;
1330
+ response.message = message;
1331
+ delete response.Message;
1332
+ return Promise.reject(Object.assign(new Error(message), response));
1333
+ };
1334
+
1249
1335
  export const deserializeAws_restJson1CreateChannelCommand = async (
1250
1336
  output: __HttpResponse,
1251
1337
  context: __SerdeContext
@@ -1305,7 +1391,7 @@ const deserializeAws_restJson1CreateChannelCommandError = async (
1305
1391
  body: await parseBody(output.body, context),
1306
1392
  };
1307
1393
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1308
- let errorCode: string = "UnknownError";
1394
+ let errorCode = "UnknownError";
1309
1395
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1310
1396
  switch (errorCode) {
1311
1397
  default:
@@ -1380,7 +1466,7 @@ const deserializeAws_restJson1CreateProgramCommandError = async (
1380
1466
  body: await parseBody(output.body, context),
1381
1467
  };
1382
1468
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1383
- let errorCode: string = "UnknownError";
1469
+ let errorCode = "UnknownError";
1384
1470
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1385
1471
  switch (errorCode) {
1386
1472
  default:
@@ -1458,7 +1544,7 @@ const deserializeAws_restJson1CreateSourceLocationCommandError = async (
1458
1544
  body: await parseBody(output.body, context),
1459
1545
  };
1460
1546
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1461
- let errorCode: string = "UnknownError";
1547
+ let errorCode = "UnknownError";
1462
1548
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1463
1549
  switch (errorCode) {
1464
1550
  default:
@@ -1532,7 +1618,7 @@ const deserializeAws_restJson1CreateVodSourceCommandError = async (
1532
1618
  body: await parseBody(output.body, context),
1533
1619
  };
1534
1620
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1535
- let errorCode: string = "UnknownError";
1621
+ let errorCode = "UnknownError";
1536
1622
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1537
1623
  switch (errorCode) {
1538
1624
  default:
@@ -1575,7 +1661,7 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (
1575
1661
  body: await parseBody(output.body, context),
1576
1662
  };
1577
1663
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1578
- let errorCode: string = "UnknownError";
1664
+ let errorCode = "UnknownError";
1579
1665
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1580
1666
  switch (errorCode) {
1581
1667
  default:
@@ -1618,7 +1704,7 @@ const deserializeAws_restJson1DeleteChannelPolicyCommandError = async (
1618
1704
  body: await parseBody(output.body, context),
1619
1705
  };
1620
1706
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1621
- let errorCode: string = "UnknownError";
1707
+ let errorCode = "UnknownError";
1622
1708
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1623
1709
  switch (errorCode) {
1624
1710
  default:
@@ -1661,7 +1747,7 @@ const deserializeAws_restJson1DeletePlaybackConfigurationCommandError = async (
1661
1747
  body: await parseBody(output.body, context),
1662
1748
  };
1663
1749
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1664
- let errorCode: string = "UnknownError";
1750
+ let errorCode = "UnknownError";
1665
1751
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1666
1752
  switch (errorCode) {
1667
1753
  default:
@@ -1704,7 +1790,7 @@ const deserializeAws_restJson1DeleteProgramCommandError = async (
1704
1790
  body: await parseBody(output.body, context),
1705
1791
  };
1706
1792
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1707
- let errorCode: string = "UnknownError";
1793
+ let errorCode = "UnknownError";
1708
1794
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1709
1795
  switch (errorCode) {
1710
1796
  default:
@@ -1747,7 +1833,7 @@ const deserializeAws_restJson1DeleteSourceLocationCommandError = async (
1747
1833
  body: await parseBody(output.body, context),
1748
1834
  };
1749
1835
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1750
- let errorCode: string = "UnknownError";
1836
+ let errorCode = "UnknownError";
1751
1837
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1752
1838
  switch (errorCode) {
1753
1839
  default:
@@ -1790,7 +1876,7 @@ const deserializeAws_restJson1DeleteVodSourceCommandError = async (
1790
1876
  body: await parseBody(output.body, context),
1791
1877
  };
1792
1878
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1793
- let errorCode: string = "UnknownError";
1879
+ let errorCode = "UnknownError";
1794
1880
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1795
1881
  switch (errorCode) {
1796
1882
  default:
@@ -1869,7 +1955,7 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (
1869
1955
  body: await parseBody(output.body, context),
1870
1956
  };
1871
1957
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1872
- let errorCode: string = "UnknownError";
1958
+ let errorCode = "UnknownError";
1873
1959
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1874
1960
  switch (errorCode) {
1875
1961
  default:
@@ -1944,7 +2030,7 @@ const deserializeAws_restJson1DescribeProgramCommandError = async (
1944
2030
  body: await parseBody(output.body, context),
1945
2031
  };
1946
2032
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1947
- let errorCode: string = "UnknownError";
2033
+ let errorCode = "UnknownError";
1948
2034
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1949
2035
  switch (errorCode) {
1950
2036
  default:
@@ -2022,7 +2108,7 @@ const deserializeAws_restJson1DescribeSourceLocationCommandError = async (
2022
2108
  body: await parseBody(output.body, context),
2023
2109
  };
2024
2110
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2025
- let errorCode: string = "UnknownError";
2111
+ let errorCode = "UnknownError";
2026
2112
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2027
2113
  switch (errorCode) {
2028
2114
  default:
@@ -2096,7 +2182,7 @@ const deserializeAws_restJson1DescribeVodSourceCommandError = async (
2096
2182
  body: await parseBody(output.body, context),
2097
2183
  };
2098
2184
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2099
- let errorCode: string = "UnknownError";
2185
+ let errorCode = "UnknownError";
2100
2186
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2101
2187
  switch (errorCode) {
2102
2188
  default:
@@ -2143,7 +2229,7 @@ const deserializeAws_restJson1GetChannelPolicyCommandError = async (
2143
2229
  body: await parseBody(output.body, context),
2144
2230
  };
2145
2231
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2146
- let errorCode: string = "UnknownError";
2232
+ let errorCode = "UnknownError";
2147
2233
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2148
2234
  switch (errorCode) {
2149
2235
  default:
@@ -2194,7 +2280,7 @@ const deserializeAws_restJson1GetChannelScheduleCommandError = async (
2194
2280
  body: await parseBody(output.body, context),
2195
2281
  };
2196
2282
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2197
- let errorCode: string = "UnknownError";
2283
+ let errorCode = "UnknownError";
2198
2284
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2199
2285
  switch (errorCode) {
2200
2286
  default:
@@ -2231,6 +2317,7 @@ export const deserializeAws_restJson1GetPlaybackConfigurationCommand = async (
2231
2317
  DashConfiguration: undefined,
2232
2318
  HlsConfiguration: undefined,
2233
2319
  LivePreRollConfiguration: undefined,
2320
+ LogConfiguration: undefined,
2234
2321
  ManifestProcessingRules: undefined,
2235
2322
  Name: undefined,
2236
2323
  PersonalizationThresholdSeconds: undefined,
@@ -2273,6 +2360,9 @@ export const deserializeAws_restJson1GetPlaybackConfigurationCommand = async (
2273
2360
  context
2274
2361
  );
2275
2362
  }
2363
+ if (data.LogConfiguration !== undefined && data.LogConfiguration !== null) {
2364
+ contents.LogConfiguration = deserializeAws_restJson1LogConfiguration(data.LogConfiguration, context);
2365
+ }
2276
2366
  if (data.ManifestProcessingRules !== undefined && data.ManifestProcessingRules !== null) {
2277
2367
  contents.ManifestProcessingRules = deserializeAws_restJson1ManifestProcessingRules(
2278
2368
  data.ManifestProcessingRules,
@@ -2318,7 +2408,7 @@ const deserializeAws_restJson1GetPlaybackConfigurationCommandError = async (
2318
2408
  body: await parseBody(output.body, context),
2319
2409
  };
2320
2410
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2321
- let errorCode: string = "UnknownError";
2411
+ let errorCode = "UnknownError";
2322
2412
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2323
2413
  switch (errorCode) {
2324
2414
  default:
@@ -2369,7 +2459,7 @@ const deserializeAws_restJson1ListAlertsCommandError = async (
2369
2459
  body: await parseBody(output.body, context),
2370
2460
  };
2371
2461
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2372
- let errorCode: string = "UnknownError";
2462
+ let errorCode = "UnknownError";
2373
2463
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2374
2464
  switch (errorCode) {
2375
2465
  default:
@@ -2420,7 +2510,7 @@ const deserializeAws_restJson1ListChannelsCommandError = async (
2420
2510
  body: await parseBody(output.body, context),
2421
2511
  };
2422
2512
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2423
- let errorCode: string = "UnknownError";
2513
+ let errorCode = "UnknownError";
2424
2514
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2425
2515
  switch (errorCode) {
2426
2516
  default:
@@ -2471,7 +2561,7 @@ const deserializeAws_restJson1ListPlaybackConfigurationsCommandError = async (
2471
2561
  body: await parseBody(output.body, context),
2472
2562
  };
2473
2563
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2474
- let errorCode: string = "UnknownError";
2564
+ let errorCode = "UnknownError";
2475
2565
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2476
2566
  switch (errorCode) {
2477
2567
  default:
@@ -2522,7 +2612,7 @@ const deserializeAws_restJson1ListSourceLocationsCommandError = async (
2522
2612
  body: await parseBody(output.body, context),
2523
2613
  };
2524
2614
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2525
- let errorCode: string = "UnknownError";
2615
+ let errorCode = "UnknownError";
2526
2616
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2527
2617
  switch (errorCode) {
2528
2618
  default:
@@ -2569,7 +2659,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (
2569
2659
  body: await parseBody(output.body, context),
2570
2660
  };
2571
2661
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2572
- let errorCode: string = "UnknownError";
2662
+ let errorCode = "UnknownError";
2573
2663
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2574
2664
  switch (errorCode) {
2575
2665
  case "BadRequestException":
@@ -2628,7 +2718,7 @@ const deserializeAws_restJson1ListVodSourcesCommandError = async (
2628
2718
  body: await parseBody(output.body, context),
2629
2719
  };
2630
2720
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2631
- let errorCode: string = "UnknownError";
2721
+ let errorCode = "UnknownError";
2632
2722
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2633
2723
  switch (errorCode) {
2634
2724
  default:
@@ -2671,7 +2761,7 @@ const deserializeAws_restJson1PutChannelPolicyCommandError = async (
2671
2761
  body: await parseBody(output.body, context),
2672
2762
  };
2673
2763
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2674
- let errorCode: string = "UnknownError";
2764
+ let errorCode = "UnknownError";
2675
2765
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2676
2766
  switch (errorCode) {
2677
2767
  default:
@@ -2708,6 +2798,7 @@ export const deserializeAws_restJson1PutPlaybackConfigurationCommand = async (
2708
2798
  DashConfiguration: undefined,
2709
2799
  HlsConfiguration: undefined,
2710
2800
  LivePreRollConfiguration: undefined,
2801
+ LogConfiguration: undefined,
2711
2802
  ManifestProcessingRules: undefined,
2712
2803
  Name: undefined,
2713
2804
  PersonalizationThresholdSeconds: undefined,
@@ -2750,6 +2841,9 @@ export const deserializeAws_restJson1PutPlaybackConfigurationCommand = async (
2750
2841
  context
2751
2842
  );
2752
2843
  }
2844
+ if (data.LogConfiguration !== undefined && data.LogConfiguration !== null) {
2845
+ contents.LogConfiguration = deserializeAws_restJson1LogConfiguration(data.LogConfiguration, context);
2846
+ }
2753
2847
  if (data.ManifestProcessingRules !== undefined && data.ManifestProcessingRules !== null) {
2754
2848
  contents.ManifestProcessingRules = deserializeAws_restJson1ManifestProcessingRules(
2755
2849
  data.ManifestProcessingRules,
@@ -2795,7 +2889,7 @@ const deserializeAws_restJson1PutPlaybackConfigurationCommandError = async (
2795
2889
  body: await parseBody(output.body, context),
2796
2890
  };
2797
2891
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2798
- let errorCode: string = "UnknownError";
2892
+ let errorCode = "UnknownError";
2799
2893
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2800
2894
  switch (errorCode) {
2801
2895
  default:
@@ -2838,7 +2932,7 @@ const deserializeAws_restJson1StartChannelCommandError = async (
2838
2932
  body: await parseBody(output.body, context),
2839
2933
  };
2840
2934
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2841
- let errorCode: string = "UnknownError";
2935
+ let errorCode = "UnknownError";
2842
2936
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2843
2937
  switch (errorCode) {
2844
2938
  default:
@@ -2881,7 +2975,7 @@ const deserializeAws_restJson1StopChannelCommandError = async (
2881
2975
  body: await parseBody(output.body, context),
2882
2976
  };
2883
2977
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2884
- let errorCode: string = "UnknownError";
2978
+ let errorCode = "UnknownError";
2885
2979
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2886
2980
  switch (errorCode) {
2887
2981
  default:
@@ -2924,7 +3018,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (
2924
3018
  body: await parseBody(output.body, context),
2925
3019
  };
2926
3020
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2927
- let errorCode: string = "UnknownError";
3021
+ let errorCode = "UnknownError";
2928
3022
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2929
3023
  switch (errorCode) {
2930
3024
  case "BadRequestException":
@@ -2975,7 +3069,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (
2975
3069
  body: await parseBody(output.body, context),
2976
3070
  };
2977
3071
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2978
- let errorCode: string = "UnknownError";
3072
+ let errorCode = "UnknownError";
2979
3073
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2980
3074
  switch (errorCode) {
2981
3075
  case "BadRequestException":
@@ -3062,7 +3156,7 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (
3062
3156
  body: await parseBody(output.body, context),
3063
3157
  };
3064
3158
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
3065
- let errorCode: string = "UnknownError";
3159
+ let errorCode = "UnknownError";
3066
3160
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3067
3161
  switch (errorCode) {
3068
3162
  default:
@@ -3140,7 +3234,7 @@ const deserializeAws_restJson1UpdateSourceLocationCommandError = async (
3140
3234
  body: await parseBody(output.body, context),
3141
3235
  };
3142
3236
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
3143
- let errorCode: string = "UnknownError";
3237
+ let errorCode = "UnknownError";
3144
3238
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3145
3239
  switch (errorCode) {
3146
3240
  default:
@@ -3214,7 +3308,7 @@ const deserializeAws_restJson1UpdateVodSourceCommandError = async (
3214
3308
  body: await parseBody(output.body, context),
3215
3309
  };
3216
3310
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
3217
- let errorCode: string = "UnknownError";
3311
+ let errorCode = "UnknownError";
3218
3312
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3219
3313
  switch (errorCode) {
3220
3314
  default:
@@ -3829,6 +3923,12 @@ const deserializeAws_restJson1LivePreRollConfiguration = (
3829
3923
  } as any;
3830
3924
  };
3831
3925
 
3926
+ const deserializeAws_restJson1LogConfiguration = (output: any, context: __SerdeContext): LogConfiguration => {
3927
+ return {
3928
+ PercentEnabled: __expectInt32(output.PercentEnabled),
3929
+ } as any;
3930
+ };
3931
+
3832
3932
  const deserializeAws_restJson1ManifestProcessingRules = (
3833
3933
  output: any,
3834
3934
  context: __SerdeContext
@@ -3872,6 +3972,10 @@ const deserializeAws_restJson1PlaybackConfiguration = (output: any, context: __S
3872
3972
  output.LivePreRollConfiguration !== undefined && output.LivePreRollConfiguration !== null
3873
3973
  ? deserializeAws_restJson1LivePreRollConfiguration(output.LivePreRollConfiguration, context)
3874
3974
  : undefined,
3975
+ LogConfiguration:
3976
+ output.LogConfiguration !== undefined && output.LogConfiguration !== null
3977
+ ? deserializeAws_restJson1LogConfiguration(output.LogConfiguration, context)
3978
+ : undefined,
3875
3979
  ManifestProcessingRules:
3876
3980
  output.ManifestProcessingRules !== undefined && output.ManifestProcessingRules !== null
3877
3981
  ? deserializeAws_restJson1ManifestProcessingRules(output.ManifestProcessingRules, context)
@@ -1,5 +1,3 @@
1
- import packageInfo from "./package.json";
2
-
3
1
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
2
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
3
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
@@ -8,6 +6,9 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
8
6
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
9
7
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
8
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
9
+
10
+ // @ts-ignore: package.json will be imported from dist folders
11
+ import packageInfo from "../package.json";
11
12
  import { MediaTailorClientConfig } from "./MediaTailorClient";
12
13
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
14
 
@@ -1,4 +1,5 @@
1
1
  import { Sha256 } from "@aws-crypto/sha256-js";
2
+
2
3
  import { MediaTailorClientConfig } from "./MediaTailorClient";
3
4
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
5
 
@@ -1,6 +1,7 @@
1
- import { defaultRegionInfoProvider } from "./endpoints";
2
1
  import { Logger as __Logger } from "@aws-sdk/types";
3
2
  import { parseUrl } from "@aws-sdk/url-parser";
3
+
4
+ import { defaultRegionInfoProvider } from "./endpoints";
4
5
  import { MediaTailorClientConfig } from "./MediaTailorClient";
5
6
 
6
7
  /**
@@ -1,5 +1,3 @@
1
- import packageInfo from "./package.json";
2
-
3
1
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
2
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
5
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
@@ -7,13 +5,16 @@ import { Hash } from "@aws-sdk/hash-node";
7
5
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
8
6
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
7
  import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
8
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
10
9
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
10
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
11
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
12
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
13
+
14
+ // @ts-ignore: package.json will be imported from dist folders
15
+ import packageInfo from "../package.json";
14
16
  import { MediaTailorClientConfig } from "./MediaTailorClient";
15
17
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
16
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
18
 
18
19
  /**
19
20
  * @internal
package/tsconfig.es.json CHANGED
@@ -4,9 +4,7 @@
4
4
  "target": "es5",
5
5
  "module": "esnext",
6
6
  "moduleResolution": "node",
7
- "declaration": false,
8
- "declarationDir": null,
9
7
  "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
10
- "outDir": "dist/es"
8
+ "outDir": "dist-es"
11
9
  }
12
10
  }
package/tsconfig.json CHANGED
@@ -3,7 +3,6 @@
3
3
  "alwaysStrict": true,
4
4
  "target": "ES2018",
5
5
  "module": "commonjs",
6
- "declaration": true,
7
6
  "strict": true,
8
7
  "sourceMap": true,
9
8
  "downlevelIteration": true,
@@ -12,9 +11,9 @@
12
11
  "incremental": true,
13
12
  "resolveJsonModule": true,
14
13
  "esModuleInterop": true,
15
- "declarationDir": "./dist/types",
16
- "outDir": "dist/cjs",
17
- "useUnknownInCatchVariables": false
14
+ "rootDir": "src",
15
+ "outDir": "dist-cjs",
16
+ "removeComments": true
18
17
  },
19
18
  "typedocOptions": {
20
19
  "exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
@@ -24,10 +23,11 @@
24
23
  "ignoreCompilerErrors": true,
25
24
  "includeDeclarations": true,
26
25
  "stripInternal": true,
27
- "readme": "./README.md",
26
+ "readme": "README.md",
28
27
  "mode": "file",
29
- "out": "./docs",
28
+ "out": "docs",
30
29
  "theme": "minimal",
31
30
  "plugin": ["@aws-sdk/client-documentation-generator"]
32
- }
31
+ },
32
+ "exclude": ["test/**/*"]
33
33
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig",
3
+ "compilerOptions": {
4
+ "removeComments": false,
5
+ "declaration": true,
6
+ "declarationDir": "dist-types"
7
+ },
8
+ "exclude": ["test/**/*", "dist-types/**/*"]
9
+ }