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
8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 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 | |