# CfnTrafficRoute

A traffic route, representing where the traffic is being directed to.

- Source: [`core/lib/cfn-codedeploy-blue-green-hook.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/core/lib/cfn-codedeploy-blue-green-hook.ts#L175)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnTrafficRoute: cdk.CfnTrafficRoute = {
  logicalId: 'logicalId',
  type: 'type',
};
```

## Properties

- `logicalId`: string (required) — The logical id of the target resource.

- `type`: string (required) — The resource type of the route.

  Today, the only allowed value is 'AWS::ElasticLoadBalancingV2::Listener'.
