list_projects
async
¶
list_projects(
*,
config_overrides: Optional[AsyncBedrockClientConfig] = 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/async_bedrock.py
7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 | |