Class CfnDeploymentGroup.TargetGroupPairInfoProperty
Information about two target groups and how traffic is routed during an Amazon ECS deployment.
Inheritance
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TargetGroupPairInfoProperty : Object, CfnDeploymentGroup.ITargetGroupPairInfoProperty
Syntax (vb)
Public Class TargetGroupPairInfoProperty
Inherits Object
Implements CfnDeploymentGroup.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.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() |
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()
public TargetGroupPairInfoProperty()
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
System.Object
Remarks
TargetGroups
One pair of target groups.
public object TargetGroups { get; set; }
Property Value
System.Object
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.
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
System.Object
Remarks
Validation can occur while test traffic is served during a deployment.