Skip to content

Commit

Permalink
feat(client-mediapackage): This release adds Ads AdTriggers and AdsOn…
Browse files Browse the repository at this point in the history
…DeliveryRestrictions to describe calls for CMAF endpoints on MediaPackage.
  • Loading branch information
awstools committed Aug 26, 2022
1 parent 9f31345 commit c05884e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 6 deletions.
31 changes: 25 additions & 6 deletions clients/client-mediapackage/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,13 @@ export enum AdMarkers {
SCTE35_ENHANCED = "SCTE35_ENHANCED",
}

export enum AdsOnDeliveryRestrictions {
BOTH = "BOTH",
NONE = "NONE",
RESTRICTED = "RESTRICTED",
UNRESTRICTED = "UNRESTRICTED",
}

export enum PlaylistType {
EVENT = "EVENT",
NONE = "NONE",
Expand Down Expand Up @@ -267,13 +274,25 @@ export interface HlsManifest {
* The URL of the packaged OriginEndpoint for consumption.
*/
Url?: string;
}

export enum AdsOnDeliveryRestrictions {
BOTH = "BOTH",
NONE = "NONE",
RESTRICTED = "RESTRICTED",
UNRESTRICTED = "UNRESTRICTED",
/**
* A list of SCTE-35 message types that are treated as ad markers in the output. If empty, no
* ad markers are output. Specify multiple items to create ad markers for all of the included
* message types.
*/
AdTriggers?: (__AdTriggersElement | string)[];

/**
* This setting allows the delivery restriction flags on SCTE-35 segmentation descriptors to
* determine whether a message signals an ad. Choosing "NONE" means no SCTE-35 messages become
* ads. Choosing "RESTRICTED" means SCTE-35 messages of the types specified in AdTriggers that
* contain delivery restrictions will be treated as ads. Choosing "UNRESTRICTED" means SCTE-35
* messages of the types specified in AdTriggers that do not contain delivery restrictions will
* be treated as ads. Choosing "BOTH" means all SCTE-35 messages of the types specified in
* AdTriggers will be treated as ads. Note that Splice Insert messages do not have these flags
* and are always treated as ads if specified in AdTriggers.
*/
AdsOnDeliveryRestrictions?: AdsOnDeliveryRestrictions | string;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions clients/client-mediapackage/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2488,6 +2488,8 @@ const deserializeAws_restJson1HlsIngest = (output: any, context: __SerdeContext)
const deserializeAws_restJson1HlsManifest = (output: any, context: __SerdeContext): HlsManifest => {
return {
AdMarkers: __expectString(output.adMarkers),
AdTriggers: output.adTriggers != null ? deserializeAws_restJson1AdTriggers(output.adTriggers, context) : undefined,
AdsOnDeliveryRestrictions: __expectString(output.adsOnDeliveryRestrictions),
Id: __expectString(output.id),
IncludeIframeOnlyStream: __expectBoolean(output.includeIframeOnlyStream),
ManifestName: __expectString(output.manifestName),
Expand Down
12 changes: 12 additions & 0 deletions codegen/sdk-codegen/aws-models/mediapackage.json
Original file line number Diff line number Diff line change
Expand Up @@ -1786,6 +1786,18 @@
"smithy.api#documentation": "The URL of the packaged OriginEndpoint for consumption.",
"smithy.api#jsonName": "url"
}
},
"AdTriggers": {
"target": "com.amazonaws.mediapackage#AdTriggers",
"traits": {
"smithy.api#jsonName": "adTriggers"
}
},
"AdsOnDeliveryRestrictions": {
"target": "com.amazonaws.mediapackage#AdsOnDeliveryRestrictions",
"traits": {
"smithy.api#jsonName": "adsOnDeliveryRestrictions"
}
}
},
"traits": {
Expand Down

0 comments on commit c05884e

Please sign in to comment.