@@ -10,6 +10,11 @@ import {
1010 CreateChannelCommandInput ,
1111 CreateChannelCommandOutput ,
1212} from "./commands/CreateChannelCommand" ;
13+ import {
14+ CreateLiveSourceCommand ,
15+ CreateLiveSourceCommandInput ,
16+ CreateLiveSourceCommandOutput ,
17+ } from "./commands/CreateLiveSourceCommand" ;
1318import {
1419 CreatePrefetchScheduleCommand ,
1520 CreatePrefetchScheduleCommandInput ,
@@ -40,6 +45,11 @@ import {
4045 DeleteChannelPolicyCommandInput ,
4146 DeleteChannelPolicyCommandOutput ,
4247} from "./commands/DeleteChannelPolicyCommand" ;
48+ import {
49+ DeleteLiveSourceCommand ,
50+ DeleteLiveSourceCommandInput ,
51+ DeleteLiveSourceCommandOutput ,
52+ } from "./commands/DeleteLiveSourceCommand" ;
4353import {
4454 DeletePlaybackConfigurationCommand ,
4555 DeletePlaybackConfigurationCommandInput ,
@@ -70,6 +80,11 @@ import {
7080 DescribeChannelCommandInput ,
7181 DescribeChannelCommandOutput ,
7282} from "./commands/DescribeChannelCommand" ;
83+ import {
84+ DescribeLiveSourceCommand ,
85+ DescribeLiveSourceCommandInput ,
86+ DescribeLiveSourceCommandOutput ,
87+ } from "./commands/DescribeLiveSourceCommand" ;
7388import {
7489 DescribeProgramCommand ,
7590 DescribeProgramCommandInput ,
@@ -111,6 +126,11 @@ import {
111126 ListChannelsCommandInput ,
112127 ListChannelsCommandOutput ,
113128} from "./commands/ListChannelsCommand" ;
129+ import {
130+ ListLiveSourcesCommand ,
131+ ListLiveSourcesCommandInput ,
132+ ListLiveSourcesCommandOutput ,
133+ } from "./commands/ListLiveSourcesCommand" ;
114134import {
115135 ListPlaybackConfigurationsCommand ,
116136 ListPlaybackConfigurationsCommandInput ,
@@ -163,6 +183,11 @@ import {
163183 UpdateChannelCommandInput ,
164184 UpdateChannelCommandOutput ,
165185} from "./commands/UpdateChannelCommand" ;
186+ import {
187+ UpdateLiveSourceCommand ,
188+ UpdateLiveSourceCommandInput ,
189+ UpdateLiveSourceCommandOutput ,
190+ } from "./commands/UpdateLiveSourceCommand" ;
166191import {
167192 UpdateSourceLocationCommand ,
168193 UpdateSourceLocationCommandInput ,
@@ -245,6 +270,38 @@ export class MediaTailor extends MediaTailorClient {
245270 }
246271 }
247272
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+
248305 /**
249306 * <p>Creates a new prefetch schedule for the specified playback configuration.</p>
250307 */
@@ -437,6 +494,38 @@ export class MediaTailor extends MediaTailorClient {
437494 }
438495 }
439496
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+
440529 /**
441530 * <p>Deletes the playback configuration for the specified name.</p>
442531 */
@@ -629,6 +718,38 @@ export class MediaTailor extends MediaTailorClient {
629718 }
630719 }
631720
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+
632753 /**
633754 * <p>Retrieves the properties of the requested program.</p>
634755 */
@@ -908,6 +1029,38 @@ export class MediaTailor extends MediaTailorClient {
9081029 }
9091030 }
9101031
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+
9111064 /**
9121065 * <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>
9131066 */
@@ -1277,6 +1430,38 @@ export class MediaTailor extends MediaTailorClient {
12771430 }
12781431 }
12791432
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+
12801465 /**
12811466 * <p>Updates a source location on a specific channel.</p>
12821467 */
0 commit comments