Skip to content
v2.274.0

TcpRouteActionProperty Struct ​

An object that represents the action to take if a match is determined.

Example ​

ts
// 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 tcpRouteActionProperty: appmesh.CfnRoute.TcpRouteActionProperty = {
  weightedTargets: [{
    virtualNode: 'virtualNode',
    weight: 123,

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

Properties ​

weightedTargetsIResolvable | IResolvable | CfnRoute.WeightedTargetProperty[]weighted_targetstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, WeightedTargetProperty]]]weightedTargetsIResolvableWeightedTargetsIResolvableWeightedTargetsinterface{}required#
An object that represents the targets that traffic is routed to when a request matches the route.