AWS Lambda allows to create HTTP APIs fronted by API Gateway ([REST] and [HTTP]) and [ALB] (Application Load Balancer) endpoints. However, the input events vary depending on the endpoint. In order to write code that is compatible with all endpoint, certain differences need to be accounted for.
The following endpoint configuration was applied to each endpoint type: