@Stability(value=Stable)
public static interface CfnGatewayRoute.HttpGatewayRouteProperty
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.*;
HttpGatewayRouteProperty httpGatewayRouteProperty = HttpGatewayRouteProperty.builder()
.action(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())
.match(HttpGatewayRouteMatchProperty.builder()
.headers(List.of(HttpGatewayRouteHeaderProperty.builder()
.name("name")
// the properties below are optional
.invert(false)
.match(HttpGatewayRouteHeaderMatchProperty.builder()
.exact("exact")
.prefix("prefix")
.range(GatewayRouteRangeMatchProperty.builder()
.end(123)
.start(123)
.build())
.regex("regex")
.suffix("suffix")
.build())
.build()))
.hostname(GatewayRouteHostnameMatchProperty.builder()
.exact("exact")
.suffix("suffix")
.build())
.method("method")
.path(HttpPathMatchProperty.builder()
.exact("exact")
.regex("regex")
.build())
.port(123)
.prefix("prefix")
.queryParameters(List.of(QueryParameterProperty.builder()
.name("name")
// the properties below are optional
.match(HttpQueryParameterMatchProperty.builder()
.exact("exact")
.build())
.build()))
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnGatewayRoute.HttpGatewayRouteProperty.Builder
A builder for
CfnGatewayRoute.HttpGatewayRouteProperty |
static class |
CfnGatewayRoute.HttpGatewayRouteProperty.Jsii$Proxy
An implementation for
CfnGatewayRoute.HttpGatewayRouteProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnGatewayRoute.HttpGatewayRouteProperty.Builder |
builder() |
Object |
getAction()
An object that represents the action to take if a match is determined.
|
Object |
getMatch()
An object that represents the criteria for determining a request match.
|
@Stability(value=Stable) @NotNull Object getAction()
@Stability(value=Stable) @NotNull Object getMatch()
@Stability(value=Stable) static CfnGatewayRoute.HttpGatewayRouteProperty.Builder builder()
Copyright © 2022. All rights reserved.