# HttpGatewayRoutePathMatchConfig

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

- Source: [`aws-appmesh/lib/http-route-path-match.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-appmesh/lib/http-route-path-match.ts#L101)

## 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

- `prefixPathMatch`: string — Gateway route configuration for matching on the prefix of the URL path of the request.

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

- `prefixPathRewrite`: [CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty.html) — Gateway route configuration for rewriting the prefix of the URL path of the request.

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

- `wholePathMatch`: [CfnGatewayRoute.HttpPathMatchProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnGatewayRoute.HttpPathMatchProperty.html) — Gateway route configuration for matching on the complete URL path of the request.

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

- `wholePathRewrite`: [CfnGatewayRoute.HttpGatewayRoutePathRewriteProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnGatewayRoute.HttpGatewayRoutePathRewriteProperty.html) — Gateway route configuration for rewriting the complete URL path of the request..

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