1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class MediaPackageVod extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: MediaPackageVod.Types.ClientConfiguration)
|
13 | config: Config & MediaPackageVod.Types.ClientConfiguration;
|
14 | /**
|
15 | * Creates a new MediaPackage VOD Asset resource.
|
16 | */
|
17 | createAsset(params: MediaPackageVod.Types.CreateAssetRequest, callback?: (err: AWSError, data: MediaPackageVod.Types.CreateAssetResponse) => void): Request<MediaPackageVod.Types.CreateAssetResponse, AWSError>;
|
18 | /**
|
19 | * Creates a new MediaPackage VOD Asset resource.
|
20 | */
|
21 | createAsset(callback?: (err: AWSError, data: MediaPackageVod.Types.CreateAssetResponse) => void): Request<MediaPackageVod.Types.CreateAssetResponse, AWSError>;
|
22 | /**
|
23 | * Creates a new MediaPackage VOD PackagingConfiguration resource.
|
24 | */
|
25 | createPackagingConfiguration(params: MediaPackageVod.Types.CreatePackagingConfigurationRequest, callback?: (err: AWSError, data: MediaPackageVod.Types.CreatePackagingConfigurationResponse) => void): Request<MediaPackageVod.Types.CreatePackagingConfigurationResponse, AWSError>;
|
26 | /**
|
27 | * Creates a new MediaPackage VOD PackagingConfiguration resource.
|
28 | */
|
29 | createPackagingConfiguration(callback?: (err: AWSError, data: MediaPackageVod.Types.CreatePackagingConfigurationResponse) => void): Request<MediaPackageVod.Types.CreatePackagingConfigurationResponse, AWSError>;
|
30 | /**
|
31 | * Creates a new MediaPackage VOD PackagingGroup resource.
|
32 | */
|
33 | createPackagingGroup(params: MediaPackageVod.Types.CreatePackagingGroupRequest, callback?: (err: AWSError, data: MediaPackageVod.Types.CreatePackagingGroupResponse) => void): Request<MediaPackageVod.Types.CreatePackagingGroupResponse, AWSError>;
|
34 | /**
|
35 | * Creates a new MediaPackage VOD PackagingGroup resource.
|
36 | */
|
37 | createPackagingGroup(callback?: (err: AWSError, data: MediaPackageVod.Types.CreatePackagingGroupResponse) => void): Request<MediaPackageVod.Types.CreatePackagingGroupResponse, AWSError>;
|
38 | /**
|
39 | * Deletes an existing MediaPackage VOD Asset resource.
|
40 | */
|
41 | deleteAsset(params: MediaPackageVod.Types.DeleteAssetRequest, callback?: (err: AWSError, data: MediaPackageVod.Types.DeleteAssetResponse) => void): Request<MediaPackageVod.Types.DeleteAssetResponse, AWSError>;
|
42 | /**
|
43 | * Deletes an existing MediaPackage VOD Asset resource.
|
44 | */
|
45 | deleteAsset(callback?: (err: AWSError, data: MediaPackageVod.Types.DeleteAssetResponse) => void): Request<MediaPackageVod.Types.DeleteAssetResponse, AWSError>;
|
46 | /**
|
47 | * Deletes a MediaPackage VOD PackagingConfiguration resource.
|
48 | */
|
49 | deletePackagingConfiguration(params: MediaPackageVod.Types.DeletePackagingConfigurationRequest, callback?: (err: AWSError, data: MediaPackageVod.Types.DeletePackagingConfigurationResponse) => void): Request<MediaPackageVod.Types.DeletePackagingConfigurationResponse, AWSError>;
|
50 | /**
|
51 | * Deletes a MediaPackage VOD PackagingConfiguration resource.
|
52 | */
|
53 | deletePackagingConfiguration(callback?: (err: AWSError, data: MediaPackageVod.Types.DeletePackagingConfigurationResponse) => void): Request<MediaPackageVod.Types.DeletePackagingConfigurationResponse, AWSError>;
|
54 | /**
|
55 | * Deletes a MediaPackage VOD PackagingGroup resource.
|
56 | */
|
57 | deletePackagingGroup(params: MediaPackageVod.Types.DeletePackagingGroupRequest, callback?: (err: AWSError, data: MediaPackageVod.Types.DeletePackagingGroupResponse) => void): Request<MediaPackageVod.Types.DeletePackagingGroupResponse, AWSError>;
|
58 | /**
|
59 | * Deletes a MediaPackage VOD PackagingGroup resource.
|
60 | */
|
61 | deletePackagingGroup(callback?: (err: AWSError, data: MediaPackageVod.Types.DeletePackagingGroupResponse) => void): Request<MediaPackageVod.Types.DeletePackagingGroupResponse, AWSError>;
|
62 | /**
|
63 | * Returns a description of a MediaPackage VOD Asset resource.
|
64 | */
|
65 | describeAsset(params: MediaPackageVod.Types.DescribeAssetRequest, callback?: (err: AWSError, data: MediaPackageVod.Types.DescribeAssetResponse) => void): Request<MediaPackageVod.Types.DescribeAssetResponse, AWSError>;
|
66 | /**
|
67 | * Returns a description of a MediaPackage VOD Asset resource.
|
68 | */
|
69 | describeAsset(callback?: (err: AWSError, data: MediaPackageVod.Types.DescribeAssetResponse) => void): Request<MediaPackageVod.Types.DescribeAssetResponse, AWSError>;
|
70 | /**
|
71 | * Returns a description of a MediaPackage VOD PackagingConfiguration resource.
|
72 | */
|
73 | describePackagingConfiguration(params: MediaPackageVod.Types.DescribePackagingConfigurationRequest, callback?: (err: AWSError, data: MediaPackageVod.Types.DescribePackagingConfigurationResponse) => void): Request<MediaPackageVod.Types.DescribePackagingConfigurationResponse, AWSError>;
|
74 | /**
|
75 | * Returns a description of a MediaPackage VOD PackagingConfiguration resource.
|
76 | */
|
77 | describePackagingConfiguration(callback?: (err: AWSError, data: MediaPackageVod.Types.DescribePackagingConfigurationResponse) => void): Request<MediaPackageVod.Types.DescribePackagingConfigurationResponse, AWSError>;
|
78 | /**
|
79 | * Returns a description of a MediaPackage VOD PackagingGroup resource.
|
80 | */
|
81 | describePackagingGroup(params: MediaPackageVod.Types.DescribePackagingGroupRequest, callback?: (err: AWSError, data: MediaPackageVod.Types.DescribePackagingGroupResponse) => void): Request<MediaPackageVod.Types.DescribePackagingGroupResponse, AWSError>;
|
82 | /**
|
83 | * Returns a description of a MediaPackage VOD PackagingGroup resource.
|
84 | */
|
85 | describePackagingGroup(callback?: (err: AWSError, data: MediaPackageVod.Types.DescribePackagingGroupResponse) => void): Request<MediaPackageVod.Types.DescribePackagingGroupResponse, AWSError>;
|
86 | /**
|
87 | * Returns a collection of MediaPackage VOD Asset resources.
|
88 | */
|
89 | listAssets(params: MediaPackageVod.Types.ListAssetsRequest, callback?: (err: AWSError, data: MediaPackageVod.Types.ListAssetsResponse) => void): Request<MediaPackageVod.Types.ListAssetsResponse, AWSError>;
|
90 | /**
|
91 | * Returns a collection of MediaPackage VOD Asset resources.
|
92 | */
|
93 | listAssets(callback?: (err: AWSError, data: MediaPackageVod.Types.ListAssetsResponse) => void): Request<MediaPackageVod.Types.ListAssetsResponse, AWSError>;
|
94 | /**
|
95 | * Returns a collection of MediaPackage VOD PackagingConfiguration resources.
|
96 | */
|
97 | listPackagingConfigurations(params: MediaPackageVod.Types.ListPackagingConfigurationsRequest, callback?: (err: AWSError, data: MediaPackageVod.Types.ListPackagingConfigurationsResponse) => void): Request<MediaPackageVod.Types.ListPackagingConfigurationsResponse, AWSError>;
|
98 | /**
|
99 | * Returns a collection of MediaPackage VOD PackagingConfiguration resources.
|
100 | */
|
101 | listPackagingConfigurations(callback?: (err: AWSError, data: MediaPackageVod.Types.ListPackagingConfigurationsResponse) => void): Request<MediaPackageVod.Types.ListPackagingConfigurationsResponse, AWSError>;
|
102 | /**
|
103 | * Returns a collection of MediaPackage VOD PackagingGroup resources.
|
104 | */
|
105 | listPackagingGroups(params: MediaPackageVod.Types.ListPackagingGroupsRequest, callback?: (err: AWSError, data: MediaPackageVod.Types.ListPackagingGroupsResponse) => void): Request<MediaPackageVod.Types.ListPackagingGroupsResponse, AWSError>;
|
106 | /**
|
107 | * Returns a collection of MediaPackage VOD PackagingGroup resources.
|
108 | */
|
109 | listPackagingGroups(callback?: (err: AWSError, data: MediaPackageVod.Types.ListPackagingGroupsResponse) => void): Request<MediaPackageVod.Types.ListPackagingGroupsResponse, AWSError>;
|
110 | }
|
111 | declare namespace MediaPackageVod {
|
112 | export type AdMarkers = "NONE"|"SCTE35_ENHANCED"|"PASSTHROUGH"|string;
|
113 | export interface AssetShallow {
|
114 | |
115 |
|
116 |
|
117 | Arn?: __string;
|
118 | |
119 |
|
120 |
|
121 | Id?: __string;
|
122 | |
123 |
|
124 |
|
125 | PackagingGroupId?: __string;
|
126 | |
127 |
|
128 |
|
129 | ResourceId?: __string;
|
130 | |
131 |
|
132 |
|
133 | SourceArn?: __string;
|
134 | |
135 |
|
136 |
|
137 | SourceRoleArn?: __string;
|
138 | }
|
139 | export interface CmafEncryption {
|
140 | SpekeKeyProvider: SpekeKeyProvider;
|
141 | }
|
142 | export interface CmafPackage {
|
143 | Encryption?: CmafEncryption;
|
144 | |
145 |
|
146 |
|
147 | HlsManifests: __listOfHlsManifest;
|
148 | |
149 |
|
150 |
|
151 |
|
152 |
|
153 | SegmentDurationSeconds?: __integer;
|
154 | }
|
155 | export interface CreateAssetRequest {
|
156 | |
157 |
|
158 |
|
159 | Id: __string;
|
160 | |
161 |
|
162 |
|
163 | PackagingGroupId: __string;
|
164 | |
165 |
|
166 |
|
167 | ResourceId?: __string;
|
168 | |
169 |
|
170 |
|
171 | SourceArn: __string;
|
172 | |
173 |
|
174 |
|
175 | SourceRoleArn: __string;
|
176 | }
|
177 | export interface CreateAssetResponse {
|
178 | |
179 |
|
180 |
|
181 | Arn?: __string;
|
182 | |
183 |
|
184 |
|
185 | EgressEndpoints?: __listOfEgressEndpoint;
|
186 | |
187 |
|
188 |
|
189 | Id?: __string;
|
190 | |
191 |
|
192 |
|
193 | PackagingGroupId?: __string;
|
194 | |
195 |
|
196 |
|
197 | ResourceId?: __string;
|
198 | |
199 |
|
200 |
|
201 | SourceArn?: __string;
|
202 | |
203 |
|
204 |
|
205 | SourceRoleArn?: __string;
|
206 | }
|
207 | export interface CreatePackagingConfigurationRequest {
|
208 | CmafPackage?: CmafPackage;
|
209 | DashPackage?: DashPackage;
|
210 | HlsPackage?: HlsPackage;
|
211 | |
212 |
|
213 |
|
214 | Id: __string;
|
215 | MssPackage?: MssPackage;
|
216 | |
217 |
|
218 |
|
219 | PackagingGroupId: __string;
|
220 | }
|
221 | export interface CreatePackagingConfigurationResponse {
|
222 | |
223 |
|
224 |
|
225 | Arn?: __string;
|
226 | CmafPackage?: CmafPackage;
|
227 | DashPackage?: DashPackage;
|
228 | HlsPackage?: HlsPackage;
|
229 | |
230 |
|
231 |
|
232 | Id?: __string;
|
233 | MssPackage?: MssPackage;
|
234 | |
235 |
|
236 |
|
237 | PackagingGroupId?: __string;
|
238 | }
|
239 | export interface CreatePackagingGroupRequest {
|
240 | |
241 |
|
242 |
|
243 | Id: __string;
|
244 | }
|
245 | export interface CreatePackagingGroupResponse {
|
246 | |
247 |
|
248 |
|
249 | Arn?: __string;
|
250 | |
251 |
|
252 |
|
253 | Id?: __string;
|
254 | }
|
255 | export interface DashEncryption {
|
256 | SpekeKeyProvider: SpekeKeyProvider;
|
257 | }
|
258 | export interface DashManifest {
|
259 | |
260 |
|
261 |
|
262 | ManifestName?: __string;
|
263 | |
264 |
|
265 |
|
266 | MinBufferTimeSeconds?: __integer;
|
267 | |
268 |
|
269 |
|
270 | Profile?: Profile;
|
271 | StreamSelection?: StreamSelection;
|
272 | }
|
273 | export interface DashPackage {
|
274 | |
275 |
|
276 |
|
277 | DashManifests: __listOfDashManifest;
|
278 | Encryption?: DashEncryption;
|
279 | |
280 |
|
281 |
|
282 |
|
283 |
|
284 | SegmentDurationSeconds?: __integer;
|
285 | }
|
286 | export interface DeleteAssetRequest {
|
287 | |
288 |
|
289 |
|
290 | Id: __string;
|
291 | }
|
292 | export interface DeleteAssetResponse {
|
293 | }
|
294 | export interface DeletePackagingConfigurationRequest {
|
295 | |
296 |
|
297 |
|
298 | Id: __string;
|
299 | }
|
300 | export interface DeletePackagingConfigurationResponse {
|
301 | }
|
302 | export interface DeletePackagingGroupRequest {
|
303 | |
304 |
|
305 |
|
306 | Id: __string;
|
307 | }
|
308 | export interface DeletePackagingGroupResponse {
|
309 | }
|
310 | export interface DescribeAssetRequest {
|
311 | |
312 |
|
313 |
|
314 | Id: __string;
|
315 | }
|
316 | export interface DescribeAssetResponse {
|
317 | |
318 |
|
319 |
|
320 | Arn?: __string;
|
321 | |
322 |
|
323 |
|
324 | EgressEndpoints?: __listOfEgressEndpoint;
|
325 | |
326 |
|
327 |
|
328 | Id?: __string;
|
329 | |
330 |
|
331 |
|
332 | PackagingGroupId?: __string;
|
333 | |
334 |
|
335 |
|
336 | ResourceId?: __string;
|
337 | |
338 |
|
339 |
|
340 | SourceArn?: __string;
|
341 | |
342 |
|
343 |
|
344 | SourceRoleArn?: __string;
|
345 | }
|
346 | export interface DescribePackagingConfigurationRequest {
|
347 | |
348 |
|
349 |
|
350 | Id: __string;
|
351 | }
|
352 | export interface DescribePackagingConfigurationResponse {
|
353 | |
354 |
|
355 |
|
356 | Arn?: __string;
|
357 | CmafPackage?: CmafPackage;
|
358 | DashPackage?: DashPackage;
|
359 | HlsPackage?: HlsPackage;
|
360 | |
361 |
|
362 |
|
363 | Id?: __string;
|
364 | MssPackage?: MssPackage;
|
365 | |
366 |
|
367 |
|
368 | PackagingGroupId?: __string;
|
369 | }
|
370 | export interface DescribePackagingGroupRequest {
|
371 | |
372 |
|
373 |
|
374 | Id: __string;
|
375 | }
|
376 | export interface DescribePackagingGroupResponse {
|
377 | |
378 |
|
379 |
|
380 | Arn?: __string;
|
381 | |
382 |
|
383 |
|
384 | Id?: __string;
|
385 | }
|
386 | export interface EgressEndpoint {
|
387 | |
388 |
|
389 |
|
390 | PackagingConfigurationId?: __string;
|
391 | |
392 |
|
393 |
|
394 | Url?: __string;
|
395 | }
|
396 | export type EncryptionMethod = "AES_128"|"SAMPLE_AES"|string;
|
397 | export interface HlsEncryption {
|
398 | |
399 |
|
400 |
|
401 |
|
402 |
|
403 | ConstantInitializationVector?: __string;
|
404 | |
405 |
|
406 |
|
407 | EncryptionMethod?: EncryptionMethod;
|
408 | SpekeKeyProvider: SpekeKeyProvider;
|
409 | }
|
410 | export interface HlsManifest {
|
411 | |
412 |
|
413 |
|
414 |
|
415 |
|
416 |
|
417 |
|
418 |
|
419 |
|
420 | AdMarkers?: AdMarkers;
|
421 | |
422 |
|
423 |
|
424 | IncludeIframeOnlyStream?: __boolean;
|
425 | |
426 |
|
427 |
|
428 | ManifestName?: __string;
|
429 | |
430 |
|
431 |
|
432 |
|
433 |
|
434 |
|
435 |
|
436 |
|
437 |
|
438 |
|
439 |
|
440 |
|
441 | ProgramDateTimeIntervalSeconds?: __integer;
|
442 | |
443 |
|
444 |
|
445 | RepeatExtXKey?: __boolean;
|
446 | StreamSelection?: StreamSelection;
|
447 | }
|
448 | export interface HlsPackage {
|
449 | Encryption?: HlsEncryption;
|
450 | |
451 |
|
452 |
|
453 | HlsManifests: __listOfHlsManifest;
|
454 | |
455 |
|
456 |
|
457 |
|
458 |
|
459 | SegmentDurationSeconds?: __integer;
|
460 | |
461 |
|
462 |
|
463 | UseAudioRenditionGroup?: __boolean;
|
464 | }
|
465 | export interface ListAssetsRequest {
|
466 | |
467 |
|
468 |
|
469 | MaxResults?: MaxResults;
|
470 | |
471 |
|
472 |
|
473 | NextToken?: __string;
|
474 | |
475 |
|
476 |
|
477 | PackagingGroupId?: __string;
|
478 | }
|
479 | export interface ListAssetsResponse {
|
480 | |
481 |
|
482 |
|
483 | Assets?: __listOfAssetShallow;
|
484 | |
485 |
|
486 |
|
487 | NextToken?: __string;
|
488 | }
|
489 | export interface ListPackagingConfigurationsRequest {
|
490 | |
491 |
|
492 |
|
493 | MaxResults?: MaxResults;
|
494 | |
495 |
|
496 |
|
497 | NextToken?: __string;
|
498 | |
499 |
|
500 |
|
501 | PackagingGroupId?: __string;
|
502 | }
|
503 | export interface ListPackagingConfigurationsResponse {
|
504 | |
505 |
|
506 |
|
507 | NextToken?: __string;
|
508 | |
509 |
|
510 |
|
511 | PackagingConfigurations?: __listOfPackagingConfiguration;
|
512 | }
|
513 | export interface ListPackagingGroupsRequest {
|
514 | |
515 |
|
516 |
|
517 | MaxResults?: MaxResults;
|
518 | |
519 |
|
520 |
|
521 | NextToken?: __string;
|
522 | }
|
523 | export interface ListPackagingGroupsResponse {
|
524 | |
525 |
|
526 |
|
527 | NextToken?: __string;
|
528 | |
529 |
|
530 |
|
531 | PackagingGroups?: __listOfPackagingGroup;
|
532 | }
|
533 | export type MaxResults = number;
|
534 | export interface MssEncryption {
|
535 | SpekeKeyProvider: SpekeKeyProvider;
|
536 | }
|
537 | export interface MssManifest {
|
538 | |
539 |
|
540 |
|
541 | ManifestName?: __string;
|
542 | StreamSelection?: StreamSelection;
|
543 | }
|
544 | export interface MssPackage {
|
545 | Encryption?: MssEncryption;
|
546 | |
547 |
|
548 |
|
549 | MssManifests: __listOfMssManifest;
|
550 | |
551 |
|
552 |
|
553 | SegmentDurationSeconds?: __integer;
|
554 | }
|
555 | export interface PackagingConfiguration {
|
556 | |
557 |
|
558 |
|
559 | Arn?: __string;
|
560 | CmafPackage?: CmafPackage;
|
561 | DashPackage?: DashPackage;
|
562 | HlsPackage?: HlsPackage;
|
563 | |
564 |
|
565 |
|
566 | Id?: __string;
|
567 | MssPackage?: MssPackage;
|
568 | |
569 |
|
570 |
|
571 | PackagingGroupId?: __string;
|
572 | }
|
573 | export interface PackagingGroup {
|
574 | |
575 |
|
576 |
|
577 | Arn?: __string;
|
578 | |
579 |
|
580 |
|
581 | Id?: __string;
|
582 | }
|
583 | export type Profile = "NONE"|"HBBTV_1_5"|string;
|
584 | export interface SpekeKeyProvider {
|
585 | |
586 |
|
587 |
|
588 |
|
589 |
|
590 | RoleArn: __string;
|
591 | |
592 |
|
593 |
|
594 | SystemIds: __listOf__string;
|
595 | |
596 |
|
597 |
|
598 | Url: __string;
|
599 | }
|
600 | export type StreamOrder = "ORIGINAL"|"VIDEO_BITRATE_ASCENDING"|"VIDEO_BITRATE_DESCENDING"|string;
|
601 | export interface StreamSelection {
|
602 | |
603 |
|
604 |
|
605 | MaxVideoBitsPerSecond?: __integer;
|
606 | |
607 |
|
608 |
|
609 | MinVideoBitsPerSecond?: __integer;
|
610 | |
611 |
|
612 |
|
613 | StreamOrder?: StreamOrder;
|
614 | }
|
615 | export type __boolean = boolean;
|
616 | export type __integer = number;
|
617 | export type __listOfAssetShallow = AssetShallow[];
|
618 | export type __listOfDashManifest = DashManifest[];
|
619 | export type __listOfEgressEndpoint = EgressEndpoint[];
|
620 | export type __listOfHlsManifest = HlsManifest[];
|
621 | export type __listOfMssManifest = MssManifest[];
|
622 | export type __listOfPackagingConfiguration = PackagingConfiguration[];
|
623 | export type __listOfPackagingGroup = PackagingGroup[];
|
624 | export type __listOf__string = __string[];
|
625 | export type __string = string;
|
626 | |
627 |
|
628 |
|
629 | export type apiVersion = "2018-11-07"|"latest"|string;
|
630 | export interface ClientApiVersions {
|
631 | |
632 |
|
633 |
|
634 | apiVersion?: apiVersion;
|
635 | }
|
636 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
637 | |
638 |
|
639 |
|
640 | export import Types = MediaPackageVod;
|
641 | }
|
642 | export = MediaPackageVod;
|