Skip to content

Commit 3633030

Browse files
author
awstools
committed
feat(client-mediatailor): Adds the ability to configure time shifting on MediaTailor channels using the TimeShiftConfiguration field
1 parent 22ad5eb commit 3633030

File tree

5 files changed

+82
-0
lines changed

5 files changed

+82
-0
lines changed

clients/client-mediatailor/src/commands/CreateChannelCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
7373
* "<keys>": "STRING_VALUE",
7474
* },
7575
* Tier: "BASIC" || "STANDARD",
76+
* TimeShiftConfiguration: { // TimeShiftConfiguration
77+
* MaxTimeDelaySeconds: Number("int"), // required
78+
* },
7679
* };
7780
* const command = new CreateChannelCommand(input);
7881
* const response = await client.send(command);
@@ -110,6 +113,9 @@ export interface CreateChannelCommandOutput extends CreateChannelResponse, __Met
110113
* // "<keys>": "STRING_VALUE",
111114
* // },
112115
* // Tier: "STRING_VALUE",
116+
* // TimeShiftConfiguration: { // TimeShiftConfiguration
117+
* // MaxTimeDelaySeconds: Number("int"), // required
118+
* // },
113119
* // };
114120
*
115121
* ```

clients/client-mediatailor/src/commands/DescribeChannelCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ export interface DescribeChannelCommandOutput extends DescribeChannelResponse, _
8888
* // "AS_RUN",
8989
* // ],
9090
* // },
91+
* // TimeShiftConfiguration: { // TimeShiftConfiguration
92+
* // MaxTimeDelaySeconds: Number("int"), // required
93+
* // },
9194
* // };
9295
*
9396
* ```

clients/client-mediatailor/src/commands/UpdateChannelCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met
6868
* SourceGroup: "STRING_VALUE", // required
6969
* },
7070
* ],
71+
* TimeShiftConfiguration: { // TimeShiftConfiguration
72+
* MaxTimeDelaySeconds: Number("int"), // required
73+
* },
7174
* };
7275
* const command = new UpdateChannelCommand(input);
7376
* const response = await client.send(command);
@@ -105,6 +108,9 @@ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __Met
105108
* // "<keys>": "STRING_VALUE",
106109
* // },
107110
* // Tier: "STRING_VALUE",
111+
* // TimeShiftConfiguration: { // TimeShiftConfiguration
112+
* // MaxTimeDelaySeconds: Number("int"), // required
113+
* // },
108114
* // };
109115
*
110116
* ```

clients/client-mediatailor/src/models/models_0.ts

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,23 @@ export const Tier = {
15031503
*/
15041504
export type Tier = (typeof Tier)[keyof typeof Tier];
15051505

1506+
/**
1507+
* @public
1508+
* <p>
1509+
* The configuration for time-shifted viewing.
1510+
* </p>
1511+
*/
1512+
export interface TimeShiftConfiguration {
1513+
/**
1514+
* @public
1515+
* <p>
1516+
* The maximum time delay for time-shifted viewing. The minimum allowed maximum time delay is 0 seconds,
1517+
* and the maximum allowed maximum time delay is 21600 seconds (6 hours).
1518+
* </p>
1519+
*/
1520+
MaxTimeDelaySeconds: number | undefined;
1521+
}
1522+
15061523
/**
15071524
* @public
15081525
*/
@@ -1548,6 +1565,14 @@ export interface CreateChannelRequest {
15481565
* <p>The tier of the channel.</p>
15491566
*/
15501567
Tier?: Tier;
1568+
1569+
/**
1570+
* @public
1571+
* <p>
1572+
* The time-shifted viewing configuration you want to associate to the channel.
1573+
* </p>
1574+
*/
1575+
TimeShiftConfiguration?: TimeShiftConfiguration;
15511576
}
15521577

15531578
/**
@@ -1627,6 +1652,14 @@ export interface CreateChannelResponse {
16271652
* <p>The tier of the channel.</p>
16281653
*/
16291654
Tier?: string;
1655+
1656+
/**
1657+
* @public
1658+
* <p>
1659+
* The time-shifted viewing configuration assigned to the channel.
1660+
* </p>
1661+
*/
1662+
TimeShiftConfiguration?: TimeShiftConfiguration;
16301663
}
16311664

16321665
/**
@@ -1725,6 +1758,14 @@ export interface DescribeChannelResponse {
17251758
* <p>The log configuration for the channel.</p>
17261759
*/
17271760
LogConfiguration: LogConfigurationForChannel | undefined;
1761+
1762+
/**
1763+
* @public
1764+
* <p>
1765+
* The time-shifted viewing configuration for the channel.
1766+
* </p>
1767+
*/
1768+
TimeShiftConfiguration?: TimeShiftConfiguration;
17281769
}
17291770

17301771
/**
@@ -2317,6 +2358,14 @@ export interface UpdateChannelRequest {
23172358
* <p>The channel's output properties.</p>
23182359
*/
23192360
Outputs: RequestOutputItem[] | undefined;
2361+
2362+
/**
2363+
* @public
2364+
* <p>
2365+
* The time-shifted viewing configuration you want to associate to the channel.
2366+
* </p>
2367+
*/
2368+
TimeShiftConfiguration?: TimeShiftConfiguration;
23202369
}
23212370

23222371
/**
@@ -2388,6 +2437,14 @@ export interface UpdateChannelResponse {
23882437
* <p>The tier associated with this Channel.</p>
23892438
*/
23902439
Tier?: string;
2440+
2441+
/**
2442+
* @public
2443+
* <p>
2444+
* The time-shifted viewing configuration for the channel.
2445+
* </p>
2446+
*/
2447+
TimeShiftConfiguration?: TimeShiftConfiguration;
23912448
}
23922449

23932450
/**

clients/client-mediatailor/src/protocols/Aws_restJson1.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ import {
158158
SlateSource,
159159
SourceLocation,
160160
SpliceInsertMessage,
161+
TimeShiftConfiguration,
161162
TimeSignalMessage,
162163
Transition,
163164
UpdateProgramScheduleConfiguration,
@@ -232,6 +233,7 @@ export const se_CreateChannelCommand = async (
232233
PlaybackMode: [],
233234
tags: [, (_) => _json(_), `Tags`],
234235
Tier: [],
236+
TimeShiftConfiguration: (_) => _json(_),
235237
})
236238
);
237239
b.m("POST").h(headers).b(body);
@@ -965,6 +967,7 @@ export const se_UpdateChannelCommand = async (
965967
take(input, {
966968
FillerSlate: (_) => _json(_),
967969
Outputs: (_) => _json(_),
970+
TimeShiftConfiguration: (_) => _json(_),
968971
})
969972
);
970973
b.m("PUT").h(headers).b(body);
@@ -1179,6 +1182,7 @@ export const de_CreateChannelCommand = async (
11791182
PlaybackMode: __expectString,
11801183
Tags: [, _json, `tags`],
11811184
Tier: __expectString,
1185+
TimeShiftConfiguration: _json,
11821186
});
11831187
Object.assign(contents, doc);
11841188
return contents;
@@ -1766,6 +1770,7 @@ export const de_DescribeChannelCommand = async (
17661770
PlaybackMode: __expectString,
17671771
Tags: [, _json, `tags`],
17681772
Tier: __expectString,
1773+
TimeShiftConfiguration: _json,
17691774
});
17701775
Object.assign(contents, doc);
17711776
return contents;
@@ -2796,6 +2801,7 @@ export const de_UpdateChannelCommand = async (
27962801
PlaybackMode: __expectString,
27972802
Tags: [, _json, `tags`],
27982803
Tier: __expectString,
2804+
TimeShiftConfiguration: _json,
27992805
});
28002806
Object.assign(contents, doc);
28012807
return contents;
@@ -3125,6 +3131,8 @@ const se_PrefetchRetrieval = (input: PrefetchRetrieval, context: __SerdeContext)
31253131

31263132
// se_SpliceInsertMessage omitted.
31273133

3134+
// se_TimeShiftConfiguration omitted.
3135+
31283136
// se_TimeSignalMessage omitted.
31293137

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

34803488
// de_SpliceInsertMessage omitted.
34813489

3490+
// de_TimeShiftConfiguration omitted.
3491+
34823492
// de_TimeSignalMessage omitted.
34833493

34843494
/**

0 commit comments

Comments
 (0)