interface TargetGroupPairInfoProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CodeDeploy.CfnDeploymentGroup.TargetGroupPairInfoProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#CfnDeploymentGroup_TargetGroupPairInfoProperty |
![]() | software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.TargetGroupPairInfoProperty |
![]() | aws_cdk.aws_codedeploy.CfnDeploymentGroup.TargetGroupPairInfoProperty |
![]() | aws-cdk-lib » aws_codedeploy » CfnDeploymentGroup » TargetGroupPairInfoProperty |
Information about two target groups and how traffic is routed during an Amazon ECS deployment.
An optional test traffic route can be specified.
Example
// 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
Name | Type | Description |
---|---|---|
prod | IResolvable | Traffic | The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete. |
target | IResolvable | IResolvable | Target [] | One pair of target groups. |
test | IResolvable | Traffic | An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. |
prodTrafficRoute?
Type:
IResolvable
|
Traffic
(optional)
The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.
targetGroups?
Type:
IResolvable
|
IResolvable
|
Target
[]
(optional)
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?
Type:
IResolvable
|
Traffic
(optional)
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.