aws-cdk-lib.CfnTrafficRouting

interface CfnTrafficRouting

LanguageType name
.NETAmazon.CDK.CfnTrafficRouting
Gogithub.com/aws/aws-cdk-go/awscdk/v2#CfnTrafficRouting
Javasoftware.amazon.awscdk.CfnTrafficRouting
Pythonaws_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

NameTypeDescription
prodTrafficRouteCfnTrafficRouteThe listener to be used by your load balancer to direct traffic to your target groups.
targetGroupsstring[]The logical IDs of the blue and green, respectively, AWS::ElasticLoadBalancingV2::TargetGroup target groups.
testTrafficRouteCfnTrafficRouteThe listener to be used by your load balancer to direct traffic to your target groups.

prodTrafficRoute

Type: CfnTrafficRoute

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: CfnTrafficRoute

The listener to be used by your load balancer to direct traffic to your target groups.