public static interface CfnGatewayRoute.HttpGatewayRouteActionProperty
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 java.lang.Object |
getRewrite()
The gateway route action to rewrite.
|
java.lang.Object |
getTarget()
An object that represents the target that traffic is routed to when a request matches the gateway route.
|
java.lang.Object getTarget()
default java.lang.Object getRewrite()
static CfnGatewayRoute.HttpGatewayRouteActionProperty.Builder builder()