list_projects
¶
list_projects(
*,
config_overrides: Optional[BedrockClientConfig] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[ProjectMaxResults] = None,
status_filter: Optional[ProjectStatus] = None,
) -> ListProjectsResponse
Lists the account's projects. Results are paginated: when the response includes nextToken, pass it in the next request to fetch the following page. Page size is 1-100, default 20. By default every project is returned regardless of status; set statusFilter to list only active or only archived projects.
Parameters:
-
next_token(Optional[PaginationToken], default:None) –Continuation token from a previous ListProjects response.
-
max_results(Optional[ProjectMaxResults], default:None) –The maximum number of projects to return in one response, from 1 to 100. The default is 20.
-
status_filter(Optional[ProjectStatus], default:None) –Returns only the projects in this lifecycle status. When absent, no status filtering is applied and every project is returned. New lifecycle states extend the
ProjectStatusenum, and with it this filter, compatibly.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/bedrock.py
7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 | |