Skip to content

CloudWatchLogsClient.describe_queries

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

Model summary (excerpt): Returns a list of CloudWatch Logs Insights queries that are scheduled, running, or have been run recently in this account. You can request all queries or limit it to queries of a specific log group or queries with a certain status. This operation includes both interactive queries started directly by users and automated queries executed by scheduled query configurations. Scheduled query...

Install and imports

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

Signature

async def describe_queries(
    *,
    log_group_name: str | None = None,
    status: QueryStatus | None = None,
    max_results: int | None = None,
    next_token: str | None = None,
    query_language: QueryLanguage | None = None,
) -> DescribeQueriesOutput: ...

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)
log_group_name No Limits the returned queries to only those for the specified log group.
status No Limits the returned queries to only those that have the specified status. Valid values are Cancelled , Complete , Failed , Running , and Scheduled .
max_results No Limits the number of returned queries to the specified number.
next_token No
query_language No Limits the returned queries to only the queries that use the specified query language.

Output

DescribeQueriesOutput.

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
queries list[QueryInfoOutput] | None Always present QueryInfoOutput
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.

DescribeQueriesOutput, QueryLanguage, QueryStatus

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

Pagination and streaming

client.paginators.describe_queries(...) accepts the same arguments and returns AsyncIterator[DescribeQueriesOutput]. 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_cloudwatch_logs.exceptions:

InvalidParameterError, ResourceNotFoundError, ServiceUnavailableError.

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

Service guide · Pinned model