# AWS Lambda

> Invoke and manage AWS Lambda serverless functions: run functions synchronously or asynchronously with a JSON payload, list and inspect functions and their versions, and check account limits and usage.

App · Cloud Computing · 5 actions. Web page: https://docs.lodol.com/docs/integrations/aws-lambda

## Actions

### Get account settings

Get the account's Lambda limits (code storage, concurrency) and current usage in the connection's region.

**Inputs**: None.

**Outputs**

- `result` (object)

**Example output**

```json
{
  "result": {
    "account_limit": {
      "CodeSizeUnzipped": 262144000,
      "CodeSizeZipped": 52428800,
      "ConcurrentExecutions": 1000,
      "TotalCodeSize": 80530636800,
      "UnreservedConcurrentExecutions": 1000
    },
    "account_usage": {
      "FunctionCount": 1,
      "TotalCodeSize": 1024
    }
  }
}
```

### Get function

Get a function's configuration, code location, tags, and reserved-concurrency settings.

**Inputs**

- Function name (`function_name`, text, required): The name or ARN of the function.
- Qualifier (`qualifier`, text): Optional version number or alias name.

**Outputs**

- `result` (object)

**Example output**

```json
{
  "result": {
    "code": {
      "Location": "https://awslambda-us-east-1-tasks.s3.amazonaws.com/...",
      "RepositoryType": "S3"
    },
    "concurrency": null,
    "configuration": {
      "FunctionArn": "arn:aws:lambda:us-east-1:123456789012:function:my-function",
      "FunctionName": "my-function",
      "Handler": "index.handler",
      "MemorySize": 128,
      "Runtime": "python3.12",
      "State": "Active",
      "Timeout": 3,
      "Version": "$LATEST"
    },
    "tags": {
      "env": "qa"
    }
  }
}
```

### Invoke function

Invoke a Lambda function with an optional JSON payload, synchronously (RequestResponse) or asynchronously (Event).

**Inputs**

- Function name (`function_name`, text, required): The name, version/alias-qualified name, or ARN of the function to invoke (e.g. 'my-function').
- Payload (`payload`, object): JSON object passed to the function as the event. Leave empty to invoke with no input.
- Invocation type (`invocation_type`, text): RequestResponse waits for the function and returns its output; Event queues an asynchronous invocation; DryRun validates parameters and permissions without running the function. One of: `RequestResponse` (RequestResponse (sync)), `Event` (Event (async)), `DryRun` (DryRun (validate only)). Default: `RequestResponse`.
- Log type (`log_type`, text): Set to Tail to include the last 4 KB of the function's execution log in 'log_result' (RequestResponse only). One of: `None`, `Tail` (Tail (return logs)). Default: `None`.
- Qualifier (`qualifier`, text): Optional version number or alias name to invoke a specific published version of the function.
- Client context (`client_context`, text): Optional base64-encoded data (up to 3,583 bytes) passed to the function in the client context object.

**Outputs**

- `result` (object)

**Example output**

```json
{
  "result": {
    "executed_version": "$LATEST",
    "function_error": null,
    "log_result": null,
    "payload": {
      "body": "Hello from Lambda!",
      "statusCode": 200
    },
    "status_code": 200
  }
}
```

### List function versions

List the published versions of a Lambda function.

**Inputs**

- Function name (`function_name`, text, required): The name or ARN of the function.
- Max items (`max_items`, number): Maximum number of versions to return (1–10000). From 1 to 10000.
- Marker (`marker`, text): Pagination token from a previous response's 'next_marker' to fetch the next page.

**Outputs**

- `result` (object)

**Example output**

```json
{
  "result": {
    "next_marker": null,
    "versions": [
      {
        "FunctionArn": "arn:aws:lambda:us-east-1:123456789012:function:my-function:1",
        "FunctionName": "my-function",
        "Runtime": "python3.12",
        "Version": "1"
      }
    ]
  }
}
```

### List functions

List the Lambda functions in the connection's region, with pagination.

**Inputs**

- Function version (`function_version`, text): Set to 'ALL' to include all published versions of each function in addition to the latest. One of: `ALL` (ALL (include all versions)).
- Master region (`master_region`, text): For a $LATEST listing, the region to filter Lambda@Edge functions by (e.g. 'us-east-1' or 'ALL').
- Max items (`max_items`, number): Maximum number of functions to return (1–10000). From 1 to 10000.
- Marker (`marker`, text): Pagination token from a previous response's 'next_marker' to fetch the next page.

**Outputs**

- `result` (object)

**Example output**

```json
{
  "result": {
    "functions": [
      {
        "CodeSize": 1024,
        "FunctionArn": "arn:aws:lambda:us-east-1:123456789012:function:my-function",
        "FunctionName": "my-function",
        "Handler": "index.handler",
        "LastModified": "2026-07-30T00:00:00.000+0000",
        "MemorySize": 128,
        "PackageType": "Zip",
        "Runtime": "python3.12",
        "Timeout": 3,
        "Version": "$LATEST"
      }
    ],
    "next_marker": null
  }
}
```
