@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.552Z") @Stability(value=Stable) public interface HttpGatewayRouteMatch extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
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()
Specifies the client request headers to match on.
|
default GatewayRouteHostnameMatch |
getHostname()
The gateway route host name to be matched on.
|
default HttpRouteMethod |
getMethod()
The method to match on.
|
default HttpGatewayRoutePathMatch |
getPath()
Specify how to match requests based on the 'path' part of their URL.
|
default List<QueryParameterMatch> |
getQueryParameters()
The query parameters to match on.
|
default Boolean |
getRewriteRequestHostname()
When `true`, rewrites the original request received at the Virtual Gateway to the destination Virtual Service name.
|
@Stability(value=Stable) @Nullable default List<HeaderMatch> getHeaders()
All specified headers must match for the gateway route to match.
Default: - do not match on headers
@Stability(value=Stable) @Nullable default GatewayRouteHostnameMatch getHostname()
Default: - do not match on host name
@Stability(value=Stable) @Nullable default HttpRouteMethod getMethod()
Default: - do not match on method
@Stability(value=Stable) @Nullable default HttpGatewayRoutePathMatch getPath()
Default: - matches requests with any path
@Stability(value=Stable) @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=Stable) @Nullable default Boolean getRewriteRequestHostname()
When false, retains the original hostname from the request.
Default: true
@Stability(value=Stable) static HttpGatewayRouteMatch.Builder builder()
HttpGatewayRouteMatch.Builder of HttpGatewayRouteMatchCopyright © 2022. All rights reserved.