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.97.0 (build 729de35)", date="2024-04-18T17:54:12.563Z") @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

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    HttpRoutePathMatch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    HttpRoutePathMatch(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(software.constructs.Construct scope)
    Returns the route path match configuration.
    The value of the path must match the specified value exactly.
    regex(String regex)
    The value of the path must match the specified regex.
    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

      @Stability(Stable) @NotNull public static HttpRoutePathMatch exactly(@NotNull String path)
      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

      @Stability(Stable) @NotNull public static HttpRoutePathMatch regex(@NotNull String 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

      @Stability(Stable) @NotNull public static HttpRoutePathMatch startsWith(@NotNull String prefix)
      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.