# TargetGroupPairInfoProperty

Information about two target groups and how traffic is routed during an Amazon ECS deployment.

An optional test traffic route can be specified.

- 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_codedeploy as codedeploy } from 'aws-cdk-lib';
const targetGroupPairInfoProperty: codedeploy.CfnDeploymentGroup.TargetGroupPairInfoProperty = {
  prodTrafficRoute: {
    listenerArns: ['listenerArns'],
  },
  targetGroups: [{
    name: 'name',
  }],
  testTrafficRoute: {
    listenerArns: ['listenerArns'],
  },
};
```

## Properties

- `prodTrafficRoute`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDeploymentGroup.TrafficRouteProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.CfnDeploymentGroup.TrafficRouteProperty.html) — The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.

- `targetGroups`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDeploymentGroup.TargetGroupInfoProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.CfnDeploymentGroup.TargetGroupInfoProperty.html)[] — One pair of target groups.

  One is associated with the original task set. The second is associated with the task set that serves traffic after the deployment is complete.

- `testTrafficRoute`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDeploymentGroup.TrafficRouteProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.CfnDeploymentGroup.TrafficRouteProperty.html) — An optional path used by a load balancer to route test traffic after an Amazon ECS deployment.

  Validation can occur while test traffic is served during a deployment.
