@aws-sdk/client-mediapackagev2 3.336.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 (179) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +408 -0
  3. package/dist-cjs/MediaPackageV2.js +59 -0
  4. package/dist-cjs/MediaPackageV2Client.js +40 -0
  5. package/dist-cjs/commands/CreateChannelCommand.js +45 -0
  6. package/dist-cjs/commands/CreateChannelGroupCommand.js +45 -0
  7. package/dist-cjs/commands/CreateOriginEndpointCommand.js +45 -0
  8. package/dist-cjs/commands/DeleteChannelCommand.js +45 -0
  9. package/dist-cjs/commands/DeleteChannelGroupCommand.js +45 -0
  10. package/dist-cjs/commands/DeleteChannelPolicyCommand.js +45 -0
  11. package/dist-cjs/commands/DeleteOriginEndpointCommand.js +45 -0
  12. package/dist-cjs/commands/DeleteOriginEndpointPolicyCommand.js +45 -0
  13. package/dist-cjs/commands/GetChannelCommand.js +45 -0
  14. package/dist-cjs/commands/GetChannelGroupCommand.js +45 -0
  15. package/dist-cjs/commands/GetChannelPolicyCommand.js +45 -0
  16. package/dist-cjs/commands/GetOriginEndpointCommand.js +45 -0
  17. package/dist-cjs/commands/GetOriginEndpointPolicyCommand.js +45 -0
  18. package/dist-cjs/commands/ListChannelGroupsCommand.js +45 -0
  19. package/dist-cjs/commands/ListChannelsCommand.js +45 -0
  20. package/dist-cjs/commands/ListOriginEndpointsCommand.js +45 -0
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +45 -0
  22. package/dist-cjs/commands/PutChannelPolicyCommand.js +45 -0
  23. package/dist-cjs/commands/PutOriginEndpointPolicyCommand.js +45 -0
  24. package/dist-cjs/commands/TagResourceCommand.js +45 -0
  25. package/dist-cjs/commands/UntagResourceCommand.js +45 -0
  26. package/dist-cjs/commands/UpdateChannelCommand.js +45 -0
  27. package/dist-cjs/commands/UpdateChannelGroupCommand.js +45 -0
  28. package/dist-cjs/commands/UpdateOriginEndpointCommand.js +45 -0
  29. package/dist-cjs/commands/index.js +27 -0
  30. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  31. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  32. package/dist-cjs/endpoint/ruleset.js +7 -0
  33. package/dist-cjs/index.js +11 -0
  34. package/dist-cjs/models/MediaPackageV2ServiceException.js +11 -0
  35. package/dist-cjs/models/index.js +4 -0
  36. package/dist-cjs/models/models_0.js +203 -0
  37. package/dist-cjs/pagination/Interfaces.js +2 -0
  38. package/dist-cjs/pagination/ListChannelGroupsPaginator.js +29 -0
  39. package/dist-cjs/pagination/ListChannelsPaginator.js +29 -0
  40. package/dist-cjs/pagination/ListOriginEndpointsPaginator.js +29 -0
  41. package/dist-cjs/pagination/index.js +7 -0
  42. package/dist-cjs/protocols/Aws_restJson1.js +1885 -0
  43. package/dist-cjs/runtimeConfig.browser.js +39 -0
  44. package/dist-cjs/runtimeConfig.js +48 -0
  45. package/dist-cjs/runtimeConfig.native.js +15 -0
  46. package/dist-cjs/runtimeConfig.shared.js +21 -0
  47. package/dist-es/MediaPackageV2.js +55 -0
  48. package/dist-es/MediaPackageV2Client.js +36 -0
  49. package/dist-es/commands/CreateChannelCommand.js +41 -0
  50. package/dist-es/commands/CreateChannelGroupCommand.js +41 -0
  51. package/dist-es/commands/CreateOriginEndpointCommand.js +41 -0
  52. package/dist-es/commands/DeleteChannelCommand.js +41 -0
  53. package/dist-es/commands/DeleteChannelGroupCommand.js +41 -0
  54. package/dist-es/commands/DeleteChannelPolicyCommand.js +41 -0
  55. package/dist-es/commands/DeleteOriginEndpointCommand.js +41 -0
  56. package/dist-es/commands/DeleteOriginEndpointPolicyCommand.js +41 -0
  57. package/dist-es/commands/GetChannelCommand.js +41 -0
  58. package/dist-es/commands/GetChannelGroupCommand.js +41 -0
  59. package/dist-es/commands/GetChannelPolicyCommand.js +41 -0
  60. package/dist-es/commands/GetOriginEndpointCommand.js +41 -0
  61. package/dist-es/commands/GetOriginEndpointPolicyCommand.js +41 -0
  62. package/dist-es/commands/ListChannelGroupsCommand.js +41 -0
  63. package/dist-es/commands/ListChannelsCommand.js +41 -0
  64. package/dist-es/commands/ListOriginEndpointsCommand.js +41 -0
  65. package/dist-es/commands/ListTagsForResourceCommand.js +41 -0
  66. package/dist-es/commands/PutChannelPolicyCommand.js +41 -0
  67. package/dist-es/commands/PutOriginEndpointPolicyCommand.js +41 -0
  68. package/dist-es/commands/TagResourceCommand.js +41 -0
  69. package/dist-es/commands/UntagResourceCommand.js +41 -0
  70. package/dist-es/commands/UpdateChannelCommand.js +41 -0
  71. package/dist-es/commands/UpdateChannelGroupCommand.js +41 -0
  72. package/dist-es/commands/UpdateOriginEndpointCommand.js +41 -0
  73. package/dist-es/commands/index.js +24 -0
  74. package/dist-es/endpoint/EndpointParameters.js +8 -0
  75. package/dist-es/endpoint/endpointResolver.js +8 -0
  76. package/dist-es/endpoint/ruleset.js +4 -0
  77. package/dist-es/index.js +6 -0
  78. package/dist-es/models/MediaPackageV2ServiceException.js +7 -0
  79. package/dist-es/models/index.js +1 -0
  80. package/dist-es/models/models_0.js +193 -0
  81. package/dist-es/pagination/Interfaces.js +1 -0
  82. package/dist-es/pagination/ListChannelGroupsPaginator.js +25 -0
  83. package/dist-es/pagination/ListChannelsPaginator.js +25 -0
  84. package/dist-es/pagination/ListOriginEndpointsPaginator.js +25 -0
  85. package/dist-es/pagination/index.js +4 -0
  86. package/dist-es/protocols/Aws_restJson1.js +1834 -0
  87. package/dist-es/runtimeConfig.browser.js +34 -0
  88. package/dist-es/runtimeConfig.js +43 -0
  89. package/dist-es/runtimeConfig.native.js +11 -0
  90. package/dist-es/runtimeConfig.shared.js +17 -0
  91. package/dist-types/MediaPackageV2.d.ts +189 -0
  92. package/dist-types/MediaPackageV2Client.d.ts +197 -0
  93. package/dist-types/commands/CreateChannelCommand.d.ts +110 -0
  94. package/dist-types/commands/CreateChannelGroupCommand.d.ts +103 -0
  95. package/dist-types/commands/CreateOriginEndpointCommand.d.ts +220 -0
  96. package/dist-types/commands/DeleteChannelCommand.d.ts +83 -0
  97. package/dist-types/commands/DeleteChannelGroupCommand.d.ts +82 -0
  98. package/dist-types/commands/DeleteChannelPolicyCommand.d.ts +83 -0
  99. package/dist-types/commands/DeleteOriginEndpointCommand.d.ts +81 -0
  100. package/dist-types/commands/DeleteOriginEndpointPolicyCommand.d.ts +84 -0
  101. package/dist-types/commands/GetChannelCommand.d.ts +99 -0
  102. package/dist-types/commands/GetChannelGroupCommand.d.ts +92 -0
  103. package/dist-types/commands/GetChannelPolicyCommand.d.ts +87 -0
  104. package/dist-types/commands/GetOriginEndpointCommand.d.ts +153 -0
  105. package/dist-types/commands/GetOriginEndpointPolicyCommand.d.ts +89 -0
  106. package/dist-types/commands/ListChannelGroupsCommand.d.ts +91 -0
  107. package/dist-types/commands/ListChannelsCommand.d.ts +93 -0
  108. package/dist-types/commands/ListOriginEndpointsCommand.d.ts +113 -0
  109. package/dist-types/commands/ListTagsForResourceCommand.d.ts +74 -0
  110. package/dist-types/commands/PutChannelPolicyCommand.d.ts +87 -0
  111. package/dist-types/commands/PutOriginEndpointPolicyCommand.d.ts +88 -0
  112. package/dist-types/commands/TagResourceCommand.d.ts +78 -0
  113. package/dist-types/commands/UntagResourceCommand.d.ts +73 -0
  114. package/dist-types/commands/UpdateChannelCommand.d.ts +104 -0
  115. package/dist-types/commands/UpdateChannelGroupCommand.d.ts +97 -0
  116. package/dist-types/commands/UpdateOriginEndpointCommand.d.ts +217 -0
  117. package/dist-types/commands/index.d.ts +24 -0
  118. package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
  119. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  120. package/dist-types/endpoint/ruleset.d.ts +2 -0
  121. package/dist-types/index.d.ts +6 -0
  122. package/dist-types/models/MediaPackageV2ServiceException.d.ts +12 -0
  123. package/dist-types/models/index.d.ts +1 -0
  124. package/dist-types/models/models_0.d.ts +1739 -0
  125. package/dist-types/pagination/Interfaces.d.ts +8 -0
  126. package/dist-types/pagination/ListChannelGroupsPaginator.d.ts +7 -0
  127. package/dist-types/pagination/ListChannelsPaginator.d.ts +7 -0
  128. package/dist-types/pagination/ListOriginEndpointsPaginator.d.ts +7 -0
  129. package/dist-types/pagination/index.d.ts +4 -0
  130. package/dist-types/protocols/Aws_restJson1.d.ts +218 -0
  131. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  132. package/dist-types/runtimeConfig.d.ts +42 -0
  133. package/dist-types/runtimeConfig.native.d.ts +41 -0
  134. package/dist-types/runtimeConfig.shared.d.ts +18 -0
  135. package/dist-types/ts3.4/MediaPackageV2.d.ts +415 -0
  136. package/dist-types/ts3.4/MediaPackageV2Client.d.ts +259 -0
  137. package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +37 -0
  138. package/dist-types/ts3.4/commands/CreateChannelGroupCommand.d.ts +38 -0
  139. package/dist-types/ts3.4/commands/CreateOriginEndpointCommand.d.ts +41 -0
  140. package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +37 -0
  141. package/dist-types/ts3.4/commands/DeleteChannelGroupCommand.d.ts +38 -0
  142. package/dist-types/ts3.4/commands/DeleteChannelPolicyCommand.d.ts +38 -0
  143. package/dist-types/ts3.4/commands/DeleteOriginEndpointCommand.d.ts +41 -0
  144. package/dist-types/ts3.4/commands/DeleteOriginEndpointPolicyCommand.d.ts +41 -0
  145. package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +34 -0
  146. package/dist-types/ts3.4/commands/GetChannelGroupCommand.d.ts +37 -0
  147. package/dist-types/ts3.4/commands/GetChannelPolicyCommand.d.ts +37 -0
  148. package/dist-types/ts3.4/commands/GetOriginEndpointCommand.d.ts +38 -0
  149. package/dist-types/ts3.4/commands/GetOriginEndpointPolicyCommand.d.ts +41 -0
  150. package/dist-types/ts3.4/commands/ListChannelGroupsCommand.d.ts +38 -0
  151. package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +34 -0
  152. package/dist-types/ts3.4/commands/ListOriginEndpointsCommand.d.ts +38 -0
  153. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
  154. package/dist-types/ts3.4/commands/PutChannelPolicyCommand.d.ts +37 -0
  155. package/dist-types/ts3.4/commands/PutOriginEndpointPolicyCommand.d.ts +41 -0
  156. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
  157. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +32 -0
  158. package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +37 -0
  159. package/dist-types/ts3.4/commands/UpdateChannelGroupCommand.d.ts +38 -0
  160. package/dist-types/ts3.4/commands/UpdateOriginEndpointCommand.d.ts +41 -0
  161. package/dist-types/ts3.4/commands/index.d.ts +24 -0
  162. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
  163. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  164. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  165. package/dist-types/ts3.4/index.d.ts +6 -0
  166. package/dist-types/ts3.4/models/MediaPackageV2ServiceException.d.ts +7 -0
  167. package/dist-types/ts3.4/models/index.d.ts +1 -0
  168. package/dist-types/ts3.4/models/models_0.d.ts +542 -0
  169. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  170. package/dist-types/ts3.4/pagination/ListChannelGroupsPaginator.d.ts +11 -0
  171. package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +11 -0
  172. package/dist-types/ts3.4/pagination/ListOriginEndpointsPaginator.d.ts +11 -0
  173. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  174. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +293 -0
  175. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +94 -0
  176. package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
  177. package/dist-types/ts3.4/runtimeConfig.native.d.ts +85 -0
  178. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
  179. package/package.json +101 -0
@@ -0,0 +1,7 @@
1
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
+ export class MediaPackageV2ServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, MediaPackageV2ServiceException.prototype);
6
+ }
7
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,193 @@
1
+ import { MediaPackageV2ServiceException as __BaseException } from "./MediaPackageV2ServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ constructor(opts) {
4
+ super({
5
+ name: "AccessDeniedException",
6
+ $fault: "client",
7
+ ...opts,
8
+ });
9
+ this.name = "AccessDeniedException";
10
+ this.$fault = "client";
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ this.Message = opts.Message;
13
+ }
14
+ }
15
+ export const AdMarkerHls = {
16
+ DATERANGE: "DATERANGE",
17
+ };
18
+ export const ConflictExceptionType = {
19
+ CONFLICTING_OPERATION: "CONFLICTING_OPERATION",
20
+ IDEMPOTENT_PARAMETER_MISMATCH: "IDEMPOTENT_PARAMETER_MISMATCH",
21
+ RESOURCE_ALREADY_EXISTS: "RESOURCE_ALREADY_EXISTS",
22
+ RESOURCE_IN_USE: "RESOURCE_IN_USE",
23
+ };
24
+ export class ConflictException extends __BaseException {
25
+ constructor(opts) {
26
+ super({
27
+ name: "ConflictException",
28
+ $fault: "client",
29
+ ...opts,
30
+ });
31
+ this.name = "ConflictException";
32
+ this.$fault = "client";
33
+ Object.setPrototypeOf(this, ConflictException.prototype);
34
+ this.Message = opts.Message;
35
+ this.ConflictExceptionType = opts.ConflictExceptionType;
36
+ }
37
+ }
38
+ export class InternalServerException extends __BaseException {
39
+ constructor(opts) {
40
+ super({
41
+ name: "InternalServerException",
42
+ $fault: "server",
43
+ ...opts,
44
+ });
45
+ this.name = "InternalServerException";
46
+ this.$fault = "server";
47
+ Object.setPrototypeOf(this, InternalServerException.prototype);
48
+ this.Message = opts.Message;
49
+ }
50
+ }
51
+ export class ThrottlingException extends __BaseException {
52
+ constructor(opts) {
53
+ super({
54
+ name: "ThrottlingException",
55
+ $fault: "client",
56
+ ...opts,
57
+ });
58
+ this.name = "ThrottlingException";
59
+ this.$fault = "client";
60
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
61
+ this.Message = opts.Message;
62
+ }
63
+ }
64
+ export const ValidationExceptionType = {
65
+ CENC_IV_INCOMPATIBLE: "CENC_IV_INCOMPATIBLE",
66
+ CONTAINER_TYPE_IMMUTABLE: "CONTAINER_TYPE_IMMUTABLE",
67
+ DRM_SYSTEMS_ENCRYPTION_METHOD_INCOMPATIBLE: "DRM_SYSTEMS_ENCRYPTION_METHOD_INCOMPATIBLE",
68
+ ENCRYPTION_CONTRACT_SHARED: "ENCRYPTION_CONTRACT_SHARED",
69
+ ENCRYPTION_CONTRACT_UNENCRYPTED: "ENCRYPTION_CONTRACT_UNENCRYPTED",
70
+ ENCRYPTION_CONTRACT_WITHOUT_AUDIO_RENDITION_INCOMPATIBLE: "ENCRYPTION_CONTRACT_WITHOUT_AUDIO_RENDITION_INCOMPATIBLE",
71
+ ENCRYPTION_METHOD_CONTAINER_TYPE_MISMATCH: "ENCRYPTION_METHOD_CONTAINER_TYPE_MISMATCH",
72
+ INVALID_PAGINATION_MAX_RESULTS: "INVALID_PAGINATION_MAX_RESULTS",
73
+ INVALID_PAGINATION_TOKEN: "INVALID_PAGINATION_TOKEN",
74
+ INVALID_POLICY: "INVALID_POLICY",
75
+ INVALID_ROLE_ARN: "INVALID_ROLE_ARN",
76
+ MANIFEST_NAME_COLLISION: "MANIFEST_NAME_COLLISION",
77
+ MEMBER_DOES_NOT_MATCH_PATTERN: "MEMBER_DOES_NOT_MATCH_PATTERN",
78
+ MEMBER_INVALID: "MEMBER_INVALID",
79
+ MEMBER_INVALID_ENUM_VALUE: "MEMBER_INVALID_ENUM_VALUE",
80
+ MEMBER_MAX_LENGTH: "MEMBER_MAX_LENGTH",
81
+ MEMBER_MAX_VALUE: "MEMBER_MAX_VALUE",
82
+ MEMBER_MIN_LENGTH: "MEMBER_MIN_LENGTH",
83
+ MEMBER_MIN_VALUE: "MEMBER_MIN_VALUE",
84
+ MEMBER_MISSING: "MEMBER_MISSING",
85
+ NUM_MANIFESTS_HIGH: "NUM_MANIFESTS_HIGH",
86
+ NUM_MANIFESTS_LOW: "NUM_MANIFESTS_LOW",
87
+ ROLE_ARN_INVALID_FORMAT: "ROLE_ARN_INVALID_FORMAT",
88
+ ROLE_ARN_LENGTH_OUT_OF_RANGE: "ROLE_ARN_LENGTH_OUT_OF_RANGE",
89
+ ROLE_ARN_NOT_ASSUMABLE: "ROLE_ARN_NOT_ASSUMABLE",
90
+ URL_INVALID: "URL_INVALID",
91
+ URL_LINK_LOCAL_ADDRESS: "URL_LINK_LOCAL_ADDRESS",
92
+ URL_LOCAL_ADDRESS: "URL_LOCAL_ADDRESS",
93
+ URL_LOOPBACK_ADDRESS: "URL_LOOPBACK_ADDRESS",
94
+ URL_MULTICAST_ADDRESS: "URL_MULTICAST_ADDRESS",
95
+ URL_PORT: "URL_PORT",
96
+ URL_SCHEME: "URL_SCHEME",
97
+ URL_UNKNOWN_HOST: "URL_UNKNOWN_HOST",
98
+ URL_USER_INFO: "URL_USER_INFO",
99
+ };
100
+ export class ValidationException extends __BaseException {
101
+ constructor(opts) {
102
+ super({
103
+ name: "ValidationException",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ this.name = "ValidationException";
108
+ this.$fault = "client";
109
+ Object.setPrototypeOf(this, ValidationException.prototype);
110
+ this.Message = opts.Message;
111
+ this.ValidationExceptionType = opts.ValidationExceptionType;
112
+ }
113
+ }
114
+ export const ResourceTypeNotFound = {
115
+ CHANNEL: "CHANNEL",
116
+ CHANNEL_GROUP: "CHANNEL_GROUP",
117
+ ORIGIN_ENDPOINT: "ORIGIN_ENDPOINT",
118
+ };
119
+ export class ResourceNotFoundException extends __BaseException {
120
+ constructor(opts) {
121
+ super({
122
+ name: "ResourceNotFoundException",
123
+ $fault: "client",
124
+ ...opts,
125
+ });
126
+ this.name = "ResourceNotFoundException";
127
+ this.$fault = "client";
128
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
129
+ this.Message = opts.Message;
130
+ this.ResourceTypeNotFound = opts.ResourceTypeNotFound;
131
+ }
132
+ }
133
+ export class ServiceQuotaExceededException extends __BaseException {
134
+ constructor(opts) {
135
+ super({
136
+ name: "ServiceQuotaExceededException",
137
+ $fault: "client",
138
+ ...opts,
139
+ });
140
+ this.name = "ServiceQuotaExceededException";
141
+ this.$fault = "client";
142
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
143
+ this.Message = opts.Message;
144
+ }
145
+ }
146
+ export const ContainerType = {
147
+ CMAF: "CMAF",
148
+ TS: "TS",
149
+ };
150
+ export const CmafEncryptionMethod = {
151
+ CBCS: "CBCS",
152
+ CENC: "CENC",
153
+ };
154
+ export const TsEncryptionMethod = {
155
+ AES_128: "AES_128",
156
+ SAMPLE_AES: "SAMPLE_AES",
157
+ };
158
+ export const DrmSystem = {
159
+ CLEAR_KEY_AES_128: "CLEAR_KEY_AES_128",
160
+ FAIRPLAY: "FAIRPLAY",
161
+ PLAYREADY: "PLAYREADY",
162
+ WIDEVINE: "WIDEVINE",
163
+ };
164
+ export const PresetSpeke20Audio = {
165
+ PRESET_AUDIO_1: "PRESET_AUDIO_1",
166
+ PRESET_AUDIO_2: "PRESET_AUDIO_2",
167
+ PRESET_AUDIO_3: "PRESET_AUDIO_3",
168
+ SHARED: "SHARED",
169
+ UNENCRYPTED: "UNENCRYPTED",
170
+ };
171
+ export const PresetSpeke20Video = {
172
+ PRESET_VIDEO_1: "PRESET_VIDEO_1",
173
+ PRESET_VIDEO_2: "PRESET_VIDEO_2",
174
+ PRESET_VIDEO_3: "PRESET_VIDEO_3",
175
+ PRESET_VIDEO_4: "PRESET_VIDEO_4",
176
+ PRESET_VIDEO_5: "PRESET_VIDEO_5",
177
+ PRESET_VIDEO_6: "PRESET_VIDEO_6",
178
+ PRESET_VIDEO_7: "PRESET_VIDEO_7",
179
+ PRESET_VIDEO_8: "PRESET_VIDEO_8",
180
+ SHARED: "SHARED",
181
+ UNENCRYPTED: "UNENCRYPTED",
182
+ };
183
+ export const ScteFilter = {
184
+ BREAK: "BREAK",
185
+ DISTRIBUTOR_ADVERTISEMENT: "DISTRIBUTOR_ADVERTISEMENT",
186
+ DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY: "DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY",
187
+ DISTRIBUTOR_PLACEMENT_OPPORTUNITY: "DISTRIBUTOR_PLACEMENT_OPPORTUNITY",
188
+ PROGRAM: "PROGRAM",
189
+ PROVIDER_ADVERTISEMENT: "PROVIDER_ADVERTISEMENT",
190
+ PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY: "PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY",
191
+ PROVIDER_PLACEMENT_OPPORTUNITY: "PROVIDER_PLACEMENT_OPPORTUNITY",
192
+ SPLICE_INSERT: "SPLICE_INSERT",
193
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import { ListChannelGroupsCommand, } from "../commands/ListChannelGroupsCommand";
2
+ import { MediaPackageV2Client } from "../MediaPackageV2Client";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListChannelGroupsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListChannelGroups(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof MediaPackageV2Client) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected MediaPackageV2 | MediaPackageV2Client");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListChannelsCommand, } from "../commands/ListChannelsCommand";
2
+ import { MediaPackageV2Client } from "../MediaPackageV2Client";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListChannelsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListChannels(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof MediaPackageV2Client) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected MediaPackageV2 | MediaPackageV2Client");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListOriginEndpointsCommand, } from "../commands/ListOriginEndpointsCommand";
2
+ import { MediaPackageV2Client } from "../MediaPackageV2Client";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListOriginEndpointsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListOriginEndpoints(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof MediaPackageV2Client) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected MediaPackageV2 | MediaPackageV2Client");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,4 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListChannelGroupsPaginator";
3
+ export * from "./ListChannelsPaginator";
4
+ export * from "./ListOriginEndpointsPaginator";