Skip to content

Commit 761dfd0

Browse files
author
awstools
committed
feat(client-mediapackage): Added support for AES_CTR encryption to CMAF origin endpoints
1 parent bfcf51d commit 761dfd0

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,11 @@ export interface Authorization {
387387
SecretsRoleArn: string | undefined;
388388
}
389389

390+
export enum CmafEncryptionMethod {
391+
AES_CTR = "AES_CTR",
392+
SAMPLE_AES = "SAMPLE_AES",
393+
}
394+
390395
export enum PresetSpeke20Audio {
391396
PRESET_AUDIO_1 = "PRESET-AUDIO-1",
392397
PRESET_AUDIO_2 = "PRESET-AUDIO-2",
@@ -480,6 +485,11 @@ export interface CmafEncryption {
480485
*/
481486
ConstantInitializationVector?: string;
482487

488+
/**
489+
* The encryption method to use.
490+
*/
491+
EncryptionMethod?: CmafEncryptionMethod | string;
492+
483493
/**
484494
* Time (in seconds) between each encryption key rotation.
485495
*/

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,6 +2031,7 @@ const serializeAws_restJson1CmafEncryption = (input: CmafEncryption, context: __
20312031
...(input.ConstantInitializationVector != null && {
20322032
constantInitializationVector: input.ConstantInitializationVector,
20332033
}),
2034+
...(input.EncryptionMethod != null && { encryptionMethod: input.EncryptionMethod }),
20342035
...(input.KeyRotationIntervalSeconds != null && { keyRotationIntervalSeconds: input.KeyRotationIntervalSeconds }),
20352036
...(input.SpekeKeyProvider != null && {
20362037
spekeKeyProvider: serializeAws_restJson1SpekeKeyProvider(input.SpekeKeyProvider, context),
@@ -2369,6 +2370,7 @@ const deserializeAws_restJson1Channel = (output: any, context: __SerdeContext):
23692370
const deserializeAws_restJson1CmafEncryption = (output: any, context: __SerdeContext): CmafEncryption => {
23702371
return {
23712372
ConstantInitializationVector: __expectString(output.constantInitializationVector),
2373+
EncryptionMethod: __expectString(output.encryptionMethod),
23722374
KeyRotationIntervalSeconds: __expectInt32(output.keyRotationIntervalSeconds),
23732375
SpekeKeyProvider:
23742376
output.spekeKeyProvider != null

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@
172172
"smithy.api#jsonName": "constantInitializationVector"
173173
}
174174
},
175+
"EncryptionMethod": {
176+
"target": "com.amazonaws.mediapackage#CmafEncryptionMethod",
177+
"traits": {
178+
"smithy.api#jsonName": "encryptionMethod"
179+
}
180+
},
175181
"KeyRotationIntervalSeconds": {
176182
"target": "com.amazonaws.mediapackage#__integer",
177183
"traits": {
@@ -191,6 +197,22 @@
191197
"smithy.api#documentation": "A Common Media Application Format (CMAF) encryption configuration."
192198
}
193199
},
200+
"com.amazonaws.mediapackage#CmafEncryptionMethod": {
201+
"type": "string",
202+
"traits": {
203+
"smithy.api#documentation": "The encryption method to use.",
204+
"smithy.api#enum": [
205+
{
206+
"value": "SAMPLE_AES",
207+
"name": "SAMPLE_AES"
208+
},
209+
{
210+
"value": "AES_CTR",
211+
"name": "AES_CTR"
212+
}
213+
]
214+
}
215+
},
194216
"com.amazonaws.mediapackage#CmafPackage": {
195217
"type": "structure",
196218
"members": {

0 commit comments

Comments
 (0)