TcpRouteSpecOptions(*, priority=None, timeout=None, weighted_targets)¶
Properties specific for a TCP Based Routes.
None]) – The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority. Default: - no particular priority
TcpTimeout]) – An object that represents a tcp timeout. Default: - None
WeightedTarget]) – List of targets that traffic is routed to when a request matches the route.
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_appmesh as appmesh import aws_cdk.core as cdk # virtual_node is of type VirtualNode tcp_route_spec_options = appmesh.TcpRouteSpecOptions( weighted_targets=[appmesh.WeightedTarget( virtual_node=virtual_node, # the properties below are optional weight=123 )], # the properties below are optional priority=123, timeout=appmesh.TcpTimeout( idle=cdk.Duration.minutes(30) ) )
The priority for the route.
Routes are matched based on the specified value, where 0 is the highest priority.
no particular priority
- Return type