update_scheduled_query
async
¶
update_scheduled_query(
identifier: ScheduledQueryIdentifier,
query_language: QueryLanguage,
query_string: QueryString,
schedule_expression: ScheduleExpression,
execution_role_arn: RoleArn,
*,
config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = None,
description: Optional[ScheduledQueryDescription] = None,
log_group_identifiers: Optional[ScheduledQueryLogGroupIdentifiers] = None,
timezone: Optional[ScheduleTimezone] = None,
start_time_offset: Optional[StartTimeOffset] = None,
end_time_offset: Optional[EndTimeOffset] = None,
destination_configuration: Optional[DestinationConfiguration] = None,
schedule_start_time: Optional[Timestamp] = None,
schedule_end_time: Optional[Timestamp] = None,
state: Optional[ScheduledQueryState] = None,
) -> UpdateScheduledQueryResponse
Updates an existing scheduled query with new configuration. This operation uses PUT semantics, allowing modification of query parameters, schedule, and destinations.
Parameters:
-
identifier(ScheduledQueryIdentifier) –The ARN or name of the scheduled query to update.
-
description(Optional[ScheduledQueryDescription], default:None) –An updated description for the scheduled query.
-
query_language(QueryLanguage) –The updated query language for the scheduled query.
-
query_string(QueryString) –The updated query string to execute.
-
log_group_identifiers(Optional[ScheduledQueryLogGroupIdentifiers], default:None) –The updated array of log group names or ARNs to query.
-
schedule_expression(ScheduleExpression) –The updated cron expression that defines when the scheduled query runs.
-
timezone(Optional[ScheduleTimezone], default:None) –The updated timezone for evaluating the schedule expression.
-
start_time_offset(Optional[StartTimeOffset], default:None) –The updated time offset in seconds that defines the lookback period for the query.
-
end_time_offset(Optional[EndTimeOffset], default:None) –The updated time offset in seconds that defines the end of the lookback period for the query.
-
destination_configuration(Optional[DestinationConfiguration], default:None) –The updated configuration for where to deliver query results.
-
schedule_start_time(Optional[Timestamp], default:None) –The updated start time for the scheduled query in Unix epoch format.
-
schedule_end_time(Optional[Timestamp], default:None) –The updated end time for the scheduled query in Unix epoch format.
-
execution_role_arn(RoleArn) –The updated ARN of the IAM role that grants permissions to execute the query and deliver results.
-
state(Optional[ScheduledQueryState], default:None) –The updated state of the scheduled query.
Raises:
-
AccessDeniedException–You don't have sufficient permissions to perform this action.
-
ConflictException–This operation attempted to create a resource that already exists.
-
InternalServerException–An internal server error occurred while processing the request. This exception is returned when the service encounters an unexpected condition that prevents it from fulfilling the request.
-
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The request was throttled because of quota limits.
-
ValidationException–One of the parameters for the request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudwatch_logs/_services/async_cloud_watch_logs.py
8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 | |