aws-cdk-lib.aws_appmesh.GrpcGatewayRouteSpecOptions

interface GrpcGatewayRouteSpecOptions

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.GrpcGatewayRouteSpecOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#GrpcGatewayRouteSpecOptions
Javasoftware.amazon.awscdk.services.appmesh.GrpcGatewayRouteSpecOptions
Pythonaws_cdk.aws_appmesh.GrpcGatewayRouteSpecOptions
TypeScript (source)aws-cdk-lib » aws_appmesh » GrpcGatewayRouteSpecOptions

Properties specific for a gRPC GatewayRoute.

Example

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

NameTypeDescription
matchGrpcGatewayRouteMatchThe criterion for determining a request match for this GatewayRoute.
routeTargetIVirtualServiceThe VirtualService this GatewayRoute directs traffic to.
priority?numberThe priority for the gateway route.

match

Type: GrpcGatewayRouteMatch

The criterion for determining a request match for this GatewayRoute.


routeTarget

Type: IVirtualService

The VirtualService this GatewayRoute directs traffic to.


priority?

Type: number (optional, default: no particular priority)

The priority for the gateway route.

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.