Skip to content
v2.275.0

GrpcGatewayRouteSpecOptions Struct ​

Properties specific for a gRPC GatewayRoute.

Example ​

ts
declare const gateway: appmesh.VirtualGateway;
declare const virtualService: appmesh.VirtualService;

gateway.addGatewayRoute('gateway-route-grpc', {
  routeSpec: appmesh.GatewayRouteSpec.grpc({
    routeTarget: virtualService,
    match: {
      hostname: appmesh.GatewayRouteHostnameMatch.endsWith('.example.com'),
    },
  }),
});

Properties ​

The criterion for determining a request match for this GatewayRoute.
priorityoptionalnumberpriorityoptionalint | floatpriorityoptionalNumberPriorityoptionaldoublePriorityoptional*float64#
The priority for the gateway route.

Default: no particular priority

When a Virtual Gateway has multiple gateway routes, gateway route match is performed in the order of specified value, where 0 is the highest priority, and first matched gateway route is selected.

routeTargetIVirtualServiceroute_targetIVirtualServicerouteTargetIVirtualServiceRouteTargetIVirtualServiceRouteTargetIVirtualServicerequired#
The VirtualService this GatewayRoute directs traffic to.