Skip to content

get_layer_version

Operation

get_layer_version

get_layer_version(request: GetLayerVersionInput | GetLayerVersionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetLayerVersionInputDict]) -> 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
request GetLayerVersionInput | GetLayerVersionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[GetLayerVersionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetLayerVersionOutput

An instance of GetLayerVersionOutput.

get_layer_version async

get_layer_version(request: GetLayerVersionInput | GetLayerVersionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetLayerVersionInputDict]) -> 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
request GetLayerVersionInput | GetLayerVersionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[GetLayerVersionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetLayerVersionOutput

An instance of GetLayerVersionOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

GetLayerVersionInputDict

Bases: TypedDict

Dictionary form of GetLayerVersionInput.

Attributes

layer_name instance-attribute
layer_name: Required[str]

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

version_number instance-attribute
version_number: int | None

The version number.

GetLayerVersionInput dataclass

Bases: _SerdeShape

Dataclass for GetLayerVersionInput structure.

Attributes

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

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

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

The version number.

Output

GetLayerVersionOutput dataclass

Bases: _SerdeShape

Dataclass for GetLayerVersionOutput structure.

Attributes

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

A list of compatible instruction set architectures.

compatible_runtimes class-attribute instance-attribute
compatible_runtimes: list[str] | 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 = ...

Details about the layer version.

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

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

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

The description of the version.

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

The ARN of the layer.

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

The ARN of the layer version.

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

The layer's software license.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

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

The version number.