Interface HttpGatewayRouteSpecOptions
- All Superinterfaces:
CommonGatewayRouteSpecOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpGatewayRouteSpecOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:11.279Z")
@Stability(Stable)
public interface HttpGatewayRouteSpecOptions
extends software.amazon.jsii.JsiiSerializable, CommonGatewayRouteSpecOptions
Properties specific for HTTP Based GatewayRoutes.
Example:
VirtualGateway gateway; VirtualService virtualService; gateway.addGatewayRoute("gateway-route-http-2", GatewayRouteBaseProps.builder() .routeSpec(GatewayRouteSpec.http(HttpGatewayRouteSpecOptions.builder() .routeTarget(virtualService) .match(HttpGatewayRouteMatch.builder() // This rewrites the path from '/test' to '/rewrittenPath'. .path(HttpGatewayRoutePathMatch.exactly("/test", "/rewrittenPath")) .build()) .build())) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forHttpGatewayRouteSpecOptions
static final class
An implementation forHttpGatewayRouteSpecOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default HttpGatewayRouteMatch
getMatch()
The criterion for determining a request match for this GatewayRoute.The VirtualService this GatewayRoute directs traffic to.Methods inherited from interface software.amazon.awscdk.services.appmesh.CommonGatewayRouteSpecOptions
getPriority
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRouteTarget
The VirtualService this GatewayRoute directs traffic to. -
getMatch
The criterion for determining a request match for this GatewayRoute.When path match is defined, this may optionally determine the path rewrite configuration.
Default: - matches any path and automatically rewrites the path to '/'
-
builder
-