GrantInvokeOptions Struct
Options for granting invoke access.
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
httpMethodsoptionalHttpMethod[]http_methodsoptionaltyping.List[HttpMethod]httpMethodsoptionalList<HttpMethod>HttpMethodsoptionalHttpMethod[]HttpMethodsoptional*[]HttpMethod#The HTTP methods to allow.
Default: the HttpMethod of the route