Skip to content

Latest commit

 

History

History

Python (boto3) SDK examples for Amazon DynamoDB

This section contains Python code for examples and common tasks with Amazon DynamoDB.

Working with DynamodbTest

All Examples 👉 Python
GenerateTestData Python

Working with Items

All Examples 👉 Python
BatchGet Python
BatchWrite Python
DeleteItem Python
DeleteItemConditional Python
GetItem Python
PutItem Python
PutItemConditional Python
TransactGet Python
TransactWrite Python
UpdateItem Python
UpdateItemConditional Python

Working with PartiQL for DynamoDB

All Examples 👉 Python
PartiQL SimpleSelectStatement Python
PartiQL ExecuteStatement Python
PartiQL ExecuteTransaction Python
PartiQL BatchExecuteStatement Python

Working with Indexes

All Examples 👉 Python
Python

Working with Queries

All Examples 👉 Python
ConsistentRead Python
Count Python
FilterExpression Python
ProjectionExpression Python
ReturnConsumedCapacity Python

Working with Scans

All Examples 👉 Python
Simple Scan Python
Paginate Scan Python
Parallel Scan Python
Boto3 Paginator Scan Python
FilterExpression Python
ProjectionExpression Python

Working with Streams

All Examples 👉 Python
Python

Working with Tables

All Examples 👉 Python
Add Global Table Region Python
Add Provisioned Capacity Python
CreateGlobalTable Python
CreateTable On-Demand Python
CreateTable Provisioned Python
Delete Global Table Region Python
DeleteTable* Python
DescribeGlobalTable and DescribeGlobalTableSettings Python
DescribeLimits Python
DescribeTable Python
Disable Autoscaling Python
Enable Autoscaling Python
Update Autoscaling Python
Disable Streams Python
Enable Streams Python
ListTables Python
UpdateGlobalTable and UpdateGlobalTableSettings Python
UpdateTable On-Demand Python
UpdateTable Provisioned Python

*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 seperate calls.