I am creating an API using AWS API Gateway with integration to AWS Lambda using Java.
I came across 3 types of Java objects that can be used as a return type in the Lambda functions.
APIGatewayV2HTTPEventAPIGatewayProxyRequestEventAPIGatewayV2ProxyRequestEvent(Deprecated)
I have tried creating a REST API Gateway and returned all 3 objects, the API still works.
What are the differences and which one should I be using?