preview
We're still working on this feature, but we'd love for you to try it out!
This feature is currently provided as part of a preview program pursuant to our pre-release policies.
This page provides a comprehensive reference for AWS Lambda actions available in the workflow automation actions catalog. These actions enable you to manage and invoke Lambda functions as part of your workflow definitions.
Prerequisites
Before using AWS Lambda actions in workflow automation, ensure you have:
- An AWS account with appropriate permissions.
- AWS credentials configured (IAM user credentials, IAM role ARN, or session credentials).
- The necessary IAM permissions for Lambda operations.
See Set up AWS credentials for information on how to create IAM users and IAM roles, and set up static and session AWS credentials for integration with workflow automation AWS actions.
Lambda actions
Invokes a Lambda function synchronously or asynchronously with an optional payload.
Input Field | Optionality | Type | Example |
|---|---|---|---|
awsRoleArn | Optional | String |
|
awsAccessKeyId | Optional | String |
|
awsSecretAccessKey | Optional | String |
|
awsSessionToken | Optional | String |
|
region | Required | String |
|
functionName | Required | String |
|
payload | Optional | Map |
|
selectors | Optional | List |
|
Output Field | Type | Example |
|---|---|---|
payload | Map | |
statusCode | Int |
|
executedVersion | String |
|
functionError | String |
|
success | Boolean |
|
errorMessage | String |
|
重要
- In action input at least one of the AWS Credentials (short, long, role) should be provided, where role take precedence over the others.
- In action input, if
awsAccessKeyIdandawsSecretAccessKeyare to be provided make sure they are static credentials of an IAM user. - If session credentials are to be used,
awsAccessKeyId,awsSecretAccessKeyandawsSessionTokenmust be passed to action input. - The credential owner must have the
lambda:InvokeFunctionIAM permission to invoke the lambda function passed in the action input. - The selectors to get the only specified parameters as output.
Workflow definition | Inputs | Outputs | Outputs when selectors are provided |
|---|---|---|---|
| | | |
Modifies the configuration of a specific AWS Lambda function. Provide only the parameters you want to change.
Input Field | Optionality | Type | Example |
|---|---|---|---|
awsRoleArn | Optional | String |
|
awsAccessKeyId | Optional | String |
|
awsSecretAccessKey | Optional | String |
|
awsSessionToken | Optional | String |
|
region | Required | String |
|
functionName | Required | String |
|
role | Optional | String |
|
handler | Optional | String |
|
description | Optional | String |
|
parameters | Optional | Map | |
selectors | Optional | List |
|
重要
To support a wide range of inputs, the parameters map accepts any optional argument available. This allows you to dynamically construct requests by adding multiple fields.
Output Field | Type | Example |
|---|---|---|
response | object | Response syntax can be referred to update_function_configuration - Boto3 documentation |
success | Boolean |
|
errorMessage | String |
|
Workflow example |
|---|
|
Retrieves the configuration details, code location, and other metadata for a specific AWS Lambda function.
Input Field | Optionality | Type | Example |
|---|---|---|---|
awsRoleArn | Optional | String |
|
awsAccessKeyId | Optional | String |
|
awsSecretAccessKey | Optional | String |
|
awsSessionToken | Optional | String |
|
region | Required | String |
|
functionName | Required | String |
|
parameters | Optional | Map | |
selectors | Optional | List |
|
重要
To support a wide range of inputs, the parameters map accepts any optional argument available. This allows you to dynamically construct requests by adding multiple fields.
Output Field | Type | Example |
|---|---|---|
response | object | Response syntax can be referred to update_function_configuration - Boto3 documentation |
success | Boolean |
|
errorMessage | String |
|
Workflow example |
|---|
|
Returns a list of aliases for a specific AWS Lambda function. Aliases are pointers to function versions.
Input Field | Optionality | Type | Example |
|---|---|---|---|
awsRoleArn | Optional | String |
|
awsAccessKeyId | Optional | String |
|
awsSecretAccessKey | Optional | String |
|
awsSessionToken | Optional | String |
|
region | Required | String |
|
functionName | Required | String |
|
marker | Optional | String | Pass the e.g., |
maxItems | Optional | Int | Limit the number of aliases returned e.g., |
parameters | Optional | Map | For additional optional API parameters. e.g., |
selectors | Optional | List |
|
重要
- Pagination: Use the
MarkerandMaxItemsinputs to paginate through a large number of aliases. - To support a wide range of inputs, the
parametersmap accepts any optional argument available. This allows you to dynamically construct requests by adding multiple fields.
Output Field | Type | Example |
|---|---|---|
response | object | Response syntax can be referred to update_function_configuration - Boto3 documentation |
success | Boolean |
|
errorMessage | String |
|
Workflow example |
|---|
|