/aws-lambda-java-libs

Official mirror for interface definitions and helper classes for Java code running on the AWS Lambda platform.

Primary LanguageC++Apache License 2.0Apache-2.0

AWS Lambda Java Support Libraries

Interface definitions for Java code running on the AWS Lambda platform.

For issues and questions, you can start with our FAQ and the AWS forums

To get started writing AWS Lambda functions in Java, check out the official documentation.

Disclaimer of use

Each of the supplied packages should be used without modification. Removing dependencies, adding conflicting dependencies, or selectively including classes from the packages can result in unexpected behavior.

Release Notes

Check out the per-module release notes:

Where to get packages


Maven

<dependency>
  <groupId>com.amazonaws</groupId>
  <artifactId>aws-lambda-java-core</artifactId>
  <version>1.2.1</version>
</dependency>
<dependency>
  <groupId>com.amazonaws</groupId>
  <artifactId>aws-lambda-java-events</artifactId>
  <version>3.11.0</version>
</dependency>
<dependency>
  <groupId>com.amazonaws</groupId>
  <artifactId>aws-lambda-java-events-sdk-transformer</artifactId>
  <version>3.1.0</version>
</dependency>
<dependency>
  <groupId>com.amazonaws</groupId>
  <artifactId>aws-lambda-java-log4j2</artifactId>
  <version>1.5.1</version>
</dependency>
<dependency>
  <groupId>com.amazonaws</groupId>
  <artifactId>aws-lambda-java-runtime-interface-client</artifactId>
  <version>2.1.0</version>
</dependency>
<dependency>
  <groupId>com.amazonaws</groupId>
  <artifactId>aws-lambda-java-tests</artifactId>
  <version>1.1.1</version>
  <scope>test</scope>
</dependency>

Gradle

'com.amazonaws:aws-lambda-java-core:1.2.1'
'com.amazonaws:aws-lambda-java-events:3.11.0'
'com.amazonaws:aws-lambda-java-events-sdk-transformer:3.1.0'
'com.amazonaws:aws-lambda-java-log4j2:1.5.1'
'com.amazonaws:aws-lambda-java-runtime-interface-client:2.1.0'
'com.amazonaws:aws-lambda-java-tests:1.1.1'

Leiningen and Boot

[com.amazonaws/aws-lambda-java-core "1.2.1"]
[com.amazonaws/aws-lambda-java-events "3.11.0"]
[com.amazonaws/aws-lambda-java-events-sdk-transformer "3.1.0"]
[com.amazonaws/aws-lambda-java-log4j2 "1.5.1"]
[com.amazonaws/aws-lambda-java-runtime-interface-client "2.1.0"]
[com.amazonaws/aws-lambda-java-tests "1.1.1"]

sbt

"com.amazonaws" % "aws-lambda-java-core" % "1.2.1"
"com.amazonaws" % "aws-lambda-java-events" % "3.11.0"
"com.amazonaws" % "aws-lambda-java-events-sdk-transformer" % "3.1.0"
"com.amazonaws" % "aws-lambda-java-log4j2" % "1.5.1"
"com.amazonaws" % "aws-lambda-java-runtime-interface-client" % "2.1.0"
"com.amazonaws" % "aws-lambda-java-tests" % "1.1.1"

Using aws-lambda-java-core

This package defines the Lambda Context object as well as interfaces that Lambda accepts.

Using aws-lambda-java-events

This package defines event sources that AWS Lambda natively accepts. See the documentation for more information.

Using aws-lambda-java-events-sdk-transformer

This package provides helper classes/methods to use alongside aws-lambda-java-events in order to transform Lambda input event model objects into SDK-compatible output model objects.
See the documentation for more information.

Using aws-lambda-java-log4j2

This package defines the Lambda adapter to use with log4j version 2. See the README or the official documentation for information on how to use the adapter.

Using aws-lambda-java-runtime-interface-client

This package defines the Lambda Java Runtime Interface Client package, a Lambda Runtime component that starts the runtime and interacts with the Runtime API - i.e., it calls the API for invocation events, starts the function code, calls the API to return the response. The purpose of this package is to allow developers to deploy their applications in Lambda under the form of Container Images. See the README for information on how to use the library.

Using aws-lambda-java-serialization

This package defines the Lambda serialization logic using in the aws-lambda-java-runtime-client library. It has no current standalone usage.

Using aws-lambda-java-tests

This package provides utils to ease Lambda Java testing. Used with aws-lambda-java-serialization and aws-lambda-java-events to inject events in your JUnit tests.