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
30457 30458 30459 30460 30461 30462 30463 30464 30465 30466 30467 30468 30469 30470 30471 30472 30473 30474 30475 30476 30477 30478 30479 30480 30481 30482 30483 30484 30485 30486 30487 30488 30489 30490 30491 30492 30493 30494 30495 30496 30497 30498 30499 30500 30501 30502 30503 30504 30505 30506 30507 30508 30509 30510 30511 30512 30513 30514 30515 30516 30517 30518 30519 30520 30521 30522 30523 30524 30525 30526 30527 30528 30529 30530 30531 30532 30533 30534 30535 30536 30537 30538 30539 30540 30541 30542 30543 30544 30545 30546 30547 30548 30549 30550 | |