list_spaces
¶
list_spaces(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
sort_order: Optional[SortOrder] = None,
sort_by: Optional[SpaceSortKey] = None,
domain_id_equals: Optional[DomainId] = None,
space_name_contains: Optional[SpaceName] = None,
) -> ListSpacesResponse
Lists spaces.
Parameters:
-
next_token(Optional[NextToken], default:None) –If the previous response was truncated, you will receive this token. Use it in your next request to receive the next set of results.
-
max_results(Optional[MaxResults], default:None) –This parameter defines the maximum number of results that can be return in a single response. The
MaxResultsparameter is an upper bound, not a target. If there are more results available than the value specified, aNextTokenis provided in the response. TheNextTokenindicates that the user should get the next set of results by providing this token as a part of a subsequent call. The default value forMaxResultsis 10. -
sort_order(Optional[SortOrder], default:None) –The sort order for the results. The default is
Ascending. -
sort_by(Optional[SpaceSortKey], default:None) –The parameter by which to sort the results. The default is
CreationTime. -
domain_id_equals(Optional[DomainId], default:None) –A parameter to search for the domain ID.
-
space_name_contains(Optional[SpaceName], default:None) –A parameter by which to filter the results.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
27841 27842 27843 27844 27845 27846 27847 27848 27849 27850 27851 27852 27853 27854 27855 27856 27857 27858 27859 27860 27861 27862 27863 27864 27865 27866 27867 27868 27869 27870 27871 27872 27873 27874 27875 27876 27877 27878 27879 27880 27881 27882 27883 27884 27885 27886 27887 27888 27889 27890 27891 27892 27893 27894 27895 27896 27897 27898 27899 27900 27901 27902 27903 27904 27905 | |