mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Add operation field to Aws nodes
This commit is contained in:
parent
0fcbe409b6
commit
087199798c
|
@ -32,6 +32,20 @@ export class AwsLambda implements INodeType {
|
|||
}
|
||||
],
|
||||
properties: [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Invoke',
|
||||
value: 'invoke',
|
||||
description: 'Invoke a function',
|
||||
},
|
||||
],
|
||||
default: 'invoke',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
{
|
||||
displayName: 'Function',
|
||||
name: 'function',
|
||||
|
@ -39,6 +53,13 @@ export class AwsLambda implements INodeType {
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getFunctions',
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'invoke',
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [],
|
||||
default: '',
|
||||
required: true,
|
||||
|
@ -48,6 +69,13 @@ export class AwsLambda implements INodeType {
|
|||
displayName: 'Qualifier',
|
||||
name: 'qualifier',
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'invoke',
|
||||
],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
default: '$LATEST',
|
||||
description: 'Specify a version or alias to invoke a published version of the function',
|
||||
|
@ -68,6 +96,13 @@ export class AwsLambda implements INodeType {
|
|||
description: 'Invoke the function and immediately continue the workflow',
|
||||
},
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'invoke',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: 'RequestResponse',
|
||||
description: 'Specify if the workflow should wait for the function to return the results',
|
||||
},
|
||||
|
@ -75,6 +110,13 @@ export class AwsLambda implements INodeType {
|
|||
displayName: 'JSON Input',
|
||||
name: 'payload',
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'invoke',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The JSON that you want to provide to your Lambda function as input',
|
||||
typeOptions: {
|
||||
|
|
|
@ -32,6 +32,20 @@ export class AwsSns implements INodeType {
|
|||
}
|
||||
],
|
||||
properties: [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Publish',
|
||||
value: 'publish',
|
||||
description: 'Publish a message to a topic',
|
||||
},
|
||||
],
|
||||
default: 'invoke',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
{
|
||||
displayName: 'Topic',
|
||||
name: 'topic',
|
||||
|
@ -39,6 +53,13 @@ export class AwsSns implements INodeType {
|
|||
typeOptions: {
|
||||
loadOptionsMethod: 'getTopics',
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'publish',
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [],
|
||||
default: '',
|
||||
required: true,
|
||||
|
@ -48,6 +69,13 @@ export class AwsSns implements INodeType {
|
|||
displayName: 'Subject',
|
||||
name: 'subject',
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'publish',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'Subject when the message is delivered to email endpoints',
|
||||
|
@ -56,6 +84,13 @@ export class AwsSns implements INodeType {
|
|||
displayName: 'Message',
|
||||
name: 'message',
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'publish',
|
||||
],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
typeOptions: {
|
||||
alwaysOpenEditWindow: true,
|
||||
|
|
Loading…
Reference in a new issue