# GrantInvokeOptions

Options for granting invoke access.

- Source: [`aws-apigatewayv2/lib/http/route.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/route.ts#L47)
- Type last changed: v2.112.0 · 1 Dec 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
const grantInvokeOptions: apigatewayv2.GrantInvokeOptions = {
  httpMethods: [apigatewayv2.HttpMethod.ANY],
};
```

## Properties

- `httpMethods`: [HttpMethod](/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.HttpMethod.html)[] — The HTTP methods to allow.

  **Default:** the HttpMethod of the route
