@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.534Z") @Stability(value=Stable) public interface GrpcGatewayRouteMatch extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
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()
Create host name based gRPC gateway route match.
|
default List<HeaderMatch> |
getMetadata()
Create metadata based gRPC gateway route match.
|
default Boolean |
getRewriteRequestHostname()
When `true`, rewrites the original request received at the Virtual Gateway to the destination Virtual Service name.
|
default String |
getServiceName()
Create service name based gRPC gateway route match.
|
@Stability(value=Stable) @Nullable default GatewayRouteHostnameMatch getHostname()
Default: - no matching on host name
@Stability(value=Stable) @Nullable default List<HeaderMatch> getMetadata()
All specified metadata must match for the route to match.
Default: - no matching on metadata
@Stability(value=Stable) @Nullable default Boolean getRewriteRequestHostname()
When false, retains the original hostname from the request.
Default: true
@Stability(value=Stable) @Nullable default String getServiceName()
Default: - no matching on service name
@Stability(value=Stable) static GrpcGatewayRouteMatch.Builder builder()
GrpcGatewayRouteMatch.Builder of GrpcGatewayRouteMatchCopyright © 2022. All rights reserved.