/** * AWS Comprehend Node - Version 1 * Sends data to Amazon Comprehend */ export interface AwsComprehendV1Params { authentication?: 'iam' | 'assumeRole' | Expression; /** * The resource to perform * @default text */ resource?: 'text'; operation?: 'detectDominantLanguage' | 'detectEntities' | 'detectSentiment'; /** * The language code for text * @displayOptions.show { resource: ["text"], operation: ["detectSentiment", "detectEntities"] } * @default en */ languageCode?: 'ar' | 'zh' | 'zh-TW' | 'en' | 'fr' | 'de' | 'hi' | 'it' | 'ja' | 'ko' | 'pt' | 'es' | Expression; /** * The text to send * @displayOptions.show { resource: ["text"] } */ text?: string | Expression | PlaceholderValue; /** * Whether to return a simplified version of the response instead of the raw data * @displayOptions.show { resource: ["text"], operation: ["detectDominantLanguage"] } * @default true */ simple?: boolean | Expression; /** * Additional Fields * @displayOptions.show { resource: ["text"], operation: ["detectEntities"] } * @default {} */ additionalFields?: { /** The Amazon Resource Name of an endpoint that is associated with a custom entity recognition model */ endpointArn?: string | Expression | PlaceholderValue; }; } export interface AwsComprehendV1Credentials { aws: CredentialReference; awsAssumeRole: CredentialReference; } interface AwsComprehendV1NodeBase { type: 'n8n-nodes-base.awsComprehend'; version: 1; credentials?: AwsComprehendV1Credentials; } export type AwsComprehendV1ParamsNode = AwsComprehendV1NodeBase & { config: NodeConfig; }; export type AwsComprehendV1Node = AwsComprehendV1ParamsNode;