list_hub_contents
¶
list_hub_contents(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
hub_name: Optional[HubNameOrArn] = None,
hub_content_type: Optional[HubContentType] = None,
name_contains: Optional[NameContains] = None,
max_schema_version: Optional[DocumentSchemaVersion] = None,
creation_time_before: Optional[Timestamp] = None,
creation_time_after: Optional[Timestamp] = None,
sort_by: Optional[HubContentSortBy] = None,
sort_order: Optional[SortOrder] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListHubContentsResponse
List the contents of a hub.
Parameters:
-
hub_name(Optional[HubNameOrArn], default:None) –The name of the hub to list the contents of.
-
hub_content_type(Optional[HubContentType], default:None) –The type of hub content to list.
-
name_contains(Optional[NameContains], default:None) –Only list hub content if the name contains the specified string.
-
max_schema_version(Optional[DocumentSchemaVersion], default:None) –The upper bound of the hub content schema verion.
-
creation_time_before(Optional[Timestamp], default:None) –Only list hub content that was created before the time specified.
-
creation_time_after(Optional[Timestamp], default:None) –Only list hub content that was created after the time specified.
-
sort_by(Optional[HubContentSortBy], default:None) –Sort hub content versions by either name or creation time.
-
sort_order(Optional[SortOrder], default:None) –Sort hubs by ascending or descending order.
-
max_results(Optional[MaxResults], default:None) –The maximum amount of hub content to list.
-
next_token(Optional[NextToken], default:None) –If the response to a previous
ListHubContentsrequest was truncated, the response includes aNextToken. To retrieve the next set of hub content, use the token in the next request.
Raises:
-
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
19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 | |