n8n-nodes-base
Version:
Base nodes of n8n
101 lines (95 loc) • 2.96 kB
text/typescript
/**
* AWS SQS Node - Version 1
* Sends messages to AWS SQS
*/
export interface AwsSqsV1Params {
authentication?: 'iam' | 'assumeRole' | Expression<string>;
operation?: 'sendMessage';
/**
* Queue to send a message to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @displayOptions.show { operation: ["sendMessage"] }
*/
queue?: string | Expression<string>;
queueType?: 'fifo' | 'standard' | Expression<string>;
/**
* Whether to send the data the node receives as JSON to SQS
* @default true
*/
sendInputData?: boolean | Expression<boolean>;
/**
* Message to send to the queue
* @displayOptions.show { operation: ["sendMessage"], sendInputData: [false] }
*/
message?: string | Expression<string> | PlaceholderValue;
/**
* Tag that specifies that a message belongs to a specific message group. Applies only to FIFO (first-in-first-out) queues.
* @displayOptions.show { queueType: ["fifo"] }
*/
messageGroupId?: string | Expression<string> | PlaceholderValue;
/**
* Options
* @displayOptions.show { operation: ["sendMessage"] }
* @default {}
*/
options?: {
/** How long, in seconds, to delay a message for
* @displayOptions.show { /queueType: ["standard"] }
* @default 0
*/
delaySeconds?: number | Expression<number>;
/** Attributes to set
* @default {}
*/
messageAttributes?: {
/** Binary
*/
binary?: Array<{
/** Name of the attribute
*/
name?: string | Expression<string> | PlaceholderValue;
/** Name of the binary property which contains the data for the message attribute
* @default data
*/
dataPropertyName?: string | Expression<string> | PlaceholderValue;
}>;
/** Number
*/
number?: Array<{
/** Name of the attribute
*/
name?: string | Expression<string> | PlaceholderValue;
/** Number value of the attribute
* @default 0
*/
value?: number | Expression<number>;
}>;
/** String
*/
string?: Array<{
/** Name of the attribute
*/
name?: string | Expression<string> | PlaceholderValue;
/** String value of attribute
*/
value?: string | Expression<string> | PlaceholderValue;
}>;
};
/** Token used for deduplication of sent messages. Applies only to FIFO (first-in-first-out) queues.
* @displayOptions.show { /queueType: ["fifo"] }
*/
messageDeduplicationId?: string | Expression<string> | PlaceholderValue;
};
}
export interface AwsSqsV1Credentials {
aws: CredentialReference;
awsAssumeRole: CredentialReference;
}
interface AwsSqsV1NodeBase {
type: 'n8n-nodes-base.awsSqs';
version: 1;
credentials?: AwsSqsV1Credentials;
}
export type AwsSqsV1ParamsNode = AwsSqsV1NodeBase & {
config: NodeConfig<AwsSqsV1Params>;
};
export type AwsSqsV1Node = AwsSqsV1ParamsNode;