How to do it...

We will create our Lambda, similar to in the Your First AWS Lambda recipe, but using POJOs for input and output. We will not go deep into concepts discussed previously. If in doubt, please refer to the Your First AWS Lambda recipe.

  1. Create the Maven project with only the core dependency, aws-lambda-java-core:
<groupId>tech.heartin.books.serverless-cookbook</groupId><artifactId>lambda-handler-with-pojos</artifactId><version>0.0.1-SNAPSHOT</version><parent> <groupId>tech.heartin.books.serverlesscookbook</groupId> <artifactId>serverless-cookbook-parent-aws-java</artifactId> <version>0.0.1-SNAPSHOT</version></parent><dependencies> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-lambda-java-core</artifactId> <version> ...

Get Serverless Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.