Class GatewayRouteBaseProps
Basic configuration properties for a GatewayRoute.
Inheritance
System.Object
GatewayRouteBaseProps
Implements
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GatewayRouteBaseProps : Object, IGatewayRouteBaseProps
Syntax (vb)
Public Class GatewayRouteBaseProps
Inherits Object
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() |
Properties
GatewayRouteName | The name of the GatewayRoute. |
RouteSpec | What protocol the route uses. |
Constructors
GatewayRouteBaseProps()
public GatewayRouteBaseProps()
Properties
GatewayRouteName
The name of the GatewayRoute.
public string GatewayRouteName { get; set; }
Property Value
System.String
Remarks
Default: - an automatically generated name
RouteSpec
What protocol the route uses.
public GatewayRouteSpec RouteSpec { get; set; }
Property Value