Updates SageMaker hub content (either a Model or Notebook resource)¶
Description¶
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:
HubContentDescriptionHubContentDisplayNameHubContentMarkdownHubContentSearchKeywordsSupportStatus
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.
Usage¶
sagemaker_update_hub_content(HubName, HubContentName, HubContentType,
HubContentVersion, HubContentDisplayName, HubContentDescription,
HubContentMarkdown, HubContentSearchKeywords, SupportStatus)
Arguments¶
-
HubName[required] The name of the SageMaker hub that contains the hub content you want to update. You can optionally use the hub ARN instead.
-
HubContentName[required] The name of the hub content resource that you want to update.
-
HubContentType[required] The content type of the resource that you want to update. Only specify a
ModelorNotebookresource for this API. To update aModelReference, use theupdate_hub_content_referenceAPI instead. -
HubContentVersion[required] 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.
-
HubContentDisplayNameThe display name of the hub content.
-
HubContentDescriptionThe description of the hub content.
-
HubContentMarkdownA string that provides a description of the hub content. This string can include links, tables, and standard markdown formatting.
-
HubContentSearchKeywordsThe searchable keywords of the hub content.
-
SupportStatusIndicates the current status of the hub content resource.
Value¶
A list with the following syntax:
Request syntax¶
svc$update_hub_content(
HubName = "string",
HubContentName = "string",
HubContentType = "Model"|"Notebook"|"ModelReference"|"DataSet"|"JsonDoc",
HubContentVersion = "string",
HubContentDisplayName = "string",
HubContentDescription = "string",
HubContentMarkdown = "string",
HubContentSearchKeywords = list(
"string"
),
SupportStatus = "Supported"|"Deprecated"|"Restricted"
)