interface EncryptionProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.aws_mediapackagev2.CfnOriginEndpoint.EncryptionProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsmediapackagev2#CfnOriginEndpoint_EncryptionProperty |
Java | software.amazon.awscdk.services.mediapackagev2.CfnOriginEndpoint.EncryptionProperty |
Python | aws_cdk.aws_mediapackagev2.CfnOriginEndpoint.EncryptionProperty |
TypeScript | aws-cdk-lib » aws_mediapackagev2 » CfnOriginEndpoint » EncryptionProperty |
A collection of video encryption presets.
Value description:
PRESET-VIDEO-1
- Use one content key to encrypt all of the video tracks in your stream.PRESET-VIDEO-2
- Use one content key to encrypt all of the SD video tracks and one content key for all HD and higher resolutions video tracks.PRESET-VIDEO-3
- Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks and one content key for all UHD video tracks.PRESET-VIDEO-4
- Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.PRESET-VIDEO-5
- Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.PRESET-VIDEO-6
- Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.PRESET-VIDEO-7
- Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.PRESET-VIDEO-8
- Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.SHARED
- Use the same content key for all of the video and audio tracks in your stream.UNENCRYPTED
- Don't encrypt any of the video tracks in your stream.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediapackagev2 as mediapackagev2 } from 'aws-cdk-lib';
const encryptionProperty: mediapackagev2.CfnOriginEndpoint.EncryptionProperty = {
encryptionMethod: {
cmafEncryptionMethod: 'cmafEncryptionMethod',
tsEncryptionMethod: 'tsEncryptionMethod',
},
spekeKeyProvider: {
drmSystems: ['drmSystems'],
encryptionContractConfiguration: {
presetSpeke20Audio: 'presetSpeke20Audio',
presetSpeke20Video: 'presetSpeke20Video',
},
resourceId: 'resourceId',
roleArn: 'roleArn',
url: 'url',
},
// the properties below are optional
constantInitializationVector: 'constantInitializationVector',
keyRotationIntervalSeconds: 123,
};
Properties
Name | Type | Description |
---|---|---|
encryption | IResolvable | Encryption | The encryption method to use. |
speke | IResolvable | Speke | The SPEKE key provider to use for encryption. |
constant | string | A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting content. |
key | number | The interval, in seconds, to rotate encryption keys for the origin endpoint. |
encryptionMethod
Type:
IResolvable
|
Encryption
The encryption method to use.
spekeKeyProvider
Type:
IResolvable
|
Speke
The SPEKE key provider to use for encryption.
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).
keyRotationIntervalSeconds?
Type:
number
(optional)
The interval, in seconds, to rotate encryption keys for the origin endpoint.