Start Async Invoke
bedrockruntime_start_async_invoke | R Documentation |
Starts an asynchronous invocation¶
Description¶
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
converse_stream
). For more information see Deny access for inference
on specific
models.
Usage¶
bedrockruntime_start_async_invoke(clientRequestToken, modelId,
modelInput, outputDataConfig, tags)
Arguments¶
clientRequestToken |
Specify idempotency token to ensure that requests are not duplicated. |
modelId |
[required] The model to invoke. |
modelInput |
[required] Input to send to the model. |
outputDataConfig |
[required] Where to store the output. |
tags |
Tags to apply to the invocation. |
Value¶
A list with the following syntax:
list(
invocationArn = "string"
)
Request syntax¶
svc$start_async_invoke(
clientRequestToken = "string",
modelId = "string",
modelInput = list(),
outputDataConfig = list(
s3OutputDataConfig = list(
s3Uri = "string",
kmsKeyId = "string",
bucketOwner = "string"
)
),
tags = list(
list(
key = "string",
value = "string"
)
)
)