Interface IHttpGatewayRouteSpecOptions
Properties specific for HTTP Based GatewayRoutes.
Inherited Members
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IHttpGatewayRouteSpecOptions : ICommonGatewayRouteSpecOptions
Syntax (vb)
Public Interface IHttpGatewayRouteSpecOptions
Inherits ICommonGatewayRouteSpecOptions
Remarks
ExampleMetadata: infused
Examples
VirtualGateway gateway;
VirtualService virtualService;
gateway.AddGatewayRoute("gateway-route-http-2", new GatewayRouteBaseProps {
RouteSpec = GatewayRouteSpec.Http(new HttpGatewayRouteSpecOptions {
RouteTarget = virtualService,
Match = new HttpGatewayRouteMatch {
// This rewrites the path from '/test' to '/rewrittenPath'.
Path = HttpGatewayRoutePathMatch.Exactly("/test", "/rewrittenPath")
}
})
});
Synopsis
Properties
Match | The criterion for determining a request match for this GatewayRoute. |
RouteTarget | The VirtualService this GatewayRoute directs traffic to. |
Properties
Match
The criterion for determining a request match for this GatewayRoute.
virtual IHttpGatewayRouteMatch Match { get; }
Property Value
Remarks
When path match is defined, this may optionally determine the path rewrite configuration.
Default: - matches any path and automatically rewrites the path to '/'
RouteTarget
The VirtualService this GatewayRoute directs traffic to.
IVirtualService RouteTarget { get; }
Property Value