Skip to content

LambdaClient.invoke_async

rboto-lambda==0.4.0 · Service index · Types

Model summary (excerpt): For asynchronous function invocation, use Invoke . Invokes a function asynchronously. The payload limit is 256KB. For larger payloads, for up to 1MB, use Invoke . If you do use the InvokeAsync action, note that it doesn't support the use of X-Ray active tracing. Trace ID is not propagated to the function, even if X-Ray active tracing is turned on.

Install and imports

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

Signature

async def invoke_async(
    *,
    function_name: str,
    invoke_args: bytes | _FileBody | AsyncIterator[bytes],
) -> InvokeAsyncOutput: ...

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. Name formats Function name – my-function . Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function . Partial ARN – 123456789012:function:my-function . The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
invoke_args Yes The JSON that you want to provide to your Lambda function as input.

Output

InvokeAsyncOutput.

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
status int Always present —

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

InvokeAsyncOutput

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.

Input event streams accept the declared AsyncIterator of typed events.

Request byte bodies use bytes; they do not accept file objects or iterators.

Errors

Import from rboto_lambda.exceptions:

EC2AccessDeniedError, EC2ThrottledError, EC2UnexpectedError, EFSIOError, EFSMountConnectivityError, EFSMountFailureError, EFSMountTimeoutError, ENILimitReachedError, InvalidRequestContentError, InvalidRuntimeError, InvalidSecurityGroupIDError, InvalidSubnetIDError, KMSAccessDeniedError, KMSDisabledError, KMSInvalidStateError, KMSNotFoundError, ModeNotSupportedError, ResourceConflictError, ResourceNotFoundError, S3FilesMountConnectivityError, S3FilesMountFailureError, S3FilesMountTimeoutError, ServiceError, ServiceQuotaExceededError, SnapStartError, SnapStartNotReadyError, SnapStartRegenerationFailureError, SnapStartTimeoutError, SubnetIPAddressLimitReachedError.

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

Service guide · Pinned model