update_hub_content_reference
async
¶
update_hub_content_reference(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
hub_name: Optional[HubNameOrArn] = None,
hub_content_name: Optional[HubContentName] = None,
hub_content_type: Optional[HubContentType] = None,
min_version: Optional[HubContentVersion] = None,
) -> UpdateHubContentReferenceResponse
Updates the contents of a SageMaker hub for a ModelReference resource. A ModelReference allows you to access public SageMaker JumpStart models from within your private hub.
When using this API, you can update the MinVersion field for additional flexibility in the model version. You shouldn't update any additional fields when using this API, because the metadata in your private hub should match the public JumpStart model's metadata.
If you want to update a Model or Notebook resource in your hub, use the UpdateHubContent API instead.
For more information about adding model references to your hub, see Add models to a private hub.
Parameters:
-
hub_name(Optional[HubNameOrArn], default:None) –The name of the SageMaker hub that contains the hub content you want to update. You can optionally use the hub ARN instead.
-
hub_content_name(Optional[HubContentName], default:None) –The name of the hub content resource that you want to update.
-
hub_content_type(Optional[HubContentType], default:None) –The content type of the resource that you want to update. Only specify a
ModelReferenceresource for this API. To update aModelorNotebookresource, use theUpdateHubContentAPI instead. -
min_version(Optional[HubContentVersion], default:None) –The minimum hub content version of the referenced model that you want to use. The minimum version must be older than the latest available version of the referenced model. To support all versions of a model, set the value to
1.0.0.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
33746 33747 33748 33749 33750 33751 33752 33753 33754 33755 33756 33757 33758 33759 33760 33761 33762 33763 33764 33765 33766 33767 33768 33769 33770 33771 33772 33773 33774 33775 33776 33777 33778 33779 33780 33781 33782 33783 33784 33785 33786 33787 33788 33789 33790 33791 33792 33793 33794 33795 33796 33797 33798 33799 33800 33801 33802 33803 33804 33805 33806 33807 33808 33809 | |