DynamoDB Delete Table Item
On this Page
Snap type: | Write | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: | This Snap deletes an item or a bunch of items (based on batch size) from an existing table in AWS DynamoDB.
| |||||||||||||
Prerequisites: | [None] | |||||||||||||
Support and limitations: | Works in Ultra Tasks. | |||||||||||||
Account: | This Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint. See DynamoDB Account for information on setting up this type of account. | |||||||||||||
Views: |
| |||||||||||||
Settings | ||||||||||||||
Label | Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline. | |||||||||||||
Table name | Required. The name of the table to delete the data from. This property is suggestible, that shows the list of the tables in the database. | |||||||||||||
Delete condition | Specifies a condition to be used on non-key attributes for performing the delete operation.
Default value: [None] | |||||||||||||
Batch size | Specifies the number of records to be deleted in a single request. Default value:1 | |||||||||||||
Output deleted records | Specifies whether or not to display the original records in the output view. | |||||||||||||
Expression attribute values | Specify the placeholders for the Expression Attribute Names and/or Expression Attribute Values. DynamoDB reserves certain words and they are called reserved words. You must not use reserved words as attribute names in expressions. If you must write an expression that contains a word that conflicts with a DynamoDB reserved word, then you can define an expression attribute name to use in the place of the reserved word. For more information, see Expression Attribute Names. Similarly, you cannot use certain values as attribute values in expressions and instead must define an expression attribute name. For more information, see Expression Attribute Values. Click + to enter:
Example: Suppose, you have a table T1 with a column named Product. We want to delete a value from the Product column. Here, you cannot enter Product=value in the delete condition directly but must assign a placeholder for the value. Hence, we define the Attribute :val1 of Type S and under Value, pass $values1. In the Snap Delete condition, we enter Product=:val1.
| |||||||||||||
Snap execution | Select one of the three modes in which the Snap executes. Available options are:
|
Example
In this pipeline, the DynamoDB Delete Item Snap, deletes a record from the table DynamoDB_Delete1 using a delete condition by defining a placeholder.
In the upstream Mapper Snap, supply the key (737314009510) of an item to be deleted and define its placeholder value ($values1) for the attribute to be used in the delete condition.
In the DynamoDb Delete Table Item Snap, we want to delete a record from the table DynamoDB_Delete1, when the delete condition is Product = :val1, where the attribute :val1 = $Values1.
Successful execution of the pipeline displays the HTTP status code 200 in the output view:
Snap Pack History
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2024 SnapLogic, Inc.