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 | CreatedAt?: __string;
|
122 | |
123 |
|
124 |
|
125 | Id?: __string;
|
126 | |
127 |
|
128 |
|
129 | PackagingGroupId?: __string;
|
130 | |
131 |
|
132 |
|
133 | ResourceId?: __string;
|
134 | |
135 |
|
136 |
|
137 | SourceArn?: __string;
|
138 | |
139 |
|
140 |
|
141 | SourceRoleArn?: __string;
|
142 | }
|
143 | export interface CmafEncryption {
|
144 | SpekeKeyProvider: SpekeKeyProvider;
|
145 | }
|
146 | export interface CmafPackage {
|
147 | Encryption?: CmafEncryption;
|
148 | |
149 |
|
150 |
|
151 | HlsManifests: __listOfHlsManifest;
|
152 | |
153 |
|
154 |
|
155 |
|
156 |
|
157 | SegmentDurationSeconds?: __integer;
|
158 | }
|
159 | export interface CreateAssetRequest {
|
160 | |
161 |
|
162 |
|
163 | Id: __string;
|
164 | |
165 |
|
166 |
|
167 | PackagingGroupId: __string;
|
168 | |
169 |
|
170 |
|
171 | ResourceId?: __string;
|
172 | |
173 |
|
174 |
|
175 | SourceArn: __string;
|
176 | |
177 |
|
178 |
|
179 | SourceRoleArn: __string;
|
180 | }
|
181 | export interface CreateAssetResponse {
|
182 | |
183 |
|
184 |
|
185 | Arn?: __string;
|
186 | |
187 |
|
188 |
|
189 | CreatedAt?: __string;
|
190 | |
191 |
|
192 |
|
193 | EgressEndpoints?: __listOfEgressEndpoint;
|
194 | |
195 |
|
196 |
|
197 | Id?: __string;
|
198 | |
199 |
|
200 |
|
201 | PackagingGroupId?: __string;
|
202 | |
203 |
|
204 |
|
205 | ResourceId?: __string;
|
206 | |
207 |
|
208 |
|
209 | SourceArn?: __string;
|
210 | |
211 |
|
212 |
|
213 | SourceRoleArn?: __string;
|
214 | }
|
215 | export interface CreatePackagingConfigurationRequest {
|
216 | CmafPackage?: CmafPackage;
|
217 | DashPackage?: DashPackage;
|
218 | HlsPackage?: HlsPackage;
|
219 | |
220 |
|
221 |
|
222 | Id: __string;
|
223 | MssPackage?: MssPackage;
|
224 | |
225 |
|
226 |
|
227 | PackagingGroupId: __string;
|
228 | }
|
229 | export interface CreatePackagingConfigurationResponse {
|
230 | |
231 |
|
232 |
|
233 | Arn?: __string;
|
234 | CmafPackage?: CmafPackage;
|
235 | DashPackage?: DashPackage;
|
236 | HlsPackage?: HlsPackage;
|
237 | |
238 |
|
239 |
|
240 | Id?: __string;
|
241 | MssPackage?: MssPackage;
|
242 | |
243 |
|
244 |
|
245 | PackagingGroupId?: __string;
|
246 | }
|
247 | export interface CreatePackagingGroupRequest {
|
248 | |
249 |
|
250 |
|
251 | Id: __string;
|
252 | }
|
253 | export interface CreatePackagingGroupResponse {
|
254 | |
255 |
|
256 |
|
257 | Arn?: __string;
|
258 | |
259 |
|
260 |
|
261 | DomainName?: __string;
|
262 | |
263 |
|
264 |
|
265 | Id?: __string;
|
266 | }
|
267 | export interface DashEncryption {
|
268 | SpekeKeyProvider: SpekeKeyProvider;
|
269 | }
|
270 | export interface DashManifest {
|
271 | |
272 |
|
273 |
|
274 | ManifestLayout?: ManifestLayout;
|
275 | |
276 |
|
277 |
|
278 | ManifestName?: __string;
|
279 | |
280 |
|
281 |
|
282 | MinBufferTimeSeconds?: __integer;
|
283 | |
284 |
|
285 |
|
286 | Profile?: Profile;
|
287 | StreamSelection?: StreamSelection;
|
288 | }
|
289 | export interface DashPackage {
|
290 | |
291 |
|
292 |
|
293 | DashManifests: __listOfDashManifest;
|
294 | Encryption?: DashEncryption;
|
295 | |
296 |
|
297 |
|
298 |
|
299 |
|
300 |
|
301 |
|
302 | PeriodTriggers?: __listOf__PeriodTriggersElement;
|
303 | |
304 |
|
305 |
|
306 |
|
307 |
|
308 | SegmentDurationSeconds?: __integer;
|
309 | |
310 |
|
311 |
|
312 | SegmentTemplateFormat?: SegmentTemplateFormat;
|
313 | }
|
314 | export interface DeleteAssetRequest {
|
315 | |
316 |
|
317 |
|
318 | Id: __string;
|
319 | }
|
320 | export interface DeleteAssetResponse {
|
321 | }
|
322 | export interface DeletePackagingConfigurationRequest {
|
323 | |
324 |
|
325 |
|
326 | Id: __string;
|
327 | }
|
328 | export interface DeletePackagingConfigurationResponse {
|
329 | }
|
330 | export interface DeletePackagingGroupRequest {
|
331 | |
332 |
|
333 |
|
334 | Id: __string;
|
335 | }
|
336 | export interface DeletePackagingGroupResponse {
|
337 | }
|
338 | export interface DescribeAssetRequest {
|
339 | |
340 |
|
341 |
|
342 | Id: __string;
|
343 | }
|
344 | export interface DescribeAssetResponse {
|
345 | |
346 |
|
347 |
|
348 | Arn?: __string;
|
349 | |
350 |
|
351 |
|
352 | CreatedAt?: __string;
|
353 | |
354 |
|
355 |
|
356 | EgressEndpoints?: __listOfEgressEndpoint;
|
357 | |
358 |
|
359 |
|
360 | Id?: __string;
|
361 | |
362 |
|
363 |
|
364 | PackagingGroupId?: __string;
|
365 | |
366 |
|
367 |
|
368 | ResourceId?: __string;
|
369 | |
370 |
|
371 |
|
372 | SourceArn?: __string;
|
373 | |
374 |
|
375 |
|
376 | SourceRoleArn?: __string;
|
377 | }
|
378 | export interface DescribePackagingConfigurationRequest {
|
379 | |
380 |
|
381 |
|
382 | Id: __string;
|
383 | }
|
384 | export interface DescribePackagingConfigurationResponse {
|
385 | |
386 |
|
387 |
|
388 | Arn?: __string;
|
389 | CmafPackage?: CmafPackage;
|
390 | DashPackage?: DashPackage;
|
391 | HlsPackage?: HlsPackage;
|
392 | |
393 |
|
394 |
|
395 | Id?: __string;
|
396 | MssPackage?: MssPackage;
|
397 | |
398 |
|
399 |
|
400 | PackagingGroupId?: __string;
|
401 | }
|
402 | export interface DescribePackagingGroupRequest {
|
403 | |
404 |
|
405 |
|
406 | Id: __string;
|
407 | }
|
408 | export interface DescribePackagingGroupResponse {
|
409 | |
410 |
|
411 |
|
412 | Arn?: __string;
|
413 | |
414 |
|
415 |
|
416 | DomainName?: __string;
|
417 | |
418 |
|
419 |
|
420 | Id?: __string;
|
421 | }
|
422 | export interface EgressEndpoint {
|
423 | |
424 |
|
425 |
|
426 | PackagingConfigurationId?: __string;
|
427 | |
428 |
|
429 |
|
430 | Url?: __string;
|
431 | }
|
432 | export type EncryptionMethod = "AES_128"|"SAMPLE_AES"|string;
|
433 | export interface HlsEncryption {
|
434 | |
435 |
|
436 |
|
437 |
|
438 |
|
439 | ConstantInitializationVector?: __string;
|
440 | |
441 |
|
442 |
|
443 | EncryptionMethod?: EncryptionMethod;
|
444 | SpekeKeyProvider: SpekeKeyProvider;
|
445 | }
|
446 | export interface HlsManifest {
|
447 | |
448 |
|
449 |
|
450 |
|
451 |
|
452 |
|
453 |
|
454 |
|
455 |
|
456 | AdMarkers?: AdMarkers;
|
457 | |
458 |
|
459 |
|
460 | IncludeIframeOnlyStream?: __boolean;
|
461 | |
462 |
|
463 |
|
464 | ManifestName?: __string;
|
465 | |
466 |
|
467 |
|
468 |
|
469 |
|
470 |
|
471 |
|
472 |
|
473 |
|
474 |
|
475 |
|
476 |
|
477 | ProgramDateTimeIntervalSeconds?: __integer;
|
478 | |
479 |
|
480 |
|
481 | RepeatExtXKey?: __boolean;
|
482 | StreamSelection?: StreamSelection;
|
483 | }
|
484 | export interface HlsPackage {
|
485 | Encryption?: HlsEncryption;
|
486 | |
487 |
|
488 |
|
489 | HlsManifests: __listOfHlsManifest;
|
490 | |
491 |
|
492 |
|
493 |
|
494 |
|
495 | SegmentDurationSeconds?: __integer;
|
496 | |
497 |
|
498 |
|
499 | UseAudioRenditionGroup?: __boolean;
|
500 | }
|
501 | export interface ListAssetsRequest {
|
502 | |
503 |
|
504 |
|
505 | MaxResults?: MaxResults;
|
506 | |
507 |
|
508 |
|
509 | NextToken?: __string;
|
510 | |
511 |
|
512 |
|
513 | PackagingGroupId?: __string;
|
514 | }
|
515 | export interface ListAssetsResponse {
|
516 | |
517 |
|
518 |
|
519 | Assets?: __listOfAssetShallow;
|
520 | |
521 |
|
522 |
|
523 | NextToken?: __string;
|
524 | }
|
525 | export interface ListPackagingConfigurationsRequest {
|
526 | |
527 |
|
528 |
|
529 | MaxResults?: MaxResults;
|
530 | |
531 |
|
532 |
|
533 | NextToken?: __string;
|
534 | |
535 |
|
536 |
|
537 | PackagingGroupId?: __string;
|
538 | }
|
539 | export interface ListPackagingConfigurationsResponse {
|
540 | |
541 |
|
542 |
|
543 | NextToken?: __string;
|
544 | |
545 |
|
546 |
|
547 | PackagingConfigurations?: __listOfPackagingConfiguration;
|
548 | }
|
549 | export interface ListPackagingGroupsRequest {
|
550 | |
551 |
|
552 |
|
553 | MaxResults?: MaxResults;
|
554 | |
555 |
|
556 |
|
557 | NextToken?: __string;
|
558 | }
|
559 | export interface ListPackagingGroupsResponse {
|
560 | |
561 |
|
562 |
|
563 | NextToken?: __string;
|
564 | |
565 |
|
566 |
|
567 | PackagingGroups?: __listOfPackagingGroup;
|
568 | }
|
569 | export type ManifestLayout = "FULL"|"COMPACT"|string;
|
570 | export type MaxResults = number;
|
571 | export interface MssEncryption {
|
572 | SpekeKeyProvider: SpekeKeyProvider;
|
573 | }
|
574 | export interface MssManifest {
|
575 | |
576 |
|
577 |
|
578 | ManifestName?: __string;
|
579 | StreamSelection?: StreamSelection;
|
580 | }
|
581 | export interface MssPackage {
|
582 | Encryption?: MssEncryption;
|
583 | |
584 |
|
585 |
|
586 | MssManifests: __listOfMssManifest;
|
587 | |
588 |
|
589 |
|
590 | SegmentDurationSeconds?: __integer;
|
591 | }
|
592 | export interface PackagingConfiguration {
|
593 | |
594 |
|
595 |
|
596 | Arn?: __string;
|
597 | CmafPackage?: CmafPackage;
|
598 | DashPackage?: DashPackage;
|
599 | HlsPackage?: HlsPackage;
|
600 | |
601 |
|
602 |
|
603 | Id?: __string;
|
604 | MssPackage?: MssPackage;
|
605 | |
606 |
|
607 |
|
608 | PackagingGroupId?: __string;
|
609 | }
|
610 | export interface PackagingGroup {
|
611 | |
612 |
|
613 |
|
614 | Arn?: __string;
|
615 | |
616 |
|
617 |
|
618 | DomainName?: __string;
|
619 | |
620 |
|
621 |
|
622 | Id?: __string;
|
623 | }
|
624 | export type Profile = "NONE"|"HBBTV_1_5"|string;
|
625 | export type SegmentTemplateFormat = "NUMBER_WITH_TIMELINE"|"TIME_WITH_TIMELINE"|"NUMBER_WITH_DURATION"|string;
|
626 | export interface SpekeKeyProvider {
|
627 | |
628 |
|
629 |
|
630 |
|
631 |
|
632 | RoleArn: __string;
|
633 | |
634 |
|
635 |
|
636 | SystemIds: __listOf__string;
|
637 | |
638 |
|
639 |
|
640 | Url: __string;
|
641 | }
|
642 | export type StreamOrder = "ORIGINAL"|"VIDEO_BITRATE_ASCENDING"|"VIDEO_BITRATE_DESCENDING"|string;
|
643 | export interface StreamSelection {
|
644 | |
645 |
|
646 |
|
647 | MaxVideoBitsPerSecond?: __integer;
|
648 | |
649 |
|
650 |
|
651 | MinVideoBitsPerSecond?: __integer;
|
652 | |
653 |
|
654 |
|
655 | StreamOrder?: StreamOrder;
|
656 | }
|
657 | export type __PeriodTriggersElement = "ADS"|string;
|
658 | export type __boolean = boolean;
|
659 | export type __integer = number;
|
660 | export type __listOfAssetShallow = AssetShallow[];
|
661 | export type __listOfDashManifest = DashManifest[];
|
662 | export type __listOfEgressEndpoint = EgressEndpoint[];
|
663 | export type __listOfHlsManifest = HlsManifest[];
|
664 | export type __listOfMssManifest = MssManifest[];
|
665 | export type __listOfPackagingConfiguration = PackagingConfiguration[];
|
666 | export type __listOfPackagingGroup = PackagingGroup[];
|
667 | export type __listOf__PeriodTriggersElement = __PeriodTriggersElement[];
|
668 | export type __listOf__string = __string[];
|
669 | export type __string = string;
|
670 | |
671 |
|
672 |
|
673 | export type apiVersion = "2018-11-07"|"latest"|string;
|
674 | export interface ClientApiVersions {
|
675 | |
676 |
|
677 |
|
678 | apiVersion?: apiVersion;
|
679 | }
|
680 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
681 | |
682 |
|
683 |
|
684 | export import Types = MediaPackageVod;
|
685 | }
|
686 | export = MediaPackageVod;
|