Get Started using the DynamoDB Enhanced Client API - AWS SDK for Java 2.x

Get Started using the DynamoDB Enhanced Client API

The following tutorial introduces you to fundamentals that you need to work with the DynamoDB Enhanced Client API.

Add dependencies

To begin working with the DynamoDB Enhanced Client API in your project, add a dependency on the dynamodb-enhanced Maven artifact. This is shown in the following examples.

Maven
<project> <dependencyManagement> <dependencies> <dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>bom</artifactId> <version><VERSION></version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>dynamodb-enhanced</artifactId> </dependency> </dependencies> ... </project>

Perform a search of the Maven central repository for the latest version and replace <VERSION> with this value.

Gradle
repositories { mavenCentral() } dependencies { implementation(platform("software.amazon.awssdk:bom:<VERSION>")) implementation("software.amazon.awssdk:dynamodb-enhanced") ... }

Perform a search of the Maven central repository for the latest version and replace <VERSION> with this value.