Skip to main content

AWS Lambda

AWS Lambda configuration

Type: aws-lambda-configuration

Properties

NameTypeDescriptionRequired
setupobjectno
runtimeobjectno
concurrencyobjectDefault: {"reserved_concurrency_type":"unreserved","provisioned_concurrency_type":"unprovisioned"}
no

Additional Properties: not allowed
Example

{
"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"
}
}

setup: Setup

Properties

NameTypeDescriptionRequired
role_arnstringARN of the role to use for the function
Pattern: ^arn:aws:iam::\d{12}:role/[a-zA-Z0-9+=,.@\-_/]+$
no
certificate_arnstringARN of the certificate to use for the function
Pattern: ^arn:aws:acm:[a-z\-]+-\d:\d{12}:certificate/[a-zA-Z0-9+=,.@\-_/]+$
no
enable_endpointbooleanWhether to create an endpoint domain. If true, a certificate ARN is required.
Default: true
no

 

No properties.

 
IF object

  • has properties, where
    property enable_endpoint is true

THEN

Required Properties:

  • certificate_arn

Example

{
"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: Runtime

Properties

NameTypeDescriptionRequired
available_layersstring[]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.
Default:

Example

{
"available_layers": []
}

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+$

concurrency: Concurrency

Properties

NameTypeDescriptionRequired
reserved_concurrency_typestringType of concurrency configuration for the Lambda function
Default: "unreserved"
reserved_concurrency_value
(Reserved Concurrent Executions)
integerNumber of concurrent executions to reserve for this function. Only applicable when type is 'reserved'.
Minimum: 1
Maximum: 1000
provisioned_concurrency_typestringType of provisioned concurrency configuration for the Lambda function
Default: "unprovisioned"
provisioned_concurrency_value
(Provisioned Concurrency)
integerNumber provisioned concurrency for this function. Only applicable when type is 'provisioned'.

 

No properties.

 
IF object

  • has properties, where
    property reserved_concurrency_type is reserved

THEN

Required Properties:

  • reserved_concurrency_value

 

No properties.

 
IF object

  • has properties, where
    property reserved_concurrency_type is provisioned

THEN

Required Properties:

  • provisioned_concurrency_value

Example

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