Skip to content

LambdaClient.list_layer_versions

rboto-lambda==0.4.0 · Service index · Types

Model summary (excerpt): Lists the versions of an Lambda layer . Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layer versions that are compatible with that architecture.

Install and imports

python -m pip install "rboto[lambda]==0.4.0"
from rboto import LambdaClient
from rboto_lambda.types import (
    Architecture,
    ListLayerVersionsOutput,
    Runtime,
)

Signature

async def list_layer_versions(
    *,
    layer_name: str,
    compatible_architecture: Architecture | None = None,
    compatible_runtime: Runtime | None = None,
    marker: str | None = None,
    max_items: int | None = None,
) -> ListLayerVersionsOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
layer_name Yes The name or Amazon Resource Name (ARN) of the layer.
compatible_architecture No The compatible instruction set architecture .
compatible_runtime No A runtime identifier. 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 .
marker No A pagination token returned by a previous call.
max_items No The maximum number of versions to return.

Output

ListLayerVersionsOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
next_marker str | None Always present —
layer_versions list[LayerVersionsListItemOutput] | None Always present LayerVersionsListItemOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

Architecture, ListLayerVersionsOutput, Runtime

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

client.paginators.list_layer_versions(...) accepts the same arguments and returns AsyncIterator[ListLayerVersionsOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: marker. Page-size argument: max_items.

No output stream.

Errors

Import from rboto_lambda.exceptions:

InvalidParameterValueError, ResourceNotFoundError, ServiceError, TooManyRequestsError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model