@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:42.354Z") @Stability(value=Experimental) public abstract class GatewayRouteSpec extends software.amazon.jsii.JsiiObject
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());
| Modifier | Constructor and Description |
|---|---|
protected |
GatewayRouteSpec() |
protected |
GatewayRouteSpec(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
GatewayRouteSpec(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract GatewayRouteSpecConfig |
bind(Construct scope)
(experimental) Called when the GatewayRouteSpec type is initialized.
|
static GatewayRouteSpec |
grpc(GrpcGatewayRouteSpecOptions options)
(experimental) Creates an gRPC Based GatewayRoute.
|
static GatewayRouteSpec |
http(HttpGatewayRouteSpecOptions options)
(experimental) Creates an HTTP Based GatewayRoute.
|
static GatewayRouteSpec |
http2(HttpGatewayRouteSpecOptions options)
(experimental) Creates an HTTP2 Based GatewayRoute.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected GatewayRouteSpec(software.amazon.jsii.JsiiObjectRef objRef)
protected GatewayRouteSpec(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected GatewayRouteSpec()
@Stability(value=Experimental) @NotNull public static GatewayRouteSpec grpc(@NotNull GrpcGatewayRouteSpecOptions options)
options - - no grpc gateway route. This parameter is required.@Stability(value=Experimental) @NotNull public static GatewayRouteSpec http(@NotNull HttpGatewayRouteSpecOptions options)
options - - no http gateway route. This parameter is required.@Stability(value=Experimental) @NotNull public static GatewayRouteSpec http2(@NotNull HttpGatewayRouteSpecOptions options)
options - - no http2 gateway route. This parameter is required.@Stability(value=Experimental) @NotNull public abstract GatewayRouteSpecConfig bind(@NotNull Construct scope)
Can be used to enforce mutual exclusivity with future properties
scope - This parameter is required.Copyright © 2022. All rights reserved.