CloudWatchClient.list_dashboards
rboto-cloudwatch==0.4.0 · Service index · Types
Model summary (excerpt): Returns a list of the dashboards for your account. If you include DashboardNamePrefix , only those dashboards with names starting with the prefix are listed. Otherwise, all dashboards in your account are listed. ListDashboards returns up to 1000 results on one page. If there are more than 1000 dashboards, you can call ListDashboards again and include the value you received for NextToken in the...
Install and imports
Signature
async def list_dashboards(
*,
dashboard_name_prefix: str | None = None,
next_token: str | None = None,
) -> ListDashboardsOutput: ...
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) |
|---|---|---|
dashboard_name_prefix |
No | If you specify this parameter, only the dashboards with names starting with the specified string are listed. The maximum length is 255, and valid characters are A-Z, a-z, 0-9, ".", "-", and "_". |
next_token |
No | The token returned by a previous call to indicate that there is more data available. |
Output
ListDashboardsOutput.
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 |
|---|---|---|---|
dashboard_entries |
list[DashboardEntryOutput] | None |
Always present | DashboardEntryOutput |
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
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_dashboards(...) accepts the same arguments and returns AsyncIterator[ListDashboardsOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: not exposed.
No output stream.
Errors
Import from rboto_cloudwatch.exceptions:
InternalServiceFaultError, InvalidParameterValueError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.