Skip to content

Commit c05884e

Browse files
author
awstools
committed
feat(client-mediapackage): This release adds Ads AdTriggers and AdsOnDeliveryRestrictions to describe calls for CMAF endpoints on MediaPackage.
1 parent 9f31345 commit c05884e

File tree

3 files changed

+39
-6
lines changed

3 files changed

+39
-6
lines changed

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

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,13 @@ export enum AdMarkers {
200200
SCTE35_ENHANCED = "SCTE35_ENHANCED",
201201
}
202202

203+
export enum AdsOnDeliveryRestrictions {
204+
BOTH = "BOTH",
205+
NONE = "NONE",
206+
RESTRICTED = "RESTRICTED",
207+
UNRESTRICTED = "UNRESTRICTED",
208+
}
209+
203210
export enum PlaylistType {
204211
EVENT = "EVENT",
205212
NONE = "NONE",
@@ -267,13 +274,25 @@ export interface HlsManifest {
267274
* The URL of the packaged OriginEndpoint for consumption.
268275
*/
269276
Url?: string;
270-
}
271277

272-
export enum AdsOnDeliveryRestrictions {
273-
BOTH = "BOTH",
274-
NONE = "NONE",
275-
RESTRICTED = "RESTRICTED",
276-
UNRESTRICTED = "UNRESTRICTED",
278+
/**
279+
* A list of SCTE-35 message types that are treated as ad markers in the output. If empty, no
280+
* ad markers are output. Specify multiple items to create ad markers for all of the included
281+
* message types.
282+
*/
283+
AdTriggers?: (__AdTriggersElement | string)[];
284+
285+
/**
286+
* This setting allows the delivery restriction flags on SCTE-35 segmentation descriptors to
287+
* determine whether a message signals an ad. Choosing "NONE" means no SCTE-35 messages become
288+
* ads. Choosing "RESTRICTED" means SCTE-35 messages of the types specified in AdTriggers that
289+
* contain delivery restrictions will be treated as ads. Choosing "UNRESTRICTED" means SCTE-35
290+
* messages of the types specified in AdTriggers that do not contain delivery restrictions will
291+
* be treated as ads. Choosing "BOTH" means all SCTE-35 messages of the types specified in
292+
* AdTriggers will be treated as ads. Note that Splice Insert messages do not have these flags
293+
* and are always treated as ads if specified in AdTriggers.
294+
*/
295+
AdsOnDeliveryRestrictions?: AdsOnDeliveryRestrictions | string;
277296
}
278297

279298
/**

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2488,6 +2488,8 @@ const deserializeAws_restJson1HlsIngest = (output: any, context: __SerdeContext)
24882488
const deserializeAws_restJson1HlsManifest = (output: any, context: __SerdeContext): HlsManifest => {
24892489
return {
24902490
AdMarkers: __expectString(output.adMarkers),
2491+
AdTriggers: output.adTriggers != null ? deserializeAws_restJson1AdTriggers(output.adTriggers, context) : undefined,
2492+
AdsOnDeliveryRestrictions: __expectString(output.adsOnDeliveryRestrictions),
24912493
Id: __expectString(output.id),
24922494
IncludeIframeOnlyStream: __expectBoolean(output.includeIframeOnlyStream),
24932495
ManifestName: __expectString(output.manifestName),

codegen/sdk-codegen/aws-models/mediapackage.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,18 @@
17861786
"smithy.api#documentation": "The URL of the packaged OriginEndpoint for consumption.",
17871787
"smithy.api#jsonName": "url"
17881788
}
1789+
},
1790+
"AdTriggers": {
1791+
"target": "com.amazonaws.mediapackage#AdTriggers",
1792+
"traits": {
1793+
"smithy.api#jsonName": "adTriggers"
1794+
}
1795+
},
1796+
"AdsOnDeliveryRestrictions": {
1797+
"target": "com.amazonaws.mediapackage#AdsOnDeliveryRestrictions",
1798+
"traits": {
1799+
"smithy.api#jsonName": "adsOnDeliveryRestrictions"
1800+
}
17891801
}
17901802
},
17911803
"traits": {

0 commit comments

Comments
 (0)