# TrafficConfigProperty

The traffic configuration of your continuous deployment.

- 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_cloudfront as cloudfront } from 'aws-cdk-lib';
const trafficConfigProperty: cloudfront.CfnContinuousDeploymentPolicy.TrafficConfigProperty = {
  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,
    },
  },
};
```

## Properties

- `singleHeaderConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnContinuousDeploymentPolicy.SingleHeaderConfigProperty.html) — Determines which HTTP requests are sent to the staging distribution.

- `singleWeightConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnContinuousDeploymentPolicy.SingleWeightConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnContinuousDeploymentPolicy.SingleWeightConfigProperty.html) — Contains the percentage of traffic to send to the staging distribution.

- `type`: string (required) — The type of traffic configuration.
