@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:42.386Z") @Stability(value=Experimental) public interface HttpGatewayRouteMatch extends software.amazon.jsii.JsiiSerializable
Example:
VirtualGateway gateway;
VirtualService virtualService;
gateway.addGatewayRoute("gateway-route-http-2", GatewayRouteBaseProps.builder()
.routeSpec(GatewayRouteSpec.http(HttpGatewayRouteSpecOptions.builder()
.routeTarget(virtualService)
.match(HttpGatewayRouteMatch.builder()
// This rewrites the path from '/test' to '/rewrittenPath'.
.path(HttpGatewayRoutePathMatch.exactly("/test", "/rewrittenPath"))
.build())
.build()))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpGatewayRouteMatch.Builder
A builder for
HttpGatewayRouteMatch |
static class |
HttpGatewayRouteMatch.Jsii$Proxy
An implementation for
HttpGatewayRouteMatch |
| Modifier and Type | Method and Description |
|---|---|
static HttpGatewayRouteMatch.Builder |
builder() |
default List<HeaderMatch> |
getHeaders()
(experimental) Specifies the client request headers to match on.
|
default GatewayRouteHostnameMatch |
getHostname()
(experimental) The gateway route host name to be matched on.
|
default HttpRouteMethod |
getMethod()
(experimental) The method to match on.
|
default HttpGatewayRoutePathMatch |
getPath()
(experimental) Specify how to match requests based on the 'path' part of their URL.
|
default List<QueryParameterMatch> |
getQueryParameters()
(experimental) The query parameters to match on.
|
default Boolean |
getRewriteRequestHostname()
(experimental) When `true`, rewrites the original request received at the Virtual Gateway to the destination Virtual Service name.
|
@Stability(value=Experimental) @Nullable default List<HeaderMatch> getHeaders()
All specified headers must match for the gateway route to match.
Default: - do not match on headers
@Stability(value=Experimental) @Nullable default GatewayRouteHostnameMatch getHostname()
Default: - do not match on host name
@Stability(value=Experimental) @Nullable default HttpRouteMethod getMethod()
Default: - do not match on method
@Stability(value=Experimental) @Nullable default HttpGatewayRoutePathMatch getPath()
Default: - matches requests with any path
@Stability(value=Experimental) @Nullable default List<QueryParameterMatch> getQueryParameters()
All specified query parameters must match for the route to match.
Default: - do not match on query parameters
@Stability(value=Experimental) @Nullable default Boolean getRewriteRequestHostname()
When false, retains the original hostname from the request.
Default: true
@Stability(value=Experimental) static HttpGatewayRouteMatch.Builder builder()
HttpGatewayRouteMatch.Builder of HttpGatewayRouteMatchCopyright © 2022. All rights reserved.