TcpRouteSpecOptions
- class aws_cdk.aws_appmesh.TcpRouteSpecOptions(*, priority=None, weighted_targets, timeout=None)
Bases:
RouteSpecOptionsBase
Properties specific for a TCP Based Routes.
- Parameters:
priority (
Union
[int
,float
,None
]) – The priority for the route. When a Virtual Router has multiple routes, route match is performed in the order of specified value, where 0 is the highest priority, and first matched route is selected. Default: - no particular priorityweighted_targets (
Sequence
[Union
[WeightedTarget
,Dict
[str
,Any
]]]) – List of targets that traffic is routed to when a request matches the route.timeout (
Union
[TcpTimeout
,Dict
[str
,Any
],None
]) – An object that represents a tcp timeout. Default: - None
- 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 as cdk from aws_cdk import aws_appmesh as appmesh # virtual_node: appmesh.VirtualNode tcp_route_spec_options = appmesh.TcpRouteSpecOptions( weighted_targets=[appmesh.WeightedTarget( virtual_node=virtual_node, # the properties below are optional port=123, weight=123 )], # the properties below are optional priority=123, timeout=appmesh.TcpTimeout( idle=cdk.Duration.minutes(30) ) )
Attributes
- priority
The priority for the route.
When a Virtual Router has multiple routes, route match is performed in the order of specified value, where 0 is the highest priority, and first matched route is selected.
- Default:
no particular priority
- timeout
An object that represents a tcp timeout.
- Default:
None
- weighted_targets
List of targets that traffic is routed to when a request matches the route.