bulk_add_items
Add multiple items to a DynamoDB table using efficient batch writes, with automatic batching and retry handling for data loading or migration.
Instructions
Add multiple items to a DynamoDB table in efficient batches.
Uses batch_writer which automatically handles batching (25 items per batch), retries on unprocessed items, and flushing. Items with the same primary key will overwrite existing items.
When to use:
To add many items at once (more efficient than repeated add_item calls)
For data loading or migration scenarios
When NOT to use:
For a single item (use add_item instead)
When you need conditional writes (batch_writer doesn't support conditions)
Returns: JSON confirmation with the count of items added.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |