Skip to content

Bedrock  >  Operations  >  create_model_import_job

create_model_import_job

Operation

create_model_import_job async

create_model_import_job(input: CreateModelImportJobInput, plugins: list[Plugin] | None = None) -> CreateModelImportJobOutput

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

Parameters:

Name Type Description Default
input CreateModelImportJobInput

An instance of CreateModelImportJobInput.

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
CreateModelImportJobOutput

An instance of CreateModelImportJobOutput.

Input

CreateModelImportJobInput dataclass

Dataclass for CreateModelImportJobInput structure.

Attributes

client_request_token class-attribute instance-attribute
client_request_token: str | None = None

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.

imported_model_kms_key_id class-attribute instance-attribute
imported_model_kms_key_id: str | None = None

The imported model is encrypted at rest using this key.

imported_model_name class-attribute instance-attribute
imported_model_name: str | None = None

The name of the imported model.

imported_model_tags class-attribute instance-attribute
imported_model_tags: list[Tag] | None = None

Tags to attach to the imported model.

job_name class-attribute instance-attribute
job_name: str | None = None

The name of the import job.

job_tags class-attribute instance-attribute
job_tags: list[Tag] | None = None

Tags to attach to this import job.

model_data_source class-attribute instance-attribute
model_data_source: ModelDataSource | None = None

The data source for the imported model.

role_arn class-attribute instance-attribute
role_arn: str | None = None

The Amazon Resource Name (ARN) of the model import job.

vpc_config class-attribute instance-attribute
vpc_config: VpcConfig | None = None

VPC configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for the import job.

Output

CreateModelImportJobOutput dataclass

Dataclass for CreateModelImportJobOutput structure.

Attributes

job_arn instance-attribute
job_arn: str

The Amazon Resource Name (ARN) of the model import job.