# QueryParameterMatch

Used to generate query parameter matching methods.

- Source: [`aws-appmesh/lib/query-parameter-match.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-appmesh/lib/query-parameter-match.ts#L17)

## Example

```ts
declare const router: appmesh.VirtualRouter;
declare const node: appmesh.VirtualNode;

router.addRoute('route-http2', {
  routeSpec: appmesh.RouteSpec.http2({
    weightedTargets: [
      {
        virtualNode: node,
      },
    ],
    match: {
      path: appmesh.HttpRoutePathMatch.exactly('/exact'),
      method: appmesh.HttpRouteMethod.POST,
      protocol: appmesh.HttpRouteProtocol.HTTPS,
      headers: [
        // All specified headers must match for the route to match.
        appmesh.HeaderMatch.valueIs('Content-Type', 'application/json'),
        appmesh.HeaderMatch.valueIsNot('Content-Type', 'application/json'),
      ],
      queryParameters: [
        // All specified query parameters must match for the route to match.
        appmesh.QueryParameterMatch.valueIs('query-field', 'value')
      ],
    },
  }),
});
```

## Initializer

```ts
new QueryParameterMatch()
```

## Methods

- `bind(scope: Construct): QueryParameterMatchConfig` — Returns the query parameter match configuration.

- `valueIs(queryParameterName: string, queryParameterValue: string): QueryParameterMatch // chainable` (static) — The value of the query parameter with the given name in the request must match the specified value exactly.

  **Parameters**

  - `queryParameterName` — the name of the query parameter to match against.
  - `queryParameterValue` — The exact value to test against.
