GrantInvokeOptions

class aws_cdk.aws_apigatewayv2.GrantInvokeOptions(*, http_methods=None)

Bases: object

(experimental) Options for granting invoke access.

Parameters:

http_methods (Optional[Sequence[HttpMethod]]) – (experimental) The HTTP methods to allow. Default: - the HttpMethod of the route

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_apigatewayv2 as apigatewayv2

grant_invoke_options = apigatewayv2.GrantInvokeOptions(
    http_methods=[apigatewayv2.HttpMethod.ANY]
)

Attributes

http_methods

(experimental) The HTTP methods to allow.

Default:
  • the HttpMethod of the route

Stability:

experimental