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 |
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 |
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
¶
The name of the imported model.
imported_model_tags
instance-attribute
¶
Tags to attach to the imported model.
job_tags
instance-attribute
¶
Tags to attach to this import job.
model_data_source
instance-attribute
¶
model_data_source: Required[ModelDataSource | ModelDataSourceDict]
The data source for the imported model.
role_arn
instance-attribute
¶
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
¶
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
¶
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.
Output¶
CreateModelImportJobOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for CreateModelImportJobOutput structure.