mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
Co-authored-by: Stamsy <stams_89@abv.bg> Co-authored-by: Adina Totorean <adinatotorean99@gmail.com> Co-authored-by: Giulio Andreini <g.andreini@gmail.com> Co-authored-by: AdinaTotorean <64439268+adina-hub@users.noreply.github.com> Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com> Co-authored-by: feelgood-interface <feelgood.interface@gmail.com>
48 lines
868 B
TypeScript
48 lines
868 B
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
import * as get from './get.operation';
|
|
import { simplifyUserPool } from '../../helpers/utils';
|
|
|
|
export const description: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['userPool'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Get',
|
|
value: 'get',
|
|
action: 'Get user pool',
|
|
routing: {
|
|
request: {
|
|
method: 'POST',
|
|
headers: {
|
|
'X-Amz-Target': 'AWSCognitoIdentityProviderService.DescribeUserPool',
|
|
},
|
|
},
|
|
output: {
|
|
postReceive: [
|
|
simplifyUserPool,
|
|
{
|
|
type: 'rootProperty',
|
|
properties: {
|
|
property: 'UserPool',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
],
|
|
default: 'get',
|
|
},
|
|
|
|
...get.description,
|
|
];
|