Interface HttpGatewayRouteSpecOptions
- All Superinterfaces:
CommonGatewayRouteSpecOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpGatewayRouteSpecOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.089Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forHttpGatewayRouteSpecOptionsstatic final classAn implementation forHttpGatewayRouteSpecOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default HttpGatewayRouteMatchgetMatch()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
getPriorityMethods 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
-