@Stability(value=Stable)
public static interface CfnGatewayRoute.GrpcGatewayRouteActionProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;
GrpcGatewayRouteActionProperty grpcGatewayRouteActionProperty = GrpcGatewayRouteActionProperty.builder()
.target(GatewayRouteTargetProperty.builder()
.virtualService(GatewayRouteVirtualServiceProperty.builder()
.virtualServiceName("virtualServiceName")
.build())
// the properties below are optional
.port(123)
.build())
// the properties below are optional
.rewrite(GrpcGatewayRouteRewriteProperty.builder()
.hostname(GatewayRouteHostnameRewriteProperty.builder()
.defaultTargetHostname("defaultTargetHostname")
.build())
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnGatewayRoute.GrpcGatewayRouteActionProperty.Builder
A builder for
CfnGatewayRoute.GrpcGatewayRouteActionProperty |
static class |
CfnGatewayRoute.GrpcGatewayRouteActionProperty.Jsii$Proxy
An implementation for
CfnGatewayRoute.GrpcGatewayRouteActionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnGatewayRoute.GrpcGatewayRouteActionProperty.Builder |
builder() |
default Object |
getRewrite()
The gateway route action to rewrite.
|
Object |
getTarget()
An object that represents the target that traffic is routed to when a request matches the gateway route.
|
@Stability(value=Stable) @NotNull Object getTarget()
@Stability(value=Stable) @Nullable default Object getRewrite()
@Stability(value=Stable) static CfnGatewayRoute.GrpcGatewayRouteActionProperty.Builder builder()
Copyright © 2022. All rights reserved.