interface CfnTrafficRouting
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.CfnTrafficRouting | 
|  Go | github.com/aws/aws-cdk-go/awscdk/v2#CfnTrafficRouting | 
|  Java | software.amazon.awscdk.CfnTrafficRouting | 
|  Python | aws_cdk.CfnTrafficRouting | 
|  TypeScript (source) | aws-cdk-lib»CfnTrafficRouting | 
Type of the CfnCodeDeployBlueGreenEcsAttributes.trafficRouting property.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnTrafficRouting: cdk.CfnTrafficRouting = {
  prodTrafficRoute: {
    logicalId: 'logicalId',
    type: 'type',
  },
  targetGroups: ['targetGroups'],
  testTrafficRoute: {
    logicalId: 'logicalId',
    type: 'type',
  },
};
Properties
| Name | Type | Description | 
|---|---|---|
| prod | Cfn | The listener to be used by your load balancer to direct traffic to your target groups. | 
| target | string[] | The logical IDs of the blue and green, respectively, AWS::ElasticLoadBalancingV2::TargetGroup target groups. | 
| test | Cfn | The listener to be used by your load balancer to direct traffic to your target groups. | 
prodTrafficRoute
Type:
Cfn
The listener to be used by your load balancer to direct traffic to your target groups.
targetGroups
Type:
string[]
The logical IDs of the blue and green, respectively, AWS::ElasticLoadBalancingV2::TargetGroup target groups.
testTrafficRoute
Type:
Cfn
The listener to be used by your load balancer to direct traffic to your target groups.
