awssns

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2018 License: BSD-3-Clause Imports: 6 Imported by: 0

README

Amazon SNS - SMS

This activity sends SMS using Amazon Simple Notification Services (SNS).

Installation

flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/awssns

Schema

Inputs and Outputs:

{
  "input":[
    {
      "name": "accessKey",
      "type": "string",
      "required": "true"
    },
    {
      "name": "secretKey",
      "type": "string",
      "required": "true"
    },
    {
      "name": "region",
      "type": "string",
      "required": "true",
      "allowed" : ["us-east-1","us-west-2","eu-west-1","ap-northeast-1","ap-southeast-1","ap-southeast-2"]
    },
    {
      "name": "smsType",
      "type": "string",
      "allowed" : ["Promotional", "Transactional"]
    },
    {
      "name": "from",
      "type": "string",
      "required": "true"
    },
    {
      "name": "to",
      "type": "string",
      "required": "true"
    },
    {
      "name": "message",
      "type": "string",
      "required": "true"
    }
  ],
  "output": [
  	{
      "name": "messageId",
      "type": "string"
    }
  ]
}

Settings

Setting Description
accessKey Amazon Access Key ID
secretKey Amazon Secret Access Key
region Default region to use to send the SMS. See Here
smsType Type of SMS to be sent (Promotional or Transactional)
from Sender ID for the SMS
to Phone number (International format) to which send the SMS
message The message itself
messageId The unique message ID returned by AWS SNS

More details

Please find more details about SNS regions and countries here: http://docs.aws.amazon.com/sns/latest/dg/sms_supported-countries.html

Documentation

Index

Constants

View Source
const (
	ConfAWSAccessKeyID     = "accessKey"
	ConfAWSSecretAccessKey = "secretKey"
	ConfAWSDefaultRegion   = "region"
	ConfSMSType            = "smsType"
	ConfSMSFrom            = "from"
	ConfSMSTo              = "to"
	ConfSMSMessage         = "message"
	OUTMessageID           = "messageId"
)

List of input and output variables names

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new activity

Types

type AWSSNS

type AWSSNS struct {
	// contains filtered or unexported fields
}

AWSSNS Structure for the AWSNS activity

func (*AWSSNS) Eval

func (a *AWSSNS) Eval(context activity.Context) (done bool, err error)

Eval implements activity.Activity.Eval

func (*AWSSNS) Metadata

func (a *AWSSNS) Metadata() *activity.Metadata

Metadata implements activity.Activity.Metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL