Files
Agent-n8n/n8n-n8n-1.109.2/packages/nodes-base/nodes/Aws/Cognito/descriptions/user/get.operation.ts
2025-09-08 04:48:28 +08:00

32 lines
757 B
TypeScript
Executable File

import type { INodeProperties } from 'n8n-workflow';
import { updateDisplayOptions } from 'n8n-workflow';
import { userPoolResourceLocator, userResourceLocator } from '../common.description';
const properties: INodeProperties[] = [
{
...userPoolResourceLocator,
description: 'Select the user pool to use',
},
{
...userResourceLocator,
description: 'Select the user you want to retrieve',
},
{
displayName: 'Simplify',
name: 'simple',
type: 'boolean',
default: true,
description: 'Whether to return a simplified version of the response instead of the raw data',
},
];
const displayOptions = {
show: {
resource: ['user'],
operation: ['get'],
},
};
export const description = updateDisplayOptions(displayOptions, properties);