list_spaces
async
¶
list_spaces(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
25346 25347 25348 25349 25350 25351 25352 25353 25354 25355 25356 25357 25358 25359 25360 25361 25362 25363 25364 25365 25366 25367 25368 25369 25370 25371 25372 25373 25374 25375 25376 25377 25378 25379 25380 25381 25382 25383 25384 25385 25386 25387 25388 25389 25390 25391 25392 25393 25394 25395 25396 25397 25398 25399 25400 25401 25402 25403 25404 25405 25406 25407 25408 25409 25410 25411 | |