class CmafEncryption
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.Alpha.CmafEncryption |
Go | github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2#CmafEncryption |
Java | software.amazon.awscdk.services.mediapackagev2.alpha.CmafEncryption |
Python | aws_cdk.aws_mediapackagev2_alpha.CmafEncryption |
TypeScript (source) | @aws-cdk/aws-mediapackagev2-alpha ยป CmafEncryption |
Extends
Encryption
Encryption configuration for CMAF segments.
Use CmafEncryption.speke() to create an instance.
Example
declare const channel: Channel;
declare const spekeRole: iam.IRole;
declare const certificate: certificatemanager.ICertificate;
new OriginEndpoint(this, 'Endpoint', {
channel,
segment: Segment.cmaf({
encryption: CmafEncryption.speke({
method: CmafEncryptionMethod.CBCS,
drmSystems: [CmafDrmSystem.FAIRPLAY],
resourceId: 'my-content-id',
url: 'https://example.com/speke',
role: spekeRole,
certificate,
}),
}),
manifests: [Manifest.hls({ manifestName: 'index' })],
});
Methods
| Name | Description |
|---|---|
| static speke(props) | Create a SPEKE-based encryption configuration for CMAF segments. |
static speke(props)
public static speke(props: CmafSpekeEncryptionProps): CmafEncryption
Parameters
- props
CmafSpeke Encryption Props
Returns
Create a SPEKE-based encryption configuration for CMAF segments.

.NET
Go
Java
Python
TypeScript (