TargetGroupPairInfo - Amazon CodeDeploy
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Information about two target groups and how traffic is routed during an Amazon ECS deployment. An optional test traffic route can be specified.



The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.

Type: TrafficRoute object

Required: No


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.

Type: Array of TargetGroupInfo objects

Required: No


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.

Type: TrafficRoute object

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: