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 |
Source code in src/aws_sdk_bedrock_runtime/client.py
688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 | |
Input¶
StartAsyncInvokeInput
dataclass
¶
Dataclass for StartAsyncInvokeInput structure.
Source code in src/aws_sdk_bedrock_runtime/models.py
1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 | |
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.
Output¶
StartAsyncInvokeOutput
dataclass
¶
Dataclass for StartAsyncInvokeOutput structure.
Source code in src/aws_sdk_bedrock_runtime/models.py
1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 | |