Class GrpcGatewayRouteMatch
The criterion for determining a request match for this GatewayRoute.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GrpcGatewayRouteMatch : Object, IGrpcGatewayRouteMatch
Syntax (vb)
Public Class GrpcGatewayRouteMatch
Inherits Object
Implements IGrpcGatewayRouteMatch
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
GrpcGatewayRouteMatch() |
Properties
Hostname | Create host name based gRPC gateway route match. |
Metadata | Create metadata based gRPC gateway route match. |
Port | The port to match from the request. |
RewriteRequestHostname | When |
ServiceName | Create service name based gRPC gateway route match. |
Constructors
GrpcGatewayRouteMatch()
public GrpcGatewayRouteMatch()
Properties
Hostname
Create host name based gRPC gateway route match.
public GatewayRouteHostnameMatch Hostname { get; set; }
Property Value
Remarks
Default: - no matching on host name
Metadata
Create metadata based gRPC gateway route match.
public HeaderMatch[] Metadata { get; set; }
Property Value
Remarks
All specified metadata must match for the route to match.
Default: - no matching on metadata
Port
The port to match from the request.
public Nullable<double> Port { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - do not match on port
RewriteRequestHostname
When true
, rewrites the original request received at the Virtual Gateway to the destination Virtual Service name.
public Nullable<bool> RewriteRequestHostname { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
When false
, retains the original hostname from the request.
Default: true
ServiceName
Create service name based gRPC gateway route match.
public string ServiceName { get; set; }
Property Value
System.String
Remarks
Default: - no matching on service name