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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRoute.TcpRoutePropertystatic final classAn implementation forCfnRoute.TcpRouteProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAction
The action to take if a match is determined.Returns union: either
IResolvableorCfnRoute.TcpRouteActionProperty- See Also:
-
getMatch
An object that represents the criteria for determining a request match.Returns union: either
IResolvableorCfnRoute.TcpRouteMatchProperty- See Also:
-
getTimeout
An object that represents types of timeouts.Returns union: either
IResolvableorCfnRoute.TcpTimeoutProperty- See Also:
-
builder
- Returns:
- a
CfnRoute.TcpRouteProperty.BuilderofCfnRoute.TcpRouteProperty
-