Class CfnTrafficRouting
Type of the {@link CfnCodeDeployBlueGreenEcsAttributes.trafficRouting} property.
public class CfnTrafficRouting : ICfnTrafficRouting
- Inheritance
-
CfnTrafficRouting
- Implements
- Inherited Members
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var cfnTrafficRouting = new CfnTrafficRouting {
ProdTrafficRoute = new CfnTrafficRoute {
LogicalId = "logicalId",
Type = "type"
},
TargetGroups = new [] { "targetGroups" },
TestTrafficRoute = new CfnTrafficRoute {
LogicalId = "logicalId",
Type = "type"
}
};
Remarks
ExampleMetadata: fixture=_generated
Constructors
CfnTrafficRouting()
public CfnTrafficRouting()
Properties
ProdTrafficRoute
The listener to be used by your load balancer to direct traffic to your target groups.
public ICfnTrafficRoute ProdTrafficRoute { get; set; }
Property Value
TargetGroups
The logical IDs of the blue and green, respectively, AWS::ElasticLoadBalancingV2::TargetGroup target groups.
public string[] TargetGroups { get; set; }
Property Value
- string[]
TestTrafficRoute
The listener to be used by your load balancer to direct traffic to your target groups.
public ICfnTrafficRoute TestTrafficRoute { get; set; }