interface TcpRouteSpecOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppMesh.TcpRouteSpecOptions |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#TcpRouteSpecOptions |
![]() | software.amazon.awscdk.services.appmesh.TcpRouteSpecOptions |
![]() | aws_cdk.aws_appmesh.TcpRouteSpecOptions |
![]() | aws-cdk-lib » aws_appmesh » TcpRouteSpecOptions |
Properties specific for a TCP Based Routes.
Example
// 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';
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
declare const virtualNode: appmesh.VirtualNode;
const tcpRouteSpecOptions: appmesh.TcpRouteSpecOptions = {
weightedTargets: [{
virtualNode: virtualNode,
// the properties below are optional
port: 123,
weight: 123,
}],
// the properties below are optional
priority: 123,
timeout: {
idle: cdk.Duration.minutes(30),
},
};
Properties
Name | Type | Description |
---|---|---|
weighted | Weighted [] | List of targets that traffic is routed to when a request matches the route. |
priority? | number | The priority for the route. |
timeout? | Tcp | An object that represents a tcp timeout. |
weightedTargets
Type:
Weighted
[]
List of targets that traffic is routed to when a request matches the route.
priority?
Type:
number
(optional, default: no particular 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.
timeout?
Type:
Tcp
(optional, default: None)
An object that represents a tcp timeout.