TrafficRouteProperty Struct
Information about a listener.
The listener contains the path used to route traffic that is received from the load balancer to a target group.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const trafficRouteProperty: codedeploy.CfnDeploymentGroup.TrafficRouteProperty = {
listenerArns: ['listenerArns'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codedeploy as codedeploy
traffic_route_property = codedeploy.CfnDeploymentGroup.TrafficRouteProperty(
listener_arns=["listenerArns"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codedeploy.*;
TrafficRouteProperty trafficRouteProperty = TrafficRouteProperty.builder()
.listenerArns(List.of("listenerArns"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeDeploy;
var trafficRouteProperty = new TrafficRouteProperty {
ListenerArns = new [] { "listenerArns" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
trafficRouteProperty := &TrafficRouteProperty{
ListenerArns: []*string{
jsii.String("listenerArns"),
},
}
Properties
listenerArnsoptionalstring[]listener_arnsoptionaltyping.List[str]listenerArnsoptionalList<String>ListenerArnsoptionalstring[]ListenerArnsoptional*[]*string#The Amazon Resource Name (ARN) of one listener.
The listener identifies the route between a target group and a load balancer. This is an array of strings with a maximum size of one.