Interface IGrpcGatewayRouteMatch
The criterion for determining a request match for this GatewayRoute.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IGrpcGatewayRouteMatch
Syntax (vb)
Public Interface 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
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. |
Properties
Hostname
Create host name based gRPC gateway route match.
GatewayRouteHostnameMatch? Hostname { get; }
Property Value
Remarks
Default: - no matching on host name
Metadata
Create metadata based gRPC gateway route match.
HeaderMatch[]? Metadata { get; }
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.
double? Port { get; }
Property Value
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.
bool? RewriteRequestHostname { get; }
Property Value
bool?
Remarks
When false, retains the original hostname from the request.
Default: true
ServiceName
Create service name based gRPC gateway route match.
string? ServiceName { get; }
Property Value
Remarks
Default: - no matching on service name