# DashEncryptionProperty

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

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 dashEncryptionProperty: mediapackage.CfnOriginEndpoint.DashEncryptionProperty = {
  spekeKeyProvider: {
    resourceId: 'resourceId',
    roleArn: 'roleArn',
    systemIds: ['systemIds'],
    url: 'url',

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

  // the properties below are optional
  keyRotationIntervalSeconds: 123,
};
```

## Properties

- `keyRotationIntervalSeconds`: number — Number of seconds before AWS Elemental MediaPackage rotates to a new key.

  By default, rotation is set to 60 seconds. Set to `0` to disable key rotation.

- `spekeKeyProvider`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnOriginEndpoint.SpekeKeyProviderProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_mediapackage.CfnOriginEndpoint.SpekeKeyProviderProperty.html) (required) — Parameters for the SPEKE key provider.
