Skip to content
v2.273.0

HttpGatewayRoutePathMatchConfig Struct ​

The type returned from the bind() method in HttpGatewayRoutePathMatch.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const httpGatewayRoutePathMatchConfig: appmesh.HttpGatewayRoutePathMatchConfig = {
  prefixPathMatch: 'prefixPathMatch',
  prefixPathRewrite: {
    defaultPrefix: 'defaultPrefix',
    value: 'value',
  },
  wholePathMatch: {
    exact: 'exact',
    regex: 'regex',
  },
  wholePathRewrite: {
    exact: 'exact',
  },
};

Properties ​

prefixPathMatchstringprefix_path_matchstrprefixPathMatchStringPrefixPathMatchstringPrefixPathMatch*string= no matching will be performed on…#
Gateway route configuration for matching on the prefix of the URL path of the request.
default

Default: no matching will be performed on the prefix of the URL path

Gateway route configuration for rewriting the prefix of the URL path of the request.
default

Default: rewrites the request's URL path to '/'

wholePathMatchCfnGatewayRoute.HttpPathMatchPropertywhole_path_matchHttpPathMatchPropertywholePathMatchHttpPathMatchPropertyWholePathMatchHttpPathMatchPropertyWholePathMatchHttpPathMatchProperty= no matching will be performed on…#
Gateway route configuration for matching on the complete URL path of the request.
default

Default: no matching will be performed on the complete URL path

Gateway route configuration for rewriting the complete URL path of the request..
default

Default: no rewrite will be performed on the request's complete URL path