Skip to content

Lambda  >  Operations  >  get_layer_version

get_layer_version

Operation

get_layer_version async

get_layer_version(input: GetLayerVersionInput, plugins: list[Plugin] | None = None) -> GetLayerVersionOutput

Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

Parameters:

Name Type Description Default
input GetLayerVersionInput

An instance of GetLayerVersionInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
GetLayerVersionOutput

An instance of GetLayerVersionOutput.

Input

GetLayerVersionInput dataclass

Dataclass for GetLayerVersionInput structure.

Attributes

layer_name class-attribute instance-attribute
layer_name: str | None = None

The name or Amazon Resource Name (ARN) of the layer.

version_number class-attribute instance-attribute
version_number: int | None = None

The version number.

Output

GetLayerVersionOutput dataclass

Dataclass for GetLayerVersionOutput structure.

Attributes

compatible_architectures class-attribute instance-attribute
compatible_architectures: list[Architecture] | None = None

A list of compatible instruction set architectures.

compatible_runtimes class-attribute instance-attribute
compatible_runtimes: list[Runtime] | None = None

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 class-attribute instance-attribute
content: LayerVersionContentOutput | None = None

Details about the layer version.

created_date class-attribute instance-attribute
created_date: str | None = None

The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

description class-attribute instance-attribute
description: str | None = None

The description of the version.

layer_arn class-attribute instance-attribute
layer_arn: str | None = None

The ARN of the layer.

layer_version_arn class-attribute instance-attribute
layer_version_arn: str | None = None

The ARN of the layer version.

license_info class-attribute instance-attribute
license_info: str | None = None

The layer's software license.

version class-attribute instance-attribute
version: int = 0

The version number.