@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,203 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ScteFilter = exports.PresetSpeke20Video = exports.PresetSpeke20Audio = exports.DrmSystem = exports.TsEncryptionMethod = exports.CmafEncryptionMethod = exports.ContainerType = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ResourceTypeNotFound = exports.ValidationException = exports.ValidationExceptionType = exports.ThrottlingException = exports.InternalServerException = exports.ConflictException = exports.ConflictExceptionType = exports.AdMarkerHls = exports.AccessDeniedException = void 0;
4
+ const MediaPackageV2ServiceException_1 = require("./MediaPackageV2ServiceException");
5
+ class AccessDeniedException extends MediaPackageV2ServiceException_1.MediaPackageV2ServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "AccessDeniedException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ this.Message = opts.Message;
16
+ }
17
+ }
18
+ exports.AccessDeniedException = AccessDeniedException;
19
+ exports.AdMarkerHls = {
20
+ DATERANGE: "DATERANGE",
21
+ };
22
+ exports.ConflictExceptionType = {
23
+ CONFLICTING_OPERATION: "CONFLICTING_OPERATION",
24
+ IDEMPOTENT_PARAMETER_MISMATCH: "IDEMPOTENT_PARAMETER_MISMATCH",
25
+ RESOURCE_ALREADY_EXISTS: "RESOURCE_ALREADY_EXISTS",
26
+ RESOURCE_IN_USE: "RESOURCE_IN_USE",
27
+ };
28
+ class ConflictException extends MediaPackageV2ServiceException_1.MediaPackageV2ServiceException {
29
+ constructor(opts) {
30
+ super({
31
+ name: "ConflictException",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ this.name = "ConflictException";
36
+ this.$fault = "client";
37
+ Object.setPrototypeOf(this, ConflictException.prototype);
38
+ this.Message = opts.Message;
39
+ this.ConflictExceptionType = opts.ConflictExceptionType;
40
+ }
41
+ }
42
+ exports.ConflictException = ConflictException;
43
+ class InternalServerException extends MediaPackageV2ServiceException_1.MediaPackageV2ServiceException {
44
+ constructor(opts) {
45
+ super({
46
+ name: "InternalServerException",
47
+ $fault: "server",
48
+ ...opts,
49
+ });
50
+ this.name = "InternalServerException";
51
+ this.$fault = "server";
52
+ Object.setPrototypeOf(this, InternalServerException.prototype);
53
+ this.Message = opts.Message;
54
+ }
55
+ }
56
+ exports.InternalServerException = InternalServerException;
57
+ class ThrottlingException extends MediaPackageV2ServiceException_1.MediaPackageV2ServiceException {
58
+ constructor(opts) {
59
+ super({
60
+ name: "ThrottlingException",
61
+ $fault: "client",
62
+ ...opts,
63
+ });
64
+ this.name = "ThrottlingException";
65
+ this.$fault = "client";
66
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
67
+ this.Message = opts.Message;
68
+ }
69
+ }
70
+ exports.ThrottlingException = ThrottlingException;
71
+ exports.ValidationExceptionType = {
72
+ CENC_IV_INCOMPATIBLE: "CENC_IV_INCOMPATIBLE",
73
+ CONTAINER_TYPE_IMMUTABLE: "CONTAINER_TYPE_IMMUTABLE",
74
+ DRM_SYSTEMS_ENCRYPTION_METHOD_INCOMPATIBLE: "DRM_SYSTEMS_ENCRYPTION_METHOD_INCOMPATIBLE",
75
+ ENCRYPTION_CONTRACT_SHARED: "ENCRYPTION_CONTRACT_SHARED",
76
+ ENCRYPTION_CONTRACT_UNENCRYPTED: "ENCRYPTION_CONTRACT_UNENCRYPTED",
77
+ ENCRYPTION_CONTRACT_WITHOUT_AUDIO_RENDITION_INCOMPATIBLE: "ENCRYPTION_CONTRACT_WITHOUT_AUDIO_RENDITION_INCOMPATIBLE",
78
+ ENCRYPTION_METHOD_CONTAINER_TYPE_MISMATCH: "ENCRYPTION_METHOD_CONTAINER_TYPE_MISMATCH",
79
+ INVALID_PAGINATION_MAX_RESULTS: "INVALID_PAGINATION_MAX_RESULTS",
80
+ INVALID_PAGINATION_TOKEN: "INVALID_PAGINATION_TOKEN",
81
+ INVALID_POLICY: "INVALID_POLICY",
82
+ INVALID_ROLE_ARN: "INVALID_ROLE_ARN",
83
+ MANIFEST_NAME_COLLISION: "MANIFEST_NAME_COLLISION",
84
+ MEMBER_DOES_NOT_MATCH_PATTERN: "MEMBER_DOES_NOT_MATCH_PATTERN",
85
+ MEMBER_INVALID: "MEMBER_INVALID",
86
+ MEMBER_INVALID_ENUM_VALUE: "MEMBER_INVALID_ENUM_VALUE",
87
+ MEMBER_MAX_LENGTH: "MEMBER_MAX_LENGTH",
88
+ MEMBER_MAX_VALUE: "MEMBER_MAX_VALUE",
89
+ MEMBER_MIN_LENGTH: "MEMBER_MIN_LENGTH",
90
+ MEMBER_MIN_VALUE: "MEMBER_MIN_VALUE",
91
+ MEMBER_MISSING: "MEMBER_MISSING",
92
+ NUM_MANIFESTS_HIGH: "NUM_MANIFESTS_HIGH",
93
+ NUM_MANIFESTS_LOW: "NUM_MANIFESTS_LOW",
94
+ ROLE_ARN_INVALID_FORMAT: "ROLE_ARN_INVALID_FORMAT",
95
+ ROLE_ARN_LENGTH_OUT_OF_RANGE: "ROLE_ARN_LENGTH_OUT_OF_RANGE",
96
+ ROLE_ARN_NOT_ASSUMABLE: "ROLE_ARN_NOT_ASSUMABLE",
97
+ URL_INVALID: "URL_INVALID",
98
+ URL_LINK_LOCAL_ADDRESS: "URL_LINK_LOCAL_ADDRESS",
99
+ URL_LOCAL_ADDRESS: "URL_LOCAL_ADDRESS",
100
+ URL_LOOPBACK_ADDRESS: "URL_LOOPBACK_ADDRESS",
101
+ URL_MULTICAST_ADDRESS: "URL_MULTICAST_ADDRESS",
102
+ URL_PORT: "URL_PORT",
103
+ URL_SCHEME: "URL_SCHEME",
104
+ URL_UNKNOWN_HOST: "URL_UNKNOWN_HOST",
105
+ URL_USER_INFO: "URL_USER_INFO",
106
+ };
107
+ class ValidationException extends MediaPackageV2ServiceException_1.MediaPackageV2ServiceException {
108
+ constructor(opts) {
109
+ super({
110
+ name: "ValidationException",
111
+ $fault: "client",
112
+ ...opts,
113
+ });
114
+ this.name = "ValidationException";
115
+ this.$fault = "client";
116
+ Object.setPrototypeOf(this, ValidationException.prototype);
117
+ this.Message = opts.Message;
118
+ this.ValidationExceptionType = opts.ValidationExceptionType;
119
+ }
120
+ }
121
+ exports.ValidationException = ValidationException;
122
+ exports.ResourceTypeNotFound = {
123
+ CHANNEL: "CHANNEL",
124
+ CHANNEL_GROUP: "CHANNEL_GROUP",
125
+ ORIGIN_ENDPOINT: "ORIGIN_ENDPOINT",
126
+ };
127
+ class ResourceNotFoundException extends MediaPackageV2ServiceException_1.MediaPackageV2ServiceException {
128
+ constructor(opts) {
129
+ super({
130
+ name: "ResourceNotFoundException",
131
+ $fault: "client",
132
+ ...opts,
133
+ });
134
+ this.name = "ResourceNotFoundException";
135
+ this.$fault = "client";
136
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
137
+ this.Message = opts.Message;
138
+ this.ResourceTypeNotFound = opts.ResourceTypeNotFound;
139
+ }
140
+ }
141
+ exports.ResourceNotFoundException = ResourceNotFoundException;
142
+ class ServiceQuotaExceededException extends MediaPackageV2ServiceException_1.MediaPackageV2ServiceException {
143
+ constructor(opts) {
144
+ super({
145
+ name: "ServiceQuotaExceededException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ this.name = "ServiceQuotaExceededException";
150
+ this.$fault = "client";
151
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
152
+ this.Message = opts.Message;
153
+ }
154
+ }
155
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
156
+ exports.ContainerType = {
157
+ CMAF: "CMAF",
158
+ TS: "TS",
159
+ };
160
+ exports.CmafEncryptionMethod = {
161
+ CBCS: "CBCS",
162
+ CENC: "CENC",
163
+ };
164
+ exports.TsEncryptionMethod = {
165
+ AES_128: "AES_128",
166
+ SAMPLE_AES: "SAMPLE_AES",
167
+ };
168
+ exports.DrmSystem = {
169
+ CLEAR_KEY_AES_128: "CLEAR_KEY_AES_128",
170
+ FAIRPLAY: "FAIRPLAY",
171
+ PLAYREADY: "PLAYREADY",
172
+ WIDEVINE: "WIDEVINE",
173
+ };
174
+ exports.PresetSpeke20Audio = {
175
+ PRESET_AUDIO_1: "PRESET_AUDIO_1",
176
+ PRESET_AUDIO_2: "PRESET_AUDIO_2",
177
+ PRESET_AUDIO_3: "PRESET_AUDIO_3",
178
+ SHARED: "SHARED",
179
+ UNENCRYPTED: "UNENCRYPTED",
180
+ };
181
+ exports.PresetSpeke20Video = {
182
+ PRESET_VIDEO_1: "PRESET_VIDEO_1",
183
+ PRESET_VIDEO_2: "PRESET_VIDEO_2",
184
+ PRESET_VIDEO_3: "PRESET_VIDEO_3",
185
+ PRESET_VIDEO_4: "PRESET_VIDEO_4",
186
+ PRESET_VIDEO_5: "PRESET_VIDEO_5",
187
+ PRESET_VIDEO_6: "PRESET_VIDEO_6",
188
+ PRESET_VIDEO_7: "PRESET_VIDEO_7",
189
+ PRESET_VIDEO_8: "PRESET_VIDEO_8",
190
+ SHARED: "SHARED",
191
+ UNENCRYPTED: "UNENCRYPTED",
192
+ };
193
+ exports.ScteFilter = {
194
+ BREAK: "BREAK",
195
+ DISTRIBUTOR_ADVERTISEMENT: "DISTRIBUTOR_ADVERTISEMENT",
196
+ DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY: "DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY",
197
+ DISTRIBUTOR_PLACEMENT_OPPORTUNITY: "DISTRIBUTOR_PLACEMENT_OPPORTUNITY",
198
+ PROGRAM: "PROGRAM",
199
+ PROVIDER_ADVERTISEMENT: "PROVIDER_ADVERTISEMENT",
200
+ PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY: "PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY",
201
+ PROVIDER_PLACEMENT_OPPORTUNITY: "PROVIDER_PLACEMENT_OPPORTUNITY",
202
+ SPLICE_INSERT: "SPLICE_INSERT",
203
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListChannelGroups = void 0;
4
+ const ListChannelGroupsCommand_1 = require("../commands/ListChannelGroupsCommand");
5
+ const MediaPackageV2Client_1 = require("../MediaPackageV2Client");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListChannelGroupsCommand_1.ListChannelGroupsCommand(input), ...args);
8
+ };
9
+ async function* paginateListChannelGroups(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof MediaPackageV2Client_1.MediaPackageV2Client) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected MediaPackageV2 | MediaPackageV2Client");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListChannelGroups = paginateListChannelGroups;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListChannels = void 0;
4
+ const ListChannelsCommand_1 = require("../commands/ListChannelsCommand");
5
+ const MediaPackageV2Client_1 = require("../MediaPackageV2Client");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListChannelsCommand_1.ListChannelsCommand(input), ...args);
8
+ };
9
+ async function* paginateListChannels(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof MediaPackageV2Client_1.MediaPackageV2Client) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected MediaPackageV2 | MediaPackageV2Client");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListChannels = paginateListChannels;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListOriginEndpoints = void 0;
4
+ const ListOriginEndpointsCommand_1 = require("../commands/ListOriginEndpointsCommand");
5
+ const MediaPackageV2Client_1 = require("../MediaPackageV2Client");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListOriginEndpointsCommand_1.ListOriginEndpointsCommand(input), ...args);
8
+ };
9
+ async function* paginateListOriginEndpoints(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof MediaPackageV2Client_1.MediaPackageV2Client) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected MediaPackageV2 | MediaPackageV2Client");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListOriginEndpoints = paginateListOriginEndpoints;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListChannelGroupsPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListChannelsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListOriginEndpointsPaginator"), exports);