@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:24.357Z") @Stability(value=Experimental) public interface GrpcGatewayRouteMatch extends software.amazon.jsii.JsiiSerializable
Example:
VirtualGateway gateway;
VirtualService virtualService;
gateway.addGatewayRoute("gateway-route-grpc", GatewayRouteBaseProps.builder()
.routeSpec(GatewayRouteSpec.grpc(GrpcGatewayRouteSpecOptions.builder()
.routeTarget(virtualService)
.match(GrpcGatewayRouteMatch.builder()
.hostname(GatewayRouteHostnameMatch.endsWith(".example.com"))
.build())
.build()))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
GrpcGatewayRouteMatch.Builder
A builder for
GrpcGatewayRouteMatch |
static class |
GrpcGatewayRouteMatch.Jsii$Proxy
An implementation for
GrpcGatewayRouteMatch |
| Modifier and Type | Method and Description |
|---|---|
static GrpcGatewayRouteMatch.Builder |
builder() |
default GatewayRouteHostnameMatch |
getHostname()
(experimental) Create host name based gRPC gateway route match.
|
default List<HeaderMatch> |
getMetadata()
(experimental) Create metadata based gRPC gateway route match.
|
default Boolean |
getRewriteRequestHostname()
(experimental) When `true`, rewrites the original request received at the Virtual Gateway to the destination Virtual Service name.
|
default String |
getServiceName()
(experimental) Create service name based gRPC gateway route match.
|
@Stability(value=Experimental) @Nullable default GatewayRouteHostnameMatch getHostname()
Default: - no matching on host name
@Stability(value=Experimental) @Nullable default List<HeaderMatch> getMetadata()
All specified metadata must match for the route to match.
Default: - no matching on metadata
@Stability(value=Experimental) @Nullable default Boolean getRewriteRequestHostname()
When false, retains the original hostname from the request.
Default: true
@Stability(value=Experimental) @Nullable default String getServiceName()
Default: - no matching on service name
@Stability(value=Experimental) static GrpcGatewayRouteMatch.Builder builder()
GrpcGatewayRouteMatch.Builder of GrpcGatewayRouteMatchCopyright © 2022. All rights reserved.