Class GatewayRouteBaseProps
Basic configuration properties for a GatewayRoute.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GatewayRouteBaseProps : IGatewayRouteBaseProps
Syntax (vb)
Public Class GatewayRouteBaseProps Implements IGatewayRouteBaseProps
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.Exactly("example.com"),
// This disables the default rewrite to virtual service name and retain original request.
RewriteRequestHostname = false
}
})
});
Synopsis
Constructors
| GatewayRouteBaseProps() | Basic configuration properties for a GatewayRoute. |
Properties
| GatewayRouteName | The name of the GatewayRoute. |
| RouteSpec | What protocol the route uses. |
Constructors
GatewayRouteBaseProps()
Basic configuration properties for a GatewayRoute.
public GatewayRouteBaseProps()
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.Exactly("example.com"),
// This disables the default rewrite to virtual service name and retain original request.
RewriteRequestHostname = false
}
})
});
Properties
GatewayRouteName
The name of the GatewayRoute.
public string? GatewayRouteName { get; set; }
Property Value
Remarks
Default: - an automatically generated name
RouteSpec
What protocol the route uses.
public GatewayRouteSpec RouteSpec { get; set; }
Property Value
Remarks
ExampleMetadata: infused