aws-sdk-java-v2-dynamodb

Automate DynamoDB CRUD operations and queries from Java 2.x applications.

322|37|Updated Oct 21, 2025
One-click install
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill aws-sdk-java-v2-dynamodb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aws-sdk-java-v2-dynamodb
Source: https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/skills/aws-java/aws-sdk-java-v2-dynamodb
Command: npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill aws-sdk-java-v2-dynamodb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill offers patterns for DynamoDB using AWS SDK v2, including CRUD operations, queries, scans, and the DynamoDB Enhanced Client usage in Spring Boot apps.

Core Features & Use Cases

  • Low-level and Enhanced client usage
  • Entity mapping with DynamoDbBean/PartitionKey/SortKey
  • Queries, scans, batch operations, and transactions
  • Spring Boot integration guidance

Quick Start

Create a DynamoDB table with the Enhanced client and perform a simple put/get item.

Frequently Asked Questions about aws-sdk-java-v2-dynamodb

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform CRUD operations on DynamoDB items from a Java application?

DynamoDB CRUD operations in Java use the AWS SDK v2 Enhanced Client to create, read, update, and delete items with entity mapping via @DynamoDbBean annotations, supporting both low-level and high-level abstractions for streamlined item management.

Can I use DynamoDB with Spring Boot applications?

Yes, AWS SDK v2 integrates with Spring Boot to automate DynamoDB CRUD operations, entity mapping with @DynamoDbBean, and query execution, enabling straightforward table and item management within Spring-managed services.

What's the best way to query and scan DynamoDB tables with complex filter expressions?

The Enhanced Client supports query and scan expressions with partition keys, sort keys, and GSI/LSI indexes, allowing filtered retrieval of items through declarative expression syntax without manual low-level API calls.

How do I handle batch operations and transactions in DynamoDB from Java?

AWS SDK v2 provides batch operations for multi-item writes and transactions for atomic multi-item updates, with comprehensive error handling to ensure consistency across related DynamoDB items.

Do I need to map Java entities to DynamoDB table schemas manually?

No, the Enhanced Client automates entity mapping using @DynamoDbBean, @PartitionKey, and @SortKey annotations, eliminating manual schema definition and reducing boilerplate for Java-to-DynamoDB serialization.

What are the limitations when using global and local secondary indexes with DynamoDB?

GSI and LSI queries through the Enhanced Client inherit DynamoDB's constraints: GSI eventual consistency, sparse index keys, and throughput provisioning separate from base table, requiring careful schema design and index selection.