@Stability(value=Stable)
public static interface CfnGatewayRoute.HttpGatewayRouteActionProperty
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.*;
HttpGatewayRouteActionProperty httpGatewayRouteActionProperty = HttpGatewayRouteActionProperty.builder()
.target(GatewayRouteTargetProperty.builder()
.virtualService(GatewayRouteVirtualServiceProperty.builder()
.virtualServiceName("virtualServiceName")
.build())
// the properties below are optional
.port(123)
.build())
// the properties below are optional
.rewrite(HttpGatewayRouteRewriteProperty.builder()
.hostname(GatewayRouteHostnameRewriteProperty.builder()
.defaultTargetHostname("defaultTargetHostname")
.build())
.path(HttpGatewayRoutePathRewriteProperty.builder()
.exact("exact")
.build())
.prefix(HttpGatewayRoutePrefixRewriteProperty.builder()
.defaultPrefix("defaultPrefix")
.value("value")
.build())
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder
A builder for
CfnGatewayRoute.HttpGatewayRouteActionProperty |
static class |
CfnGatewayRoute.HttpGatewayRouteActionProperty.Jsii$Proxy
An implementation for
CfnGatewayRoute.HttpGatewayRouteActionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnGatewayRoute.HttpGatewayRouteActionProperty.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.HttpGatewayRouteActionProperty.Builder builder()
Copyright © 2022. All rights reserved.