Interface GrpcGatewayRouteMatch
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GrpcGatewayRouteMatch.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:31.123Z")
@Stability(Stable)
public interface GrpcGatewayRouteMatch
extends software.amazon.jsii.JsiiSerializable
The criterion for determining a request match for this GatewayRoute.
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());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGrpcGatewayRouteMatchstatic final classAn implementation forGrpcGatewayRouteMatch -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default GatewayRouteHostnameMatchCreate host name based gRPC gateway route match.default List<HeaderMatch> Create metadata based gRPC gateway route match.default NumbergetPort()The port to match from the request.default BooleanWhentrue, rewrites the original request received at the Virtual Gateway to the destination Virtual Service name.default StringCreate service name based gRPC gateway route match.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHostname
Create host name based gRPC gateway route match.Default: - no matching on host name
-
getMetadata
Create metadata based gRPC gateway route match.All specified metadata must match for the route to match.
Default: - no matching on metadata
-
getPort
The port to match from the request.Default: - do not match on port
-
getRewriteRequestHostname
Whentrue, rewrites the original request received at the Virtual Gateway to the destination Virtual Service name.When
false, retains the original hostname from the request.Default: true
-
getServiceName
Create service name based gRPC gateway route match.Default: - no matching on service name
-
builder
- Returns:
- a
GrpcGatewayRouteMatch.BuilderofGrpcGatewayRouteMatch
-