Invoke

Invoke an AWS Lambda function.

Invocations may be synchronous or asynchronous. For a synchronous invocation, AWS Lambda waits for a response that contains details or errors. In an asynchronous invocation, AWS Lambda adds an event to a queue. After the event is sent, the response includes a status code only.

Options

Field Definition Type Required

Use Function Name?

Indicates whether to use the function name.

Dropdown

TRUE

Your Functions

List of functions that you can invoke.

Dropdown

TRUE

Function Name

Invoke a function by specifying its partial or complete name.

Text

TRUE

Input

Field Definition Type Required

Parameters

invocationType

Type of invocation.

  • RequestResponse: Synchronous invocation. The connection remains open until a response is received.
  • DryRun: Verification of user permissions. Try this type before invoking a function to prevent errors.
  • Event: Asynchronous invocation. Events are added to a queue and attempted twice before moving to a dead-letter queue.

All three invocation types may include attempted retries.

Dropdown

FALSE

logType

Inclusion of the execution log.

  • None: excludes the execution log from the response.
  • Tail: includes the execution log in the response.

Dropdown

FALSE

clientContext

Data about the client.

The limit is 3583 bytes of Base64-encoded data.

Object

FALSE

payload

JSON data to provide to the function.

Object

FALSE

qualifier

Alias of the function (if it has been published previously).

Text

FALSE

Output

Field Definition Type

Status Code

Result of the operation. The connector returns an HTTP status code that indicates whether the action taken by the card succeeded or failed. For example:

  • A 201 Created status code indicates success where a new resource was created.
  • A 403 Forbidden error indicates that the HTTP request wasn't processed because the necessary permissions were missing.

For a full list of possible status codes, see HTTP status codes.

Number

Output

Response from the function.

Text

Log Result

Last 4 KB of the execution log.

Text

Related topics

AWS Lambda connector

Workflow elements

AWS Lambda API