import_model_version
async
¶
import_model_version(
source_model_version_arn: ModelVersionArn,
dataset_name: DatasetIdentifier,
client_token: IdempotenceToken,
*,
config_overrides: Optional[AsyncLookoutEquipmentClientConfig] = None,
model_name: Optional[ModelName] = None,
labels_input_configuration: Optional[LabelsInputConfiguration] = None,
role_arn: Optional[IamRoleArn] = None,
server_side_kms_key_id: Optional[NameOrArn] = None,
tags: Optional[TagList] = None,
inference_data_import_strategy: Optional[InferenceDataImportStrategy] = None,
) -> ImportModelVersionResponse
Imports a model that has been trained successfully.
Parameters:
-
source_model_version_arn(ModelVersionArn) –The Amazon Resource Name (ARN) of the model version to import.
-
model_name(Optional[ModelName], default:None) –The name for the machine learning model to be created. If the model already exists, Amazon Lookout for Equipment creates a new version. If you do not specify this field, it is filled with the name of the source model.
-
dataset_name(DatasetIdentifier) –The name of the dataset for the machine learning model being imported.
-
client_token(IdempotenceToken) –A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.
-
role_arn(Optional[IamRoleArn], default:None) –The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create the machine learning model.
-
server_side_kms_key_id(Optional[NameOrArn], default:None) –Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment.
-
tags(Optional[TagList], default:None) –The tags associated with the machine learning model to be created.
-
inference_data_import_strategy(Optional[InferenceDataImportStrategy], default:None) –Indicates how to import the accumulated inference data when a model version is imported. The possible values are as follows:
-
NO_IMPORT – Don't import the data.
-
ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target model.
-
OVERWRITE – Import the data from the source model and overwrite the existing data in the target model.
-
Raises:
-
AccessDeniedException–The request could not be completed because you do not have access to the resource.
-
ConflictException–The request could not be completed due to a conflict with the current state of the target resource.
-
InternalServerException–Processing of the request has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource requested could not be found. Verify the resource ID and retry your request.
-
ServiceQuotaExceededException–Resource limitations have been exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related Amazon Web Services service that's being utilized.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lookoutequipment/_services/async_lookout_equipment.py
1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 | |