DynamoDB Scan
On this Page
Snap type: | Read | |||||||
---|---|---|---|---|---|---|---|---|
Description: | This Snap provides the ability to read the data from DynamoDB table. The table becomes suggestible once the account is defined.
| |||||||
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 read the data from. This property is suggestible, which shows the list of the tables in the database. | |||||||
Projection expression | Optional. String that identifies one or more attributes to retrieve from the specified table. If more than one attribute is to be retrieved then those should be separated by commas. | |||||||
Total segments | Optional. This property represents the total number of segments into which the Scan operation will be divided for a parallel scan request. Segments during Validation The Snap uses only one segment for Snap/Pipeline validation. Example: 2 | |||||||
Filter expression | Optional. The condition that is used for filtering the table records. | |||||||
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 If your table contains a column named uuid (a reserved word) and you want to read a value from the uuid column, then you must assign a placeholder for the column name because you cannot use a reserved word directly in your expression. We can define the Attribute #U, leave the Type blank, and enter the value as uuid. In the Snap Filter expression condition, we enter #U=:val1. :val1 is the placeholder for the value in the table which is defined as Attribute :val1 of Type B with Value dGhpcyB0ZXh0I.
| |||||||
Snap Execution | Select one of the following three modes in which the Snap executes:
Default Value: Execute only |
Example
The following image shows a sample pipeline:
Sample output of the Snap is as shown below:
Snap Pack History
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2024 SnapLogic, Inc.