interface GatewayRouteBaseProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppMesh.GatewayRouteBaseProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#GatewayRouteBaseProps |
![]() | software.amazon.awscdk.services.appmesh.GatewayRouteBaseProps |
![]() | aws_cdk.aws_appmesh.GatewayRouteBaseProps |
![]() | aws-cdk-lib » aws_appmesh » GatewayRouteBaseProps |
Basic configuration properties for a 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.exactly('example.com'),
// This disables the default rewrite to virtual service name and retain original request.
rewriteRequestHostname: false,
},
}),
});
Properties
Name | Type | Description |
---|---|---|
route | Gateway | What protocol the route uses. |
gateway | string | The name of the GatewayRoute. |
routeSpec
Type:
Gateway
What protocol the route uses.
gatewayRouteName?
Type:
string
(optional, default: an automatically generated name)
The name of the GatewayRoute.