---
sidebar_label: AWS Lambda
doc_id: 8e69088b-9c13-437b-8d1b-6b78e139b752
description: >-
  Configuration schema for AWS Lambda functions with role, certificate, and
  endpoint settings.
keywords:
  - AWS Lambda
  - configuration
  - IAM role
  - certificate
  - serverless
---

# AWS Lambda

AWS Lambda configuration

**Type**: `aws-lambda-configuration`

**Properties**

|Name|Type|Description|Required|
|----|----|-----------|--------|
|[**setup**](#setup)|`object`||no|
|[**runtime**](#runtime)|`object`||no|
|[**concurrency**](#concurrency)|`object`|Default: `{"reserved_concurrency_type":"unreserved","provisioned_concurrency_type":"unprovisioned"}`<br/>|no|

**Additional Properties:** not allowed  
**Example**

```json
{
    "setup": {
        "role_arn": "arn:aws:iam::123456789012:role/lambda-role",
        "certificate_arn": "arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012",
        "enable_endpoint": true
    },
    "runtime": {
        "available_layers": []
    },
    "concurrency": {
        "reserved_concurrency_type": "unreserved",
        "provisioned_concurrency_type": "unprovisioned"
    }
}
```

<a name="setup"></a>
## setup: Setup

**Properties**

|Name|Type|Description|Required|
|----|----|-----------|--------|
|**role\_arn**|`string`|ARN of the role to use for the function<br/>Pattern: `^arn:aws:iam::\d{12}:role/[a-zA-Z0-9+=,.@\-_/]+$`<br/>|no|
|**certificate\_arn**|`string`|ARN of the certificate to use for the function<br/>Pattern: `^arn:aws:acm:[a-z\-]+-\d:\d{12}:certificate/[a-zA-Z0-9+=,.@\-_/]+$`<br/>|no|
|**enable\_endpoint**|`boolean`|Whether to create an endpoint domain. If true, a certificate ARN is required.<br/>Default: `true`<br/>|no|

   

**No properties.**

   
**IF** object

  * has properties, where<br/>property **enable_endpoint** is `true` 

**THEN**


**Required Properties:**

  * certificate_arn

**Example**

```json
{
    "role_arn": "arn:aws:iam::123456789012:role/lambda-role",
    "certificate_arn": "arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012",
    "enable_endpoint": true
}
```

<a name="runtime"></a>
## runtime: Runtime

**Properties**

|Name|Type|Description|Required|
|----|----|-----------|--------|
|[**available\_layers**](#runtimeavailable_layers)|`string[]`|Lambda layer ARNs to make available for developers to select when creating scopes. These layers are optional and only applied to functions when explicitly selected during scope creation.<br/>Default: <br/>||

**Example**

```json
{
    "available_layers": []
}
```

<a name="runtimeavailable_layers"></a>
### runtime\.available\_layers\[\]: Available Layers

Lambda layer ARNs to make available for developers to select when creating scopes. These layers are optional and only applied to functions when explicitly selected during scope creation.

**Items**

**Item Type:** `string`  
**Item Pattern:** `^arn:aws:lambda:[a-z\-]+-\d:\d{12}:layer:[a-zA-Z0-9+=,.@\-_/]+:\d+$`  
<a name="concurrency"></a>
## concurrency: Concurrency

**Properties**

|Name|Type|Description|Required|
|----|----|-----------|--------|
|**reserved\_concurrency\_type**|`string`|Type of concurrency configuration for the Lambda function<br/>Default: `"unreserved"`<br/>||
|**reserved\_concurrency\_value**<br/>(Reserved Concurrent Executions)|`integer`|Number of concurrent executions to reserve for this function. Only applicable when type is 'reserved'.<br/>Minimum: `1`<br/>Maximum: `1000`<br/>||
|**provisioned\_concurrency\_type**|`string`|Type of provisioned concurrency configuration for the Lambda function<br/>Default: `"unprovisioned"`<br/>||
|**provisioned\_concurrency\_value**<br/>(Provisioned Concurrency)|`integer`|Number provisioned concurrency for this function. Only applicable when type is 'provisioned'.<br/>||

   

**No properties.**

   
**IF** object

  * has properties, where<br/>property **reserved_concurrency_type** is `reserved` 

**THEN**


**Required Properties:**

  * reserved_concurrency_value

   

**No properties.**

   
**IF** object

  * has properties, where<br/>property **reserved_concurrency_type** is `provisioned` 

**THEN**


**Required Properties:**

  * provisioned_concurrency_value

**Example**

```json
{
    "reserved_concurrency_type": "unreserved",
    "provisioned_concurrency_type": "unprovisioned"
}
```

