Skip to content

Commit

Permalink
feat(client-mediatailor): This release introduces tiered channels and…
Browse files Browse the repository at this point in the history
… adds support for live sources. Customers using a STANDARD channel can now create programs using live sources.
  • Loading branch information
awstools committed Apr 21, 2022
1 parent 6f1e5c3 commit 75fac5e
Show file tree
Hide file tree
Showing 13 changed files with 2,376 additions and 68 deletions.
185 changes: 185 additions & 0 deletions clients/client-mediatailor/src/MediaTailor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import {
CreateChannelCommandInput,
CreateChannelCommandOutput,
} from "./commands/CreateChannelCommand";
import {
CreateLiveSourceCommand,
CreateLiveSourceCommandInput,
CreateLiveSourceCommandOutput,
} from "./commands/CreateLiveSourceCommand";
import {
CreatePrefetchScheduleCommand,
CreatePrefetchScheduleCommandInput,
Expand Down Expand Up @@ -40,6 +45,11 @@ import {
DeleteChannelPolicyCommandInput,
DeleteChannelPolicyCommandOutput,
} from "./commands/DeleteChannelPolicyCommand";
import {
DeleteLiveSourceCommand,
DeleteLiveSourceCommandInput,
DeleteLiveSourceCommandOutput,
} from "./commands/DeleteLiveSourceCommand";
import {
DeletePlaybackConfigurationCommand,
DeletePlaybackConfigurationCommandInput,
Expand Down Expand Up @@ -70,6 +80,11 @@ import {
DescribeChannelCommandInput,
DescribeChannelCommandOutput,
} from "./commands/DescribeChannelCommand";
import {
DescribeLiveSourceCommand,
DescribeLiveSourceCommandInput,
DescribeLiveSourceCommandOutput,
} from "./commands/DescribeLiveSourceCommand";
import {
DescribeProgramCommand,
DescribeProgramCommandInput,
Expand Down Expand Up @@ -111,6 +126,11 @@ import {
ListChannelsCommandInput,
ListChannelsCommandOutput,
} from "./commands/ListChannelsCommand";
import {
ListLiveSourcesCommand,
ListLiveSourcesCommandInput,
ListLiveSourcesCommandOutput,
} from "./commands/ListLiveSourcesCommand";
import {
ListPlaybackConfigurationsCommand,
ListPlaybackConfigurationsCommandInput,
Expand Down Expand Up @@ -163,6 +183,11 @@ import {
UpdateChannelCommandInput,
UpdateChannelCommandOutput,
} from "./commands/UpdateChannelCommand";
import {
UpdateLiveSourceCommand,
UpdateLiveSourceCommandInput,
UpdateLiveSourceCommandOutput,
} from "./commands/UpdateLiveSourceCommand";
import {
UpdateSourceLocationCommand,
UpdateSourceLocationCommandInput,
Expand Down Expand Up @@ -245,6 +270,38 @@ export class MediaTailor extends MediaTailorClient {
}
}

/**
* <p>Creates name for a specific live source in a source location.</p>
*/
public createLiveSource(
args: CreateLiveSourceCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateLiveSourceCommandOutput>;
public createLiveSource(
args: CreateLiveSourceCommandInput,
cb: (err: any, data?: CreateLiveSourceCommandOutput) => void
): void;
public createLiveSource(
args: CreateLiveSourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateLiveSourceCommandOutput) => void
): void;
public createLiveSource(
args: CreateLiveSourceCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateLiveSourceCommandOutput) => void),
cb?: (err: any, data?: CreateLiveSourceCommandOutput) => void
): Promise<CreateLiveSourceCommandOutput> | void {
const command = new CreateLiveSourceCommand(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);
}
}

/**
* <p>Creates a new prefetch schedule for the specified playback configuration.</p>
*/
Expand Down Expand Up @@ -437,6 +494,38 @@ export class MediaTailor extends MediaTailorClient {
}
}

/**
* <p>Deletes a specific live source in a specific source location.</p>
*/
public deleteLiveSource(
args: DeleteLiveSourceCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteLiveSourceCommandOutput>;
public deleteLiveSource(
args: DeleteLiveSourceCommandInput,
cb: (err: any, data?: DeleteLiveSourceCommandOutput) => void
): void;
public deleteLiveSource(
args: DeleteLiveSourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteLiveSourceCommandOutput) => void
): void;
public deleteLiveSource(
args: DeleteLiveSourceCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteLiveSourceCommandOutput) => void),
cb?: (err: any, data?: DeleteLiveSourceCommandOutput) => void
): Promise<DeleteLiveSourceCommandOutput> | void {
const command = new DeleteLiveSourceCommand(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);
}
}

/**
* <p>Deletes the playback configuration for the specified name.</p>
*/
Expand Down Expand Up @@ -629,6 +718,38 @@ export class MediaTailor extends MediaTailorClient {
}
}

/**
* <p>Provides details about a specific live source in a specific source location.</p>
*/
public describeLiveSource(
args: DescribeLiveSourceCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeLiveSourceCommandOutput>;
public describeLiveSource(
args: DescribeLiveSourceCommandInput,
cb: (err: any, data?: DescribeLiveSourceCommandOutput) => void
): void;
public describeLiveSource(
args: DescribeLiveSourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeLiveSourceCommandOutput) => void
): void;
public describeLiveSource(
args: DescribeLiveSourceCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeLiveSourceCommandOutput) => void),
cb?: (err: any, data?: DescribeLiveSourceCommandOutput) => void
): Promise<DescribeLiveSourceCommandOutput> | void {
const command = new DescribeLiveSourceCommand(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);
}
}

/**
* <p>Retrieves the properties of the requested program.</p>
*/
Expand Down Expand Up @@ -908,6 +1029,38 @@ export class MediaTailor extends MediaTailorClient {
}
}

/**
* <p>lists all the live sources in a source location.</p>
*/
public listLiveSources(
args: ListLiveSourcesCommandInput,
options?: __HttpHandlerOptions
): Promise<ListLiveSourcesCommandOutput>;
public listLiveSources(
args: ListLiveSourcesCommandInput,
cb: (err: any, data?: ListLiveSourcesCommandOutput) => void
): void;
public listLiveSources(
args: ListLiveSourcesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListLiveSourcesCommandOutput) => void
): void;
public listLiveSources(
args: ListLiveSourcesCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListLiveSourcesCommandOutput) => void),
cb?: (err: any, data?: ListLiveSourcesCommandOutput) => void
): Promise<ListLiveSourcesCommandOutput> | void {
const command = new ListLiveSourcesCommand(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);
}
}

/**
* <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>
*/
Expand Down Expand Up @@ -1277,6 +1430,38 @@ export class MediaTailor extends MediaTailorClient {
}
}

/**
* <p>Updates a specific live source in a specific source location.</p>
*/
public updateLiveSource(
args: UpdateLiveSourceCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateLiveSourceCommandOutput>;
public updateLiveSource(
args: UpdateLiveSourceCommandInput,
cb: (err: any, data?: UpdateLiveSourceCommandOutput) => void
): void;
public updateLiveSource(
args: UpdateLiveSourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateLiveSourceCommandOutput) => void
): void;
public updateLiveSource(
args: UpdateLiveSourceCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateLiveSourceCommandOutput) => void),
cb?: (err: any, data?: UpdateLiveSourceCommandOutput) => void
): Promise<UpdateLiveSourceCommandOutput> | void {
const command = new UpdateLiveSourceCommand(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);
}
}

/**
* <p>Updates a source location on a specific channel.</p>
*/
Expand Down
15 changes: 15 additions & 0 deletions clients/client-mediatailor/src/MediaTailorClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import {
ConfigureLogsForPlaybackConfigurationCommandOutput,
} from "./commands/ConfigureLogsForPlaybackConfigurationCommand";
import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
import { CreateLiveSourceCommandInput, CreateLiveSourceCommandOutput } from "./commands/CreateLiveSourceCommand";
import {
CreatePrefetchScheduleCommandInput,
CreatePrefetchScheduleCommandOutput,
Expand All @@ -71,6 +72,7 @@ import {
DeleteChannelPolicyCommandInput,
DeleteChannelPolicyCommandOutput,
} from "./commands/DeleteChannelPolicyCommand";
import { DeleteLiveSourceCommandInput, DeleteLiveSourceCommandOutput } from "./commands/DeleteLiveSourceCommand";
import {
DeletePlaybackConfigurationCommandInput,
DeletePlaybackConfigurationCommandOutput,
Expand All @@ -86,6 +88,7 @@ import {
} from "./commands/DeleteSourceLocationCommand";
import { DeleteVodSourceCommandInput, DeleteVodSourceCommandOutput } from "./commands/DeleteVodSourceCommand";
import { DescribeChannelCommandInput, DescribeChannelCommandOutput } from "./commands/DescribeChannelCommand";
import { DescribeLiveSourceCommandInput, DescribeLiveSourceCommandOutput } from "./commands/DescribeLiveSourceCommand";
import { DescribeProgramCommandInput, DescribeProgramCommandOutput } from "./commands/DescribeProgramCommand";
import {
DescribeSourceLocationCommandInput,
Expand All @@ -104,6 +107,7 @@ import {
} from "./commands/GetPrefetchScheduleCommand";
import { ListAlertsCommandInput, ListAlertsCommandOutput } from "./commands/ListAlertsCommand";
import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
import { ListLiveSourcesCommandInput, ListLiveSourcesCommandOutput } from "./commands/ListLiveSourcesCommand";
import {
ListPlaybackConfigurationsCommandInput,
ListPlaybackConfigurationsCommandOutput,
Expand Down Expand Up @@ -131,6 +135,7 @@ import { StopChannelCommandInput, StopChannelCommandOutput } from "./commands/St
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
import { UpdateLiveSourceCommandInput, UpdateLiveSourceCommandOutput } from "./commands/UpdateLiveSourceCommand";
import {
UpdateSourceLocationCommandInput,
UpdateSourceLocationCommandOutput,
Expand All @@ -141,18 +146,21 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
export type ServiceInputTypes =
| ConfigureLogsForPlaybackConfigurationCommandInput
| CreateChannelCommandInput
| CreateLiveSourceCommandInput
| CreatePrefetchScheduleCommandInput
| CreateProgramCommandInput
| CreateSourceLocationCommandInput
| CreateVodSourceCommandInput
| DeleteChannelCommandInput
| DeleteChannelPolicyCommandInput
| DeleteLiveSourceCommandInput
| DeletePlaybackConfigurationCommandInput
| DeletePrefetchScheduleCommandInput
| DeleteProgramCommandInput
| DeleteSourceLocationCommandInput
| DeleteVodSourceCommandInput
| DescribeChannelCommandInput
| DescribeLiveSourceCommandInput
| DescribeProgramCommandInput
| DescribeSourceLocationCommandInput
| DescribeVodSourceCommandInput
Expand All @@ -162,6 +170,7 @@ export type ServiceInputTypes =
| GetPrefetchScheduleCommandInput
| ListAlertsCommandInput
| ListChannelsCommandInput
| ListLiveSourcesCommandInput
| ListPlaybackConfigurationsCommandInput
| ListPrefetchSchedulesCommandInput
| ListSourceLocationsCommandInput
Expand All @@ -174,24 +183,28 @@ export type ServiceInputTypes =
| TagResourceCommandInput
| UntagResourceCommandInput
| UpdateChannelCommandInput
| UpdateLiveSourceCommandInput
| UpdateSourceLocationCommandInput
| UpdateVodSourceCommandInput;

export type ServiceOutputTypes =
| ConfigureLogsForPlaybackConfigurationCommandOutput
| CreateChannelCommandOutput
| CreateLiveSourceCommandOutput
| CreatePrefetchScheduleCommandOutput
| CreateProgramCommandOutput
| CreateSourceLocationCommandOutput
| CreateVodSourceCommandOutput
| DeleteChannelCommandOutput
| DeleteChannelPolicyCommandOutput
| DeleteLiveSourceCommandOutput
| DeletePlaybackConfigurationCommandOutput
| DeletePrefetchScheduleCommandOutput
| DeleteProgramCommandOutput
| DeleteSourceLocationCommandOutput
| DeleteVodSourceCommandOutput
| DescribeChannelCommandOutput
| DescribeLiveSourceCommandOutput
| DescribeProgramCommandOutput
| DescribeSourceLocationCommandOutput
| DescribeVodSourceCommandOutput
Expand All @@ -201,6 +214,7 @@ export type ServiceOutputTypes =
| GetPrefetchScheduleCommandOutput
| ListAlertsCommandOutput
| ListChannelsCommandOutput
| ListLiveSourcesCommandOutput
| ListPlaybackConfigurationsCommandOutput
| ListPrefetchSchedulesCommandOutput
| ListSourceLocationsCommandOutput
Expand All @@ -213,6 +227,7 @@ export type ServiceOutputTypes =
| TagResourceCommandOutput
| UntagResourceCommandOutput
| UpdateChannelCommandOutput
| UpdateLiveSourceCommandOutput
| UpdateSourceLocationCommandOutput
| UpdateVodSourceCommandOutput;

Expand Down

0 comments on commit 75fac5e

Please sign in to comment.