# Source: https://docs.datadoghq.com/ddsql_reference/data_directory/aws/aws.lambda_function.dataset.md

---
title: Lambda Function
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > DDSQL Reference > Data Directory > Lambda Function
---

# Lambda Function

AWS Lambda Function is a serverless compute resource that runs code in response to events without provisioning or managing servers. It supports multiple runtimes, scales automatically, and charges only for execution time. Functions can be triggered by AWS services, HTTP requests, or custom events, making it ideal for event-driven applications, automation, and backend services.

```
aws.lambda_function
```

## Fields

| Title                           | ID   | Type          | Data Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Description |
| ------------------------------- | ---- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| _key                            | core | string        |
| account_id                      | core | string        |
| architectures                   | core | array<string> | The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| code_sha256                     | core | string        | The SHA256 hash of the function's deployment package.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| code_size                       | core | int64         | The size of the function's deployment package, in bytes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| dead_letter_config              | core | json          | The function's dead letter queue.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| description                     | core | string        | The function's description.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| environment                     | core | json          | The function's environment variables. Omitted from CloudTrail logs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ephemeral_storage               | core | json          | The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| file_system_configs             | core | json          | Connection settings for an Amazon EFS file system.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| function_arn                    | core | string        | The function's Amazon Resource Name (ARN).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| function_name                   | core | string        | The name of the function.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| function_url_configs            | core | json          | A list of function URL configurations.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| handler                         | core | string        | The function that Lambda calls to begin running your function.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| image_config_response           | core | json          | The function's image configuration values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| kms_key_arn                     | core | string        | The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources: The function's environment variables. The function's Lambda SnapStart snapshots. When used with SourceKMSKeyArn, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see Specifying a customer managed key for Lambda. The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see Function lifecycle. If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key or an Amazon Web Services managed key. |
| last_modified                   | core | string        | The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| last_update_status              | core | string        | The status of the last update that was performed on the function. This is first set to Successful after function creation completes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| last_update_status_reason       | core | string        | The reason for the last update that was performed on the function.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| last_update_status_reason_code  | core | string        | The reason code for the last update that was performed on the function.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| layers                          | core | json          | The function's layers.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| logging_config                  | core | json          | The function's Amazon CloudWatch Logs configuration settings.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| master_arn                      | core | string        | For Lambda@Edge functions, the ARN of the main function.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| memory_size                     | core | int64         | The amount of memory available to the function at runtime.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| package_type                    | core | string        | The type of deployment package. Set to Image for container image and set Zip for .zip file archive.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| policies                        | core | json          |
| policy                          | core | json          | The resource-based policy.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| provisioned_concurrency_configs | core | json          | A list of provisioned concurrency configurations.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| revision_id                     | core | string        | The latest updated revision of the function or alias.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| role                            | core | string        | The function's execution role.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| runtime                         | core | string        | The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image. The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation. For a list of all currently supported runtimes, see Supported runtimes.                                                                                                                                                                                                                                                                                           |
| runtime_version_config          | core | json          | The ARN of the runtime and any errors that occured.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| signing_job_arn                 | core | string        | The ARN of the signing job.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| signing_profile_version_arn     | core | string        | The ARN of the signing profile version.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| snap_start                      | core | json          | Set ApplyOn to PublishedVersions to create a snapshot of the initialized execution environment when you publish a function version. For more information, see Improving startup performance with Lambda SnapStart.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| state                           | core | string        | The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| state_reason                    | core | string        | The reason for the function's current state.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| state_reason_code               | core | string        | The reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| tags                            | core | hstore_csv    |
| timeout                         | core | int64         | The amount of time in seconds that Lambda allows a function to run before stopping it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| tracing_config                  | core | json          | The function's X-Ray tracing configuration.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| version                         | core | string        | The version of the Lambda function.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| vpc_config                      | core | json          | The function's networking configuration.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |