list_versions_by_function¶
Operation¶
list_versions_by_function
async
¶
list_versions_by_function(input: ListVersionsByFunctionInput, plugins: list[Plugin] | None = None) -> ListVersionsByFunctionOutput
Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
ListVersionsByFunctionInput
|
An instance of |
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 |
|---|---|
ListVersionsByFunctionOutput
|
An instance of |
Input¶
ListVersionsByFunctionInput
dataclass
¶
Dataclass for ListVersionsByFunctionInput structure.
Attributes¶
function_name
class-attribute
instance-attribute
¶
function_name: str | None = None
The name or ARN of the Lambda function.
Name formats
-
Function name -
MyFunction. -
Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:MyFunction. -
Partial ARN -
123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
marker
class-attribute
instance-attribute
¶
marker: str | None = None
Specify the pagination token that's returned by a previous request to retrieve the next page of results.
max_items
class-attribute
instance-attribute
¶
max_items: int | None = None
The maximum number of versions to return. Note that
ListVersionsByFunction returns a maximum of 50 items in each response,
even if you set the number higher.
Output¶
ListVersionsByFunctionOutput
dataclass
¶
Dataclass for ListVersionsByFunctionOutput structure.
Attributes¶
next_marker
class-attribute
instance-attribute
¶
next_marker: str | None = None
The pagination token that's included if more results are available.
versions
class-attribute
instance-attribute
¶
versions: list[FunctionConfiguration] | None = None
A list of Lambda function versions.