aws-lambda-function-invoke
Service icon

AWS Lambda Function Invoke

Stable version 1.0.3 (Compatible with OutSystems 11)
Uploaded
 on 25 February 2024
 by 
4.0
 (1 rating)
aws-lambda-function-invoke

AWS Lambda Function Invoke

Documentation
1.0.0

A how to is available here https://medium.com/itnext/invoking-aws-lambda-functions-in-outsystems-b398d0cdde97

Credentials

You can either use IAM User credentials (Access Key and Secret Access Key) or Temporary Credentials (Access Key, Secret Access Key and Session Token).

To assume an IAM role with temporary credentials you can use our AWS Security Token Service component in Forge.

Permissions

To execute an AWS Lambda Function your credentials need the lambda:InvokeFunction permission

Input Parameters

This component has only one server action Lambda_InvokeFunction, which takes the following input parameters

  • AccessKey - Your IAM User Access Key or STS Temporary Credentials Access Key Id.
  • SecretAccessKey - Your IAM User Secret Access Key or STS Temporary Credentials Secret Access Key
  • SessionToken - Only needed when using STS Temporary Credentials.
  • Region - The AWS Region where the Lambda function is available and will be executed. Use the RegionEndpoint static entity to select your region.
  • LambdaFunction - Name or Amazon Resource Name of the Lambda function to execute
  • InvocationType - You can execute a lambda function sychronously or asynchronously. The first will wait for the result of the function, the latter not. Use the InvocationType static entity to select the Invocation type or leave empty for the default, which is synchronously.
  • Payload - The JSON serialized data which will be sent as the event data. Use JSONSerialize to serialize any structure to a string.


Output

  • IsSuccess - True if the lambda invocation operation was successfuly
  • Error - Contains the error message in case the operation did not complete successfully
  • Response - The response of the operation. Contains the Output payload (returned by the lambda function), the HTTP status code and the executed version of the function.