update_hub_content_reference
¶
update_hub_content_reference(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
30159 30160 30161 30162 30163 30164 30165 30166 30167 30168 30169 30170 30171 30172 30173 30174 30175 30176 30177 30178 30179 30180 30181 30182 30183 30184 30185 30186 30187 30188 30189 30190 30191 30192 30193 30194 30195 30196 30197 30198 30199 30200 30201 30202 30203 30204 30205 30206 30207 30208 30209 30210 30211 30212 30213 30214 30215 30216 30217 30218 30219 30220 30221 | |