list_workforces
¶
list_workforces(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
26583 26584 26585 26586 26587 26588 26589 26590 26591 26592 26593 26594 26595 26596 26597 26598 26599 26600 26601 26602 26603 26604 26605 26606 26607 26608 26609 26610 26611 26612 26613 26614 26615 26616 26617 26618 26619 26620 26621 26622 26623 26624 26625 26626 26627 26628 26629 26630 26631 26632 26633 26634 26635 26636 26637 26638 26639 26640 26641 26642 26643 26644 26645 | |