@aws-cdk_aws-apigatewayv2-alpha.GrantInvokeOptions

interface GrantInvokeOptions 🔹

LanguageType name
.NETAmazon.CDK.AWS.Apigatewayv2.Alpha.GrantInvokeOptions
Gogithub.com/aws/aws-cdk-go/awscdkapigatewayv2alpha/v2#GrantInvokeOptions
Javasoftware.amazon.awscdk.services.apigatewayv2.alpha.GrantInvokeOptions
Pythonaws_cdk.aws_apigatewayv2_alpha.GrantInvokeOptions
TypeScript (source)@aws-cdk/aws-apigatewayv2-alpha » GrantInvokeOptions

Options for granting invoke access.

Example

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

Properties

NameTypeDescription
httpMethods?🔹HttpMethod[]The HTTP methods to allow.

httpMethods?🔹

Type: HttpMethod[] (optional, default: the HttpMethod of the route)

The HTTP methods to allow.