lambda

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: BSD-3-Clause Imports: 10 Imported by: 0

README

AWS Lambda Invoke

This activity allows you to invoke an AWS Lambda function.

Installation

Flogo CLI
flogo install github.com/project-flogo/aws-contrib/activity/lambda

Configuration

To configure AWS credentials see configuring-sdk

Settings:
Name Type Description
function string The name or ARN of the Lambda function - REQUIRED
clientContext object Information about the client to pass to the function via the context
async bool Perform async invocation
executionLog bool Include the execution log in the response
region string The AWS region, uses environment setting by default
Input:
Name Type Description
payload object The payload object
Output:
Name Type Description
status int The HTTP status code
result object The response from the function

Examples

Coming soon...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Activity

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

Activity is an activity that is used to invoke a lambda function

func (*Activity) Eval

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

Eval implements activity.Activity.Eval

func (*Activity) Metadata

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

Metadata returns the activity's metadata

type Input

type Input struct {
	Payload map[string]interface{} `md:"payload"` // The payload object
}

func (*Input) FromMap

func (i *Input) FromMap(values map[string]interface{}) error

func (*Input) ToMap

func (i *Input) ToMap() map[string]interface{}

type Output

type Output struct {
	Result map[string]interface{} `md:"result"` // The response from the function
	Status int                    `md:"status"` // The HTTP status code
}

func (*Output) FromMap

func (o *Output) FromMap(values map[string]interface{}) error

func (*Output) ToMap

func (o *Output) ToMap() map[string]interface{}

type Settings

type Settings struct {
	Function      string                 `md:"function,required"` // The name or ARN of the Lambda function
	ClientContext map[string]interface{} `md:"clientContext"`     // Information about the client to pass to the function via the context
	Async         bool                   `md:"async"`             // Perform async invocation
	ExecutionLog  bool                   `md:"executionLog"`      // Include the execution log in the response
	Region        string                 `md:"region"`            // The AWS region, uses environment setting by default
}

Jump to

Keyboard shortcuts

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