interface EncryptionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.MediaPackageV2.Mixins.CfnOriginEndpointPropsMixin.EncryptionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsmediapackagev2/mixins#CfnOriginEndpointPropsMixin_EncryptionProperty |
Java | software.amazon.awscdk.mixins.preview.services.mediapackagev2.mixins.CfnOriginEndpointPropsMixin.EncryptionProperty |
Python | aws_cdk.mixins_preview.aws_mediapackagev2.mixins.CfnOriginEndpointPropsMixin.EncryptionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_mediapackagev2 » mixins » CfnOriginEndpointPropsMixin » EncryptionProperty |
The parameters for encrypting content.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as mediapackagev2_mixins } from '@aws-cdk/mixins-preview/aws-mediapackagev2';
const encryptionProperty: mediapackagev2_mixins.CfnOriginEndpointPropsMixin.EncryptionProperty = {
cmafExcludeSegmentDrmMetadata: false,
constantInitializationVector: 'constantInitializationVector',
encryptionMethod: {
cmafEncryptionMethod: 'cmafEncryptionMethod',
ismEncryptionMethod: 'ismEncryptionMethod',
tsEncryptionMethod: 'tsEncryptionMethod',
},
keyRotationIntervalSeconds: 123,
spekeKeyProvider: {
drmSystems: ['drmSystems'],
encryptionContractConfiguration: {
presetSpeke20Audio: 'presetSpeke20Audio',
presetSpeke20Video: 'presetSpeke20Video',
},
resourceId: 'resourceId',
roleArn: 'roleArn',
url: 'url',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| cmaf | boolean | IResolvable | Excludes SEIG and SGPD boxes from segment metadata in CMAF containers. |
| constant | string | A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting content. |
| encryption | IResolvable | Encryption | The encryption method to use. |
| key | number | The interval, in seconds, to rotate encryption keys for the origin endpoint. |
| speke | IResolvable | Speke | The SPEKE key provider to use for encryption. |
cmafExcludeSegmentDrmMetadata?
Type:
boolean | IResolvable
(optional)
Excludes SEIG and SGPD boxes from segment metadata in CMAF containers.
When set to true , MediaPackage omits these DRM metadata boxes from CMAF segments, which can improve compatibility with certain devices and players that don't support these boxes.
Important considerations:
- This setting only affects CMAF container formats
- Key rotation can still be handled through media playlist signaling
- PSSH and TENC boxes remain unaffected
- Default behavior is preserved when this setting is disabled
Valid values: true | false
Default: false
constantInitializationVector?
Type:
string
(optional)
A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting content.
If you don't specify a value, then MediaPackage creates the constant initialization vector (IV).
encryptionMethod?
Type:
IResolvable | Encryption
(optional)
The encryption method to use.
keyRotationIntervalSeconds?
Type:
number
(optional)
The interval, in seconds, to rotate encryption keys for the origin endpoint.
spekeKeyProvider?
Type:
IResolvable | Speke
(optional)
The SPEKE key provider to use for encryption.

.NET
Go
Java
Python
TypeScript