Class HttpGatewayRouteSpecOptions
Properties specific for HTTP Based GatewayRoutes.
Inheritance
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HttpGatewayRouteSpecOptions : Object, IHttpGatewayRouteSpecOptions, ICommonGatewayRouteSpecOptions
Syntax (vb)
Public Class HttpGatewayRouteSpecOptions
Inherits Object
Implements IHttpGatewayRouteSpecOptions, 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
Constructors
HttpGatewayRouteSpecOptions() |
Properties
Match | The criterion for determining a request match for this GatewayRoute. |
Priority | The priority for the gateway route. |
RouteTarget | The VirtualService this GatewayRoute directs traffic to. |
Constructors
HttpGatewayRouteSpecOptions()
public HttpGatewayRouteSpecOptions()
Properties
Match
The criterion for determining a request match for this GatewayRoute.
public IHttpGatewayRouteMatch Match { get; set; }
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 '/'
Priority
The priority for the gateway route.
public Nullable<double> Priority { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
When a Virtual Gateway has multiple gateway routes, gateway route match is performed in the order of specified value, where 0 is the highest priority, and first matched gateway route is selected.
Default: - no particular priority
RouteTarget
The VirtualService this GatewayRoute directs traffic to.
public IVirtualService RouteTarget { get; set; }
Property Value