Interface HttpGatewayRouteMatch
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpGatewayRouteMatch.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.085Z")
@Stability(Stable)
public interface HttpGatewayRouteMatch
extends software.amazon.jsii.JsiiSerializable
The criterion for determining a request match for this GatewayRoute.
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());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forHttpGatewayRouteMatch
static final class
An implementation forHttpGatewayRouteMatch
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default List<HeaderMatch>
Specifies the client request headers to match on.default GatewayRouteHostnameMatch
The gateway route host name to be matched on.default HttpRouteMethod
The method to match on.default HttpGatewayRoutePathMatch
getPath()
Specify how to match requests based on the 'path' part of their URL.default List<QueryParameterMatch>
The query parameters to match on.default Boolean
Whentrue
, rewrites the original request received at the Virtual Gateway to the destination Virtual Service name.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHeaders
Specifies the client request headers to match on.All specified headers must match for the gateway route to match.
Default: - do not match on headers
-
getHostname
The gateway route host name to be matched on.Default: - do not match on host name
-
getMethod
The method to match on.Default: - do not match on method
-
getPath
Specify how to match requests based on the 'path' part of their URL.Default: - matches requests with any path
-
getQueryParameters
The query parameters to match on.All specified query parameters must match for the route to match.
Default: - do not match on query parameters
-
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
-
builder
- Returns:
- a
HttpGatewayRouteMatch.Builder
ofHttpGatewayRouteMatch
-