Interface GrpcGatewayRouteMatch

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
GrpcGatewayRouteMatch.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.060Z") @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());
 
  • Method Details

    • getHostname

      @Stability(Stable) @Nullable default GatewayRouteHostnameMatch getHostname()
      Create host name based gRPC gateway route match.

      Default: - no matching on host name

    • getMetadata

      @Stability(Stable) @Nullable default List<HeaderMatch> getMetadata()
      Create metadata based gRPC gateway route match.

      All specified metadata must match for the route to match.

      Default: - no matching on metadata

    • getRewriteRequestHostname

      @Stability(Stable) @Nullable default Boolean getRewriteRequestHostname()
      When true, 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

      @Stability(Stable) @Nullable default String getServiceName()
      Create service name based gRPC gateway route match.

      Default: - no matching on service name

    • builder

      @Stability(Stable) static GrpcGatewayRouteMatch.Builder builder()
      Returns:
      a GrpcGatewayRouteMatch.Builder of GrpcGatewayRouteMatch