Class HttpRoutePathMatch
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.appmesh.HttpRoutePathMatch
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:11.282Z")
@Stability(Stable)
public abstract class HttpRoutePathMatch
extends software.amazon.jsii.JsiiObject
Defines HTTP route matching based on the URL path of the request.
Example:
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());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
HttpRoutePathMatch
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
HttpRoutePathMatch
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionabstract HttpRoutePathMatchConfig
bind
(software.constructs.Construct scope) Returns the route path match configuration.static HttpRoutePathMatch
The value of the path must match the specified value exactly.static HttpRoutePathMatch
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.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
HttpRoutePathMatch
protected HttpRoutePathMatch(software.amazon.jsii.JsiiObjectRef objRef) -
HttpRoutePathMatch
protected HttpRoutePathMatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
HttpRoutePathMatch
@Stability(Stable) protected HttpRoutePathMatch()
-
-
Method Details
-
exactly
The value of the path must match the specified value exactly.The provided
path
must start with the '/' character.- Parameters:
path
- the exact path to match on. This parameter is required.
-
regex
The value of the path must match the specified regex.- Parameters:
regex
- the regex used to match the path. This parameter is required.
-
startsWith
The value of the path must match the specified prefix.- Parameters:
prefix
- the value to use to match the beginning of the path part of the URL of the request. This parameter is required.
-
bind
@Stability(Stable) @NotNull public abstract HttpRoutePathMatchConfig bind(@NotNull software.constructs.Construct scope) Returns the route path match configuration.- Parameters:
scope
- This parameter is required.
-