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.
virtual GatewayRouteHostnameMatch Hostname { get; }
Property Value
Remarks
Default: - no matching on host name
Metadata
Create metadata based gRPC gateway route match.
virtual 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.
virtual Nullable<double> Port { get; }
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.
virtual Nullable<bool> RewriteRequestHostname { get; }
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.
virtual string ServiceName { get; }
Property Value
System.String
Remarks
Default: - no matching on service name