@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.555Z") @Stability(value=Stable) public abstract class HttpRoutePathMatch extends software.amazon.jsii.JsiiObject
Example:
// Example automatically generated from non-compiling source. May contain errors.
VirtualRouter router;
VirtualNode node;
router.addRoute("route-http", RouteBaseProps.builder()
.routeSpec(RouteSpec.http(HttpRouteSpecOptions.builder()
.weightedTargets(List.of(WeightedTarget.builder()
.virtualNode(node)
.weight(50)
.build(), WeightedTarget.builder()
.virtualNode(node)
.weight(50)
.build()))
.match(HttpRouteMatch.builder()
.path(HttpRoutePathMatch.startsWith("/path-to-app"))
.build())
.build()))
.build());
| Modifier | Constructor and Description |
|---|---|
protected |
HttpRoutePathMatch() |
protected |
HttpRoutePathMatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HttpRoutePathMatch(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract HttpRoutePathMatchConfig |
bind(software.constructs.Construct scope)
Returns the route path match configuration.
|
static HttpRoutePathMatch |
exactly(String path)
The value of the path must match the specified value exactly.
|
static HttpRoutePathMatch |
regex(String regex)
The value of the path must match the specified regex.
|
static HttpRoutePathMatch |
startsWith(String prefix)
The value of the path must match the specified prefix.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected HttpRoutePathMatch(software.amazon.jsii.JsiiObjectRef objRef)
protected HttpRoutePathMatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected HttpRoutePathMatch()
@Stability(value=Stable) @NotNull public static HttpRoutePathMatch 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 HttpRoutePathMatch regex(@NotNull String regex)
regex - the regex used to match the path. This parameter is required.@Stability(value=Stable) @NotNull public static HttpRoutePathMatch 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 HttpRoutePathMatchConfig bind(@NotNull software.constructs.Construct scope)
scope - This parameter is required.Copyright © 2022. All rights reserved.