BedrockClient.list_projects
rboto-bedrock==0.4.0 · Service index · Types
Model summary (excerpt): 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.
Install and imports
from rboto import BedrockClient
from rboto_bedrock.types import (
ListProjectsOutput,
ProjectStatus,
)
Signature
async def list_projects(
*,
next_token: str | None = None,
max_results: int | None = None,
status_filter: ProjectStatus | None = None,
) -> ListProjectsOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
next_token |
No | Continuation token from a previous ListProjects response. |
max_results |
No | The maximum number of projects to return in one response, from 1 to 100. The default is 20. |
status_filter |
No | 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 ProjectStatus enum, and with it this filter, compatibly. |
Output
ListProjectsOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
project_summaries |
list[ProjectSummaryOutput] |
Always present | ProjectSummaryOutput |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
ListProjectsOutput, ProjectStatus
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_projects(...) accepts the same arguments and returns AsyncIterator[ListProjectsOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_results.
No output stream.
Errors
Import from rboto_bedrock.exceptions:
AccessDeniedError, InternalServerError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.