AACFlow

Amazon DynamoDB

Connect to Amazon DynamoDB

Usage Instructions

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

Tools

dynamodb_get

Input

ParameterTypeRequiredDescription
regionstringYesNo description
accessKeyIdstringYesNo description
secretAccessKeystringYesNo description
tableNamestringYesDynamoDB table name (e.g., "Users", "Orders")
keyobjectYesPrimary key of the item to retrieve (e.g., {"pk": "USER#123"} or {"pk": "ORDER#456", "sk": "ITEM#789"})
consistentReadbooleanNoNo description

Output

ParameterTypeDescription
messagestringOperation status message
itemobjectRetrieved item

dynamodb_put

Input

ParameterTypeRequiredDescription
regionstringYesNo description
accessKeyIdstringYesNo description
secretAccessKeystringYesNo description
tableNamestringYesDynamoDB table name (e.g., "Users", "Orders")
itemobjectYesItem to put into the table (e.g., {"pk": "USER#123", "name": "John", "email": "john@example.com"})

Output

ParameterTypeDescription
messagestringOperation status message
itemobjectCreated item

dynamodb_query

Input

ParameterTypeRequiredDescription
regionstringYesNo description
accessKeyIdstringYesNo description
secretAccessKeystringYesNo description
tableNamestringYesDynamoDB table name (e.g., "Users", "Orders")
keyConditionExpressionstringYesKey condition expression (e.g., "pk = :pk" or "pk = :pk AND sk BEGINS_WITH :prefix")
filterExpressionstringNoFilter expression for results (e.g., "age > :minAge AND #status = :status")
expressionAttributeNamesobjectNoAttribute name mappings for reserved words (e.g., {"#status": "status"})
expressionAttributeValuesobjectNoExpression attribute values (e.g., {":pk": "USER#123", ":minAge": 18})
indexNamestringNoSecondary index name to query (e.g., "GSI1", "email-index")
limitnumberNoNo description

Output

ParameterTypeDescription
messagestringOperation status message
itemsarrayArray of items returned
countnumberNumber of items returned

dynamodb_scan

Input

ParameterTypeRequiredDescription
regionstringYesNo description
accessKeyIdstringYesNo description
secretAccessKeystringYesNo description
tableNamestringYesDynamoDB table name (e.g., "Users", "Orders")
filterExpressionstringNoFilter expression for results (e.g., "age > :minAge AND #status = :status")
projectionExpressionstringNoAttributes to retrieve (e.g., "pk, sk, #name, email")
expressionAttributeNamesobjectNoAttribute name mappings for reserved words (e.g., {"#name": "name", "#status": "status"})
expressionAttributeValuesobjectNoExpression attribute values (e.g., {":minAge": 18, ":status": "active"})
limitnumberNoNo description

Output

ParameterTypeDescription
messagestringOperation status message
itemsarrayArray of items returned
countnumberNumber of items returned

dynamodb_update

Input

ParameterTypeRequiredDescription
regionstringYesNo description
accessKeyIdstringYesNo description
secretAccessKeystringYesNo description
tableNamestringYesDynamoDB table name (e.g., "Users", "Orders")
keyobjectYesPrimary key of the item to update (e.g., {"pk": "USER#123"} or {"pk": "ORDER#456", "sk": "ITEM#789"})
updateExpressionstringYesUpdate expression (e.g., "SET #name = :name, age = :age" or "SET #count = #count + :inc")
expressionAttributeNamesobjectNoAttribute name mappings for reserved words (e.g., {"#name": "name", "#count": "count"})
expressionAttributeValuesobjectNoExpression attribute values (e.g., {":name": "John", ":age": 30, ":inc": 1})
conditionExpressionstringNoCondition that must be met for the update to succeed (e.g., "attribute_exists(pk)" or "version = :expectedVersion")

Output

ParameterTypeDescription
messagestringOperation status message
itemobjectUpdated item

dynamodb_delete

Input

ParameterTypeRequiredDescription
regionstringYesNo description
accessKeyIdstringYesNo description
secretAccessKeystringYesNo description
tableNamestringYesDynamoDB table name (e.g., "Users", "Orders")
keyobjectYesPrimary key of the item to delete (e.g., {"pk": "USER#123"} or {"pk": "ORDER#456", "sk": "ITEM#789"})
conditionExpressionstringNoCondition that must be met for the delete to succeed (e.g., "attribute_exists(pk)")

Output

ParameterTypeDescription
messagestringOperation status message

dynamodb_introspect

Introspect DynamoDB to list tables or get detailed schema information for a specific table

Input

ParameterTypeRequiredDescription
regionstringYesNo description
accessKeyIdstringYesNo description
secretAccessKeystringYesNo description
tableNamestringNoOptional table name to get detailed schema (e.g., "Users", "Orders"). If not provided, lists all tables.

Output

ParameterTypeDescription
messagestringOperation status message
tablesarrayList of table names in the region
tableDetailsobjectDetailed schema information for a specific table

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started