aws-cdk-lib.aws_appmesh.HttpGatewayRouteSpecOptions

interface HttpGatewayRouteSpecOptions

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

Properties specific for HTTP Based GatewayRoutes.

Example

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

gateway.addGatewayRoute('gateway-route-http-2', {
  routeSpec: appmesh.GatewayRouteSpec.http({
    routeTarget: virtualService,
    match: {
      // This rewrites the path from '/test' to '/rewrittenPath'.
      path: appmesh.HttpGatewayRoutePathMatch.exactly('/test', '/rewrittenPath'),
    },
  }),
});

Properties

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

routeTarget

Type: IVirtualService

The VirtualService this GatewayRoute directs traffic to.


match?

Type: HttpGatewayRouteMatch (optional, default: matches any path and automatically rewrites the path to '/')

The criterion for determining a request match for this GatewayRoute.

When path match is defined, this may optionally determine the path rewrite configuration.


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.