@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.531Z") @Stability(value=Stable) public abstract class GatewayRouteSpec extends software.amazon.jsii.JsiiObject
Example:
// Example automatically generated from non-compiling source. May contain errors.
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(software.constructs.Construct scope)
Called when the GatewayRouteSpec type is initialized.
|
static GatewayRouteSpec |
grpc(GrpcGatewayRouteSpecOptions options)
Creates an gRPC Based GatewayRoute.
|
static GatewayRouteSpec |
http(HttpGatewayRouteSpecOptions options)
Creates an HTTP Based GatewayRoute.
|
static GatewayRouteSpec |
http2(HttpGatewayRouteSpecOptions options)
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=Stable) protected GatewayRouteSpec()
@Stability(value=Stable) @NotNull public static GatewayRouteSpec grpc(@NotNull GrpcGatewayRouteSpecOptions options)
options - - no grpc gateway route. This parameter is required.@Stability(value=Stable) @NotNull public static GatewayRouteSpec http(@NotNull HttpGatewayRouteSpecOptions options)
options - - no http gateway route. This parameter is required.@Stability(value=Stable) @NotNull public static GatewayRouteSpec http2(@NotNull HttpGatewayRouteSpecOptions options)
options - - no http2 gateway route. This parameter is required.@Stability(value=Stable) @NotNull public abstract GatewayRouteSpecConfig bind(@NotNull software.constructs.Construct scope)
Can be used to enforce mutual exclusivity with future properties
scope - This parameter is required.Copyright © 2022. All rights reserved.