@@ -10,6 +10,11 @@ import {
10
10
CreateChannelCommandInput ,
11
11
CreateChannelCommandOutput ,
12
12
} from "./commands/CreateChannelCommand" ;
13
+ import {
14
+ CreateLiveSourceCommand ,
15
+ CreateLiveSourceCommandInput ,
16
+ CreateLiveSourceCommandOutput ,
17
+ } from "./commands/CreateLiveSourceCommand" ;
13
18
import {
14
19
CreatePrefetchScheduleCommand ,
15
20
CreatePrefetchScheduleCommandInput ,
@@ -40,6 +45,11 @@ import {
40
45
DeleteChannelPolicyCommandInput ,
41
46
DeleteChannelPolicyCommandOutput ,
42
47
} from "./commands/DeleteChannelPolicyCommand" ;
48
+ import {
49
+ DeleteLiveSourceCommand ,
50
+ DeleteLiveSourceCommandInput ,
51
+ DeleteLiveSourceCommandOutput ,
52
+ } from "./commands/DeleteLiveSourceCommand" ;
43
53
import {
44
54
DeletePlaybackConfigurationCommand ,
45
55
DeletePlaybackConfigurationCommandInput ,
@@ -70,6 +80,11 @@ import {
70
80
DescribeChannelCommandInput ,
71
81
DescribeChannelCommandOutput ,
72
82
} from "./commands/DescribeChannelCommand" ;
83
+ import {
84
+ DescribeLiveSourceCommand ,
85
+ DescribeLiveSourceCommandInput ,
86
+ DescribeLiveSourceCommandOutput ,
87
+ } from "./commands/DescribeLiveSourceCommand" ;
73
88
import {
74
89
DescribeProgramCommand ,
75
90
DescribeProgramCommandInput ,
@@ -111,6 +126,11 @@ import {
111
126
ListChannelsCommandInput ,
112
127
ListChannelsCommandOutput ,
113
128
} from "./commands/ListChannelsCommand" ;
129
+ import {
130
+ ListLiveSourcesCommand ,
131
+ ListLiveSourcesCommandInput ,
132
+ ListLiveSourcesCommandOutput ,
133
+ } from "./commands/ListLiveSourcesCommand" ;
114
134
import {
115
135
ListPlaybackConfigurationsCommand ,
116
136
ListPlaybackConfigurationsCommandInput ,
@@ -163,6 +183,11 @@ import {
163
183
UpdateChannelCommandInput ,
164
184
UpdateChannelCommandOutput ,
165
185
} from "./commands/UpdateChannelCommand" ;
186
+ import {
187
+ UpdateLiveSourceCommand ,
188
+ UpdateLiveSourceCommandInput ,
189
+ UpdateLiveSourceCommandOutput ,
190
+ } from "./commands/UpdateLiveSourceCommand" ;
166
191
import {
167
192
UpdateSourceLocationCommand ,
168
193
UpdateSourceLocationCommandInput ,
@@ -245,6 +270,38 @@ export class MediaTailor extends MediaTailorClient {
245
270
}
246
271
}
247
272
273
+ /**
274
+ * <p>Creates name for a specific live source in a source location.</p>
275
+ */
276
+ public createLiveSource (
277
+ args : CreateLiveSourceCommandInput ,
278
+ options ?: __HttpHandlerOptions
279
+ ) : Promise < CreateLiveSourceCommandOutput > ;
280
+ public createLiveSource (
281
+ args : CreateLiveSourceCommandInput ,
282
+ cb : ( err : any , data ?: CreateLiveSourceCommandOutput ) => void
283
+ ) : void ;
284
+ public createLiveSource (
285
+ args : CreateLiveSourceCommandInput ,
286
+ options : __HttpHandlerOptions ,
287
+ cb : ( err : any , data ?: CreateLiveSourceCommandOutput ) => void
288
+ ) : void ;
289
+ public createLiveSource (
290
+ args : CreateLiveSourceCommandInput ,
291
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: CreateLiveSourceCommandOutput ) => void ) ,
292
+ cb ?: ( err : any , data ?: CreateLiveSourceCommandOutput ) => void
293
+ ) : Promise < CreateLiveSourceCommandOutput > | void {
294
+ const command = new CreateLiveSourceCommand ( args ) ;
295
+ if ( typeof optionsOrCb === "function" ) {
296
+ this . send ( command , optionsOrCb ) ;
297
+ } else if ( typeof cb === "function" ) {
298
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
299
+ this . send ( command , optionsOrCb || { } , cb ) ;
300
+ } else {
301
+ return this . send ( command , optionsOrCb ) ;
302
+ }
303
+ }
304
+
248
305
/**
249
306
* <p>Creates a new prefetch schedule for the specified playback configuration.</p>
250
307
*/
@@ -437,6 +494,38 @@ export class MediaTailor extends MediaTailorClient {
437
494
}
438
495
}
439
496
497
+ /**
498
+ * <p>Deletes a specific live source in a specific source location.</p>
499
+ */
500
+ public deleteLiveSource (
501
+ args : DeleteLiveSourceCommandInput ,
502
+ options ?: __HttpHandlerOptions
503
+ ) : Promise < DeleteLiveSourceCommandOutput > ;
504
+ public deleteLiveSource (
505
+ args : DeleteLiveSourceCommandInput ,
506
+ cb : ( err : any , data ?: DeleteLiveSourceCommandOutput ) => void
507
+ ) : void ;
508
+ public deleteLiveSource (
509
+ args : DeleteLiveSourceCommandInput ,
510
+ options : __HttpHandlerOptions ,
511
+ cb : ( err : any , data ?: DeleteLiveSourceCommandOutput ) => void
512
+ ) : void ;
513
+ public deleteLiveSource (
514
+ args : DeleteLiveSourceCommandInput ,
515
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteLiveSourceCommandOutput ) => void ) ,
516
+ cb ?: ( err : any , data ?: DeleteLiveSourceCommandOutput ) => void
517
+ ) : Promise < DeleteLiveSourceCommandOutput > | void {
518
+ const command = new DeleteLiveSourceCommand ( args ) ;
519
+ if ( typeof optionsOrCb === "function" ) {
520
+ this . send ( command , optionsOrCb ) ;
521
+ } else if ( typeof cb === "function" ) {
522
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
523
+ this . send ( command , optionsOrCb || { } , cb ) ;
524
+ } else {
525
+ return this . send ( command , optionsOrCb ) ;
526
+ }
527
+ }
528
+
440
529
/**
441
530
* <p>Deletes the playback configuration for the specified name.</p>
442
531
*/
@@ -629,6 +718,38 @@ export class MediaTailor extends MediaTailorClient {
629
718
}
630
719
}
631
720
721
+ /**
722
+ * <p>Provides details about a specific live source in a specific source location.</p>
723
+ */
724
+ public describeLiveSource (
725
+ args : DescribeLiveSourceCommandInput ,
726
+ options ?: __HttpHandlerOptions
727
+ ) : Promise < DescribeLiveSourceCommandOutput > ;
728
+ public describeLiveSource (
729
+ args : DescribeLiveSourceCommandInput ,
730
+ cb : ( err : any , data ?: DescribeLiveSourceCommandOutput ) => void
731
+ ) : void ;
732
+ public describeLiveSource (
733
+ args : DescribeLiveSourceCommandInput ,
734
+ options : __HttpHandlerOptions ,
735
+ cb : ( err : any , data ?: DescribeLiveSourceCommandOutput ) => void
736
+ ) : void ;
737
+ public describeLiveSource (
738
+ args : DescribeLiveSourceCommandInput ,
739
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DescribeLiveSourceCommandOutput ) => void ) ,
740
+ cb ?: ( err : any , data ?: DescribeLiveSourceCommandOutput ) => void
741
+ ) : Promise < DescribeLiveSourceCommandOutput > | void {
742
+ const command = new DescribeLiveSourceCommand ( args ) ;
743
+ if ( typeof optionsOrCb === "function" ) {
744
+ this . send ( command , optionsOrCb ) ;
745
+ } else if ( typeof cb === "function" ) {
746
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
747
+ this . send ( command , optionsOrCb || { } , cb ) ;
748
+ } else {
749
+ return this . send ( command , optionsOrCb ) ;
750
+ }
751
+ }
752
+
632
753
/**
633
754
* <p>Retrieves the properties of the requested program.</p>
634
755
*/
@@ -908,6 +1029,38 @@ export class MediaTailor extends MediaTailorClient {
908
1029
}
909
1030
}
910
1031
1032
+ /**
1033
+ * <p>lists all the live sources in a source location.</p>
1034
+ */
1035
+ public listLiveSources (
1036
+ args : ListLiveSourcesCommandInput ,
1037
+ options ?: __HttpHandlerOptions
1038
+ ) : Promise < ListLiveSourcesCommandOutput > ;
1039
+ public listLiveSources (
1040
+ args : ListLiveSourcesCommandInput ,
1041
+ cb : ( err : any , data ?: ListLiveSourcesCommandOutput ) => void
1042
+ ) : void ;
1043
+ public listLiveSources (
1044
+ args : ListLiveSourcesCommandInput ,
1045
+ options : __HttpHandlerOptions ,
1046
+ cb : ( err : any , data ?: ListLiveSourcesCommandOutput ) => void
1047
+ ) : void ;
1048
+ public listLiveSources (
1049
+ args : ListLiveSourcesCommandInput ,
1050
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListLiveSourcesCommandOutput ) => void ) ,
1051
+ cb ?: ( err : any , data ?: ListLiveSourcesCommandOutput ) => void
1052
+ ) : Promise < ListLiveSourcesCommandOutput > | void {
1053
+ const command = new ListLiveSourcesCommand ( args ) ;
1054
+ if ( typeof optionsOrCb === "function" ) {
1055
+ this . send ( command , optionsOrCb ) ;
1056
+ } else if ( typeof cb === "function" ) {
1057
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1058
+ this . send ( command , optionsOrCb || { } , cb ) ;
1059
+ } else {
1060
+ return this . send ( command , optionsOrCb ) ;
1061
+ }
1062
+ }
1063
+
911
1064
/**
912
1065
* <p>Returns a list of the playback configurations defined in AWS Elemental MediaTailor. You can specify a maximum number of configurations to return at a time. The default maximum is 50. Results are returned in pagefuls. If MediaTailor has more configurations than the specified maximum, it provides parameters in the response that you can use to retrieve the next pageful.</p>
913
1066
*/
@@ -1277,6 +1430,38 @@ export class MediaTailor extends MediaTailorClient {
1277
1430
}
1278
1431
}
1279
1432
1433
+ /**
1434
+ * <p>Updates a specific live source in a specific source location.</p>
1435
+ */
1436
+ public updateLiveSource (
1437
+ args : UpdateLiveSourceCommandInput ,
1438
+ options ?: __HttpHandlerOptions
1439
+ ) : Promise < UpdateLiveSourceCommandOutput > ;
1440
+ public updateLiveSource (
1441
+ args : UpdateLiveSourceCommandInput ,
1442
+ cb : ( err : any , data ?: UpdateLiveSourceCommandOutput ) => void
1443
+ ) : void ;
1444
+ public updateLiveSource (
1445
+ args : UpdateLiveSourceCommandInput ,
1446
+ options : __HttpHandlerOptions ,
1447
+ cb : ( err : any , data ?: UpdateLiveSourceCommandOutput ) => void
1448
+ ) : void ;
1449
+ public updateLiveSource (
1450
+ args : UpdateLiveSourceCommandInput ,
1451
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: UpdateLiveSourceCommandOutput ) => void ) ,
1452
+ cb ?: ( err : any , data ?: UpdateLiveSourceCommandOutput ) => void
1453
+ ) : Promise < UpdateLiveSourceCommandOutput > | void {
1454
+ const command = new UpdateLiveSourceCommand ( args ) ;
1455
+ if ( typeof optionsOrCb === "function" ) {
1456
+ this . send ( command , optionsOrCb ) ;
1457
+ } else if ( typeof cb === "function" ) {
1458
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1459
+ this . send ( command , optionsOrCb || { } , cb ) ;
1460
+ } else {
1461
+ return this . send ( command , optionsOrCb ) ;
1462
+ }
1463
+ }
1464
+
1280
1465
/**
1281
1466
* <p>Updates a source location on a specific channel.</p>
1282
1467
*/
0 commit comments