DynamoDB Snap Pack Examples
The following examples demonstrate how to use Snaps in the Dynamodb Snap Pack.
| Example | Snaps used |
|---|---|
|
Writing CSV data to a DynamoDB table The following example illustrates the usage of the DynamoDB Bulk Write Snap. In this pipeline, we read table data using the File Reader Snap and write the data to the table Exampletable using the Dynamo Bulk Write Snap. |
|
|
Path mappings in upstream Mapper The following Pipeline illustrates the path mappings needed for writing multiple records using DynamoDB Bulk Write Snap. |
|
|
Sample query for Global Secondary Index Demonstrates how to use the DynamoDB Query Snap to query a Global Secondary Index using the 'EffectiveDate-index' to retrieve records matching a specific date. |
|
|
Demonstrates how to use the DynamoDB Query Snap to query a table directly using compound key conditions (EventID and EmpID). |
|
|
Retrieving student records using DynamoDB Bulk Get This pipeline demonstrates bulk retrieval of student records from a DynamoDB table. The Mapper Snap prepares the input data with student IDs, and the DynamoDB Bulk Get Snap retrieves the corresponding records from the database. |
|
|
This pipeline demonstrates how to delete a table from DynamoDB. The DynamoDB Delete Table Snap removes the specified table from the database. Note that DynamoDB delete operations are eventually consistent, and the Snap polls up to 5 seconds to confirm deletion. |
|
|
Deleting items from a DynamoDB table with conditions This pipeline demonstrates how to delete items from a DynamoDB table using conditional expressions. The Mapper Snap provides the item key and condition values, and the DynamoDB Delete Table Item Snap deletes items that match the specified condition. |
|
|
This pipeline demonstrates how to perform a scan operation on a DynamoDB table. The DynamoDB Scan Snap reads all items from the specified table and returns the data. |
|
|
Updating DynamoDB records with Mapper This pipeline demonstrates how to update records in a DynamoDB table using attribute mappings. The Mapper Snap prepares the update data structure, including complex types such as Sets, Lists, and Maps, and the DynamoDB Update Snap applies the updates to the specified table. |