Skip to content
v2.278.0

CmafEncryptionProperty Struct ​

Holds encryption information so that access to the content can be controlled by a DRM solution.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediapackage as mediapackage } from 'aws-cdk-lib';
const cmafEncryptionProperty: mediapackage.CfnPackagingConfiguration.CmafEncryptionProperty = {
  spekeKeyProvider: {
    roleArn: 'roleArn',
    systemIds: ['systemIds'],
    url: 'url',

    // the properties below are optional
    encryptionContractConfiguration: {
      presetSpeke20Audio: 'presetSpeke20Audio',
      presetSpeke20Video: 'presetSpeke20Video',
    },
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediapackage as mediapackage

cmaf_encryption_property = mediapackage.CfnPackagingConfiguration.CmafEncryptionProperty(
    speke_key_provider=mediapackage.CfnPackagingConfiguration.SpekeKeyProviderProperty(
        role_arn="roleArn",
        system_ids=["systemIds"],
        url="url",

        # the properties below are optional
        encryption_contract_configuration=mediapackage.CfnPackagingConfiguration.EncryptionContractConfigurationProperty(
            preset_speke20_audio="presetSpeke20Audio",
            preset_speke20_video="presetSpeke20Video"
        )
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediapackage.*;

CmafEncryptionProperty cmafEncryptionProperty = CmafEncryptionProperty.builder()
        .spekeKeyProvider(SpekeKeyProviderProperty.builder()
                .roleArn("roleArn")
                .systemIds(List.of("systemIds"))
                .url("url")

                // the properties below are optional
                .encryptionContractConfiguration(EncryptionContractConfigurationProperty.builder()
                        .presetSpeke20Audio("presetSpeke20Audio")
                        .presetSpeke20Video("presetSpeke20Video")
                        .build())
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaPackage;

var cmafEncryptionProperty = new CmafEncryptionProperty {
    SpekeKeyProvider = new SpekeKeyProviderProperty {
        RoleArn = "roleArn",
        SystemIds = new [] { "systemIds" },
        Url = "url",

        // the properties below are optional
        EncryptionContractConfiguration = new EncryptionContractConfigurationProperty {
            PresetSpeke20Audio = "presetSpeke20Audio",
            PresetSpeke20Video = "presetSpeke20Video"
        }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cmafEncryptionProperty := &CmafEncryptionProperty{
	SpekeKeyProvider: &SpekeKeyProviderProperty{
		RoleArn: jsii.String("roleArn"),
		SystemIds: []*string{
			jsii.String("systemIds"),
		},
		Url: jsii.String("url"),

		// the properties below are optional
		EncryptionContractConfiguration: &EncryptionContractConfigurationProperty{
			PresetSpeke20Audio: jsii.String("presetSpeke20Audio"),
			PresetSpeke20Video: jsii.String("presetSpeke20Video"),
		},
	},
}

Properties ​

spekeKeyProviderIResolvable | CfnPackagingConfiguration.SpekeKeyProviderPropertyspeke_key_providertyping.Union[IResolvable, SpekeKeyProviderProperty]spekeKeyProviderIResolvableSpekeKeyProviderIResolvableSpekeKeyProviderinterface{} required #
Parameters for the SPEKE key provider.