import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { ConfigureLogsCommand , ConfigureLogsCommandInput , ConfigureLogsCommandOutput , } from "./commands/ConfigureLogsCommand" ; import { CreateChannelCommand , CreateChannelCommandInput , CreateChannelCommandOutput , } from "./commands/CreateChannelCommand" ; import { CreateHarvestJobCommand , CreateHarvestJobCommandInput , CreateHarvestJobCommandOutput , } from "./commands/CreateHarvestJobCommand" ; import { CreateOriginEndpointCommand , CreateOriginEndpointCommandInput , CreateOriginEndpointCommandOutput , } from "./commands/CreateOriginEndpointCommand" ; import { DeleteChannelCommand , DeleteChannelCommandInput , DeleteChannelCommandOutput , } from "./commands/DeleteChannelCommand" ; import { DeleteOriginEndpointCommand , DeleteOriginEndpointCommandInput , DeleteOriginEndpointCommandOutput , } from "./commands/DeleteOriginEndpointCommand" ; import { DescribeChannelCommand , DescribeChannelCommandInput , DescribeChannelCommandOutput , } from "./commands/DescribeChannelCommand" ; import { DescribeHarvestJobCommand , DescribeHarvestJobCommandInput , DescribeHarvestJobCommandOutput , } from "./commands/DescribeHarvestJobCommand" ; import { DescribeOriginEndpointCommand , DescribeOriginEndpointCommandInput , DescribeOriginEndpointCommandOutput , } from "./commands/DescribeOriginEndpointCommand" ; import { ListChannelsCommand , ListChannelsCommandInput , ListChannelsCommandOutput , } from "./commands/ListChannelsCommand" ; import { ListHarvestJobsCommand , ListHarvestJobsCommandInput , ListHarvestJobsCommandOutput , } from "./commands/ListHarvestJobsCommand" ; import { ListOriginEndpointsCommand , ListOriginEndpointsCommandInput , ListOriginEndpointsCommandOutput , } from "./commands/ListOriginEndpointsCommand" ; import { ListTagsForResourceCommand , ListTagsForResourceCommandInput , ListTagsForResourceCommandOutput , } from "./commands/ListTagsForResourceCommand" ; import { RotateChannelCredentialsCommand , RotateChannelCredentialsCommandInput , RotateChannelCredentialsCommandOutput , } from "./commands/RotateChannelCredentialsCommand" ; import { RotateIngestEndpointCredentialsCommand , RotateIngestEndpointCredentialsCommandInput , RotateIngestEndpointCredentialsCommandOutput , } from "./commands/RotateIngestEndpointCredentialsCommand" ; import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ; import { UntagResourceCommand , UntagResourceCommandInput , UntagResourceCommandOutput , } from "./commands/UntagResourceCommand" ; import { UpdateChannelCommand , UpdateChannelCommandInput , UpdateChannelCommandOutput , } from "./commands/UpdateChannelCommand" ; import { UpdateOriginEndpointCommand , UpdateOriginEndpointCommandInput , UpdateOriginEndpointCommandOutput , } from "./commands/UpdateOriginEndpointCommand" ; import { MediaPackageClient } from "./MediaPackageClient" ; /**
 * AWS Elemental MediaPackage
 */ export class MediaPackage extends MediaPackageClient { /**
     * Changes the Channel's properities to configure log subscription
     */ public configureLogs ( args , options ? ) ; public configureLogs ( args , cb ) ; public configureLogs ( args , options , cb ) ; public configureLogs ( args , optionsOrCb ? , cb ? ) { const command = new ConfigureLogsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Creates a new Channel.
     */ public createChannel ( args , options ? ) ; public createChannel ( args , cb ) ; public createChannel ( args , options , cb ) ; public createChannel ( args , optionsOrCb ? , cb ? ) { const command = new CreateChannelCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Creates a new HarvestJob record.
     */ public createHarvestJob ( args , options ? ) ; public createHarvestJob ( args , cb ) ; public createHarvestJob ( args , options , cb ) ; public createHarvestJob ( args , optionsOrCb ? , cb ? ) { const command = new CreateHarvestJobCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Creates a new OriginEndpoint record.
     */ public createOriginEndpoint ( args , options ? ) ; public createOriginEndpoint ( args , cb ) ; public createOriginEndpoint ( args , options , cb ) ; public createOriginEndpoint ( args , optionsOrCb ? , cb ? ) { const command = new CreateOriginEndpointCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Deletes an existing Channel.
     */ public deleteChannel ( args , options ? ) ; public deleteChannel ( args , cb ) ; public deleteChannel ( args , options , cb ) ; public deleteChannel ( args , optionsOrCb ? , cb ? ) { const command = new DeleteChannelCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Deletes an existing OriginEndpoint.
     */ public deleteOriginEndpoint ( args , options ? ) ; public deleteOriginEndpoint ( args , cb ) ; public deleteOriginEndpoint ( args , options , cb ) ; public deleteOriginEndpoint ( args , optionsOrCb ? , cb ? ) { const command = new DeleteOriginEndpointCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Gets details about a Channel.
     */ public describeChannel ( args , options ? ) ; public describeChannel ( args , cb ) ; public describeChannel ( args , options , cb ) ; public describeChannel ( args , optionsOrCb ? , cb ? ) { const command = new DescribeChannelCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Gets details about an existing HarvestJob.
     */ public describeHarvestJob ( args , options ? ) ; public describeHarvestJob ( args , cb ) ; public describeHarvestJob ( args , options , cb ) ; public describeHarvestJob ( args , optionsOrCb ? , cb ? ) { const command = new DescribeHarvestJobCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Gets details about an existing OriginEndpoint.
     */ public describeOriginEndpoint ( args , options ? ) ; public describeOriginEndpoint ( args , cb ) ; public describeOriginEndpoint ( args , options , cb ) ; public describeOriginEndpoint ( args , optionsOrCb ? , cb ? ) { const command = new DescribeOriginEndpointCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Returns a collection of Channels.
     */ public listChannels ( args , options ? ) ; public listChannels ( args , cb ) ; public listChannels ( args , options , cb ) ; public listChannels ( args , optionsOrCb ? , cb ? ) { const command = new ListChannelsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Returns a collection of HarvestJob records.
     */ public listHarvestJobs ( args , options ? ) ; public listHarvestJobs ( args , cb ) ; public listHarvestJobs ( args , options , cb ) ; public listHarvestJobs ( args , optionsOrCb ? , cb ? ) { const command = new ListHarvestJobsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Returns a collection of OriginEndpoint records.
     */ public listOriginEndpoints ( args , options ? ) ; public listOriginEndpoints ( args , cb ) ; public listOriginEndpoints ( args , options , cb ) ; public listOriginEndpoints ( args , optionsOrCb ? , cb ? ) { const command = new ListOriginEndpointsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public listTagsForResource ( args , options ? ) ; public listTagsForResource ( args , cb ) ; public listTagsForResource ( args , options , cb ) ; public listTagsForResource ( args , optionsOrCb ? , cb ? ) { const command = new ListTagsForResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } deprecated public rotateChannelCredentials ( args , options ? ) ; public rotateChannelCredentials ( args , cb ) ; public rotateChannelCredentials ( args , options , cb ) ; public rotateChannelCredentials ( args , optionsOrCb ? , cb ? ) { const command = new RotateChannelCredentialsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Rotate the IngestEndpoint's username and password, as specified by the IngestEndpoint's id.
     */ public rotateIngestEndpointCredentials ( args , options ? ) ; public rotateIngestEndpointCredentials ( args , cb ) ; public rotateIngestEndpointCredentials ( args , options , cb ) ; public rotateIngestEndpointCredentials ( args , optionsOrCb ? , cb ? ) { const command = new RotateIngestEndpointCredentialsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public tagResource ( args , options ? ) ; public tagResource ( args , cb ) ; public tagResource ( args , options , cb ) ; public tagResource ( args , optionsOrCb ? , cb ? ) { const command = new TagResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public untagResource ( args , options ? ) ; public untagResource ( args , cb ) ; public untagResource ( args , options , cb ) ; public untagResource ( args , optionsOrCb ? , cb ? ) { const command = new UntagResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Updates an existing Channel.
     */ public updateChannel ( args , options ? ) ; public updateChannel ( args , cb ) ; public updateChannel ( args , options , cb ) ; public updateChannel ( args , optionsOrCb ? , cb ? ) { const command = new UpdateChannelCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Updates an existing OriginEndpoint.
     */ public updateOriginEndpoint ( args , options ? ) ; public updateOriginEndpoint ( args , cb ) ; public updateOriginEndpoint ( args , options , cb ) ; public updateOriginEndpoint ( args , optionsOrCb ? , cb ? ) { const command = new UpdateOriginEndpointCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } }