/** * AWS DynamoDB Node - Version 1 * Discriminator: resource=item, operation=upsert */ interface Credentials { aws: CredentialReference; awsAssumeRole: CredentialReference; } /** Create a new record, or update the current one if it already exists (upsert) */ export type AwsDynamoDbV1ItemUpsertParams = { resource: 'item'; operation: 'upsert'; authentication?: 'iam' | 'assumeRole' | Expression; /** * Table to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ tableName?: string | Expression; /** * Whether to insert the input data this node receives in the new row * @default defineBelow */ dataToSend?: 'autoMapInputData' | 'defineBelow' | Expression; /** * List of input properties to avoid sending, separated by commas. Leave empty to send all properties. * @displayOptions.show { dataToSend: ["autoMapInputData"] } */ inputsToIgnore?: string | Expression | PlaceholderValue; /** * Fields to Send * @displayOptions.show { dataToSend: ["defineBelow"] } * @default {} */ fieldsUi?: { /** Field */ fieldValues?: Array<{ /** Field ID */ fieldId?: string | Expression | PlaceholderValue; /** Field Value */ fieldValue?: string | Expression | PlaceholderValue; }>; }; /** * Additional Fields * @default {} */ additionalFields?: { /** Substitution tokens for attribute names in an expression. Only needed when the parameter "condition expression" is set. * @default {} */ eavUi?: { /** Expression Attribute Vaue */ eavValues?: Array<{ /** Attribute */ attribute?: string | Expression | PlaceholderValue; /** Type * @default S */ type?: 'N' | 'S' | Expression; /** Value */ value?: string | Expression | PlaceholderValue; }>; }; /** A condition that must be satisfied in order for a conditional upsert to succeed. <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html">View details</a>. */ conditionExpression?: string | Expression | PlaceholderValue; /** One or more substitution tokens for attribute names in an expression. <a href="https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html">View details</a>. * @default {} */ eanUi?: { /** Expression */ eanValues?: Array<{ /** Key */ key?: string | Expression | PlaceholderValue; /** Value */ value?: string | Expression | PlaceholderValue; }>; }; }; /** * 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] } */ filterExpression?: string | Expression | PlaceholderValue; }; export type AwsDynamoDbV1ItemUpsertNode = { type: 'n8n-nodes-base.awsDynamoDb'; version: 1; credentials?: Credentials; config: NodeConfig; };