It seems like you still have to have both SDK v1 and SDK v2 on your classpath.

For example, looking at the Lambda Java documentation you can see that all imports still start with com.amazonaws (SDK v1) and not software.amazon (SDK v2).

One of the examples they list there is blank-java which they describe as "A Java function with the events library, advanced logging configuration, and the AWS SDK for Java 2.x that calls the Lambda API to retrieve account settings"

If you look at that sample application's pom.xml you'll see com.amazonaws and software.amazon packages mixed together.

Similarly for the Lambda handler.

So either they haven't ported everything to SDK v2, or they still want you to use the interfaces from SDK v1 - and then more functional code (non interface code) can be used from SDK v2.

Answer from dutoitns on Stack Overflow
🌐
AWS
docs.aws.amazon.com › aws sdk for java › developer guide for version 1.x › aws sdk for java code examples › lambda examples using the aws sdk for java
Lambda Examples Using the AWS SDK for Java - AWS SDK for Java 1.x
on December 31, 2025. We recommend that you migrate to the AWS SDK for Java 2.x to continue receiving new features, availability improvements, and security updates. This section provides examples of programming Lambda using the AWS SDK for Java.
🌐
AWS
docs.aws.amazon.com › aws sdk for java › developer guide for version 2.x › sdk for java 2.x code examples › lambda examples using sdk for java 2.x
Lambda examples using SDK for Java 2.x - AWS SDK for Java 2.x
* * @param awsLambda an instance of the {@link LambdaClient} class, which is used to interact with the AWS Lambda service * * @throws LambdaException if an error occurs while interacting with the AWS Lambda service */ public static void listFunctions(LambdaClient awsLambda) { try { ListFunctionsResponse functionResult = awsLambda.listFunctions(); List<FunctionConfiguration> list = functionResult.functions(); for (FunctionConfiguration config : list) { System.out.println("The function name is " + config.functionName()); } } catch (LambdaException e) { System.err.println(e.getMessage()); System.exit(1); } } For API details, see ListFunctions in AWS SDK for Java 2.x API Reference.
Discussions

java - What's the AWS SDK V2 Maven lib for Lambda? - Stack Overflow
I'm trying to update my project in order to use SDK v2 by using bom configuration. I have updated my pom file but now RequestHandler and Context can't be found. Here is my maven config file More on stackoverflow.com
🌐 stackoverflow.com
amazon web services - AWS Java SDK Version For Creating a Lambda - Stack Overflow
I'm trying to develop an AWS Java lambda function by following the guidelines described here which describes the implementation of the RequestHandler interface and also references the AWS-lambda-java- More on stackoverflow.com
🌐 stackoverflow.com
In what scenario does using Java in Lambda make sense?
Very often the best language for a team/org is not the "best" language for particular component. If it's a Java based team it often doesn't make sense to dump all that investment just for Lambda if Java performance there is acceptable. Personally I won't use Node for anything if I can possibly avoid it. If Python isn't fast enough and in particular if threading will help I'll use Go. But even as anti-Node as I admit I am, I absolutely respect that in shops with a lot of Javascript talent due to frontend work it often makes the most sense to go with Node for backend work despite its many hair pulling issues. It's much better to be pragmatic than "right". Lambda supports a ton of languages (effectively all of them if we count custom runtimes) because it's pragmatic. More on reddit.com
🌐 r/aws
62
25
March 28, 2024
AWS SDK Java V2 invoke Lambda without wait
Sources Invoking a Lambda function ... Lambda AWS Lambda Supports Destinations for Asynchronous Invocations ... Adeleke Adebowale .J. ... Thank you for your answer, From all above it seams that the application exit before the asynchronous call has a chance to complete. In order to ensure that the invocation request is sent before the application exits, I had to use future.get() ... Problem with AppSync GraphQL HTTP API call from Lambda function when upgrading from Java SDK V1 to ... More on repost.aws
🌐 repost.aws
1
0
November 22, 2024
🌐
AWS
sdk.amazonaws.com › java › api › latest › software › amazon › awssdk › services › lambda › LambdaClient.html
LambdaClient (AWS SDK for Java - 2.42.27)
Create an instance of LambdaWaiter using this client. ... Value for looking up the service's metadata from the ServiceMetadataProvider. ... (AddLayerVersionPermissionRequest addLayerVersionPermissionRequest) throws InvalidParameterValueException, ResourceConflictException, ServiceException, TooManyRequestsException, PolicyLengthExceededException, ResourceNotFoundException, PreconditionFailedException, AwsServiceException, SdkClientException...
🌐
Amazon Web Services
docs.aws.amazon.com › aws lambda › developer guide › building lambda functions with java
Building Lambda functions with Java - AWS Lambda
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. Add these libraries to your build ...
🌐
AWS
docs.aws.amazon.com › sdk-for-java › v1 › reference › com › amazonaws › services › lambda › AWSLambda.html
AWSLambda (AWS SDK for Java - 1.12.797)
We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement. ... Interface for accessing AWS Lambda.
🌐
Maven Repository
mvnrepository.com › artifact › com.amazonaws › aws-java-sdk-lambda
Maven Repository: com.amazonaws » aws-java-sdk-lambda
December 30, 2025 - The AWS Java SDK for AWS Lambda module holds the client classes that are used for communicating with AWS Lambda Service
Find elsewhere
🌐
GitHub
github.com › aws › aws-lambda-java-libs
GitHub - aws/aws-lambda-java-libs: Official mirror for interface definitions and helper classes for Java code running on the AWS Lambda platform. · GitHub
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.
Starred by 547 users
Forked by 240 users
Languages   C++ 51.2% | Java 46.2% | Shell 2.0% | CMake 0.3% | Makefile 0.2% | C 0.1%
🌐
Baeldung
baeldung.com › home › cloud › a basic aws lambda example with java
A Basic AWS Lambda Example With Java |Baeldung
April 17, 2025 - AWSTemplateFormatVersion: '2010-09-09' Description: Lambda function deployment with Java 21 runtime Parameters: LambdaHandler: Type: String Description: The handler for the Lambda function S3BucketName: Type: String Description: The name of the S3 bucket containing the Lambda function JAR file S3Key: Type: String Description: The S3 key (file name) of the Lambda function JAR file Resources: BaeldungLambdaFunction: Type: AWS::Lambda::Function Properties: FunctionName: baeldung-lambda-function Handler: !Ref LambdaHandler Role: !GetAtt LambdaExecutionRole.Arn Code: S3Bucket: !Ref S3BucketName S3K
🌐
GitHub
github.com › aws › aws-sdk-java
GitHub - aws/aws-sdk-java: The official AWS SDK for Java 1.x (In Maintenance Mode, End-of-Life on 12/31/2025). The AWS SDK for Java 2.x is available here: https://github.com/aws/aws-sdk-java-v2/ · GitHub
A version 2.x of the SDK is generally available. It is a major rewrite of the 1.x code base, built on top of Java 8+ and adds several frequently requested features. These include support for non-blocking I/O, improved start-up performance, automatic iteration over paginated responses and the ability to plug in a different HTTP implementation at run time. For more information see the AWS SDK for Java 2.x Developer Guide or check the project repository in https://github.com/aws/aws-sdk-java-v2.
Starred by 4.2K users
Forked by 2.8K users
Languages   Java
🌐
AWS
aws.amazon.com › blogs › compute › aws-lambda-now-supports-java-25
AWS Lambda now supports Java 25 | Amazon Web Services
November 14, 2025 - This release includes the latest Java 25 language features as well as performance enhancements optimized for Lambda workloads. You can build and deploy functions using Java 25 using the AWS Management Console, AWS CLI, AWS SDK, AWS SAM, AWS ...
🌐
Reddit
reddit.com › r/aws › in what scenario does using java in lambda make sense?
In what scenario does using Java in Lambda make sense? : r/aws
March 28, 2024 - Rust on lambda is awesome. ... I haven't had to use the sdk much, but I did recently set up publishing to an SQS queue using the SDK and it went very smoothly. ... I wouldnt use a fully fledged java framework in lambda.
🌐
AWS re:Post
repost.aws › questions › QU8WHCSFDOTh6RuywUOLMgsg › aws-sdk-java-v2-invoke-lambda-without-wait
AWS SDK Java V2 invoke Lambda without wait | AWS re:Post
November 22, 2024 - Sources Invoking a Lambda function asynchronously - AWS Lambda Invoke - AWS Lambda AWS Lambda Supports Destinations for Asynchronous Invocations ... Adeleke Adebowale .J. ... Thank you for your answer, From all above it seams that the application exit before the asynchronous call has a chance to complete. In order to ensure that the invocation request is sent before the application exits, I had to use future.get() ... Problem with AppSync GraphQL HTTP API call from Lambda function when upgrading from Java SDK V1 to V2
🌐
AWS
docs.aws.amazon.com › sdk-for-java › v1 › reference › com › amazonaws › services › lambda › AWSLambdaClient.html
AWSLambdaClient (AWS SDK for Java - 1.12.797)
@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSLambdaClient extends AmazonWebServiceClient implements AWSLambda · Client for accessing AWS Lambda.
🌐
AWS
docs.aws.amazon.com › aws sdk for java › developer guide for version 2.x › what is the aws sdk for java 2.x
What is the AWS SDK for Java 2.x - AWS SDK for Java 2.x
January 16, 2026 - DocumentationAWS SDK for JavaDeveloper Guide for version 2.x · Get started with the SDKDevelop mobile applicationsMaintenance and support for SDK major versionsAdditional resourcesContribute to the SDK · The AWS SDK for Java provides a Java API for AWS services.
🌐
Jenkins
plugins.jenkins.io › aws-java-sdk-lambda
Amazon Web Services SDK :: Lambda | Jenkins plugin
March 19, 2025 - This plugin provides the AWS SDK for Java as a library to be used by other plugins.
🌐
GitHub
github.com › aws › aws-lambda-java-libs › issues › 74
update aws lambda java libs to aws sdk java v2 · Issue #74 · aws/aws-lambda-java-libs
February 1, 2019 - update aws lambda java libs to aws sdk java v2 (https://github.com/aws/aws-sdk-java-v2)
Author   SeekerWing