Class GrpcGatewayRouteSpecOptions
Properties specific for a gRPC GatewayRoute.
Inheritance
System.Object
GrpcGatewayRouteSpecOptions
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GrpcGatewayRouteSpecOptions : Object, IGrpcGatewayRouteSpecOptions, ICommonGatewayRouteSpecOptions
Syntax (vb)
Public Class GrpcGatewayRouteSpecOptions
Inherits Object
Implements IGrpcGatewayRouteSpecOptions, ICommonGatewayRouteSpecOptions
Remarks
ExampleMetadata: infused
Examples
VirtualGateway gateway;
VirtualService virtualService;
gateway.AddGatewayRoute("gateway-route-grpc", new GatewayRouteBaseProps {
RouteSpec = GatewayRouteSpec.Grpc(new GrpcGatewayRouteSpecOptions {
RouteTarget = virtualService,
Match = new GrpcGatewayRouteMatch {
Hostname = GatewayRouteHostnameMatch.EndsWith(".example.com")
}
})
});
Synopsis
Constructors
GrpcGatewayRouteSpecOptions() |
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
GrpcGatewayRouteSpecOptions()
public GrpcGatewayRouteSpecOptions()
Properties
Match
The criterion for determining a request match for this GatewayRoute.
public IGrpcGatewayRouteMatch Match { get; set; }
Property Value
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