CloudWatchLogsClient.update_scheduled_query
rboto-cloudwatch-logs==0.4.0 · Service index · Types
Model summary (excerpt): Updates an existing scheduled query with new configuration. This operation uses PUT semantics, allowing modification of query parameters, schedule, and destinations.
Install and imports
from rboto import CloudWatchLogsClient
from collections.abc import Sequence
from rboto_cloudwatch_logs.types import (
DestinationConfiguration,
QueryLanguage,
ScheduledQueryState,
UpdateScheduledQueryOutput,
)
Signature
async def update_scheduled_query(
*,
identifier: str,
query_language: QueryLanguage,
query_string: str,
schedule_expression: str,
execution_role_arn: str,
description: str | None = None,
log_group_identifiers: Sequence[str] | None = None,
timezone: str | None = None,
start_time_offset: int | None = None,
end_time_offset: int | None = None,
destination_configuration: DestinationConfiguration | None = None,
schedule_start_time: int | None = None,
schedule_end_time: int | None = None,
state: ScheduledQueryState | None = None,
) -> UpdateScheduledQueryOutput: ...
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) |
|---|---|---|
identifier |
Yes | The ARN or name of the scheduled query to update. |
query_language |
Yes | The updated query language for the scheduled query. |
query_string |
Yes | The updated query string to execute. |
schedule_expression |
Yes | The updated cron expression that defines when the scheduled query runs. |
execution_role_arn |
Yes | The updated ARN of the IAM role that grants permissions to execute the query and deliver results. |
description |
No | An updated description for the scheduled query. |
log_group_identifiers |
No | The updated array of log group names or ARNs to query. |
timezone |
No | The updated timezone for evaluating the schedule expression. |
start_time_offset |
No | The updated time offset in seconds that defines the lookback period for the query. |
end_time_offset |
No | The updated time offset in seconds that defines the end of the lookback period for the query. |
destination_configuration |
No | The updated configuration for where to deliver query results. |
schedule_start_time |
No | The updated start time for the scheduled query in Unix epoch format. |
schedule_end_time |
No | The updated end time for the scheduled query in Unix epoch format. |
state |
No | The updated state of the scheduled query. |
Output
UpdateScheduledQueryOutput.
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 |
|---|---|---|---|
scheduled_query_arn |
str | None |
Always present | — |
name |
str | None |
Always present | — |
description |
str | None |
Always present | — |
query_language |
QueryLanguageOutput | None |
Always present | QueryLanguageOutput |
query_string |
str | None |
Always present | — |
log_group_identifiers |
list[str] | None |
Always present | — |
schedule_expression |
str | None |
Always present | — |
timezone |
str | None |
Always present | — |
start_time_offset |
int | None |
Always present | — |
end_time_offset |
int | None |
Always present | — |
destination_configuration |
DestinationConfigurationOutput | None |
Always present | DestinationConfigurationOutput |
state |
ScheduledQueryStateOutput | None |
Always present | ScheduledQueryStateOutput |
schedule_type |
ScheduleTypeOutput | None |
Always present | ScheduleTypeOutput |
last_triggered_time |
int | None |
Always present | — |
last_execution_status |
ExecutionStatusOutput | None |
Always present | ExecutionStatusOutput |
schedule_start_time |
int | None |
Always present | — |
schedule_end_time |
int | None |
Always present | — |
execution_role_arn |
str | None |
Always present | — |
creation_time |
int | None |
Always present | — |
last_updated_time |
int | 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
DestinationConfiguration, QueryLanguage, ScheduledQueryState, UpdateScheduledQueryOutput
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:
AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.