update_hub_content
async
¶
update_hub_content(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
hub_name: Optional[HubNameOrArn] = None,
hub_content_name: Optional[HubContentName] = None,
hub_content_type: Optional[HubContentType] = None,
hub_content_version: Optional[HubContentVersion] = None,
hub_content_display_name: Optional[HubContentDisplayName] = None,
hub_content_description: Optional[HubContentDescription] = None,
hub_content_markdown: Optional[HubContentMarkdown] = None,
hub_content_search_keywords: Optional[HubContentSearchKeywordList] = None,
support_status: Optional[HubContentSupportStatus] = None,
) -> UpdateHubContentResponse
Updates SageMaker hub content (either a Model or Notebook resource).
You can update the metadata that describes the resource. In addition to the required request fields, specify at least one of the following fields to update:
-
HubContentDescription -
HubContentDisplayName -
HubContentMarkdown -
HubContentSearchKeywords -
SupportStatus
For more information about hubs, see Private curated hubs for foundation model access control in JumpStart.
If you want to update a ModelReference resource in your hub, use the UpdateHubContentResource API instead.
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
ModelorNotebookresource for this API. To update aModelReference, use theUpdateHubContentReferenceAPI instead. -
hub_content_version(Optional[HubContentVersion], default:None) –The hub content version that you want to update. For example, if you have two versions of a resource in your hub, you can update the second version.
-
hub_content_display_name(Optional[HubContentDisplayName], default:None) –The display name of the hub content.
-
hub_content_description(Optional[HubContentDescription], default:None) –The description of the hub content.
-
hub_content_markdown(Optional[HubContentMarkdown], default:None) –A string that provides a description of the hub content. This string can include links, tables, and standard markdown formatting.
-
hub_content_search_keywords(Optional[HubContentSearchKeywordList], default:None) –The searchable keywords of the hub content.
-
support_status(Optional[HubContentSupportStatus], default:None) –Indicates the current status of the hub content resource.
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
33651 33652 33653 33654 33655 33656 33657 33658 33659 33660 33661 33662 33663 33664 33665 33666 33667 33668 33669 33670 33671 33672 33673 33674 33675 33676 33677 33678 33679 33680 33681 33682 33683 33684 33685 33686 33687 33688 33689 33690 33691 33692 33693 33694 33695 33696 33697 33698 33699 33700 33701 33702 33703 33704 33705 33706 33707 33708 33709 33710 33711 33712 33713 33714 33715 33716 33717 33718 33719 33720 33721 33722 33723 33724 33725 33726 33727 33728 33729 33730 33731 33732 33733 33734 33735 33736 33737 33738 33739 33740 33741 33742 33743 33744 | |