Skip to content

create_model_import_job

Operation

create_model_import_job

create_model_import_job(request: CreateModelImportJobInput | CreateModelImportJobInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[CreateModelImportJobInputDict]) -> 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
request CreateModelImportJobInput | CreateModelImportJobInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[CreateModelImportJobInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
CreateModelImportJobOutput

An instance of CreateModelImportJobOutput.

create_model_import_job async

create_model_import_job(request: CreateModelImportJobInput | CreateModelImportJobInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[CreateModelImportJobInputDict]) -> 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
request CreateModelImportJobInput | CreateModelImportJobInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[CreateModelImportJobInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
CreateModelImportJobOutput

An instance of CreateModelImportJobOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

CreateModelImportJobInputDict

Bases: TypedDict

Dictionary form of CreateModelImportJobInput.

Attributes

client_request_token instance-attribute
client_request_token: str | 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 instance-attribute
imported_model_kms_key_id: str | None

The imported model is encrypted at rest using this key.

imported_model_name instance-attribute
imported_model_name: Required[str]

The name of the imported model.

imported_model_tags instance-attribute
imported_model_tags: Sequence[Tag | TagDict] | None

Tags to attach to the imported model.

job_name instance-attribute
job_name: Required[str]

The name of the import job.

job_tags instance-attribute
job_tags: Sequence[Tag | TagDict] | None

Tags to attach to this import job.

model_data_source instance-attribute

The data source for the imported model.

role_arn instance-attribute
role_arn: Required[str]

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

vpc_config instance-attribute
vpc_config: VpcConfig | VpcConfigDict | None

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

CreateModelImportJobInput dataclass

Bases: _SerdeShape

Dataclass for CreateModelImportJobInput structure.

Attributes

client_request_token class-attribute instance-attribute
client_request_token: str | 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 = ...

The imported model is encrypted at rest using this key.

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

The name of the imported model.

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

Tags to attach to the imported model.

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

The name of the import job.

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

Tags to attach to this import job.

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

The data source for the imported model.

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

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

vpc_config class-attribute instance-attribute
vpc_config: VpcConfig | 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

Bases: _SerdeShape

Dataclass for CreateModelImportJobOutput structure.

Attributes

job_arn instance-attribute
job_arn: str

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

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.