Skip to content

Commit

Permalink
feat(client-mediatailor): Adds the ability to configure time shifting…
Browse files Browse the repository at this point in the history
… on MediaTailor channels using the TimeShiftConfiguration field
  • Loading branch information
awstools committed Dec 20, 2023
1 parent 22ad5eb commit 3633030
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
* "<keys>": "STRING_VALUE",
* },
* Tier: "BASIC" || "STANDARD",
* TimeShiftConfiguration: { // TimeShiftConfiguration
* MaxTimeDelaySeconds: Number("int"), // required
* },
* };
* const command = new CreateChannelCommand(input);
* const response = await client.send(command);
Expand Down Expand Up @@ -110,6 +113,9 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
* // "<keys>": "STRING_VALUE",
* // },
* // Tier: "STRING_VALUE",
* // TimeShiftConfiguration: { // TimeShiftConfiguration
* // MaxTimeDelaySeconds: Number("int"), // required
* // },
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ export interface DescribeChannelCommandOutput extends DescribeChannelResponse, _
* // "AS_RUN",
* // ],
* // },
* // TimeShiftConfiguration: { // TimeShiftConfiguration
* // MaxTimeDelaySeconds: Number("int"), // required
* // },
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met
* SourceGroup: "STRING_VALUE", // required
* },
* ],
* TimeShiftConfiguration: { // TimeShiftConfiguration
* MaxTimeDelaySeconds: Number("int"), // required
* },
* };
* const command = new UpdateChannelCommand(input);
* const response = await client.send(command);
Expand Down Expand Up @@ -105,6 +108,9 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met
* // "<keys>": "STRING_VALUE",
* // },
* // Tier: "STRING_VALUE",
* // TimeShiftConfiguration: { // TimeShiftConfiguration
* // MaxTimeDelaySeconds: Number("int"), // required
* // },
* // };
*
* ```
Expand Down
57 changes: 57 additions & 0 deletions clients/client-mediatailor/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,23 @@ export const Tier = {
*/
export type Tier = (typeof Tier)[keyof typeof Tier];

/**
* @public
* <p>
* The configuration for time-shifted viewing.
* </p>
*/
export interface TimeShiftConfiguration {
/**
* @public
* <p>
* The maximum time delay for time-shifted viewing. The minimum allowed maximum time delay is 0 seconds,
* and the maximum allowed maximum time delay is 21600 seconds (6 hours).
* </p>
*/
MaxTimeDelaySeconds: number | undefined;
}

/**
* @public
*/
Expand Down Expand Up @@ -1548,6 +1565,14 @@ export interface CreateChannelRequest {
* <p>The tier of the channel.</p>
*/
Tier?: Tier;

/**
* @public
* <p>
* The time-shifted viewing configuration you want to associate to the channel.
* </p>
*/
TimeShiftConfiguration?: TimeShiftConfiguration;
}

/**
Expand Down Expand Up @@ -1627,6 +1652,14 @@ export interface CreateChannelResponse {
* <p>The tier of the channel.</p>
*/
Tier?: string;

/**
* @public
* <p>
* The time-shifted viewing configuration assigned to the channel.
* </p>
*/
TimeShiftConfiguration?: TimeShiftConfiguration;
}

/**
Expand Down Expand Up @@ -1725,6 +1758,14 @@ export interface DescribeChannelResponse {
* <p>The log configuration for the channel.</p>
*/
LogConfiguration: LogConfigurationForChannel | undefined;

/**
* @public
* <p>
* The time-shifted viewing configuration for the channel.
* </p>
*/
TimeShiftConfiguration?: TimeShiftConfiguration;
}

/**
Expand Down Expand Up @@ -2317,6 +2358,14 @@ export interface UpdateChannelRequest {
* <p>The channel's output properties.</p>
*/
Outputs: RequestOutputItem[] | undefined;

/**
* @public
* <p>
* The time-shifted viewing configuration you want to associate to the channel.
* </p>
*/
TimeShiftConfiguration?: TimeShiftConfiguration;
}

/**
Expand Down Expand Up @@ -2388,6 +2437,14 @@ export interface UpdateChannelResponse {
* <p>The tier associated with this Channel.</p>
*/
Tier?: string;

/**
* @public
* <p>
* The time-shifted viewing configuration for the channel.
* </p>
*/
TimeShiftConfiguration?: TimeShiftConfiguration;
}

/**
Expand Down
10 changes: 10 additions & 0 deletions clients/client-mediatailor/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ import {
SlateSource,
SourceLocation,
SpliceInsertMessage,
TimeShiftConfiguration,
TimeSignalMessage,
Transition,
UpdateProgramScheduleConfiguration,
Expand Down Expand Up @@ -232,6 +233,7 @@ export const se_CreateChannelCommand = async (
PlaybackMode: [],
tags: [, (_) => _json(_), `Tags`],
Tier: [],
TimeShiftConfiguration: (_) => _json(_),
})
);
b.m("POST").h(headers).b(body);
Expand Down Expand Up @@ -965,6 +967,7 @@ export const se_UpdateChannelCommand = async (
take(input, {
FillerSlate: (_) => _json(_),
Outputs: (_) => _json(_),
TimeShiftConfiguration: (_) => _json(_),
})
);
b.m("PUT").h(headers).b(body);
Expand Down Expand Up @@ -1179,6 +1182,7 @@ export const de_CreateChannelCommand = async (
PlaybackMode: __expectString,
Tags: [, _json, `tags`],
Tier: __expectString,
TimeShiftConfiguration: _json,
});
Object.assign(contents, doc);
return contents;
Expand Down Expand Up @@ -1766,6 +1770,7 @@ export const de_DescribeChannelCommand = async (
PlaybackMode: __expectString,
Tags: [, _json, `tags`],
Tier: __expectString,
TimeShiftConfiguration: _json,
});
Object.assign(contents, doc);
return contents;
Expand Down Expand Up @@ -2796,6 +2801,7 @@ export const de_UpdateChannelCommand = async (
PlaybackMode: __expectString,
Tags: [, _json, `tags`],
Tier: __expectString,
TimeShiftConfiguration: _json,
});
Object.assign(contents, doc);
return contents;
Expand Down Expand Up @@ -3125,6 +3131,8 @@ const se_PrefetchRetrieval = (input: PrefetchRetrieval, context: __SerdeContext)

// se_SpliceInsertMessage omitted.

// se_TimeShiftConfiguration omitted.

// se_TimeSignalMessage omitted.

// se_Transition omitted.
Expand Down Expand Up @@ -3479,6 +3487,8 @@ const de_SourceLocation = (output: any, context: __SerdeContext): SourceLocation

// de_SpliceInsertMessage omitted.

// de_TimeShiftConfiguration omitted.

// de_TimeSignalMessage omitted.

/**
Expand Down

0 comments on commit 3633030

Please sign in to comment.