interface GatewayRouteBaseProps
This page is available in another version. Click here for the v2 documentation.
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppMesh.GatewayRouteBaseProps |
Java | software.amazon.awscdk.services.appmesh.GatewayRouteBaseProps |
Python | aws_cdk.aws_appmesh.GatewayRouteBaseProps |
TypeScript (source) | @aws-cdk/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.