Skip to content

CloudWatchLogsClient.describe_query_definitions

rboto-cloudwatch-logs==0.4.0 · Service index · Types

Model summary (excerpt): This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions. You can retrieve query definitions from the current account or from a source account that is linked to the current account. You can use the queryDefinitionNamePrefix parameter to limit the results to only the query definitions that have names that start with a certain string.

Install and imports

python -m pip install "rboto[cloudwatch-logs]==0.4.0"
from rboto import CloudWatchLogsClient
from rboto_cloudwatch_logs.types import (
    DescribeQueryDefinitionsOutput,
    QueryLanguage,
)

Signature

async def describe_query_definitions(
    *,
    query_language: QueryLanguage | None = None,
    query_definition_name_prefix: str | None = None,
    max_results: int | None = None,
    next_token: str | None = None,
) -> DescribeQueryDefinitionsOutput: ...

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)
query_language No The query language used for this query. For more information about the query languages that CloudWatch Logs supports, see Supported query languages .
query_definition_name_prefix No Use this parameter to filter your results to only the query definitions that have names that start with the prefix you specify.
max_results No Limits the number of returned query definitions to the specified number.
next_token No

Output

DescribeQueryDefinitionsOutput.

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
query_definitions list[QueryDefinitionOutput] | None Always present QueryDefinitionOutput
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.

DescribeQueryDefinitionsOutput, QueryLanguage

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_cloudwatch_logs.exceptions:

InvalidParameterError, ServiceUnavailableError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model