Show / Hide Table of Contents

Class GatewayRouteBaseProps

Basic configuration properties for a GatewayRoute.

Inheritance
object
GatewayRouteBaseProps
Implements
IGatewayRouteBaseProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

string

Remarks

Default: - an automatically generated name

RouteSpec

What protocol the route uses.

public GatewayRouteSpec RouteSpec { get; set; }
Property Value

GatewayRouteSpec

Remarks

ExampleMetadata: infused

Implements

IGatewayRouteBaseProps
Back to top Generated by DocFX