aws_sdk_cloudwatchlogs/client/stop_query.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`StopQuery`](crate::operation::stop_query::builders::StopQueryFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`query_id(impl Into<String>)`](crate::operation::stop_query::builders::StopQueryFluentBuilder::query_id) / [`set_query_id(Option<String>)`](crate::operation::stop_query::builders::StopQueryFluentBuilder::set_query_id):<br>required: **true**<br><p>The ID number of the query to stop. To find this ID number, use <code>DescribeQueries</code>.</p><br>
7 /// - On success, responds with [`StopQueryOutput`](crate::operation::stop_query::StopQueryOutput) with field(s):
8 /// - [`success(bool)`](crate::operation::stop_query::StopQueryOutput::success): <p>This is true if the query was stopped by the <code>StopQuery</code> operation.</p>
9 /// - On failure, responds with [`SdkError<StopQueryError>`](crate::operation::stop_query::StopQueryError)
10 pub fn stop_query(&self) -> crate::operation::stop_query::builders::StopQueryFluentBuilder {
11 crate::operation::stop_query::builders::StopQueryFluentBuilder::new(self.handle.clone())
12 }
13}