Amazon DynamoDB

Connect to Amazon DynamoDB

Configuration

Get Item

Operation
Get Item
AWS Region*
us-east-1
AWS Access Key ID*
••••••••
AWS Secret Access Key*
••••••••
Table Name*
my-table
Key (JSON)*
json
{\n "pk": "user#123"\n}
Consistent Read
Select...
Get Item (dynamodb_get)

Get an item from a DynamoDB table by primary key

Input
ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
tableNamestringYesDynamoDB table name
keyobjectYesPrimary key of the item to retrieve
consistentReadbooleanNoUse strongly consistent read
Output
ParameterTypeDescription
messagestringOperation status message

Put Item

Operation
Put Item
AWS Region*
us-east-1
AWS Access Key ID*
••••••••
AWS Secret Access Key*
••••••••
Table Name*
my-table
Item (JSON)*
json
{\n "pk": "user#123",\n "name": "John Doe",\n "email": "john@example.com"\n}
Put Item (dynamodb_put)

Put an item into a DynamoDB table

Input
ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
tableNamestringYesDynamoDB table name
itemobjectYesItem to put into the table
Output
ParameterTypeDescription
messagestringOperation status message

Query

Operation
Query
AWS Region*
us-east-1
AWS Access Key ID*
••••••••
AWS Secret Access Key*
••••••••
Table Name*
my-table
Key Condition Expression*
pk = :pk
Filter Expression
attribute_exists(email)
Expression Attribute Names (JSON)
json
{\n "#name": "name"\n}
Expression Attribute Values (JSON)
json
{\n ":pk": "user#123",\n ":name": "Jane"\n}
Index Name
GSI1
Limit
100
Query (dynamodb_query)

Query items from a DynamoDB table using key conditions

Input
ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
tableNamestringYesDynamoDB table name
keyConditionExpressionstringYesKey condition expression (e.g., "pk = :pk")
filterExpressionstringNoFilter expression for results
expressionAttributeNamesobjectNoAttribute name mappings for reserved words
expressionAttributeValuesobjectNoExpression attribute values
indexNamestringNoSecondary index name to query
limitnumberNoMaximum number of items to return
Output
ParameterTypeDescription
messagestringOperation status message
itemsarrayArray of items returned

Scan

Operation
Scan
AWS Region*
us-east-1
AWS Access Key ID*
••••••••
AWS Secret Access Key*
••••••••
Table Name*
my-table
Filter Expression
attribute_exists(email)
Projection Expression
pk, #name, email
Expression Attribute Names (JSON)
json
{\n "#name": "name"\n}
Expression Attribute Values (JSON)
json
{\n ":status": "active"\n}
Limit
100
Scan (dynamodb_scan)

Scan all items in a DynamoDB table

Input
ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
tableNamestringYesDynamoDB table name
filterExpressionstringNoFilter expression for results
projectionExpressionstringNoAttributes to retrieve
expressionAttributeNamesobjectNoAttribute name mappings for reserved words
expressionAttributeValuesobjectNoExpression attribute values
limitnumberNoMaximum number of items to return
Output
ParameterTypeDescription
messagestringOperation status message
itemsarrayArray of items returned

Update Item

Operation
Update Item
AWS Region*
us-east-1
AWS Access Key ID*
••••••••
AWS Secret Access Key*
••••••••
Table Name*
my-table
Key (JSON)*
json
{\n "pk": "user#123"\n}
Update Expression*
SET #name = :name
Expression Attribute Names (JSON)
json
{\n "#name": "name"\n}
Expression Attribute Values (JSON)
json
{\n ":name": "Jane Doe"\n}
Condition Expression
attribute_exists(pk)
Update Item (dynamodb_update)

Update an item in a DynamoDB table

Input
ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
tableNamestringYesDynamoDB table name
keyobjectYesPrimary key of the item to update
updateExpressionstringYesUpdate expression (e.g., "SET #name = :name")
expressionAttributeNamesobjectNoAttribute name mappings for reserved words
expressionAttributeValuesobjectNoExpression attribute values
conditionExpressionstringNoCondition that must be met for the update to succeed
Output
ParameterTypeDescription
messagestringOperation status message

Delete Item

Operation
Delete Item
AWS Region*
us-east-1
AWS Access Key ID*
••••••••
AWS Secret Access Key*
••••••••
Table Name*
my-table
Key (JSON)*
json
{\n "pk": "user#123"\n}
Condition Expression
attribute_exists(pk)
Delete Item (dynamodb_delete)

Delete an item from a DynamoDB table

Input
ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
tableNamestringYesDynamoDB table name
keyobjectYesPrimary key of the item to delete
conditionExpressionstringNoCondition that must be met for the delete to succeed
Output

Refer to the block outputs for this operation.


Usage Instructions

Integrate Amazon DynamoDB into workflows. Supports Get, Put, Query, Scan, Update, and Delete operations on DynamoDB tables.

Notes

  • Category: tools
  • Type: dynamodb