@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.536Z") @Stability(value=Stable) public interface GrpcRouteMatch extends software.amazon.jsii.JsiiSerializable
At least one match type must be selected.
Example:
// Example automatically generated from non-compiling source. May contain errors.
VirtualRouter router;
VirtualNode node;
router.addRoute("route-http", RouteBaseProps.builder()
.routeSpec(RouteSpec.grpc(GrpcRouteSpecOptions.builder()
.weightedTargets(List.of(WeightedTarget.builder()
.virtualNode(node)
.build()))
.match(GrpcRouteMatch.builder()
.serviceName("my-service.default.svc.cluster.local")
.build())
.timeout(GrpcTimeout.builder()
.idle(Duration.seconds(2))
.perRequest(Duration.seconds(1))
.build())
.build()))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
GrpcRouteMatch.Builder
A builder for
GrpcRouteMatch |
static class |
GrpcRouteMatch.Jsii$Proxy
An implementation for
GrpcRouteMatch |
| Modifier and Type | Method and Description |
|---|---|
static GrpcRouteMatch.Builder |
builder() |
default List<HeaderMatch> |
getMetadata()
Create metadata based gRPC route match.
|
default String |
getMethodName()
The method name to match from the request.
|
default String |
getServiceName()
Create service name based gRPC route match.
|
@Stability(value=Stable) @Nullable default List<HeaderMatch> getMetadata()
All specified metadata must match for the route to match.
Default: - do not match on metadata
@Stability(value=Stable) @Nullable default String getMethodName()
If the method name is specified, service name must be also provided.
Default: - do not match on method name
@Stability(value=Stable) @Nullable default String getServiceName()
Default: - do not match on service name
@Stability(value=Stable) static GrpcRouteMatch.Builder builder()
GrpcRouteMatch.Builder of GrpcRouteMatchCopyright © 2022. All rights reserved.