lambda

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

README

tibco-lambda

This activity provides native Lambda invocation capabilities to your Flogo apps. You can invoke a lambda function via ARN and provide the access key and secret for authentication.

Installation

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

Schema

Inputs and Outputs:

{
"inputs":[
    {
      "name": "arn",
      "type": "string",
      "required": true
    },
    {
      "name": "region",
      "type": "string",
      "required": true
    },
    {
      "name": "accessKey",
      "type": "string",
      "required" : false
    },
    {
      "name": "secretKey",
      "type": "string",
      "required" : false
    },
    {
      "name": "payload",
      "type": "any",
      "required" : true
    }
  ],
  "outputs": [
    {
      "name": "value",
      "type": "any"
    },
    {
      "name": "result",
      "type": "any"
    },
    {
      "name": "status",
      "type": "integer"
    }
  ]
}

Settings

Setting Description
arn The ARN for the Lambda function to invoke
region The AWS region
accessKey Access key for the user to invoke the function
secretKey The users secret key
payload The payload. A JSON object.

Output

Setting Description
value A struct containing the status and response
result The response
status The status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

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

NewActivity creates a new LambdaActivity

Types

type Activity

type Activity struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Activity is a App Activity implementation

func (*Activity) Eval

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

Eval implements activity.Activity.Eval

func (*Activity) Metadata

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

Metadata implements activity.Activity.Metadata

type Response

type Response struct {
	Status  int64
	Payload []byte
}

Response struct is used to store the response from Lambda

Jump to

Keyboard shortcuts

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