aws-cdk-lib.aws_appmesh.CfnRoute.TcpRouteProperty

interface TcpRouteProperty

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.CfnRoute.TcpRouteProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#CfnRoute_TcpRouteProperty
Javasoftware.amazon.awscdk.services.appmesh.CfnRoute.TcpRouteProperty
Pythonaws_cdk.aws_appmesh.CfnRoute.TcpRouteProperty
TypeScript aws-cdk-lib » aws_appmesh » CfnRoute » TcpRouteProperty

An object that represents a TCP route type.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const tcpRouteProperty: appmesh.CfnRoute.TcpRouteProperty = {
  action: {
    weightedTargets: [{
      virtualNode: 'virtualNode',
      weight: 123,

      // the properties below are optional
      port: 123,
    }],
  },

  // the properties below are optional
  match: {
    port: 123,
  },
  timeout: {
    idle: {
      unit: 'unit',
      value: 123,
    },
  },
};

Properties

NameTypeDescription
actionIResolvable | TcpRouteActionPropertyThe action to take if a match is determined.
match?IResolvable | TcpRouteMatchPropertyAn object that represents the criteria for determining a request match.
timeout?IResolvable | TcpTimeoutPropertyAn object that represents types of timeouts.

action

Type: IResolvable | TcpRouteActionProperty

The action to take if a match is determined.


match?

Type: IResolvable | TcpRouteMatchProperty (optional)

An object that represents the criteria for determining a request match.


timeout?

Type: IResolvable | TcpTimeoutProperty (optional)

An object that represents types of timeouts.