From a72102a04f5949b492419eae909165cf9265e65f Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 16 Nov 2023 19:22:02 +0000 Subject: [PATCH] feat(client-mediapackage): DRM_TOP_LEVEL_COMPACT allows placing content protection elements at the MPD level and referenced at the AdaptationSet level --- .../src/commands/CreateOriginEndpointCommand.ts | 4 ++-- .../src/commands/DescribeOriginEndpointCommand.ts | 2 +- .../src/commands/ListOriginEndpointsCommand.ts | 2 +- .../src/commands/UpdateOriginEndpointCommand.ts | 4 ++-- clients/client-mediapackage/src/models/models_0.ts | 3 ++- codegen/sdk-codegen/aws-models/mediapackage.json | 8 +++++++- 6 files changed, 15 insertions(+), 8 deletions(-) diff --git a/clients/client-mediapackage/src/commands/CreateOriginEndpointCommand.ts b/clients/client-mediapackage/src/commands/CreateOriginEndpointCommand.ts index 977ad2b5e8d24..dcf238d5254d6 100644 --- a/clients/client-mediapackage/src/commands/CreateOriginEndpointCommand.ts +++ b/clients/client-mediapackage/src/commands/CreateOriginEndpointCommand.ts @@ -114,7 +114,7 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR * }, * }, * IncludeIframeOnlyStream: true || false, - * ManifestLayout: "FULL" || "COMPACT", + * ManifestLayout: "FULL" || "COMPACT" || "DRM_TOP_LEVEL_COMPACT", * ManifestWindowSeconds: Number("int"), * MinBufferTimeSeconds: Number("int"), * MinUpdatePeriodSeconds: Number("int"), @@ -283,7 +283,7 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR * // }, * // }, * // IncludeIframeOnlyStream: true || false, - * // ManifestLayout: "FULL" || "COMPACT", + * // ManifestLayout: "FULL" || "COMPACT" || "DRM_TOP_LEVEL_COMPACT", * // ManifestWindowSeconds: Number("int"), * // MinBufferTimeSeconds: Number("int"), * // MinUpdatePeriodSeconds: Number("int"), diff --git a/clients/client-mediapackage/src/commands/DescribeOriginEndpointCommand.ts b/clients/client-mediapackage/src/commands/DescribeOriginEndpointCommand.ts index f35cf5a1f54d1..ec5c8b17ddbba 100644 --- a/clients/client-mediapackage/src/commands/DescribeOriginEndpointCommand.ts +++ b/clients/client-mediapackage/src/commands/DescribeOriginEndpointCommand.ts @@ -122,7 +122,7 @@ export interface DescribeOriginEndpointCommandOutput extends DescribeOriginEndpo * // }, * // }, * // IncludeIframeOnlyStream: true || false, - * // ManifestLayout: "FULL" || "COMPACT", + * // ManifestLayout: "FULL" || "COMPACT" || "DRM_TOP_LEVEL_COMPACT", * // ManifestWindowSeconds: Number("int"), * // MinBufferTimeSeconds: Number("int"), * // MinUpdatePeriodSeconds: Number("int"), diff --git a/clients/client-mediapackage/src/commands/ListOriginEndpointsCommand.ts b/clients/client-mediapackage/src/commands/ListOriginEndpointsCommand.ts index 21792a35a6ac4..efc7a734d1902 100644 --- a/clients/client-mediapackage/src/commands/ListOriginEndpointsCommand.ts +++ b/clients/client-mediapackage/src/commands/ListOriginEndpointsCommand.ts @@ -127,7 +127,7 @@ export interface ListOriginEndpointsCommandOutput extends ListOriginEndpointsRes * // }, * // }, * // IncludeIframeOnlyStream: true || false, - * // ManifestLayout: "FULL" || "COMPACT", + * // ManifestLayout: "FULL" || "COMPACT" || "DRM_TOP_LEVEL_COMPACT", * // ManifestWindowSeconds: Number("int"), * // MinBufferTimeSeconds: Number("int"), * // MinUpdatePeriodSeconds: Number("int"), diff --git a/clients/client-mediapackage/src/commands/UpdateOriginEndpointCommand.ts b/clients/client-mediapackage/src/commands/UpdateOriginEndpointCommand.ts index 06cca898d5a36..04af78dc3b826 100644 --- a/clients/client-mediapackage/src/commands/UpdateOriginEndpointCommand.ts +++ b/clients/client-mediapackage/src/commands/UpdateOriginEndpointCommand.ts @@ -113,7 +113,7 @@ export interface UpdateOriginEndpointCommandOutput extends UpdateOriginEndpointR * }, * }, * IncludeIframeOnlyStream: true || false, - * ManifestLayout: "FULL" || "COMPACT", + * ManifestLayout: "FULL" || "COMPACT" || "DRM_TOP_LEVEL_COMPACT", * ManifestWindowSeconds: Number("int"), * MinBufferTimeSeconds: Number("int"), * MinUpdatePeriodSeconds: Number("int"), @@ -279,7 +279,7 @@ export interface UpdateOriginEndpointCommandOutput extends UpdateOriginEndpointR * // }, * // }, * // IncludeIframeOnlyStream: true || false, - * // ManifestLayout: "FULL" || "COMPACT", + * // ManifestLayout: "FULL" || "COMPACT" || "DRM_TOP_LEVEL_COMPACT", * // ManifestWindowSeconds: Number("int"), * // MinBufferTimeSeconds: Number("int"), * // MinUpdatePeriodSeconds: Number("int"), diff --git a/clients/client-mediapackage/src/models/models_0.ts b/clients/client-mediapackage/src/models/models_0.ts index 00ca245535d90..a4b75a69ea11f 100644 --- a/clients/client-mediapackage/src/models/models_0.ts +++ b/clients/client-mediapackage/src/models/models_0.ts @@ -760,6 +760,7 @@ export interface DashEncryption { */ export const ManifestLayout = { COMPACT: "COMPACT", + DRM_TOP_LEVEL_COMPACT: "DRM_TOP_LEVEL_COMPACT", FULL: "FULL", } as const; @@ -855,7 +856,7 @@ export interface DashPackage { /** * @public - * Determines the position of some tags in the Media Presentation Description (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection are included in each Representation. When set to COMPACT, duplicate elements are combined and presented at the AdaptationSet level. + * Determines the position of some tags in the Media Presentation Description (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection are included in each Representation. When set to COMPACT, duplicate elements are combined and presented at the AdaptationSet level. When set to DRM_TOP_LEVEL_COMPACT, content protection elements are placed the MPD level and referenced at the AdaptationSet level. */ ManifestLayout?: ManifestLayout; diff --git a/codegen/sdk-codegen/aws-models/mediapackage.json b/codegen/sdk-codegen/aws-models/mediapackage.json index f2fea92d12d07..4ec6f3ff84cc4 100644 --- a/codegen/sdk-codegen/aws-models/mediapackage.json +++ b/codegen/sdk-codegen/aws-models/mediapackage.json @@ -1054,7 +1054,7 @@ "ManifestLayout": { "target": "com.amazonaws.mediapackage#ManifestLayout", "traits": { - "smithy.api#documentation": "Determines the position of some tags in the Media Presentation Description (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection are included in each Representation. When set to COMPACT, duplicate elements are combined and presented at the AdaptationSet level.", + "smithy.api#documentation": "Determines the position of some tags in the Media Presentation Description (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection are included in each Representation. When set to COMPACT, duplicate elements are combined and presented at the AdaptationSet level. When set to DRM_TOP_LEVEL_COMPACT, content protection elements are placed the MPD level and referenced at the AdaptationSet level.", "smithy.api#jsonName": "manifestLayout" } }, @@ -2517,6 +2517,12 @@ "traits": { "smithy.api#enumValue": "COMPACT" } + }, + "DRM_TOP_LEVEL_COMPACT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DRM_TOP_LEVEL_COMPACT" + } } } },