LambdaClient.list_layers
rboto-lambda==0.4.0 · Service index · Types
Model summary (excerpt): Lists Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture .
Install and imports
from rboto import LambdaClient
from rboto_lambda.types import (
Architecture,
ListLayersOutput,
Runtime,
)
Signature
async def list_layers(
*,
compatible_architecture: Architecture | None = None,
compatible_runtime: Runtime | None = None,
marker: str | None = None,
max_items: int | None = None,
) -> ListLayersOutput: ...
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) |
|---|---|---|
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 layers to return. |
Output
ListLayersOutput.
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 | — |
layers |
list[LayersListItemOutput] | None |
Always present | LayersListItemOutput |
| 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.
Related types
Architecture, ListLayersOutput, Runtime
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_layers(...) accepts the same arguments and returns AsyncIterator[ListLayersOutput]. 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, ServiceError, TooManyRequestsError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.