interface GrpcGatewayRouteSpecOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppMesh.GrpcGatewayRouteSpecOptions |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#GrpcGatewayRouteSpecOptions |
![]() | software.amazon.awscdk.services.appmesh.GrpcGatewayRouteSpecOptions |
![]() | aws_cdk.aws_appmesh.GrpcGatewayRouteSpecOptions |
![]() | 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
Name | Type | Description |
---|---|---|
match | Grpc | The criterion for determining a request match for this GatewayRoute. |
route | IVirtual | The VirtualService this GatewayRoute directs traffic to. |
priority? | number | The priority for the gateway route. |
match
Type:
Grpc
The criterion for determining a request match for this GatewayRoute.
routeTarget
Type:
IVirtual
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.