Add support for Amazon API Gateway payload format version 2.0 (for HTTP API and Lambda function URLs) #2272
Description
Amazon API Gateway has 2 versions of payload format.
Using API Gateway REST API, lambda function receives event (payload version 1) and bolt can handle the event.
But via API Gateway HTTP API or Lambda function URLs, lambda functions receives event (payload version 2) and bolt can't handle some events. For example, because path field is changed (path -> rawPath), bolt don't handle events used slack event path /slack/events
.
Please support both payload format version 1 and 2.
Payload format difference document:
https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.