list_clusters
async
¶
list_clusters(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
creation_time_after: Optional[Timestamp] = None,
creation_time_before: Optional[Timestamp] = None,
max_results: Optional[MaxResults] = None,
name_contains: Optional[NameContains] = None,
next_token: Optional[NextToken] = None,
sort_by: Optional[ClusterSortBy] = None,
sort_order: Optional[SortOrder] = None,
training_plan_arn: Optional[TrainingPlanArn] = None,
) -> ListClustersResponse
Retrieves the list of SageMaker HyperPod clusters.
Parameters:
-
creation_time_after(Optional[Timestamp], default:None) –Set a start time for the time range during which you want to list SageMaker HyperPod clusters. Timestamps are formatted according to the ISO 8601 standard.
Acceptable formats include:
-
YYYY-MM-DDThh:mm:ss.sssTZD(UTC), for example,2014-10-01T20:30:00.000Z -
YYYY-MM-DDThh:mm:ss.sssTZD(with offset), for example,2014-10-01T12:30:00.000-08:00 -
YYYY-MM-DD, for example,2014-10-01 -
Unix time in seconds, for example,
1412195400. This is also referred to as Unix Epoch time and represents the number of seconds since midnight, January 1, 1970 UTC.
For more information about the timestamp format, see Timestamp in the Amazon Web Services Command Line Interface User Guide.
-
-
creation_time_before(Optional[Timestamp], default:None) –Set an end time for the time range during which you want to list SageMaker HyperPod clusters. A filter that returns nodes in a SageMaker HyperPod cluster created before the specified time. The acceptable formats are the same as the timestamp formats for
CreationTimeAfter. For more information about the timestamp format, see Timestamp in the Amazon Web Services Command Line Interface User Guide. -
max_results(Optional[MaxResults], default:None) –Specifies the maximum number of clusters to evaluate for the operation (not necessarily the number of matching items). After SageMaker processes the number of clusters up to
MaxResults, it stops the operation and returns the matching clusters up to that point. If all the matching clusters are desired, SageMaker will go through all the clusters untilNextTokenis empty. -
name_contains(Optional[NameContains], default:None) –Set the maximum number of instances to print in the list.
-
next_token(Optional[NextToken], default:None) –Set the next token to retrieve the list of SageMaker HyperPod clusters.
-
sort_by(Optional[ClusterSortBy], default:None) –The field by which to sort results. The default value is
CREATION_TIME. -
sort_order(Optional[SortOrder], default:None) –The sort order for results. The default value is
Ascending. -
training_plan_arn(Optional[TrainingPlanArn], default:None) –The Amazon Resource Name (ARN); of the training plan to filter clusters by. For more information about reserving GPU capacity for your SageMaker HyperPod clusters using Amazon SageMaker Training Plan, see
CreateTrainingPlan.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 | |