list_workteams
async
¶
list_workteams(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
sort_by: Optional[ListWorkteamsSortByOptions] = None,
sort_order: Optional[SortOrder] = None,
name_contains: Optional[WorkteamName] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListWorkteamsResponse
Gets a list of private work teams that you have defined in a region. The list may be empty if no work team satisfies the filter specified in the NameContains parameter.
Parameters:
-
sort_by(Optional[ListWorkteamsSortByOptions], default:None) –The field to sort results by. The default is
CreationTime. -
sort_order(Optional[SortOrder], default:None) –The sort order for results. The default is
Ascending. -
name_contains(Optional[WorkteamName], default:None) –A string in the work team's name. This filter returns only work teams whose name contains the specified string.
-
next_token(Optional[NextToken], default:None) –If the result of the previous
ListWorkteamsrequest was truncated, the response includes aNextToken. To retrieve the next set of labeling jobs, use the token in the next request. -
max_results(Optional[MaxResults], default:None) –The maximum number of work teams to return in each page of the response.
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
29853 29854 29855 29856 29857 29858 29859 29860 29861 29862 29863 29864 29865 29866 29867 29868 29869 29870 29871 29872 29873 29874 29875 29876 29877 29878 29879 29880 29881 29882 29883 29884 29885 29886 29887 29888 29889 29890 29891 29892 29893 29894 29895 29896 29897 29898 29899 29900 29901 29902 29903 29904 29905 29906 29907 29908 29909 29910 29911 29912 29913 29914 29915 29916 | |