layer_version_by_arns
Creates, updates, deletes, gets or lists a layer_version_by_arns resource.
Overview
| Name | layer_version_by_arns |
| Type | Resource |
| Id | aws.lambda.layer_version_by_arns |
Fields
The following fields are returned by SELECT queries:
- get_layer_version_by_arn
| Name | Datatype | Description |
|---|---|---|
compatible_architectures | array | A list of compatible instruction set architectures. |
compatible_runtimes | array | The layer's compatible runtimes. The following list includes deprecated runtimes. For more information, see Runtime use after deprecation. For a list of all currently supported runtimes, see Supported runtimes. |
content | object | Details about the layer version. |
created_date | string | The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). (pattern: <code>.*</code>) |
description | string | The description of the version. |
layer_arn | string | The ARN of the layer. (pattern: <code>arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\d{1}:\d{12}:layer:[a-zA-Z0-9-_]+</code>) |
layer_version_arn | string | The ARN of the layer version. (pattern: <code>((arn:(aws[a-zA-Z-]*)?:lambda:(eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\d{1}:\d{12}:layer:[a-zA-Z0-9-]+:[0-9]+)|(arn:[a-zA-Z0-9-]+:lambda:::awslayer:[a-zA-Z0-9-]+))</code>) |
license_info | string | The layer's software license. (pattern: <code>.*</code>) |
version | integer (int64) | The version number. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_layer_version_by_arn | select | Arn, region | Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
Arn | string | The ARN of the layer version. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_layer_version_by_arn
Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
SELECT
compatible_architectures,
compatible_runtimes,
content,
created_date,
description,
layer_arn,
layer_version_arn,
license_info,
version
FROM aws.lambda.layer_version_by_arns
WHERE Arn = '{{ Arn }}' -- required
AND region = '{{ region }}' -- required
;