start_async_invoke¶
Operation¶
start_async_invoke
async
¶
start_async_invoke(input: StartAsyncInvokeInput, plugins: list[Plugin] | None = None) -> StartAsyncInvokeOutput
Starts an asynchronous invocation.
This operation requires permission for the bedrock:InvokeModel action.
Warning
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
ConverseStream).
For more information see Deny access for inference on specific
models.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
StartAsyncInvokeInput
|
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 |
|---|---|
StartAsyncInvokeOutput
|
An instance of |
Input¶
StartAsyncInvokeInput
dataclass
¶
Dataclass for StartAsyncInvokeInput structure.
Attributes¶
client_request_token
class-attribute
instance-attribute
¶
client_request_token: str | None = None
Specify idempotency token to ensure that requests are not duplicated.
model_input
class-attribute
instance-attribute
¶
model_input: Document | None = field(repr=False, default=None)
Input to send to the model.
output_data_config
class-attribute
instance-attribute
¶
output_data_config: AsyncInvokeOutputDataConfig | None = None
Where to store the output.