Demystifying Java AWS Lambda handlers for API Gateway

George Mao
2 min readDec 16, 2020

I recently did a deep dive into writing Java based AWS Lambda functions for Amazon API Gateway payloads. Special thanks to Heeki Park for helping figure this out! Check out his Medium for awesome AWS tips. Here’s the things you should know and will save you time and headache:

You have two options for writing handlers written in Java. The related AWS docs are here. I found it really confusing so I’ll try to summarize. First, your class should implement one of these two interfaces:

--

--

George Mao

Distinguished Engineer @ Capital One leading all things Serverless | Ex -AWS WW Serverless Tech Lead.