Skip to content

Commit 75fac5e

Browse files
author
awstools
committed
feat(client-mediatailor): This release introduces tiered channels and adds support for live sources. Customers using a STANDARD channel can now create programs using live sources.
1 parent 6f1e5c3 commit 75fac5e

13 files changed

+2376
-68
lines changed

clients/client-mediatailor/src/MediaTailor.ts

+185
Original file line numberDiff line numberDiff line change
@@ -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";
1318
import {
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";
4353
import {
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";
7388
import {
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";
114134
import {
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";
166191
import {
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
*/

clients/client-mediatailor/src/MediaTailorClient.ts

+15
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import {
5656
ConfigureLogsForPlaybackConfigurationCommandOutput,
5757
} from "./commands/ConfigureLogsForPlaybackConfigurationCommand";
5858
import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
59+
import { CreateLiveSourceCommandInput, CreateLiveSourceCommandOutput } from "./commands/CreateLiveSourceCommand";
5960
import {
6061
CreatePrefetchScheduleCommandInput,
6162
CreatePrefetchScheduleCommandOutput,
@@ -71,6 +72,7 @@ import {
7172
DeleteChannelPolicyCommandInput,
7273
DeleteChannelPolicyCommandOutput,
7374
} from "./commands/DeleteChannelPolicyCommand";
75+
import { DeleteLiveSourceCommandInput, DeleteLiveSourceCommandOutput } from "./commands/DeleteLiveSourceCommand";
7476
import {
7577
DeletePlaybackConfigurationCommandInput,
7678
DeletePlaybackConfigurationCommandOutput,
@@ -86,6 +88,7 @@ import {
8688
} from "./commands/DeleteSourceLocationCommand";
8789
import { DeleteVodSourceCommandInput, DeleteVodSourceCommandOutput } from "./commands/DeleteVodSourceCommand";
8890
import { DescribeChannelCommandInput, DescribeChannelCommandOutput } from "./commands/DescribeChannelCommand";
91+
import { DescribeLiveSourceCommandInput, DescribeLiveSourceCommandOutput } from "./commands/DescribeLiveSourceCommand";
8992
import { DescribeProgramCommandInput, DescribeProgramCommandOutput } from "./commands/DescribeProgramCommand";
9093
import {
9194
DescribeSourceLocationCommandInput,
@@ -104,6 +107,7 @@ import {
104107
} from "./commands/GetPrefetchScheduleCommand";
105108
import { ListAlertsCommandInput, ListAlertsCommandOutput } from "./commands/ListAlertsCommand";
106109
import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
110+
import { ListLiveSourcesCommandInput, ListLiveSourcesCommandOutput } from "./commands/ListLiveSourcesCommand";
107111
import {
108112
ListPlaybackConfigurationsCommandInput,
109113
ListPlaybackConfigurationsCommandOutput,
@@ -131,6 +135,7 @@ import { StopChannelCommandInput, StopChannelCommandOutput } from "./commands/St
131135
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
132136
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
133137
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
138+
import { UpdateLiveSourceCommandInput, UpdateLiveSourceCommandOutput } from "./commands/UpdateLiveSourceCommand";
134139
import {
135140
UpdateSourceLocationCommandInput,
136141
UpdateSourceLocationCommandOutput,
@@ -141,18 +146,21 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
141146
export type ServiceInputTypes =
142147
| ConfigureLogsForPlaybackConfigurationCommandInput
143148
| CreateChannelCommandInput
149+
| CreateLiveSourceCommandInput
144150
| CreatePrefetchScheduleCommandInput
145151
| CreateProgramCommandInput
146152
| CreateSourceLocationCommandInput
147153
| CreateVodSourceCommandInput
148154
| DeleteChannelCommandInput
149155
| DeleteChannelPolicyCommandInput
156+
| DeleteLiveSourceCommandInput
150157
| DeletePlaybackConfigurationCommandInput
151158
| DeletePrefetchScheduleCommandInput
152159
| DeleteProgramCommandInput
153160
| DeleteSourceLocationCommandInput
154161
| DeleteVodSourceCommandInput
155162
| DescribeChannelCommandInput
163+
| DescribeLiveSourceCommandInput
156164
| DescribeProgramCommandInput
157165
| DescribeSourceLocationCommandInput
158166
| DescribeVodSourceCommandInput
@@ -162,6 +170,7 @@ export type ServiceInputTypes =
162170
| GetPrefetchScheduleCommandInput
163171
| ListAlertsCommandInput
164172
| ListChannelsCommandInput
173+
| ListLiveSourcesCommandInput
165174
| ListPlaybackConfigurationsCommandInput
166175
| ListPrefetchSchedulesCommandInput
167176
| ListSourceLocationsCommandInput
@@ -174,24 +183,28 @@ export type ServiceInputTypes =
174183
| TagResourceCommandInput
175184
| UntagResourceCommandInput
176185
| UpdateChannelCommandInput
186+
| UpdateLiveSourceCommandInput
177187
| UpdateSourceLocationCommandInput
178188
| UpdateVodSourceCommandInput;
179189

180190
export type ServiceOutputTypes =
181191
| ConfigureLogsForPlaybackConfigurationCommandOutput
182192
| CreateChannelCommandOutput
193+
| CreateLiveSourceCommandOutput
183194
| CreatePrefetchScheduleCommandOutput
184195
| CreateProgramCommandOutput
185196
| CreateSourceLocationCommandOutput
186197
| CreateVodSourceCommandOutput
187198
| DeleteChannelCommandOutput
188199
| DeleteChannelPolicyCommandOutput
200+
| DeleteLiveSourceCommandOutput
189201
| DeletePlaybackConfigurationCommandOutput
190202
| DeletePrefetchScheduleCommandOutput
191203
| DeleteProgramCommandOutput
192204
| DeleteSourceLocationCommandOutput
193205
| DeleteVodSourceCommandOutput
194206
| DescribeChannelCommandOutput
207+
| DescribeLiveSourceCommandOutput
195208
| DescribeProgramCommandOutput
196209
| DescribeSourceLocationCommandOutput
197210
| DescribeVodSourceCommandOutput
@@ -201,6 +214,7 @@ export type ServiceOutputTypes =
201214
| GetPrefetchScheduleCommandOutput
202215
| ListAlertsCommandOutput
203216
| ListChannelsCommandOutput
217+
| ListLiveSourcesCommandOutput
204218
| ListPlaybackConfigurationsCommandOutput
205219
| ListPrefetchSchedulesCommandOutput
206220
| ListSourceLocationsCommandOutput
@@ -213,6 +227,7 @@ export type ServiceOutputTypes =
213227
| TagResourceCommandOutput
214228
| UntagResourceCommandOutput
215229
| UpdateChannelCommandOutput
230+
| UpdateLiveSourceCommandOutput
216231
| UpdateSourceLocationCommandOutput
217232
| UpdateVodSourceCommandOutput;
218233

0 commit comments

Comments
 (0)