Skip to content

list_functions

Operation

list_functions

list_functions(request: ListFunctionsInput | ListFunctionsInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ListFunctionsInputDict]) -> ListFunctionsOutput

Returns a list of Lambda Event Functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.

Set FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version.

Note

The ListFunctions operation returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function or version, use GetFunction.

Parameters:

Name Type Description Default
request ListFunctionsInput | ListFunctionsInputDict | 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[ListFunctionsInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
ListFunctionsOutput

An instance of ListFunctionsOutput.

list_functions async

list_functions(request: ListFunctionsInput | ListFunctionsInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ListFunctionsInputDict]) -> ListFunctionsOutput

Returns a list of Lambda Event Functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.

Set FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version.

Note

The ListFunctions operation returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function or version, use GetFunction.

Parameters:

Name Type Description Default
request ListFunctionsInput | ListFunctionsInputDict | 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[ListFunctionsInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
ListFunctionsOutput

An instance of ListFunctionsOutput.

Input

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

ListFunctionsInputDict

Bases: TypedDict

Dictionary form of ListFunctionsInput.

Attributes

function_version instance-attribute
function_version: str | None

Set to ALL to include entries for all published versions of each function.

marker instance-attribute
marker: str | None

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

master_region instance-attribute
master_region: str | None

For Lambda@Edge functions, the Amazon Web Services Region of the master function. For example, us-east-1 filters the list of functions to include only Lambda@Edge functions replicated from a master function in US East (N. Virginia). If specified, you must set FunctionVersion to ALL.

max_items instance-attribute
max_items: int | None

The maximum number of functions to return in the response. Note that ListFunctions returns a maximum of 50 items in each response, even if you set the number higher.

ListFunctionsInput dataclass

Bases: _SerdeShape

Dataclass for ListFunctionsInput structure.

Attributes

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

Set to ALL to include entries for all published versions of each function.

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

Specify the pagination token that's returned by a previous request to retrieve the next page of results.

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

For Lambda@Edge functions, the Amazon Web Services Region of the master function. For example, us-east-1 filters the list of functions to include only Lambda@Edge functions replicated from a master function in US East (N. Virginia). If specified, you must set FunctionVersion to ALL.

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

The maximum number of functions to return in the response. Note that ListFunctions returns a maximum of 50 items in each response, even if you set the number higher.

Output

ListFunctionsOutput dataclass

Bases: _SerdeShape

A list of Lambda functions.

Attributes

functions class-attribute instance-attribute
functions: list[FunctionConfiguration] | None = ...

A list of Lambda functions.

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

The pagination token that's included if more results are available.

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.