Skip to content

AWS Lambda Operations Reference

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.

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.

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:
  1. Go to IAM > Roles > Create role.
  2. Select AWS service, choose Lambda, and click Next.
  3. Search for and attach AWSLambdaBasicExecutionRole, then click Next.
  4. Enter a role name, for example lambda-execution-role, and click Create role.
  5. Open the created role and copy the ARN. For example: arn:aws:iam::1234567890:role/lambda-execution-role.
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.

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.

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.

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 for synchronous (waits for response)
  • Event for asynchronous (returns immediately)
Defaults to RequestResponse.
string Optional.

Returns the function's statusCode, requestId, response, functionError, and error.

Delete Function

Permanently deletes an existing Lambda function.

Parameter Description Type Required/Optional
Function Name Name of the Lambda function to delete. string Required.

Returns the status, functionName, and message confirming deletion.