CloudWatchClient.list_metric_data_query_definitions
rboto-cloudwatch==0.4.0 · Service index · Types
Model summary (excerpt): Lists the metric data query definitions in your account and Region. The results are summaries that don't include the expression. To get the full definition, call GetMetricDataQueryDefinition with its ID. This operation supports pagination. Use the MaxResults and NextToken parameters to retrieve results in multiple calls. Permissions To list definitions, you need the...
Install and imports
from rboto import CloudWatchClient
from rboto_cloudwatch.types import (
ListMetricDataQueryDefinitionsOutput,
)
Signature
async def list_metric_data_query_definitions(
*,
max_results: int | None = None,
next_token: str | None = None,
) -> ListMetricDataQueryDefinitionsOutput: ...
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) |
|---|---|---|
max_results |
No | The maximum number of metric data query definitions to return in one call. The default is 100. |
next_token |
No | The token returned by a previous call to indicate where to continue retrieving results. |
Output
ListMetricDataQueryDefinitionsOutput.
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 |
|---|---|---|---|
items |
list[MetricDataQueryDefinitionSummaryOutput] | None |
Always present | MetricDataQueryDefinitionSummaryOutput |
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
ListMetricDataQueryDefinitionsOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_metric_data_query_definitions(...) accepts the same arguments and returns AsyncIterator[ListMetricDataQueryDefinitionsOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_results.
No output stream.
Errors
No modeled service errors for this operation.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.