interface CfnTrafficRouting
Language | Type name |
---|---|
![]() | Amazon.CDK.CfnTrafficRouting |
![]() | github.com/aws/aws-cdk-go/awscdk/v2#CfnTrafficRouting |
![]() | software.amazon.awscdk.CfnTrafficRouting |
![]() | aws_cdk.CfnTrafficRouting |
![]() | 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.