Enum HttpRouteProtocol

java.lang.Object
java.lang.Enum<HttpRouteProtocol>
software.amazon.awscdk.services.appmesh.HttpRouteProtocol
All Implemented Interfaces:
Serializable, Comparable<HttpRouteProtocol>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-11T15:55:53.223Z") @Stability(Stable) public enum HttpRouteProtocol extends Enum<HttpRouteProtocol>
Supported :scheme options for HTTP2.

Example:

 VirtualRouter router;
 VirtualNode node;
 router.addRoute("route-http2", RouteBaseProps.builder()
         .routeSpec(RouteSpec.http2(HttpRouteSpecOptions.builder()
                 .weightedTargets(List.of(WeightedTarget.builder()
                         .virtualNode(node)
                         .build()))
                 .match(HttpRouteMatch.builder()
                         .path(HttpRoutePathMatch.exactly("/exact"))
                         .method(HttpRouteMethod.POST)
                         .protocol(HttpRouteProtocol.HTTPS)
                         .headers(List.of(HeaderMatch.valueIs("Content-Type", "application/json"), HeaderMatch.valueIsNot("Content-Type", "application/json")))
                         .queryParameters(List.of(QueryParameterMatch.valueIs("query-field", "value")))
                         .build())
                 .build()))
         .build());
 
  • Enum Constant Details

    • HTTP

      @Stability(Stable) public static final HttpRouteProtocol HTTP
      Match HTTP requests.
    • HTTPS

      @Stability(Stable) public static final HttpRouteProtocol HTTPS
      Match HTTPS requests.
  • Method Details

    • values

      public static HttpRouteProtocol[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static HttpRouteProtocol valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null