Interface TcpRouteSpecOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,RouteSpecOptionsBase
- All Known Implementing Classes:
TcpRouteSpecOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.102.0 (build e354887)",
date="2024-09-06T01:36:23.423Z")
@Stability(Stable)
public interface TcpRouteSpecOptions
extends software.amazon.jsii.JsiiSerializable, RouteSpecOptionsBase
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 software.amazon.awscdk.*; import software.amazon.awscdk.services.appmesh.*; VirtualNode virtualNode; TcpRouteSpecOptions tcpRouteSpecOptions = TcpRouteSpecOptions.builder() .weightedTargets(List.of(WeightedTarget.builder() .virtualNode(virtualNode) // the properties below are optional .port(123) .weight(123) .build())) // the properties below are optional .priority(123) .timeout(TcpTimeout.builder() .idle(Duration.minutes(30)) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forTcpRouteSpecOptions
static final class
An implementation forTcpRouteSpecOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic TcpRouteSpecOptions.Builder
builder()
default TcpTimeout
An object that represents a tcp timeout.List of targets that traffic is routed to when a request matches the route.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.appmesh.RouteSpecOptionsBase
getPriority
-
Method Details
-
getWeightedTargets
List of targets that traffic is routed to when a request matches the route. -
getTimeout
An object that represents a tcp timeout.Default: - None
-
builder
- Returns:
- a
TcpRouteSpecOptions.Builder
ofTcpRouteSpecOptions
-