BedrockClient.create_model_invocation_job
rboto-bedrock==0.4.0 · Service index · Types
Model summary (excerpt): Creates a batch inference job to invoke a model on multiple prompts. Format your data according to Format your inference data and upload it to an Amazon S3 bucket. For more information, see Process multiple prompts with batch inference . The response returns a jobArn that you can use to stop or get details about the job.
Install and imports
from rboto import BedrockClient
from collections.abc import Sequence
from rboto_bedrock.types import (
CreateModelInvocationJobOutput,
ModelInvocationJobInputDataConfig,
ModelInvocationJobOutputDataConfig,
ModelInvocationType,
Tag,
VpcConfig,
)
Signature
async def create_model_invocation_job(
*,
job_name: str,
role_arn: str,
model_id: str,
input_data_config: ModelInvocationJobInputDataConfig,
output_data_config: ModelInvocationJobOutputDataConfig,
client_request_token: str | None = None,
vpc_config: VpcConfig | None = None,
timeout_duration_in_hours: int | None = None,
tags: Sequence[Tag] | None = None,
model_invocation_type: ModelInvocationType | None = None,
) -> CreateModelInvocationJobOutput: ...
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) |
|---|---|---|
job_name |
Yes | A name to give the batch inference job. |
role_arn |
Yes | The Amazon Resource Name (ARN) of the service role with permissions to carry out and manage batch inference. You can use the console to create a default service role or follow the steps at Create a service role for batch inference . |
model_id |
Yes | The unique identifier of the foundation model to use for the batch inference job. |
input_data_config |
Yes | Details about the location of the input to the batch inference job. |
output_data_config |
Yes | Details about the location of the output of the batch inference job. |
client_request_token |
No | A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency . |
vpc_config |
No | The configuration of the Virtual Private Cloud (VPC) for the data in the batch inference job. For more information, see Protect batch inference jobs using a VPC . |
timeout_duration_in_hours |
No | The number of hours after which to force the batch inference job to time out. |
tags |
No | Any tags to associate with the batch inference job. For more information, see Tagging Amazon Bedrock resources . |
model_invocation_type |
No | The invocation endpoint for ModelInvocationJob |
Output
CreateModelInvocationJobOutput.
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 |
|---|---|---|---|
job_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.
Related types
CreateModelInvocationJobOutput, ModelInvocationJobInputDataConfig, ModelInvocationJobOutputDataConfig, ModelInvocationType, Tag, VpcConfig
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.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.