Lambda provides the following libraries for Java functions:
com.amazonaws:aws-lambda-java-core (required) – Defines handler method interfaces and the context object that the runtime passes to the handler. If you define your own input types, this is the only library that you need.
com.amazonaws:aws-lambda-java-events – Input types for events from services that invoke Lambda functions.
com.amazonaws:aws-lambda-java-log4j2 – An appender library for Apache Log4j 2 that you can use to add the request ID for the current invocation to your function logs.
AWS SDK for Java 2.0 – The official AWS SDK for the Java programming language.
These libraries are available through Maven Central Repository. Add them to your build def