Class CfnDeploymentGroupPropsMixin.TargetGroupPairInfoProperty
Information about two target groups and how traffic is routed during an Amazon ECS deployment.
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.CodeDeploy
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnDeploymentGroupPropsMixin.TargetGroupPairInfoProperty : CfnDeploymentGroupPropsMixin.ITargetGroupPairInfoProperty
Syntax (vb)
Public Class CfnDeploymentGroupPropsMixin.TargetGroupPairInfoProperty Implements CfnDeploymentGroupPropsMixin.ITargetGroupPairInfoProperty
Remarks
An optional test traffic route can be specified.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.CodeDeploy;
var targetGroupPairInfoProperty = new TargetGroupPairInfoProperty {
ProdTrafficRoute = new TrafficRouteProperty {
ListenerArns = new [] { "listenerArns" }
},
TargetGroups = new [] { new TargetGroupInfoProperty {
Name = "name"
} },
TestTrafficRoute = new TrafficRouteProperty {
ListenerArns = new [] { "listenerArns" }
}
};
Synopsis
Constructors
| TargetGroupPairInfoProperty() | Information about two target groups and how traffic is routed during an Amazon ECS deployment. |
Properties
| ProdTrafficRoute | The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete. |
| TargetGroups | One pair of target groups. |
| TestTrafficRoute | An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. |
Constructors
TargetGroupPairInfoProperty()
Information about two target groups and how traffic is routed during an Amazon ECS deployment.
public TargetGroupPairInfoProperty()
Remarks
An optional test traffic route can be specified.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.CodeDeploy;
var targetGroupPairInfoProperty = new TargetGroupPairInfoProperty {
ProdTrafficRoute = new TrafficRouteProperty {
ListenerArns = new [] { "listenerArns" }
},
TargetGroups = new [] { new TargetGroupInfoProperty {
Name = "name"
} },
TestTrafficRoute = new TrafficRouteProperty {
ListenerArns = new [] { "listenerArns" }
}
};
Properties
ProdTrafficRoute
The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.
public object? ProdTrafficRoute { get; set; }
Property Value
Remarks
TargetGroups
One pair of target groups.
public object? TargetGroups { get; set; }
Property Value
Remarks
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 union: either IResolvable or (either IResolvable or CfnDeploymentGroupPropsMixin.ITargetGroupInfoProperty)[]
TestTrafficRoute
An optional path used by a load balancer to route test traffic after an Amazon ECS deployment.
public object? TestTrafficRoute { get; set; }
Property Value
Remarks
Validation can occur while test traffic is served during a deployment.
Type union: either IResolvable or CfnDeploymentGroupPropsMixin.ITrafficRouteProperty