# README


title: Trigger Lambda Function weight: 4614

Trigger Lambda function

This activity allows you to invoke an AWS Lambda function via ARN and provide the access key and secret for authentication.

Installation

Flogo Web

This activity comes out of the box with the Flogo Web UI

Flogo CLI

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

Schema

Inputs and Outputs:

{
  "input":[
    {
      "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
    }
  ],
  "output": [
    {
      "name": "value",
      "type": "any"
    },
    {
      "name": "result",
      "type": "any"
    },
    {
      "name": "status",
      "type": "integer"
    }
  ]
}

Settings

SettingRequiredDescription
arnTrueThe ARN of the Lambda function to invoke
regionTrueThe AWS region in which you want to invoke the function
accessKeyFalseAWS access key for the user to invoke the function
secretKeyFalseAWS secret key for the user to invoke te function
payloadTrueThe payload to send to the function. This must be a valid JSON object.
valueFalseA struct containing the status and response
resultFalseThe response from the invocation
statusFalseThe status of the invocation

Examples

Coming soon...

# Functions

NewActivity creates a new LambdaActivity.

# Structs

Activity is a App Activity implementation.
Response struct is used to store the response from Lambda.