aws-cdk-lib.aws_appmesh.TcpRouteSpecOptions

interface TcpRouteSpecOptions

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.TcpRouteSpecOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#TcpRouteSpecOptions
Javasoftware.amazon.awscdk.services.appmesh.TcpRouteSpecOptions
Pythonaws_cdk.aws_appmesh.TcpRouteSpecOptions
TypeScript (source)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
    weight: 123,
  }],

  // the properties below are optional
  priority: 123,
  timeout: {
    idle: cdk.Duration.minutes(30),
  },
};

Properties

NameTypeDescription
weightedTargetsWeightedTarget[]List of targets that traffic is routed to when a request matches the route.
priority?numberThe priority for the route.
timeout?TcpTimeoutAn object that represents a tcp timeout.

weightedTargets

Type: WeightedTarget[]

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: TcpTimeout (optional, default: None)

An object that represents a tcp timeout.