CfnTrafficRoute

class aws_cdk.core.CfnTrafficRoute(*, logical_id, type)

Bases: object

A traffic route, representing where the traffic is being directed to.

Parameters:
  • logical_id (str) – The logical id of the target resource.

  • type (str) – The resource type of the route. Today, the only allowed value is ‘AWS::ElasticLoadBalancingV2::Listener’.

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_route = cdk.CfnTrafficRoute(
    logical_id="logicalId",
    type="type"
)

Attributes

logical_id

The logical id of the target resource.

type

The resource type of the route.

Today, the only allowed value is ‘AWS::ElasticLoadBalancingV2::Listener’.