Skip to content
v2.274.0

HlsEncryptionProperty 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 hlsEncryptionProperty: mediapackage.CfnPackagingConfiguration.HlsEncryptionProperty = {
  spekeKeyProvider: {
    roleArn: 'roleArn',
    systemIds: ['systemIds'],
    url: 'url',

    // the properties below are optional
    encryptionContractConfiguration: {
      presetSpeke20Audio: 'presetSpeke20Audio',
      presetSpeke20Video: 'presetSpeke20Video',
    },
  },

  // the properties below are optional
  constantInitializationVector: 'constantInitializationVector',
  encryptionMethod: 'encryptionMethod',
};

Properties ​

constantInitializationVectoroptionalstringconstant_initialization_vectoroptionalstrconstantInitializationVectoroptionalStringConstantInitializationVectoroptionalstringConstantInitializationVectoroptional*string#
A 128-bit, 16-byte hex value represented by a 32-character string, used with the key for encrypting blocks.

If you don't specify a constant initialization vector (IV), AWS Elemental MediaPackage periodically rotates the IV.

encryptionMethodoptionalstringencryption_methodoptionalstrencryptionMethodoptionalStringEncryptionMethodoptionalstringEncryptionMethodoptional*string#
HLS encryption type.
spekeKeyProviderIResolvable | CfnPackagingConfiguration.SpekeKeyProviderPropertyspeke_key_providertyping.Union[IResolvable, SpekeKeyProviderProperty]spekeKeyProviderIResolvableSpekeKeyProviderIResolvableSpekeKeyProviderinterface{}required#
Parameters for the SPEKE key provider.