list_workforces
async
¶
list_workforces(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
sort_by: Optional[ListWorkforcesSortByOptions] = None,
sort_order: Optional[SortOrder] = None,
name_contains: Optional[WorkforceName] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListWorkforcesResponse
Use this operation to list all private and vendor workforces in an Amazon Web Services Region. Note that you can only have one private workforce per Amazon Web Services Region.
Parameters:
-
sort_by(Optional[ListWorkforcesSortByOptions], default:None) –Sort workforces using the workforce name or creation date.
-
sort_order(Optional[SortOrder], default:None) –Sort workforces in ascending or descending order.
-
name_contains(Optional[WorkforceName], default:None) –A filter you can use to search for workforces using part of the workforce name.
-
next_token(Optional[NextToken], default:None) –A token to resume pagination.
-
max_results(Optional[MaxResults], default:None) –The maximum number of workforces returned in 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
26914 26915 26916 26917 26918 26919 26920 26921 26922 26923 26924 26925 26926 26927 26928 26929 26930 26931 26932 26933 26934 26935 26936 26937 26938 26939 26940 26941 26942 26943 26944 26945 26946 26947 26948 26949 26950 26951 26952 26953 26954 26955 26956 26957 26958 26959 26960 26961 26962 26963 26964 26965 26966 26967 26968 26969 26970 26971 26972 26973 26974 26975 26976 26977 | |