Interface CfnRoute.TcpRouteProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnRoute.TcpRouteProperty.Jsii$Proxy
Enclosing class:
CfnRoute

@Stability(Stable) public static interface CfnRoute.TcpRouteProperty extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.appmesh.*;
 TcpRouteProperty tcpRouteProperty = TcpRouteProperty.builder()
         .action(TcpRouteActionProperty.builder()
                 .weightedTargets(List.of(WeightedTargetProperty.builder()
                         .virtualNode("virtualNode")
                         .weight(123)
                         // the properties below are optional
                         .port(123)
                         .build()))
                 .build())
         // the properties below are optional
         .match(TcpRouteMatchProperty.builder()
                 .port(123)
                 .build())
         .timeout(TcpTimeoutProperty.builder()
                 .idle(DurationProperty.builder()
                         .unit("unit")
                         .value(123)
                         .build())
                 .build())
         .build();
 

See Also: