BedrockClient.create_model_import_job
rboto-bedrock==0.4.0 · Service index · Types
Model summary (excerpt): Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker. For more information, see Import a customized model
Install and imports
from rboto import BedrockClient
from collections.abc import Sequence
from rboto_bedrock.types import (
CreateModelImportJobOutput,
ModelDataSource,
Tag,
VpcConfig,
)
Signature
async def create_model_import_job(
*,
job_name: str,
imported_model_name: str,
role_arn: str,
model_data_source: ModelDataSource,
job_tags: Sequence[Tag] | None = None,
imported_model_tags: Sequence[Tag] | None = None,
client_request_token: str | None = None,
vpc_config: VpcConfig | None = None,
imported_model_kms_key_id: str | None = None,
) -> CreateModelImportJobOutput: ...
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 | The name of the import job. |
imported_model_name |
Yes | The name of the imported model. |
role_arn |
Yes | The Amazon Resource Name (ARN) of the model import job. |
model_data_source |
Yes | The data source for the imported model. |
job_tags |
No | Tags to attach to this import job. |
imported_model_tags |
No | Tags to attach to the imported model. |
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 | VPC configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for the import job. |
imported_model_kms_key_id |
No | The imported model is encrypted at rest using this key. |
Output
CreateModelImportJobOutput.
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
CreateModelImportJobOutput, ModelDataSource, 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, TooManyTagsError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.