@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.552Z") @Stability(value=Stable) public abstract class HttpGatewayRoutePathMatch extends software.amazon.jsii.JsiiObject
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 | Constructor and Description |
|---|---|
protected |
HttpGatewayRoutePathMatch() |
protected |
HttpGatewayRoutePathMatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HttpGatewayRoutePathMatch(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract HttpGatewayRoutePathMatchConfig |
bind(software.constructs.Construct scope)
Returns the gateway route path match configuration.
|
static HttpGatewayRoutePathMatch |
exactly(String path)
The value of the path must match the specified value exactly.
|
static HttpGatewayRoutePathMatch |
exactly(String path,
String rewriteTo)
The value of the path must match the specified value exactly.
|
static HttpGatewayRoutePathMatch |
regex(String regex)
The value of the path must match the specified regex.
|
static HttpGatewayRoutePathMatch |
regex(String regex,
String rewriteTo)
The value of the path must match the specified regex.
|
static HttpGatewayRoutePathMatch |
startsWith(String prefix)
The value of the path must match the specified prefix.
|
static HttpGatewayRoutePathMatch |
startsWith(String prefix,
String rewriteTo)
The value of the path must match the specified prefix.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected HttpGatewayRoutePathMatch(software.amazon.jsii.JsiiObjectRef objRef)
protected HttpGatewayRoutePathMatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected HttpGatewayRoutePathMatch()
@Stability(value=Stable) @NotNull public static HttpGatewayRoutePathMatch exactly(@NotNull String path, @Nullable String rewriteTo)
The provided path must start with the '/' character.
path - the exact path to match on. This parameter is required.rewriteTo - the value to substitute for the matched part of the path of the gateway request URL As a default, retains original request's URL path.@Stability(value=Stable) @NotNull public static HttpGatewayRoutePathMatch exactly(@NotNull String path)
The provided path must start with the '/' character.
path - the exact path to match on. This parameter is required.@Stability(value=Stable) @NotNull public static HttpGatewayRoutePathMatch regex(@NotNull String regex, @Nullable String rewriteTo)
regex - the regex used to match the path. This parameter is required.rewriteTo - the value to substitute for the matched part of the path of the gateway request URL As a default, retains original request's URL path.@Stability(value=Stable) @NotNull public static HttpGatewayRoutePathMatch regex(@NotNull String regex)
regex - the regex used to match the path. This parameter is required.@Stability(value=Stable) @NotNull public static HttpGatewayRoutePathMatch startsWith(@NotNull String prefix, @Nullable String rewriteTo)
prefix - the value to use to match the beginning of the path part of the URL of the request. This parameter is required.rewriteTo - Specify either disabling automatic rewrite or rewriting to specified prefix path.@Stability(value=Stable) @NotNull public static HttpGatewayRoutePathMatch startsWith(@NotNull String prefix)
prefix - the value to use to match the beginning of the path part of the URL of the request. This parameter is required.@Stability(value=Stable) @NotNull public abstract HttpGatewayRoutePathMatchConfig bind(@NotNull software.constructs.Construct scope)
scope - This parameter is required.Copyright © 2022. All rights reserved.