interface GrantInvokeOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.APIGatewayv2.GrantInvokeOptions |
Java | software.amazon.awscdk.services.apigatewayv2.GrantInvokeOptions |
Python | aws_cdk.aws_apigatewayv2.GrantInvokeOptions |
TypeScript (source) | @aws-cdk/aws-apigatewayv2 » 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 from '@aws-cdk/aws-apigatewayv2';
const grantInvokeOptions: apigatewayv2.GrantInvokeOptions = {
httpMethods: [apigatewayv2.HttpMethod.ANY],
};
Properties
Name | Type | Description |
---|---|---|
http | Http [] | The HTTP methods to allow. |
httpMethods?
Type:
Http
[]
(optional, default: the HttpMethod of the route)
The HTTP methods to allow.