Interface CfnRoutePropsMixin.GrpcRouteProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRoutePropsMixin.GrpcRouteProperty.Jsii$Proxy
- Enclosing class:
CfnRoutePropsMixin
@Stability(Stable)
public static interface CfnRoutePropsMixin.GrpcRouteProperty
extends software.amazon.jsii.JsiiSerializable
An object that represents a gRPC 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.mixins.preview.services.appmesh.mixins.*;
GrpcRouteProperty grpcRouteProperty = GrpcRouteProperty.builder()
.action(GrpcRouteActionProperty.builder()
.weightedTargets(List.of(WeightedTargetProperty.builder()
.port(123)
.virtualNode("virtualNode")
.weight(123)
.build()))
.build())
.match(GrpcRouteMatchProperty.builder()
.metadata(List.of(GrpcRouteMetadataProperty.builder()
.invert(false)
.match(GrpcRouteMetadataMatchMethodProperty.builder()
.exact("exact")
.prefix("prefix")
.range(MatchRangeProperty.builder()
.end(123)
.start(123)
.build())
.regex("regex")
.suffix("suffix")
.build())
.name("name")
.build()))
.methodName("methodName")
.port(123)
.serviceName("serviceName")
.build())
.retryPolicy(GrpcRetryPolicyProperty.builder()
.grpcRetryEvents(List.of("grpcRetryEvents"))
.httpRetryEvents(List.of("httpRetryEvents"))
.maxRetries(123)
.perRetryTimeout(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.tcpRetryEvents(List.of("tcpRetryEvents"))
.build())
.timeout(GrpcTimeoutProperty.builder()
.idle(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.perRequest(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRoutePropsMixin.GrpcRoutePropertystatic final classAn implementation forCfnRoutePropsMixin.GrpcRouteProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectAn object that represents the action to take if a match is determined.default ObjectgetMatch()An object that represents the criteria for determining a request match.default ObjectAn object that represents a retry policy.default ObjectAn object that represents types of timeouts.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAction
An object that represents the action to take if a match is determined.Returns union: either
IResolvableorCfnRoutePropsMixin.GrpcRouteActionProperty- See Also:
-
getMatch
An object that represents the criteria for determining a request match.Returns union: either
IResolvableorCfnRoutePropsMixin.GrpcRouteMatchProperty- See Also:
-
getRetryPolicy
An object that represents a retry policy.Returns union: either
IResolvableorCfnRoutePropsMixin.GrpcRetryPolicyProperty- See Also:
-
getTimeout
An object that represents types of timeouts.Returns union: either
IResolvableorCfnRoutePropsMixin.GrpcTimeoutProperty- See Also:
-
builder
-