LambdaAddEventSourceHttpApi
Description
Creates a mapping between an API Gateway HTTP API (as event source) and a Lambda function (as event target).
Input
ApiGatewayApi
Logical ID of AWS::ApiGatewayV2::Api
resource (event source).
LambdaFunction
Logical ID of AWS::Lambda::Function resource
(event target).
RouteKey
The route key for the route that triggers a specified lambda function. For HTTP APIs, the route key can be either $default
, or a combination of an HTTP method and resource path, for example, GET /pets
. Must be a valid Cloudformation syntax that resolves to a string.