Skip to content

Commit efe9775

Browse files
author
awstools
committed
feat(client-mediapackagev2): Added support for ClipStartTime on the FilterConfiguration object on OriginEndpoint manifest settings objects. Added support for EXT-X-START tags on produced HLS child playlists.
1 parent 9060d22 commit efe9775

File tree

6 files changed

+192
-6
lines changed

6 files changed

+192
-6
lines changed

clients/client-mediapackagev2/src/commands/CreateOriginEndpointCommand.ts

+22
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,18 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR
8282
* ScteHls: { // ScteHls
8383
* AdMarkerHls: "DATERANGE",
8484
* },
85+
* StartTag: { // StartTag
86+
* TimeOffset: Number("float"), // required
87+
* Precise: true || false,
88+
* },
8589
* ManifestWindowSeconds: Number("int"),
8690
* ProgramDateTimeIntervalSeconds: Number("int"),
8791
* FilterConfiguration: { // FilterConfiguration
8892
* ManifestFilter: "STRING_VALUE",
8993
* Start: new Date("TIMESTAMP"),
9094
* End: new Date("TIMESTAMP"),
9195
* TimeDelaySeconds: Number("int"),
96+
* ClipStartTime: new Date("TIMESTAMP"),
9297
* },
9398
* },
9499
* ],
@@ -99,13 +104,18 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR
99104
* ScteHls: {
100105
* AdMarkerHls: "DATERANGE",
101106
* },
107+
* StartTag: {
108+
* TimeOffset: Number("float"), // required
109+
* Precise: true || false,
110+
* },
102111
* ManifestWindowSeconds: Number("int"),
103112
* ProgramDateTimeIntervalSeconds: Number("int"),
104113
* FilterConfiguration: {
105114
* ManifestFilter: "STRING_VALUE",
106115
* Start: new Date("TIMESTAMP"),
107116
* End: new Date("TIMESTAMP"),
108117
* TimeDelaySeconds: Number("int"),
118+
* ClipStartTime: new Date("TIMESTAMP"),
109119
* },
110120
* },
111121
* ],
@@ -118,6 +128,7 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR
118128
* Start: new Date("TIMESTAMP"),
119129
* End: new Date("TIMESTAMP"),
120130
* TimeDelaySeconds: Number("int"),
131+
* ClipStartTime: new Date("TIMESTAMP"),
121132
* },
122133
* MinUpdatePeriodSeconds: Number("int"),
123134
* MinBufferTimeSeconds: Number("int"),
@@ -204,6 +215,11 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR
204215
* // Start: new Date("TIMESTAMP"),
205216
* // End: new Date("TIMESTAMP"),
206217
* // TimeDelaySeconds: Number("int"),
218+
* // ClipStartTime: new Date("TIMESTAMP"),
219+
* // },
220+
* // StartTag: { // StartTag
221+
* // TimeOffset: Number("float"), // required
222+
* // Precise: true || false,
207223
* // },
208224
* // },
209225
* // ],
@@ -222,6 +238,11 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR
222238
* // Start: new Date("TIMESTAMP"),
223239
* // End: new Date("TIMESTAMP"),
224240
* // TimeDelaySeconds: Number("int"),
241+
* // ClipStartTime: new Date("TIMESTAMP"),
242+
* // },
243+
* // StartTag: {
244+
* // TimeOffset: Number("float"), // required
245+
* // Precise: true || false,
225246
* // },
226247
* // },
227248
* // ],
@@ -235,6 +256,7 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR
235256
* // Start: new Date("TIMESTAMP"),
236257
* // End: new Date("TIMESTAMP"),
237258
* // TimeDelaySeconds: Number("int"),
259+
* // ClipStartTime: new Date("TIMESTAMP"),
238260
* // },
239261
* // MinUpdatePeriodSeconds: Number("int"),
240262
* // MinBufferTimeSeconds: Number("int"),

clients/client-mediapackagev2/src/commands/GetOriginEndpointCommand.ts

+11
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ export interface GetOriginEndpointCommandOutput extends GetOriginEndpointRespons
9999
* // Start: new Date("TIMESTAMP"),
100100
* // End: new Date("TIMESTAMP"),
101101
* // TimeDelaySeconds: Number("int"),
102+
* // ClipStartTime: new Date("TIMESTAMP"),
103+
* // },
104+
* // StartTag: { // StartTag
105+
* // TimeOffset: Number("float"), // required
106+
* // Precise: true || false,
102107
* // },
103108
* // },
104109
* // ],
@@ -117,6 +122,11 @@ export interface GetOriginEndpointCommandOutput extends GetOriginEndpointRespons
117122
* // Start: new Date("TIMESTAMP"),
118123
* // End: new Date("TIMESTAMP"),
119124
* // TimeDelaySeconds: Number("int"),
125+
* // ClipStartTime: new Date("TIMESTAMP"),
126+
* // },
127+
* // StartTag: {
128+
* // TimeOffset: Number("float"), // required
129+
* // Precise: true || false,
120130
* // },
121131
* // },
122132
* // ],
@@ -130,6 +140,7 @@ export interface GetOriginEndpointCommandOutput extends GetOriginEndpointRespons
130140
* // Start: new Date("TIMESTAMP"),
131141
* // End: new Date("TIMESTAMP"),
132142
* // TimeDelaySeconds: Number("int"),
143+
* // ClipStartTime: new Date("TIMESTAMP"),
133144
* // },
134145
* // MinUpdatePeriodSeconds: Number("int"),
135146
* // MinBufferTimeSeconds: Number("int"),

clients/client-mediapackagev2/src/commands/UpdateOriginEndpointCommand.ts

+22
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,18 @@ export interface UpdateOriginEndpointCommandOutput extends UpdateOriginEndpointR
8282
* ScteHls: { // ScteHls
8383
* AdMarkerHls: "DATERANGE",
8484
* },
85+
* StartTag: { // StartTag
86+
* TimeOffset: Number("float"), // required
87+
* Precise: true || false,
88+
* },
8589
* ManifestWindowSeconds: Number("int"),
8690
* ProgramDateTimeIntervalSeconds: Number("int"),
8791
* FilterConfiguration: { // FilterConfiguration
8892
* ManifestFilter: "STRING_VALUE",
8993
* Start: new Date("TIMESTAMP"),
9094
* End: new Date("TIMESTAMP"),
9195
* TimeDelaySeconds: Number("int"),
96+
* ClipStartTime: new Date("TIMESTAMP"),
9297
* },
9398
* },
9499
* ],
@@ -99,13 +104,18 @@ export interface UpdateOriginEndpointCommandOutput extends UpdateOriginEndpointR
99104
* ScteHls: {
100105
* AdMarkerHls: "DATERANGE",
101106
* },
107+
* StartTag: {
108+
* TimeOffset: Number("float"), // required
109+
* Precise: true || false,
110+
* },
102111
* ManifestWindowSeconds: Number("int"),
103112
* ProgramDateTimeIntervalSeconds: Number("int"),
104113
* FilterConfiguration: {
105114
* ManifestFilter: "STRING_VALUE",
106115
* Start: new Date("TIMESTAMP"),
107116
* End: new Date("TIMESTAMP"),
108117
* TimeDelaySeconds: Number("int"),
118+
* ClipStartTime: new Date("TIMESTAMP"),
109119
* },
110120
* },
111121
* ],
@@ -118,6 +128,7 @@ export interface UpdateOriginEndpointCommandOutput extends UpdateOriginEndpointR
118128
* Start: new Date("TIMESTAMP"),
119129
* End: new Date("TIMESTAMP"),
120130
* TimeDelaySeconds: Number("int"),
131+
* ClipStartTime: new Date("TIMESTAMP"),
121132
* },
122133
* MinUpdatePeriodSeconds: Number("int"),
123134
* MinBufferTimeSeconds: Number("int"),
@@ -202,6 +213,11 @@ export interface UpdateOriginEndpointCommandOutput extends UpdateOriginEndpointR
202213
* // Start: new Date("TIMESTAMP"),
203214
* // End: new Date("TIMESTAMP"),
204215
* // TimeDelaySeconds: Number("int"),
216+
* // ClipStartTime: new Date("TIMESTAMP"),
217+
* // },
218+
* // StartTag: { // StartTag
219+
* // TimeOffset: Number("float"), // required
220+
* // Precise: true || false,
205221
* // },
206222
* // },
207223
* // ],
@@ -220,6 +236,11 @@ export interface UpdateOriginEndpointCommandOutput extends UpdateOriginEndpointR
220236
* // Start: new Date("TIMESTAMP"),
221237
* // End: new Date("TIMESTAMP"),
222238
* // TimeDelaySeconds: Number("int"),
239+
* // ClipStartTime: new Date("TIMESTAMP"),
240+
* // },
241+
* // StartTag: {
242+
* // TimeOffset: Number("float"), // required
243+
* // Precise: true || false,
223244
* // },
224245
* // },
225246
* // ],
@@ -242,6 +263,7 @@ export interface UpdateOriginEndpointCommandOutput extends UpdateOriginEndpointR
242263
* // Start: new Date("TIMESTAMP"),
243264
* // End: new Date("TIMESTAMP"),
244265
* // TimeDelaySeconds: Number("int"),
266+
* // ClipStartTime: new Date("TIMESTAMP"),
245267
* // },
246268
* // MinUpdatePeriodSeconds: Number("int"),
247269
* // MinBufferTimeSeconds: Number("int"),

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

+50
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ export class ThrottlingException extends __BaseException {
204204
*/
205205
export const ValidationExceptionType = {
206206
CENC_IV_INCOMPATIBLE: "CENC_IV_INCOMPATIBLE",
207+
CLIP_START_TIME_WITH_START_OR_END: "CLIP_START_TIME_WITH_START_OR_END",
207208
CONTAINER_TYPE_IMMUTABLE: "CONTAINER_TYPE_IMMUTABLE",
208209
DIRECT_MODE_WITH_TIMING_SOURCE: "DIRECT_MODE_WITH_TIMING_SOURCE",
209210
DRM_SIGNALING_MISMATCH_SEGMENT_ENCRYPTION_STATUS: "DRM_SIGNALING_MISMATCH_SEGMENT_ENCRYPTION_STATUS",
@@ -239,6 +240,7 @@ export const ValidationExceptionType = {
239240
ROLE_ARN_LENGTH_OUT_OF_RANGE: "ROLE_ARN_LENGTH_OUT_OF_RANGE",
240241
ROLE_ARN_NOT_ASSUMABLE: "ROLE_ARN_NOT_ASSUMABLE",
241242
SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY: "SOURCE_DISRUPTIONS_ENABLED_INCORRECTLY",
243+
START_TAG_TIME_OFFSET_INVALID: "START_TAG_TIME_OFFSET_INVALID",
242244
TIMING_SOURCE_MISSING: "TIMING_SOURCE_MISSING",
243245
TS_CONTAINER_TYPE_WITH_DASH_MANIFEST: "TS_CONTAINER_TYPE_WITH_DASH_MANIFEST",
244246
UPDATE_PERIOD_SMALLER_THAN_SEGMENT_DURATION: "UPDATE_PERIOD_SMALLER_THAN_SEGMENT_DURATION",
@@ -855,6 +857,12 @@ export interface FilterConfiguration {
855857
* @public
856858
*/
857859
TimeDelaySeconds?: number;
860+
861+
/**
862+
* <p>Optionally specify the clip start time for all of your manifest egress requests. When you include clip start time, note that you cannot use clip start time query parameters for this manifest's endpoint URL.</p>
863+
* @public
864+
*/
865+
ClipStartTime?: Date;
858866
}
859867

860868
/**
@@ -1088,6 +1096,24 @@ export interface ScteHls {
10881096
AdMarkerHls?: AdMarkerHls;
10891097
}
10901098

1099+
/**
1100+
* <p>To insert an EXT-X-START tag in your HLS playlist, specify a StartTag configuration object with a valid TimeOffset. When you do, you can also optionally specify whether to include a PRECISE value in the EXT-X-START tag.</p>
1101+
* @public
1102+
*/
1103+
export interface StartTag {
1104+
/**
1105+
* <p>Specify the value for TIME-OFFSET within your EXT-X-START tag. Enter a signed floating point value which, if positive, must be less than the configured manifest duration minus three times the configured segment target duration. If negative, the absolute value must be larger than three times the configured segment target duration, and the absolute value must be smaller than the configured manifest duration.</p>
1106+
* @public
1107+
*/
1108+
TimeOffset: number | undefined;
1109+
1110+
/**
1111+
* <p>Specify the value for PRECISE within your EXT-X-START tag. Leave blank, or choose false, to use the default value NO. Choose yes to use the value YES.</p>
1112+
* @public
1113+
*/
1114+
Precise?: boolean;
1115+
}
1116+
10911117
/**
10921118
* <p>Create an HTTP live streaming (HLS) manifest configuration.</p>
10931119
* @public
@@ -1111,6 +1137,12 @@ export interface CreateHlsManifestConfiguration {
11111137
*/
11121138
ScteHls?: ScteHls;
11131139

1140+
/**
1141+
* <p>To insert an EXT-X-START tag in your HLS playlist, specify a StartTag configuration object with a valid TimeOffset. When you do, you can also optionally specify whether to include a PRECISE value in the EXT-X-START tag.</p>
1142+
* @public
1143+
*/
1144+
StartTag?: StartTag;
1145+
11141146
/**
11151147
* <p>The total duration (in seconds) of the manifest's content.</p>
11161148
* @public
@@ -1157,6 +1189,12 @@ export interface CreateLowLatencyHlsManifestConfiguration {
11571189
*/
11581190
ScteHls?: ScteHls;
11591191

1192+
/**
1193+
* <p>To insert an EXT-X-START tag in your HLS playlist, specify a StartTag configuration object with a valid TimeOffset. When you do, you can also optionally specify whether to include a PRECISE value in the EXT-X-START tag.</p>
1194+
* @public
1195+
*/
1196+
StartTag?: StartTag;
1197+
11601198
/**
11611199
* <p>The total duration (in seconds) of the manifest's content.</p>
11621200
* @public
@@ -1756,6 +1794,12 @@ export interface GetHlsManifestConfiguration {
17561794
* @public
17571795
*/
17581796
FilterConfiguration?: FilterConfiguration;
1797+
1798+
/**
1799+
* <p>To insert an EXT-X-START tag in your HLS playlist, specify a StartTag configuration object with a valid TimeOffset. When you do, you can also optionally specify whether to include a PRECISE value in the EXT-X-START tag.</p>
1800+
* @public
1801+
*/
1802+
StartTag?: StartTag;
17591803
}
17601804

17611805
/**
@@ -1808,6 +1852,12 @@ export interface GetLowLatencyHlsManifestConfiguration {
18081852
* @public
18091853
*/
18101854
FilterConfiguration?: FilterConfiguration;
1855+
1856+
/**
1857+
* <p>To insert an EXT-X-START tag in your HLS playlist, specify a StartTag configuration object with a valid TimeOffset. When you do, you can also optionally specify whether to include a PRECISE value in the EXT-X-START tag.</p>
1858+
* @public
1859+
*/
1860+
StartTag?: StartTag;
18111861
}
18121862

18131863
/**

0 commit comments

Comments
 (0)