AWS Lambda Operations Reference
Orkes Conductor integrates with AWS Lambda to let you invoke and manage Lambda functions directly from your workflows. Once you configure the AWS Lambda integration, you can use the following operations to create, retrieve, update, and delete Lambda functions without leaving your workflow.
This page covers the parameters and expected output for each operation available in the AWS Lambda integration.
List Functions
Lists all Lambda functions in your AWS account.
- Input Parameters
- Output Parameters
| Parameter | Description | Type | Required/Optional |
|---|---|---|---|
| Max Items | Maximum number of functions to return. Defaults to 50. | integer | Optional. |
Returns count, nextMarker, and a functions array where each entry contains functionName, functionArn, runtime, role, handler, codeSize, description, timeout, memorySize, lastModified, codeSha256, version, state, and stateReason.
Create Function
Creates a new Lambda function from a base64-encoded ZIP package.
- Input Parameters
- Output Parameters
| Parameter | Description | Type | Required/Optional |
|---|---|---|---|
| Function Name | Name of the Lambda function to create. | string | Required. |
| Runtime | Runtime environment. For example, python3.12, nodejs20.x, java21. | string | Required. |
| Role | ARN of the IAM role that Lambda assumes during execution. To create one:
| string | Required. |
| Handler | Function entry point. For example, index.lambda_handler for Python, index.handler for Node.js, or com.example.Handler::handleRequest for Java. | string | Required. |
| Zip File Base 64 | Function code as a base64-encoded ZIP file. Create a ZIP of your code, then run base64 -i function.zip | tr -d '\n' (Mac/Linux) or [Convert]::ToBase64String([IO.File]::ReadAllBytes("function.zip")) (Windows PowerShell) to get the encoded string. | string | Required. |
| Description | A description of the function's purpose. | string | Optional. |
| Memory Size | Memory allocated in MB (128–10240). Defaults to 128. | integer | Optional. |
| Timeout | Maximum execution time in seconds (1–900). Defaults to 3. | integer | Optional. |
| Environment Variables | Key-value pairs injected as environment variables, as a JSON string. For example, {"KEY":"value"}. | string | Optional. |
Returns the function's status, functionName, functionArn, runtime, role, handler, codeSize, description, timeout, memorySize, lastModified, codeSha256, version, and state.
Get Function Details
Retrieves full configuration and code details of a specific Lambda function.
- Input Parameters
- Output Parameters
| Parameter | Description | Type | Required/Optional |
|---|---|---|---|
| Function Name | Name of the Lambda function to retrieve. | string | Required. |
Returns the function's status, functionName, functionArn, runtime, role, handler, codeSize, description, timeout, memorySize, lastModified, codeSha256, version, state, stateReason, lastUpdateStatus, packageType, code.location, and code.repositoryType.
Update Function Configuration
Updates the configuration of an existing Lambda function without redeploying code.
- Input Parameters
- Output Parameters
| Parameter | Description | Type | Required/Optional |
|---|---|---|---|
| Function Name | Name of the Lambda function to update. | string | Required. |
| Memory Size | Updated memory allocated in MB (128–10240). | integer | Optional. |
| Timeout | Updated maximum execution time in seconds (1–900). | integer | Optional. |
| Description | Updated description of the function's purpose. | string | Optional. |
| Environment Variables | Updated key-value pairs injected as environment variables, as a JSON string. For example, {"KEY":"value"}. | string | Optional. |
Returns the function's updated functionName, functionArn, memorySize, timeout, description, and lastModified.
Invoke Function
Invokes a Lambda function synchronously or asynchronously with a JSON payload.
- Input Parameters
- Output Parameters
| Parameter | Description | Type | Required/Optional |
|---|---|---|---|
| Function Name | Name of the Lambda function to invoke. | string | Required. |
| Payload | Input payload as a JSON string. For example, {"message": "Hello from Lambda!"}. | string | Required. |
| Invocation Type | The invocation type for the request. Supported values:
RequestResponse. | string | Optional. |
Returns the function's statusCode, requestId, response, functionError, and error.
Delete Function
Permanently deletes an existing Lambda function.
- Input Parameters
- Output Parameters
| Parameter | Description | Type | Required/Optional |
|---|---|---|---|
| Function Name | Name of the Lambda function to delete. | string | Required. |
Returns the status, functionName, and message confirming deletion.