Add operation field to Aws nodes

This commit is contained in:
Matheus Cansian
2019-10-15 14:24:45 -03:00
parent 0fcbe409b6
commit 087199798c
2 changed files with 77 additions and 0 deletions

View File

@@ -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,