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
29391 29392 29393 29394 29395 29396 29397 29398 29399 29400 29401 29402 29403 29404 29405 29406 29407 29408 29409 29410 29411 29412 29413 29414 29415 29416 29417 29418 29419 29420 29421 29422 29423 29424 29425 29426 29427 29428 29429 29430 29431 29432 29433 29434 29435 29436 29437 29438 29439 29440 29441 29442 29443 29444 29445 29446 29447 29448 29449 29450 29451 29452 29453 | |