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
29757 29758 29759 29760 29761 29762 29763 29764 29765 29766 29767 29768 29769 29770 29771 29772 29773 29774 29775 29776 29777 29778 29779 29780 29781 29782 29783 29784 29785 29786 29787 29788 29789 29790 29791 29792 29793 29794 29795 29796 29797 29798 29799 29800 29801 29802 29803 29804 29805 29806 29807 29808 29809 29810 29811 29812 29813 29814 29815 29816 29817 29818 29819 29820 | |