Skip to content

LambdaClient.get_function

rboto-lambda==0.4.0 · Service index · Types

Model summary (excerpt): Returns information about a Lambda Event Function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.

Install and imports

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

Signature

async def get_function(
    *,
    function_name: str,
    qualifier: str | None = None,
) -> GetFunctionOutput: ...

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)
function_name Yes The name or ARN of the Lambda function, version, or alias. Name formats Function name – my-function (name-only), my-function:v1 (with alias). Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function . Partial ARN – 123456789012:function:my-function . You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you...
qualifier No Specify a version or alias to get details about a published version of the function.

Output

GetFunctionOutput.

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
configuration FunctionConfiguration | None Always present FunctionConfiguration
code FunctionCodeLocationOutput | None Always present FunctionCodeLocationOutput
tags dict[str, str] | None Always present —
tags_error TagsErrorOutput | None Always present TagsErrorOutput
concurrency Concurrency | None Always present Concurrency

| 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.

GetFunctionOutput

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

Pagination and streaming

No generated paginator for this operation.

No output stream.

Waiters

from rboto import WaiterConfig. Calls use this public operation, including configured middleware and native retries. Polling, deadlines and errors.

client.waiters.function_active_v2:

async def function_active_v2(
    *,
    function_name: str,
    qualifier: str | None = None,
    waiter_config: WaiterConfig | None = None,
) -> GetFunctionOutput: ...

Default fixed delay: 1 seconds. Default maximum: 40 polls. No overall timeout unless configured.

Returns the successful polling Output.

Acceptor index State Matcher Model path Expected
0 success stringEquals Configuration.State Active
1 failure stringEquals Configuration.State Failed
2 retry stringEquals Configuration.State Pending

Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.

client.waiters.function_exists:

async def function_exists(
    *,
    function_name: str,
    qualifier: str | None = None,
    waiter_config: WaiterConfig | None = None,
) -> GetFunctionOutput: ...

Default fixed delay: 1 seconds. Default maximum: 40 polls. No overall timeout unless configured.

Returns the successful polling Output.

Acceptor index State Matcher Model path Expected
0 success success — True
1 retry errorType — ResourceNotFoundException

Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.

client.waiters.function_updated_v2:

async def function_updated_v2(
    *,
    function_name: str,
    qualifier: str | None = None,
    waiter_config: WaiterConfig | None = None,
) -> GetFunctionOutput: ...

Default fixed delay: 1 seconds. Default maximum: 40 polls. No overall timeout unless configured.

Returns the successful polling Output.

Acceptor index State Matcher Model path Expected
0 success stringEquals Configuration.LastUpdateStatus Successful
1 failure stringEquals Configuration.LastUpdateStatus Failed
2 retry stringEquals Configuration.LastUpdateStatus InProgress

Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.

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