Skip to content

BedrockRuntimeClient.start_async_invoke

rboto-bedrock-runtime==0.4.0 · Service index · Types

Model summary (excerpt): Starts an asynchronous invocation. This operation requires permission for the bedrock:InvokeModel action. To deny all inference access to resources that you specify in the modelId field, you need to deny access to the bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream actions. Doing this also denies access to the resource through the Converse API actions ( Converse and...

Install and imports

python -m pip install "rboto[bedrock-runtime]==0.4.0"
from rboto import BedrockRuntimeClient
from collections.abc import Sequence
from rboto_bedrock_runtime.types import (
    AsyncInvokeOutputDataConfig,
    JSONValue,
    StartAsyncInvokeOutput,
    Tag,
)

Signature

async def start_async_invoke(
    *,
    model_id: str,
    model_input: JSONValue,
    output_data_config: AsyncInvokeOutputDataConfig,
    client_request_token: str | None = None,
    tags: Sequence[Tag] | None = None,
) -> StartAsyncInvokeOutput: ...

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)
model_id Yes The model to invoke.
model_input Yes Input to send to the model.
output_data_config Yes Where to store the output.
client_request_token No Specify idempotency token to ensure that requests are not duplicated.
tags No Tags to apply to the invocation.

Output

StartAsyncInvokeOutput.

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

AsyncInvokeOutputDataConfig, JSONValue, StartAsyncInvokeOutput, Tag

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.

Errors

Import from rboto_bedrock_runtime.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ServiceUnavailableError, ThrottlingError, ValidationError.

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

Service guide · Pinned model