Class GatewayRouteSpec

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.appmesh.GatewayRouteSpec
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-24T21:00:25.535Z") @Stability(Stable) public abstract class GatewayRouteSpec extends software.amazon.jsii.JsiiObject
Used to generate specs with different protocols for a GatewayRoute.

Example:

 VirtualGateway gateway;
 VirtualService virtualService;
 gateway.addGatewayRoute("gateway-route-grpc", GatewayRouteBaseProps.builder()
         .routeSpec(GatewayRouteSpec.grpc(GrpcGatewayRouteSpecOptions.builder()
                 .routeTarget(virtualService)
                 .match(GrpcGatewayRouteMatch.builder()
                         .hostname(GatewayRouteHostnameMatch.exactly("example.com"))
                         // This disables the default rewrite to virtual service name and retain original request.
                         .rewriteRequestHostname(false)
                         .build())
                 .build()))
         .build());
 
  • Constructor Details

    • GatewayRouteSpec

      protected GatewayRouteSpec(software.amazon.jsii.JsiiObjectRef objRef)
    • GatewayRouteSpec

      protected GatewayRouteSpec(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • GatewayRouteSpec

      @Stability(Stable) protected GatewayRouteSpec()
  • Method Details

    • grpc

      @Stability(Stable) @NotNull public static GatewayRouteSpec grpc(@NotNull GrpcGatewayRouteSpecOptions options)
      Creates an gRPC Based GatewayRoute.

      Parameters:
      options -
      • no grpc gateway route.
      This parameter is required.
    • http

      @Stability(Stable) @NotNull public static GatewayRouteSpec http(@NotNull HttpGatewayRouteSpecOptions options)
      Creates an HTTP Based GatewayRoute.

      Parameters:
      options -
      • no http gateway route.
      This parameter is required.
    • http2

      @Stability(Stable) @NotNull public static GatewayRouteSpec http2(@NotNull HttpGatewayRouteSpecOptions options)
      Creates an HTTP2 Based GatewayRoute.

      Parameters:
      options -
      • no http2 gateway route.
      This parameter is required.
    • bind

      @Stability(Stable) @NotNull public abstract GatewayRouteSpecConfig bind(@NotNull software.constructs.Construct scope)
      Called when the GatewayRouteSpec type is initialized.

      Can be used to enforce mutual exclusivity with future properties

      Parameters:
      scope - This parameter is required.