# CanaryTrafficRoutingConfig

Represents the configuration specific to canary traffic shifting.

- Source: [`aws-codedeploy/lib/traffic-routing-config.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-codedeploy/lib/traffic-routing-config.ts#L29)
- Type last changed: v2.45.0 · 6 Oct 2022

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const canaryTrafficRoutingConfig: codedeploy.CanaryTrafficRoutingConfig = {
  canaryInterval: 123,
  canaryPercentage: 123,
};
```

## Properties

- `canaryInterval`: number (required) — The number of minutes between the first and second traffic shifts of a `TimeBasedCanary` deployment.

- `canaryPercentage`: number (required) — The percentage of traffic to shift in the first increment of a `TimeBasedCanary` deployment.
