@aws-sdk/client-mediapackage 3.32.0 → 3.36.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 (246) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/{dist/cjs → dist-cjs}/MediaPackage.js +1 -2
  3. package/{dist/cjs → dist-cjs}/MediaPackageClient.js +8 -9
  4. package/{dist/cjs → dist-cjs}/commands/ConfigureLogsCommand.js +2 -3
  5. package/{dist/cjs → dist-cjs}/commands/CreateChannelCommand.js +2 -3
  6. package/{dist/cjs → dist-cjs}/commands/CreateHarvestJobCommand.js +2 -3
  7. package/{dist/cjs → dist-cjs}/commands/CreateOriginEndpointCommand.js +2 -3
  8. package/{dist/cjs → dist-cjs}/commands/DeleteChannelCommand.js +2 -3
  9. package/{dist/cjs → dist-cjs}/commands/DeleteOriginEndpointCommand.js +2 -3
  10. package/{dist/cjs → dist-cjs}/commands/DescribeChannelCommand.js +2 -3
  11. package/{dist/cjs → dist-cjs}/commands/DescribeHarvestJobCommand.js +2 -3
  12. package/{dist/cjs → dist-cjs}/commands/DescribeOriginEndpointCommand.js +2 -3
  13. package/{dist/cjs → dist-cjs}/commands/ListChannelsCommand.js +2 -3
  14. package/{dist/cjs → dist-cjs}/commands/ListHarvestJobsCommand.js +2 -3
  15. package/{dist/cjs → dist-cjs}/commands/ListOriginEndpointsCommand.js +2 -3
  16. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
  17. package/{dist/cjs → dist-cjs}/commands/RotateChannelCredentialsCommand.js +2 -3
  18. package/{dist/cjs → dist-cjs}/commands/RotateIngestEndpointCredentialsCommand.js +2 -3
  19. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
  20. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
  21. package/{dist/cjs → dist-cjs}/commands/UpdateChannelCommand.js +2 -3
  22. package/{dist/cjs → dist-cjs}/commands/UpdateOriginEndpointCommand.js +2 -3
  23. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  24. package/{dist/cjs → dist-cjs}/index.js +0 -1
  25. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  26. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
  27. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  28. package/{dist/cjs → dist-cjs}/pagination/ListChannelsPaginator.js +1 -2
  29. package/{dist/cjs → dist-cjs}/pagination/ListHarvestJobsPaginator.js +1 -2
  30. package/{dist/cjs → dist-cjs}/pagination/ListOriginEndpointsPaginator.js +1 -2
  31. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +6 -7
  32. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  33. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  34. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  35. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  36. package/{dist/es → dist-es}/MediaPackage.js +2 -6
  37. package/{dist/es → dist-es}/MediaPackageClient.js +2 -11
  38. package/{dist/es → dist-es}/commands/ConfigureLogsCommand.js +4 -30
  39. package/{dist/es → dist-es}/commands/CreateChannelCommand.js +4 -30
  40. package/{dist/es → dist-es}/commands/CreateHarvestJobCommand.js +4 -30
  41. package/{dist/es → dist-es}/commands/CreateOriginEndpointCommand.js +4 -30
  42. package/{dist/es → dist-es}/commands/DeleteChannelCommand.js +4 -30
  43. package/{dist/es → dist-es}/commands/DeleteOriginEndpointCommand.js +4 -30
  44. package/{dist/es → dist-es}/commands/DescribeChannelCommand.js +4 -30
  45. package/{dist/es → dist-es}/commands/DescribeHarvestJobCommand.js +4 -30
  46. package/{dist/es → dist-es}/commands/DescribeOriginEndpointCommand.js +4 -30
  47. package/{dist/es → dist-es}/commands/ListChannelsCommand.js +4 -30
  48. package/{dist/es → dist-es}/commands/ListHarvestJobsCommand.js +4 -30
  49. package/{dist/es → dist-es}/commands/ListOriginEndpointsCommand.js +4 -30
  50. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -13
  51. package/{dist/es → dist-es}/commands/RotateChannelCredentialsCommand.js +4 -32
  52. package/{dist/es → dist-es}/commands/RotateIngestEndpointCredentialsCommand.js +4 -30
  53. package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -13
  54. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -13
  55. package/{dist/es → dist-es}/commands/UpdateChannelCommand.js +4 -30
  56. package/{dist/es → dist-es}/commands/UpdateOriginEndpointCommand.js +4 -30
  57. package/{dist/es → dist-es}/endpoints.js +1 -2
  58. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  59. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  60. package/{dist/es → dist-es}/models/models_0.js +0 -196
  61. package/dist-es/pagination/Interfaces.js +1 -0
  62. package/{dist/es → dist-es}/pagination/ListChannelsPaginator.js +17 -30
  63. package/{dist/es → dist-es}/pagination/ListHarvestJobsPaginator.js +17 -30
  64. package/{dist/es → dist-es}/pagination/ListOriginEndpointsPaginator.js +17 -30
  65. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +555 -561
  66. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  67. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  68. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  69. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  70. package/{dist/types → dist-types}/MediaPackage.d.ts +2 -2
  71. package/{dist/types → dist-types}/MediaPackageClient.d.ts +8 -8
  72. package/{dist/types → dist-types}/commands/ConfigureLogsCommand.d.ts +2 -2
  73. package/{dist/types → dist-types}/commands/CreateChannelCommand.d.ts +2 -2
  74. package/{dist/types → dist-types}/commands/CreateHarvestJobCommand.d.ts +2 -2
  75. package/{dist/types → dist-types}/commands/CreateOriginEndpointCommand.d.ts +2 -2
  76. package/{dist/types → dist-types}/commands/DeleteChannelCommand.d.ts +2 -2
  77. package/{dist/types → dist-types}/commands/DeleteOriginEndpointCommand.d.ts +2 -2
  78. package/{dist/types → dist-types}/commands/DescribeChannelCommand.d.ts +2 -2
  79. package/{dist/types → dist-types}/commands/DescribeHarvestJobCommand.d.ts +2 -2
  80. package/{dist/types → dist-types}/commands/DescribeOriginEndpointCommand.d.ts +2 -2
  81. package/{dist/types → dist-types}/commands/ListChannelsCommand.d.ts +2 -2
  82. package/{dist/types → dist-types}/commands/ListHarvestJobsCommand.d.ts +2 -2
  83. package/{dist/types → dist-types}/commands/ListOriginEndpointsCommand.d.ts +2 -2
  84. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
  85. package/{dist/types → dist-types}/commands/RotateChannelCredentialsCommand.d.ts +2 -2
  86. package/{dist/types → dist-types}/commands/RotateIngestEndpointCredentialsCommand.d.ts +2 -2
  87. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
  88. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
  89. package/{dist/types → dist-types}/commands/UpdateChannelCommand.d.ts +2 -2
  90. package/{dist/types → dist-types}/commands/UpdateOriginEndpointCommand.d.ts +2 -2
  91. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  92. package/{index.ts → dist-types/index.d.ts} +0 -0
  93. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  94. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  95. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  96. package/{dist/types → dist-types}/pagination/ListChannelsPaginator.d.ts +1 -1
  97. package/{dist/types → dist-types}/pagination/ListHarvestJobsPaginator.d.ts +1 -1
  98. package/{dist/types → dist-types}/pagination/ListOriginEndpointsPaginator.d.ts +1 -1
  99. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  100. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
  101. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  102. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  103. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  104. package/{dist/types → dist-types}/ts3.4/MediaPackage.d.ts +2 -2
  105. package/{dist/types → dist-types}/ts3.4/MediaPackageClient.d.ts +8 -8
  106. package/{dist/types → dist-types}/ts3.4/commands/ConfigureLogsCommand.d.ts +2 -2
  107. package/{dist/types → dist-types}/ts3.4/commands/CreateChannelCommand.d.ts +2 -2
  108. package/{dist/types → dist-types}/ts3.4/commands/CreateHarvestJobCommand.d.ts +2 -2
  109. package/{dist/types → dist-types}/ts3.4/commands/CreateOriginEndpointCommand.d.ts +2 -2
  110. package/{dist/types → dist-types}/ts3.4/commands/DeleteChannelCommand.d.ts +2 -2
  111. package/{dist/types → dist-types}/ts3.4/commands/DeleteOriginEndpointCommand.d.ts +2 -2
  112. package/{dist/types → dist-types}/ts3.4/commands/DescribeChannelCommand.d.ts +2 -2
  113. package/{dist/types → dist-types}/ts3.4/commands/DescribeHarvestJobCommand.d.ts +2 -2
  114. package/{dist/types → dist-types}/ts3.4/commands/DescribeOriginEndpointCommand.d.ts +2 -2
  115. package/{dist/types → dist-types}/ts3.4/commands/ListChannelsCommand.d.ts +2 -2
  116. package/{dist/types → dist-types}/ts3.4/commands/ListHarvestJobsCommand.d.ts +2 -2
  117. package/{dist/types → dist-types}/ts3.4/commands/ListOriginEndpointsCommand.d.ts +2 -2
  118. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
  119. package/{dist/types → dist-types}/ts3.4/commands/RotateChannelCredentialsCommand.d.ts +2 -2
  120. package/{dist/types → dist-types}/ts3.4/commands/RotateIngestEndpointCredentialsCommand.d.ts +2 -2
  121. package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
  122. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
  123. package/{dist/types → dist-types}/ts3.4/commands/UpdateChannelCommand.d.ts +2 -2
  124. package/{dist/types → dist-types}/ts3.4/commands/UpdateOriginEndpointCommand.d.ts +2 -2
  125. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  126. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  127. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  128. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  129. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  130. package/{dist/types → dist-types}/ts3.4/pagination/ListChannelsPaginator.d.ts +1 -1
  131. package/{dist/types → dist-types}/ts3.4/pagination/ListHarvestJobsPaginator.d.ts +1 -1
  132. package/{dist/types → dist-types}/ts3.4/pagination/ListOriginEndpointsPaginator.d.ts +1 -1
  133. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  134. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
  135. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  136. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  137. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  138. package/package.json +52 -49
  139. package/MediaPackage.ts +0 -690
  140. package/MediaPackageClient.ts +0 -316
  141. package/commands/ConfigureLogsCommand.ts +0 -94
  142. package/commands/CreateChannelCommand.ts +0 -94
  143. package/commands/CreateHarvestJobCommand.ts +0 -94
  144. package/commands/CreateOriginEndpointCommand.ts +0 -94
  145. package/commands/DeleteChannelCommand.ts +0 -94
  146. package/commands/DeleteOriginEndpointCommand.ts +0 -94
  147. package/commands/DescribeChannelCommand.ts +0 -94
  148. package/commands/DescribeHarvestJobCommand.ts +0 -94
  149. package/commands/DescribeOriginEndpointCommand.ts +0 -94
  150. package/commands/ListChannelsCommand.ts +0 -94
  151. package/commands/ListHarvestJobsCommand.ts +0 -94
  152. package/commands/ListOriginEndpointsCommand.ts +0 -94
  153. package/commands/ListTagsForResourceCommand.ts +0 -77
  154. package/commands/RotateChannelCredentialsCommand.ts +0 -96
  155. package/commands/RotateIngestEndpointCredentialsCommand.ts +0 -102
  156. package/commands/TagResourceCommand.ts +0 -77
  157. package/commands/UntagResourceCommand.ts +0 -77
  158. package/commands/UpdateChannelCommand.ts +0 -94
  159. package/commands/UpdateOriginEndpointCommand.ts +0 -94
  160. package/dist/cjs/MediaPackage.js.map +0 -1
  161. package/dist/cjs/MediaPackageClient.js.map +0 -1
  162. package/dist/cjs/commands/ConfigureLogsCommand.js.map +0 -1
  163. package/dist/cjs/commands/CreateChannelCommand.js.map +0 -1
  164. package/dist/cjs/commands/CreateHarvestJobCommand.js.map +0 -1
  165. package/dist/cjs/commands/CreateOriginEndpointCommand.js.map +0 -1
  166. package/dist/cjs/commands/DeleteChannelCommand.js.map +0 -1
  167. package/dist/cjs/commands/DeleteOriginEndpointCommand.js.map +0 -1
  168. package/dist/cjs/commands/DescribeChannelCommand.js.map +0 -1
  169. package/dist/cjs/commands/DescribeHarvestJobCommand.js.map +0 -1
  170. package/dist/cjs/commands/DescribeOriginEndpointCommand.js.map +0 -1
  171. package/dist/cjs/commands/ListChannelsCommand.js.map +0 -1
  172. package/dist/cjs/commands/ListHarvestJobsCommand.js.map +0 -1
  173. package/dist/cjs/commands/ListOriginEndpointsCommand.js.map +0 -1
  174. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  175. package/dist/cjs/commands/RotateChannelCredentialsCommand.js.map +0 -1
  176. package/dist/cjs/commands/RotateIngestEndpointCredentialsCommand.js.map +0 -1
  177. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  178. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  179. package/dist/cjs/commands/UpdateChannelCommand.js.map +0 -1
  180. package/dist/cjs/commands/UpdateOriginEndpointCommand.js.map +0 -1
  181. package/dist/cjs/endpoints.js.map +0 -1
  182. package/dist/cjs/index.js.map +0 -1
  183. package/dist/cjs/models/index.js.map +0 -1
  184. package/dist/cjs/models/models_0.js.map +0 -1
  185. package/dist/cjs/package.json +0 -91
  186. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  187. package/dist/cjs/pagination/ListChannelsPaginator.js.map +0 -1
  188. package/dist/cjs/pagination/ListHarvestJobsPaginator.js.map +0 -1
  189. package/dist/cjs/pagination/ListOriginEndpointsPaginator.js.map +0 -1
  190. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  191. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  192. package/dist/cjs/runtimeConfig.js.map +0 -1
  193. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  194. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  195. package/dist/es/MediaPackage.js.map +0 -1
  196. package/dist/es/MediaPackageClient.js.map +0 -1
  197. package/dist/es/commands/ConfigureLogsCommand.js.map +0 -1
  198. package/dist/es/commands/CreateChannelCommand.js.map +0 -1
  199. package/dist/es/commands/CreateHarvestJobCommand.js.map +0 -1
  200. package/dist/es/commands/CreateOriginEndpointCommand.js.map +0 -1
  201. package/dist/es/commands/DeleteChannelCommand.js.map +0 -1
  202. package/dist/es/commands/DeleteOriginEndpointCommand.js.map +0 -1
  203. package/dist/es/commands/DescribeChannelCommand.js.map +0 -1
  204. package/dist/es/commands/DescribeHarvestJobCommand.js.map +0 -1
  205. package/dist/es/commands/DescribeOriginEndpointCommand.js.map +0 -1
  206. package/dist/es/commands/ListChannelsCommand.js.map +0 -1
  207. package/dist/es/commands/ListHarvestJobsCommand.js.map +0 -1
  208. package/dist/es/commands/ListOriginEndpointsCommand.js.map +0 -1
  209. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  210. package/dist/es/commands/RotateChannelCredentialsCommand.js.map +0 -1
  211. package/dist/es/commands/RotateIngestEndpointCredentialsCommand.js.map +0 -1
  212. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  213. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  214. package/dist/es/commands/UpdateChannelCommand.js.map +0 -1
  215. package/dist/es/commands/UpdateOriginEndpointCommand.js.map +0 -1
  216. package/dist/es/endpoints.js.map +0 -1
  217. package/dist/es/index.js +0 -27
  218. package/dist/es/index.js.map +0 -1
  219. package/dist/es/models/index.js +0 -2
  220. package/dist/es/models/index.js.map +0 -1
  221. package/dist/es/models/models_0.js.map +0 -1
  222. package/dist/es/package.json +0 -91
  223. package/dist/es/pagination/Interfaces.js +0 -2
  224. package/dist/es/pagination/Interfaces.js.map +0 -1
  225. package/dist/es/pagination/ListChannelsPaginator.js.map +0 -1
  226. package/dist/es/pagination/ListHarvestJobsPaginator.js.map +0 -1
  227. package/dist/es/pagination/ListOriginEndpointsPaginator.js.map +0 -1
  228. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  229. package/dist/es/runtimeConfig.browser.js.map +0 -1
  230. package/dist/es/runtimeConfig.js.map +0 -1
  231. package/dist/es/runtimeConfig.native.js.map +0 -1
  232. package/dist/es/runtimeConfig.shared.js.map +0 -1
  233. package/endpoints.ts +0 -57
  234. package/jest.config.js +0 -4
  235. package/models/models_0.ts +0 -2553
  236. package/pagination/Interfaces.ts +0 -7
  237. package/pagination/ListChannelsPaginator.ts +0 -58
  238. package/pagination/ListHarvestJobsPaginator.ts +0 -58
  239. package/pagination/ListOriginEndpointsPaginator.ts +0 -58
  240. package/protocols/Aws_restJson1.ts +0 -3668
  241. package/runtimeConfig.browser.ts +0 -40
  242. package/runtimeConfig.native.ts +0 -16
  243. package/runtimeConfig.shared.ts +0 -16
  244. package/runtimeConfig.ts +0 -45
  245. package/tsconfig.es.json +0 -12
  246. package/tsconfig.json +0 -32
@@ -1,316 +0,0 @@
1
- import { ConfigureLogsCommandInput, ConfigureLogsCommandOutput } from "./commands/ConfigureLogsCommand";
2
- import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
3
- import { CreateHarvestJobCommandInput, CreateHarvestJobCommandOutput } from "./commands/CreateHarvestJobCommand";
4
- import {
5
- CreateOriginEndpointCommandInput,
6
- CreateOriginEndpointCommandOutput,
7
- } from "./commands/CreateOriginEndpointCommand";
8
- import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
9
- import {
10
- DeleteOriginEndpointCommandInput,
11
- DeleteOriginEndpointCommandOutput,
12
- } from "./commands/DeleteOriginEndpointCommand";
13
- import { DescribeChannelCommandInput, DescribeChannelCommandOutput } from "./commands/DescribeChannelCommand";
14
- import { DescribeHarvestJobCommandInput, DescribeHarvestJobCommandOutput } from "./commands/DescribeHarvestJobCommand";
15
- import {
16
- DescribeOriginEndpointCommandInput,
17
- DescribeOriginEndpointCommandOutput,
18
- } from "./commands/DescribeOriginEndpointCommand";
19
- import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
20
- import { ListHarvestJobsCommandInput, ListHarvestJobsCommandOutput } from "./commands/ListHarvestJobsCommand";
21
- import {
22
- ListOriginEndpointsCommandInput,
23
- ListOriginEndpointsCommandOutput,
24
- } from "./commands/ListOriginEndpointsCommand";
25
- import {
26
- ListTagsForResourceCommandInput,
27
- ListTagsForResourceCommandOutput,
28
- } from "./commands/ListTagsForResourceCommand";
29
- import {
30
- RotateChannelCredentialsCommandInput,
31
- RotateChannelCredentialsCommandOutput,
32
- } from "./commands/RotateChannelCredentialsCommand";
33
- import {
34
- RotateIngestEndpointCredentialsCommandInput,
35
- RotateIngestEndpointCredentialsCommandOutput,
36
- } from "./commands/RotateIngestEndpointCredentialsCommand";
37
- import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
38
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
39
- import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
40
- import {
41
- UpdateOriginEndpointCommandInput,
42
- UpdateOriginEndpointCommandOutput,
43
- } from "./commands/UpdateOriginEndpointCommand";
44
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
45
- import {
46
- EndpointsInputConfig,
47
- EndpointsResolvedConfig,
48
- RegionInputConfig,
49
- RegionResolvedConfig,
50
- resolveEndpointsConfig,
51
- resolveRegionConfig,
52
- } from "@aws-sdk/config-resolver";
53
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
54
- import {
55
- HostHeaderInputConfig,
56
- HostHeaderResolvedConfig,
57
- getHostHeaderPlugin,
58
- resolveHostHeaderConfig,
59
- } from "@aws-sdk/middleware-host-header";
60
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
61
- import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
62
- import {
63
- AwsAuthInputConfig,
64
- AwsAuthResolvedConfig,
65
- getAwsAuthPlugin,
66
- resolveAwsAuthConfig,
67
- } from "@aws-sdk/middleware-signing";
68
- import {
69
- UserAgentInputConfig,
70
- UserAgentResolvedConfig,
71
- getUserAgentPlugin,
72
- resolveUserAgentConfig,
73
- } from "@aws-sdk/middleware-user-agent";
74
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
75
- import {
76
- Client as __Client,
77
- SmithyConfiguration as __SmithyConfiguration,
78
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
79
- } from "@aws-sdk/smithy-client";
80
- import {
81
- Provider,
82
- RegionInfoProvider,
83
- Credentials as __Credentials,
84
- Decoder as __Decoder,
85
- Encoder as __Encoder,
86
- Hash as __Hash,
87
- HashConstructor as __HashConstructor,
88
- HttpHandlerOptions as __HttpHandlerOptions,
89
- Logger as __Logger,
90
- Provider as __Provider,
91
- StreamCollector as __StreamCollector,
92
- UrlParser as __UrlParser,
93
- UserAgent as __UserAgent,
94
- } from "@aws-sdk/types";
95
-
96
- export type ServiceInputTypes =
97
- | ConfigureLogsCommandInput
98
- | CreateChannelCommandInput
99
- | CreateHarvestJobCommandInput
100
- | CreateOriginEndpointCommandInput
101
- | DeleteChannelCommandInput
102
- | DeleteOriginEndpointCommandInput
103
- | DescribeChannelCommandInput
104
- | DescribeHarvestJobCommandInput
105
- | DescribeOriginEndpointCommandInput
106
- | ListChannelsCommandInput
107
- | ListHarvestJobsCommandInput
108
- | ListOriginEndpointsCommandInput
109
- | ListTagsForResourceCommandInput
110
- | RotateChannelCredentialsCommandInput
111
- | RotateIngestEndpointCredentialsCommandInput
112
- | TagResourceCommandInput
113
- | UntagResourceCommandInput
114
- | UpdateChannelCommandInput
115
- | UpdateOriginEndpointCommandInput;
116
-
117
- export type ServiceOutputTypes =
118
- | ConfigureLogsCommandOutput
119
- | CreateChannelCommandOutput
120
- | CreateHarvestJobCommandOutput
121
- | CreateOriginEndpointCommandOutput
122
- | DeleteChannelCommandOutput
123
- | DeleteOriginEndpointCommandOutput
124
- | DescribeChannelCommandOutput
125
- | DescribeHarvestJobCommandOutput
126
- | DescribeOriginEndpointCommandOutput
127
- | ListChannelsCommandOutput
128
- | ListHarvestJobsCommandOutput
129
- | ListOriginEndpointsCommandOutput
130
- | ListTagsForResourceCommandOutput
131
- | RotateChannelCredentialsCommandOutput
132
- | RotateIngestEndpointCredentialsCommandOutput
133
- | TagResourceCommandOutput
134
- | UntagResourceCommandOutput
135
- | UpdateChannelCommandOutput
136
- | UpdateOriginEndpointCommandOutput;
137
-
138
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
139
- /**
140
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
141
- */
142
- requestHandler?: __HttpHandler;
143
-
144
- /**
145
- * A constructor for a class implementing the {@link __Hash} interface
146
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
147
- * @internal
148
- */
149
- sha256?: __HashConstructor;
150
-
151
- /**
152
- * The function that will be used to convert strings into HTTP endpoints.
153
- * @internal
154
- */
155
- urlParser?: __UrlParser;
156
-
157
- /**
158
- * A function that can calculate the length of a request body.
159
- * @internal
160
- */
161
- bodyLengthChecker?: (body: any) => number | undefined;
162
-
163
- /**
164
- * A function that converts a stream into an array of bytes.
165
- * @internal
166
- */
167
- streamCollector?: __StreamCollector;
168
-
169
- /**
170
- * The function that will be used to convert a base64-encoded string to a byte array.
171
- * @internal
172
- */
173
- base64Decoder?: __Decoder;
174
-
175
- /**
176
- * The function that will be used to convert binary data to a base64-encoded string.
177
- * @internal
178
- */
179
- base64Encoder?: __Encoder;
180
-
181
- /**
182
- * The function that will be used to convert a UTF8-encoded string to a byte array.
183
- * @internal
184
- */
185
- utf8Decoder?: __Decoder;
186
-
187
- /**
188
- * The function that will be used to convert binary data to a UTF-8 encoded string.
189
- * @internal
190
- */
191
- utf8Encoder?: __Encoder;
192
-
193
- /**
194
- * The runtime environment.
195
- * @internal
196
- */
197
- runtime?: string;
198
-
199
- /**
200
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
201
- * trait of an operation.
202
- */
203
- disableHostPrefix?: boolean;
204
-
205
- /**
206
- * Value for how many times a request will be made at most in case of retry.
207
- */
208
- maxAttempts?: number | __Provider<number>;
209
-
210
- /**
211
- * Specifies which retry algorithm to use.
212
- */
213
- retryMode?: string | __Provider<string>;
214
-
215
- /**
216
- * Optional logger for logging debug/info/warn/error.
217
- */
218
- logger?: __Logger;
219
-
220
- /**
221
- * Unique service identifier.
222
- * @internal
223
- */
224
- serviceId?: string;
225
-
226
- /**
227
- * The AWS region to which this client will send requests
228
- */
229
- region?: string | __Provider<string>;
230
-
231
- /**
232
- * Default credentials provider; Not available in browser runtime.
233
- * @internal
234
- */
235
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
236
-
237
- /**
238
- * Fetch related hostname, signing name or signing region with given region.
239
- * @internal
240
- */
241
- regionInfoProvider?: RegionInfoProvider;
242
-
243
- /**
244
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
245
- * @internal
246
- */
247
- defaultUserAgentProvider?: Provider<__UserAgent>;
248
- }
249
-
250
- type MediaPackageClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
251
- ClientDefaults &
252
- RegionInputConfig &
253
- EndpointsInputConfig &
254
- RetryInputConfig &
255
- HostHeaderInputConfig &
256
- AwsAuthInputConfig &
257
- UserAgentInputConfig;
258
- /**
259
- * The configuration interface of MediaPackageClient class constructor that set the region, credentials and other options.
260
- */
261
- export interface MediaPackageClientConfig extends MediaPackageClientConfigType {}
262
-
263
- type MediaPackageClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
264
- Required<ClientDefaults> &
265
- RegionResolvedConfig &
266
- EndpointsResolvedConfig &
267
- RetryResolvedConfig &
268
- HostHeaderResolvedConfig &
269
- AwsAuthResolvedConfig &
270
- UserAgentResolvedConfig;
271
- /**
272
- * The resolved configuration interface of MediaPackageClient class. This is resolved and normalized from the {@link MediaPackageClientConfig | constructor configuration interface}.
273
- */
274
- export interface MediaPackageClientResolvedConfig extends MediaPackageClientResolvedConfigType {}
275
-
276
- /**
277
- * AWS Elemental MediaPackage
278
- */
279
- export class MediaPackageClient extends __Client<
280
- __HttpHandlerOptions,
281
- ServiceInputTypes,
282
- ServiceOutputTypes,
283
- MediaPackageClientResolvedConfig
284
- > {
285
- /**
286
- * The resolved configuration of MediaPackageClient class. This is resolved and normalized from the {@link MediaPackageClientConfig | constructor configuration interface}.
287
- */
288
- readonly config: MediaPackageClientResolvedConfig;
289
-
290
- constructor(configuration: MediaPackageClientConfig) {
291
- let _config_0 = __getRuntimeConfig(configuration);
292
- let _config_1 = resolveRegionConfig(_config_0);
293
- let _config_2 = resolveEndpointsConfig(_config_1);
294
- let _config_3 = resolveRetryConfig(_config_2);
295
- let _config_4 = resolveHostHeaderConfig(_config_3);
296
- let _config_5 = resolveAwsAuthConfig(_config_4);
297
- let _config_6 = resolveUserAgentConfig(_config_5);
298
- super(_config_6);
299
- this.config = _config_6;
300
- this.middlewareStack.use(getRetryPlugin(this.config));
301
- this.middlewareStack.use(getContentLengthPlugin(this.config));
302
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
303
- this.middlewareStack.use(getLoggerPlugin(this.config));
304
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
305
- this.middlewareStack.use(getUserAgentPlugin(this.config));
306
- }
307
-
308
- /**
309
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
310
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
311
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
312
- */
313
- destroy(): void {
314
- super.destroy();
315
- }
316
- }
@@ -1,94 +0,0 @@
1
- import { MediaPackageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageClient";
2
- import { ConfigureLogsRequest, ConfigureLogsResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1ConfigureLogsCommand,
5
- serializeAws_restJson1ConfigureLogsCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface ConfigureLogsCommandInput extends ConfigureLogsRequest {}
21
- export interface ConfigureLogsCommandOutput extends ConfigureLogsResponse, __MetadataBearer {}
22
-
23
- /**
24
- * Changes the Channel's properities to configure log subscription
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MediaPackageClient, ConfigureLogsCommand } from "@aws-sdk/client-mediapackage"; // ES Modules import
29
- * // const { MediaPackageClient, ConfigureLogsCommand } = require("@aws-sdk/client-mediapackage"); // CommonJS import
30
- * const client = new MediaPackageClient(config);
31
- * const command = new ConfigureLogsCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link ConfigureLogsCommandInput} for command's `input` shape.
36
- * @see {@link ConfigureLogsCommandOutput} for command's `response` shape.
37
- * @see {@link MediaPackageClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class ConfigureLogsCommand extends $Command<
41
- ConfigureLogsCommandInput,
42
- ConfigureLogsCommandOutput,
43
- MediaPackageClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: ConfigureLogsCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: MediaPackageClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<ConfigureLogsCommandInput, ConfigureLogsCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "MediaPackageClient";
68
- const commandName = "ConfigureLogsCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: ConfigureLogsRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: ConfigureLogsResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: ConfigureLogsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1ConfigureLogsCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ConfigureLogsCommandOutput> {
89
- return deserializeAws_restJson1ConfigureLogsCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { MediaPackageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageClient";
2
- import { CreateChannelRequest, CreateChannelResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1CreateChannelCommand,
5
- serializeAws_restJson1CreateChannelCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface CreateChannelCommandInput extends CreateChannelRequest {}
21
- export interface CreateChannelCommandOutput extends CreateChannelResponse, __MetadataBearer {}
22
-
23
- /**
24
- * Creates a new Channel.
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MediaPackageClient, CreateChannelCommand } from "@aws-sdk/client-mediapackage"; // ES Modules import
29
- * // const { MediaPackageClient, CreateChannelCommand } = require("@aws-sdk/client-mediapackage"); // CommonJS import
30
- * const client = new MediaPackageClient(config);
31
- * const command = new CreateChannelCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link CreateChannelCommandInput} for command's `input` shape.
36
- * @see {@link CreateChannelCommandOutput} for command's `response` shape.
37
- * @see {@link MediaPackageClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class CreateChannelCommand extends $Command<
41
- CreateChannelCommandInput,
42
- CreateChannelCommandOutput,
43
- MediaPackageClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: CreateChannelCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: MediaPackageClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<CreateChannelCommandInput, CreateChannelCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "MediaPackageClient";
68
- const commandName = "CreateChannelCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: CreateChannelRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: CreateChannelResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: CreateChannelCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1CreateChannelCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateChannelCommandOutput> {
89
- return deserializeAws_restJson1CreateChannelCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { MediaPackageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageClient";
2
- import { CreateHarvestJobRequest, CreateHarvestJobResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1CreateHarvestJobCommand,
5
- serializeAws_restJson1CreateHarvestJobCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface CreateHarvestJobCommandInput extends CreateHarvestJobRequest {}
21
- export interface CreateHarvestJobCommandOutput extends CreateHarvestJobResponse, __MetadataBearer {}
22
-
23
- /**
24
- * Creates a new HarvestJob record.
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MediaPackageClient, CreateHarvestJobCommand } from "@aws-sdk/client-mediapackage"; // ES Modules import
29
- * // const { MediaPackageClient, CreateHarvestJobCommand } = require("@aws-sdk/client-mediapackage"); // CommonJS import
30
- * const client = new MediaPackageClient(config);
31
- * const command = new CreateHarvestJobCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link CreateHarvestJobCommandInput} for command's `input` shape.
36
- * @see {@link CreateHarvestJobCommandOutput} for command's `response` shape.
37
- * @see {@link MediaPackageClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class CreateHarvestJobCommand extends $Command<
41
- CreateHarvestJobCommandInput,
42
- CreateHarvestJobCommandOutput,
43
- MediaPackageClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: CreateHarvestJobCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: MediaPackageClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<CreateHarvestJobCommandInput, CreateHarvestJobCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "MediaPackageClient";
68
- const commandName = "CreateHarvestJobCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: CreateHarvestJobRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: CreateHarvestJobResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: CreateHarvestJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1CreateHarvestJobCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateHarvestJobCommandOutput> {
89
- return deserializeAws_restJson1CreateHarvestJobCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,94 +0,0 @@
1
- import { MediaPackageClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageClient";
2
- import { CreateOriginEndpointRequest, CreateOriginEndpointResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1CreateOriginEndpointCommand,
5
- serializeAws_restJson1CreateOriginEndpointCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface CreateOriginEndpointCommandInput extends CreateOriginEndpointRequest {}
21
- export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointResponse, __MetadataBearer {}
22
-
23
- /**
24
- * Creates a new OriginEndpoint record.
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { MediaPackageClient, CreateOriginEndpointCommand } from "@aws-sdk/client-mediapackage"; // ES Modules import
29
- * // const { MediaPackageClient, CreateOriginEndpointCommand } = require("@aws-sdk/client-mediapackage"); // CommonJS import
30
- * const client = new MediaPackageClient(config);
31
- * const command = new CreateOriginEndpointCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link CreateOriginEndpointCommandInput} for command's `input` shape.
36
- * @see {@link CreateOriginEndpointCommandOutput} for command's `response` shape.
37
- * @see {@link MediaPackageClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class CreateOriginEndpointCommand extends $Command<
41
- CreateOriginEndpointCommandInput,
42
- CreateOriginEndpointCommandOutput,
43
- MediaPackageClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: CreateOriginEndpointCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: MediaPackageClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<CreateOriginEndpointCommandInput, CreateOriginEndpointCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "MediaPackageClient";
68
- const commandName = "CreateOriginEndpointCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: CreateOriginEndpointRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: CreateOriginEndpointResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: CreateOriginEndpointCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_restJson1CreateOriginEndpointCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateOriginEndpointCommandOutput> {
89
- return deserializeAws_restJson1CreateOriginEndpointCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }