π DynamoDB SDK Examples
This directory is a treasure trove of DynamoDB SDK examples in various programming languages. We're always eager for new contributions, so feel free to submit a pull request if you have something to share!
π Explore the Samples
Dive into the following sections to discover a wealth of DynamoDB SDK examples:
π¨βπ» Working with Items
Explore a wide range of operations for managing individual items in your DynamoDB tables, from batch processing to conditional updates.
Example |
Languages |
BatchGet |
|
BatchWrite |
|
DeleteItem |
|
DeleteItemConditional |
|
GetItem |
|
PutItem |
|
PutItemConditional |
|
TransactGet |
|
TransactWrite |
|
UpdateItem |
|
UpdateItemConditional |
|
Apologies, it seems the Markdown formatting for the badges is not rendering correctly in this case. Let me provide the table again with the badge images explicitly included:
ποΈ Working with PartiQL for DynamoDB
Learn how to leverage the powerful DynamoDB-specific SQL-like language, PartiQL, to execute advanced queries and transactions.
Example |
Languages |
PartiQL SimpleSelectStatement |
|
PartiQL ExecuteStatement |
|
PartiQL ExecuteTransaction |
|
PartiQL BatchExecuteStatement |
|
π Working with Indexes
Discover how to create, update, and query secondary indexes to optimize your data access patterns.
Example |
Languages |
Create Index |
|
Update Index Provisioned Capacity |
|
Delete Index |
|
Query Index |
|
π Working with Queries
Learn how to efficiently query your DynamoDB tables, with examples covering consistency, filtering, projections, and more.
Example |
Languages |
ConsistentRead |
|
Count |
|
FilterExpression |
|
ProjectionExpression |
|
ReturnConsumedCapacity |
|
π Working with Scans
Learn how to perform full table scans, with support for pagination and parallel processing to optimize performance.
Example |
Languages |
Scan with pagination |
|
Scan in parallel |
|
π Working with Streams
Dive into the world of DynamoDB Streams and learn how to read and process real-time changes to your table data.
Example |
Languages |
Read from stream |
|
ποΈ Working with Tables
From creating and deleting tables to managing global tables and auto-scaling, this section has you covered for all your table management needs.
Example |
Languages |
Add Global Table Region |
|
Add Provisioned Capacity |
|
CreateGlobalTable |
|
CreateTable On-Demand |
|
CreateTable Provisioned |
|
Delete Global Table Region |
|
DeleteTable |
|
DescribeGlobalTable and DescribeGlobalTableSettings |
|
DescribeLimits |
|
DescribeTable |
|
Disable Autoscaling |
|
Enable Autoscaling |
|
Update Autoscaling |
|
Disable Streams |
|
Enable Streams |
|
ListTables |
|
UpdateGlobalTable and UpdateGlobalTableSettings |
|
UpdateTable On-Demand |
|
UpdateTable Provisioned |
|
Important Note:
Be advised that when you delete a table, it does not delete auto-scaling info (e.g. scalable targets, scaling policies) or CloudWatch alarms. This must be done in separate calls.
While the examples in this repository focus on the AWS SDKs, there are also other great DynamoDB client libraries available:
For a detailed list of the APIs covered in this folder consult this file Operations