Skip to content
v2.274.0

CfnTrafficRoute Struct ​

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

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 cfnTrafficRoute: cdk.CfnTrafficRoute = {
  logicalId: 'logicalId',
  type: 'type',
};

Properties ​

logicalIdstringlogical_idstrlogicalIdStringLogicalIdstringLogicalId*stringrequired#
The logical id of the target resource.
typestringtypestrtypeStringTypestringType*stringrequired#
The resource type of the route.

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