Skip to content

Commit

Permalink
feat(client-mediatailor): This release adds support to allow customer…
Browse files Browse the repository at this point in the history
…s to show different content within a channel depending on metadata associated with the viewer.
  • Loading branch information
awstools committed Mar 18, 2024
1 parent 861baa7 commit 72ad42d
Show file tree
Hide file tree
Showing 11 changed files with 682 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
* TimeShiftConfiguration: { // TimeShiftConfiguration
* MaxTimeDelaySeconds: Number("int"), // required
* },
* Audiences: [ // Audiences
* "STRING_VALUE",
* ],
* };
* const command = new CreateChannelCommand(input);
* const response = await client.send(command);
Expand Down Expand Up @@ -106,6 +109,9 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
* // TimeShiftConfiguration: { // TimeShiftConfiguration
* // MaxTimeDelaySeconds: Number("int"), // required
* // },
* // Audiences: [ // Audiences
* // "STRING_VALUE",
* // ],
* // };
*
* ```
Expand Down
114 changes: 112 additions & 2 deletions clients/client-mediatailor/src/commands/CreateProgramCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,66 @@ export interface CreateProgramCommandOutput extends CreateProgramResponse, __Met
* Type: "STRING_VALUE", // required
* },
* ClipRange: { // ClipRange
* EndOffsetMillis: Number("long"), // required
* EndOffsetMillis: Number("long"),
* StartOffsetMillis: Number("long"),
* },
* },
* SourceLocationName: "STRING_VALUE", // required
* VodSourceName: "STRING_VALUE",
* AudienceMedia: [ // __listOfAudienceMedia
* { // AudienceMedia
* Audience: "STRING_VALUE",
* AlternateMedia: [ // __listOfAlternateMedia
* { // AlternateMedia
* SourceLocationName: "STRING_VALUE",
* LiveSourceName: "STRING_VALUE",
* VodSourceName: "STRING_VALUE",
* ClipRange: {
* EndOffsetMillis: Number("long"),
* StartOffsetMillis: Number("long"),
* },
* ScheduledStartTimeMillis: Number("long"),
* AdBreaks: [
* {
* MessageType: "SPLICE_INSERT" || "TIME_SIGNAL",
* OffsetMillis: Number("long"), // required
* Slate: {
* SourceLocationName: "STRING_VALUE",
* VodSourceName: "STRING_VALUE",
* },
* SpliceInsertMessage: {
* AvailNum: Number("int"),
* AvailsExpected: Number("int"),
* SpliceEventId: Number("int"),
* UniqueProgramId: Number("int"),
* },
* TimeSignalMessage: {
* SegmentationDescriptors: [
* {
* SegmentationEventId: Number("int"),
* SegmentationUpidType: Number("int"),
* SegmentationUpid: "STRING_VALUE",
* SegmentationTypeId: Number("int"),
* SegmentNum: Number("int"),
* SegmentsExpected: Number("int"),
* SubSegmentNum: Number("int"),
* SubSegmentsExpected: Number("int"),
* },
* ],
* },
* AdBreakMetadata: [
* {
* Key: "STRING_VALUE", // required
* Value: "STRING_VALUE", // required
* },
* ],
* },
* ],
* DurationMillis: Number("long"),
* },
* ],
* },
* ],
* };
* const command = new CreateProgramCommand(input);
* const response = await client.send(command);
Expand Down Expand Up @@ -137,9 +192,64 @@ export interface CreateProgramCommandOutput extends CreateProgramResponse, __Met
* // SourceLocationName: "STRING_VALUE",
* // VodSourceName: "STRING_VALUE",
* // ClipRange: { // ClipRange
* // EndOffsetMillis: Number("long"), // required
* // EndOffsetMillis: Number("long"),
* // StartOffsetMillis: Number("long"),
* // },
* // DurationMillis: Number("long"),
* // AudienceMedia: [ // __listOfAudienceMedia
* // { // AudienceMedia
* // Audience: "STRING_VALUE",
* // AlternateMedia: [ // __listOfAlternateMedia
* // { // AlternateMedia
* // SourceLocationName: "STRING_VALUE",
* // LiveSourceName: "STRING_VALUE",
* // VodSourceName: "STRING_VALUE",
* // ClipRange: {
* // EndOffsetMillis: Number("long"),
* // StartOffsetMillis: Number("long"),
* // },
* // ScheduledStartTimeMillis: Number("long"),
* // AdBreaks: [
* // {
* // MessageType: "SPLICE_INSERT" || "TIME_SIGNAL",
* // OffsetMillis: Number("long"), // required
* // Slate: {
* // SourceLocationName: "STRING_VALUE",
* // VodSourceName: "STRING_VALUE",
* // },
* // SpliceInsertMessage: {
* // AvailNum: Number("int"),
* // AvailsExpected: Number("int"),
* // SpliceEventId: Number("int"),
* // UniqueProgramId: Number("int"),
* // },
* // TimeSignalMessage: {
* // SegmentationDescriptors: [
* // {
* // SegmentationEventId: Number("int"),
* // SegmentationUpidType: Number("int"),
* // SegmentationUpid: "STRING_VALUE",
* // SegmentationTypeId: Number("int"),
* // SegmentNum: Number("int"),
* // SegmentsExpected: Number("int"),
* // SubSegmentNum: Number("int"),
* // SubSegmentsExpected: Number("int"),
* // },
* // ],
* // },
* // AdBreakMetadata: [
* // {
* // Key: "STRING_VALUE", // required
* // Value: "STRING_VALUE", // required
* // },
* // ],
* // },
* // ],
* // DurationMillis: Number("long"),
* // },
* // ],
* // },
* // ],
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ export interface DescribeChannelCommandOutput extends DescribeChannelResponse, _
* // TimeShiftConfiguration: { // TimeShiftConfiguration
* // MaxTimeDelaySeconds: Number("int"), // required
* // },
* // Audiences: [ // Audiences
* // "STRING_VALUE",
* // ],
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,64 @@ export interface DescribeProgramCommandOutput extends DescribeProgramResponse, _
* // SourceLocationName: "STRING_VALUE",
* // VodSourceName: "STRING_VALUE",
* // ClipRange: { // ClipRange
* // EndOffsetMillis: Number("long"), // required
* // EndOffsetMillis: Number("long"),
* // StartOffsetMillis: Number("long"),
* // },
* // DurationMillis: Number("long"),
* // AudienceMedia: [ // __listOfAudienceMedia
* // { // AudienceMedia
* // Audience: "STRING_VALUE",
* // AlternateMedia: [ // __listOfAlternateMedia
* // { // AlternateMedia
* // SourceLocationName: "STRING_VALUE",
* // LiveSourceName: "STRING_VALUE",
* // VodSourceName: "STRING_VALUE",
* // ClipRange: {
* // EndOffsetMillis: Number("long"),
* // StartOffsetMillis: Number("long"),
* // },
* // ScheduledStartTimeMillis: Number("long"),
* // AdBreaks: [
* // {
* // MessageType: "SPLICE_INSERT" || "TIME_SIGNAL",
* // OffsetMillis: Number("long"), // required
* // Slate: {
* // SourceLocationName: "STRING_VALUE",
* // VodSourceName: "STRING_VALUE",
* // },
* // SpliceInsertMessage: {
* // AvailNum: Number("int"),
* // AvailsExpected: Number("int"),
* // SpliceEventId: Number("int"),
* // UniqueProgramId: Number("int"),
* // },
* // TimeSignalMessage: {
* // SegmentationDescriptors: [
* // {
* // SegmentationEventId: Number("int"),
* // SegmentationUpidType: Number("int"),
* // SegmentationUpid: "STRING_VALUE",
* // SegmentationTypeId: Number("int"),
* // SegmentNum: Number("int"),
* // SegmentsExpected: Number("int"),
* // SubSegmentNum: Number("int"),
* // SubSegmentsExpected: Number("int"),
* // },
* // ],
* // },
* // AdBreakMetadata: [
* // {
* // Key: "STRING_VALUE", // required
* // Value: "STRING_VALUE", // required
* // },
* // ],
* // },
* // ],
* // DurationMillis: Number("long"),
* // },
* // ],
* // },
* // ],
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export interface GetChannelScheduleCommandOutput extends GetChannelScheduleRespo
* DurationMinutes: "STRING_VALUE",
* MaxResults: Number("int"),
* NextToken: "STRING_VALUE",
* Audience: "STRING_VALUE",
* };
* const command = new GetChannelScheduleCommand(input);
* const response = await client.send(command);
Expand All @@ -59,9 +60,12 @@ export interface GetChannelScheduleCommandOutput extends GetChannelScheduleRespo
* // VodSourceName: "STRING_VALUE",
* // },
* // ],
* // ScheduleEntryType: "PROGRAM" || "FILLER_SLATE",
* // ScheduleEntryType: "PROGRAM" || "FILLER_SLATE" || "ALTERNATE_MEDIA",
* // SourceLocationName: "STRING_VALUE", // required
* // VodSourceName: "STRING_VALUE",
* // Audiences: [ // Audiences
* // "STRING_VALUE",
* // ],
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ export interface ListChannelsCommandOutput extends ListChannelsResponse, __Metad
* // "AS_RUN",
* // ],
* // },
* // Audiences: [ // Audiences
* // "STRING_VALUE",
* // ],
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met
* TimeShiftConfiguration: { // TimeShiftConfiguration
* MaxTimeDelaySeconds: Number("int"), // required
* },
* Audiences: [ // Audiences
* "STRING_VALUE",
* ],
* };
* const command = new UpdateChannelCommand(input);
* const response = await client.send(command);
Expand Down Expand Up @@ -101,6 +104,9 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met
* // TimeShiftConfiguration: { // TimeShiftConfiguration
* // MaxTimeDelaySeconds: Number("int"), // required
* // },
* // Audiences: [ // Audiences
* // "STRING_VALUE",
* // ],
* // };
*
* ```
Expand Down
Loading

0 comments on commit 72ad42d

Please sign in to comment.