TcpRouteProperty Struct
An object that represents a TCP route type.
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 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
actionIResolvable | CfnRoute.TcpRouteActionPropertyactiontyping.Union[IResolvable, TcpRouteActionProperty]actionIResolvableActionIResolvableActioninterface{}required#The action to take if a match is determined.
matchIResolvable | CfnRoute.TcpRouteMatchPropertymatchtyping.Union[IResolvable, TcpRouteMatchProperty]matchIResolvableMatchIResolvableMatchinterface{}#An object that represents the criteria for determining a request match.
timeoutIResolvable | CfnRoute.TcpTimeoutPropertytimeouttyping.Union[IResolvable, TcpTimeoutProperty]timeoutIResolvableTimeoutIResolvableTimeoutinterface{}#An object that represents types of timeouts.