awsDynamoDb.json•11.1 kB
{
"nodeType": "n8n-nodes-base.awsDynamoDb",
"displayName": "AWS DynamoDB",
"description": "Consume the AWS DynamoDB API",
"version": 1,
"properties": [
{
"name": "tableName",
"displayName": "Table Name or ID",
"type": "options",
"default": [],
"description": "Table to operate on. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"item"
]
}
}
},
{
"name": "dataToSend",
"displayName": "Data to Send",
"type": "options",
"default": "defineBelow",
"description": "Use when node input properties match destination column names",
"options": [
{
"name": "Auto-Map Input Data to Columns",
"value": "autoMapInputData",
"description": "Use when node input properties match destination column names"
},
{
"name": "Define Below for Each Column",
"value": "defineBelow",
"description": "Set the value for each destination column"
}
],
"displayOptions": {
"show": {
"operation": [
"upsert"
]
}
}
},
{
"name": "inputsToIgnore",
"displayName": "Inputs to Ignore",
"type": "string",
"default": "",
"description": "List of input properties to avoid sending, separated by commas. Leave empty to send all properties.",
"placeholder": "Enter properties...",
"displayOptions": {
"show": {
"operation": [
"upsert"
],
"dataToSend": [
"autoMapInputData"
]
}
}
},
{
"name": "fieldsUi",
"displayName": "Fields to Send",
"type": "fixedCollection",
"default": {},
"placeholder": "Add Field",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"operation": [
"upsert"
],
"dataToSend": [
"defineBelow"
]
}
}
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "Substitution tokens for attribute names in an expression. Only needed when the parameter \"condition expression\" is set.",
"placeholder": "Add Field",
"required": true,
"typeOptions": {
"multipleValues": true,
"minValue": 1
},
"displayOptions": {
"show": {
"resource": [
"item"
],
"operation": [
"upsert"
]
}
}
},
{
"name": "returnValues",
"displayName": "Return",
"type": "options",
"default": "NONE",
"description": "The content of the old item is returned",
"options": [
{
"name": "Attribute Values",
"value": "ALL_OLD",
"description": "The content of the old item is returned"
},
{
"name": "Nothing",
"value": "NONE",
"description": "Nothing is returned"
}
],
"displayOptions": {
"show": {
"resource": [
"item"
],
"operation": [
"delete"
]
}
}
},
{
"name": "keysUi",
"displayName": "Keys",
"type": "fixedCollection",
"default": {},
"description": "Item's primary key. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.",
"placeholder": "Add Key",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"resource": [
"item"
],
"operation": [
"delete"
]
}
}
},
{
"name": "simple",
"displayName": "Simplify",
"type": "boolean",
"default": true,
"description": "Whether to return a simplified version of the response instead of the raw data",
"displayOptions": {
"show": {
"resource": [
"item"
],
"operation": [
"delete"
],
"returnValues": [
"ALL_OLD"
]
}
}
},
{
"name": "select",
"displayName": "Select",
"type": "options",
"default": "ALL_ATTRIBUTES",
"description": "Select them in Attributes to Select under Additional Fields",
"options": [
{
"name": "All Attributes",
"value": "ALL_ATTRIBUTES"
},
{
"name": "All Projected Attributes",
"value": "ALL_PROJECTED_ATTRIBUTES"
},
{
"name": "Specific Attributes",
"value": "SPECIFIC_ATTRIBUTES",
"description": "Select them in Attributes to Select under Additional Fields"
}
],
"displayOptions": {
"show": {
"resource": [
"item"
],
"operation": [
"get"
]
}
}
},
{
"name": "scan",
"displayName": "Scan",
"type": "boolean",
"default": false,
"description": "Whether to do an scan or query. Check <a href=\"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-query-scan.html\" >differences</a>.",
"displayOptions": {
"show": {
"resource": [
"item"
],
"operation": [
"getAll"
]
}
}
},
{
"name": "filterExpression",
"displayName": "Filter Expression",
"type": "string",
"default": "",
"description": "A filter expression determines which items within the Scan results should be returned to you. All of the other results are discarded. Empty value will return all Scan results.",
"displayOptions": {
"show": {
"scan": [
true
]
}
}
},
{
"name": "keyConditionExpression",
"displayName": "Key Condition Expression",
"type": "string",
"default": "",
"description": "Condition to determine the items to be retrieved. The condition must perform an equality test on a single partition key value, in this format: <code>partitionKeyName = :partitionkeyval</code>",
"placeholder": "id = :id",
"required": true,
"displayOptions": {
"show": {
"resource": [
"item"
],
"operation": [
"getAll"
],
"scan": [
false
]
}
}
},
{
"name": "eavUi",
"displayName": "Expression Attribute Values",
"type": "fixedCollection",
"default": {},
"description": "Substitution tokens for attribute names in an expression",
"placeholder": "Add Attribute Value",
"required": true,
"typeOptions": {
"multipleValues": true,
"minValue": 1
},
"displayOptions": {
"show": {
"resource": [
"item"
],
"operation": [
"getAll"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"resource": [
"item"
],
"operation": [
"getAll"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 50,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1,
"maxValue": 100
},
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"returnAll": [
false
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Name of the index to query. It can be any secondary local or global index on the table.",
"placeholder": "Add Field",
"options": [
{
"name": "indexName",
"displayName": "Index Name",
"type": "string",
"default": "",
"description": "Name of the index to query. It can be any secondary local or global index on the table."
},
{
"name": "projectionExpression",
"displayName": "Attributes to Select",
"type": "string",
"default": "",
"description": "Text that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas."
}
],
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"resource": [
"item"
],
"operation": [
"getAll"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "upsert",
"description": "Create a new record, or update the current one if it already exists (upsert)",
"options": [
{
"name": "Create or Update",
"value": "upsert",
"description": "Create a new record, or update the current one if it already exists (upsert)"
},
{
"name": "Delete",
"value": "delete",
"description": "Delete an item"
},
{
"name": "Get",
"value": "get",
"description": "Get an item"
},
{
"name": "Get Many",
"value": "getAll",
"description": "Get many items"
}
],
"displayOptions": {
"show": {
"resource": [
"item"
]
}
}
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "item",
"options": [
{
"name": "Item",
"value": "item"
}
]
}
],
"credentialsConfig": [
{
"name": "aws",
"required": true
},
{
"name": "resource",
"required": false
}
],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}