# ContinuousDeploymentPolicyConfigProperty

Contains the configuration for a continuous deployment policy.

- Source: Generated code
- Type last changed: v2.101.0 · 13 Oct 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const continuousDeploymentPolicyConfigProperty: cloudfront.CfnContinuousDeploymentPolicy.ContinuousDeploymentPolicyConfigProperty = {
  enabled: false,
  stagingDistributionDnsNames: ['stagingDistributionDnsNames'],

  // the properties below are optional
  singleHeaderPolicyConfig: {
    header: 'header',
    value: 'value',
  },
  singleWeightPolicyConfig: {
    weight: 123,

    // the properties below are optional
    sessionStickinessConfig: {
      idleTtl: 123,
      maximumTtl: 123,
    },
  },
  trafficConfig: {
    type: 'type',

    // the properties below are optional
    singleHeaderConfig: {
      header: 'header',
      value: 'value',
    },
    singleWeightConfig: {
      weight: 123,

      // the properties below are optional
      sessionStickinessConfig: {
        idleTtl: 123,
        maximumTtl: 123,
      },
    },
  },
  type: 'type',
};
```

## Properties

- `enabled`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — A Boolean that indicates whether this continuous deployment policy is enabled (in effect).

  When this value is `true` , this policy is enabled and in effect. When this value is `false` , this policy is not enabled and has no effect.

- `singleHeaderPolicyConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnContinuousDeploymentPolicy.SingleHeaderPolicyConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderPolicyConfigProperty.html) — This configuration determines which HTTP requests are sent to the staging distribution.

  If the HTTP request contains a header and value that matches what you specify here, the request is sent to the staging distribution. Otherwise the request is sent to the primary distribution.

- `singleWeightPolicyConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnContinuousDeploymentPolicy.SingleWeightPolicyConfigProperty.html) — This configuration determines the percentage of HTTP requests that are sent to the staging distribution.

- `stagingDistributionDnsNames`: string[] (required) — The CloudFront domain name of the staging distribution.

  For example: `d111111abcdef8.cloudfront.net` .

- `trafficConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnContinuousDeploymentPolicy.TrafficConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnContinuousDeploymentPolicy.TrafficConfigProperty.html) — Contains the parameters for routing production traffic from your primary to staging distributions.

- `type`: string — The type of traffic configuration.
