CfnTrafficRouting Struct
Type of the CfnCodeDeployBlueGreenEcsAttributes.trafficRouting property.
Example
ts
// 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
prodTrafficRouteCfnTrafficRouteprod_traffic_routeCfnTrafficRouteprodTrafficRouteCfnTrafficRouteProdTrafficRouteCfnTrafficRouteProdTrafficRouteCfnTrafficRouterequired#The listener to be used by your load balancer to direct traffic to your target groups.
targetGroupsstring[]target_groupstyping.List[str]targetGroupsList<String>TargetGroupsstring[]TargetGroups*[]*stringrequired#The logical IDs of the blue and green, respectively, AWS::ElasticLoadBalancingV2::TargetGroup target groups.
testTrafficRouteCfnTrafficRoutetest_traffic_routeCfnTrafficRoutetestTrafficRouteCfnTrafficRouteTestTrafficRouteCfnTrafficRouteTestTrafficRouteCfnTrafficRouterequired#The listener to be used by your load balancer to direct traffic to your target groups.