CfnTrafficRouting

class aws_cdk.core.CfnTrafficRouting(*, prod_traffic_route, target_groups, test_traffic_route)

Bases: object

Type of the {@link CfnCodeDeployBlueGreenEcsAttributes.trafficRouting} property.

Parameters:
  • prod_traffic_route (Union[CfnTrafficRoute, Dict[str, Any]]) – The listener to be used by your load balancer to direct traffic to your target groups.

  • target_groups (Sequence[str]) – The logical IDs of the blue and green, respectively, AWS::ElasticLoadBalancingV2::TargetGroup target groups.

  • test_traffic_route (Union[CfnTrafficRoute, Dict[str, Any]]) – The listener to be used by your load balancer to direct traffic to your target groups.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.core as cdk

cfn_traffic_routing = cdk.CfnTrafficRouting(
    prod_traffic_route=cdk.CfnTrafficRoute(
        logical_id="logicalId",
        type="type"
    ),
    target_groups=["targetGroups"],
    test_traffic_route=cdk.CfnTrafficRoute(
        logical_id="logicalId",
        type="type"
    )
)

Attributes

prod_traffic_route

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

target_groups

The logical IDs of the blue and green, respectively, AWS::ElasticLoadBalancingV2::TargetGroup target groups.

test_traffic_route

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