aws-sdk-cloudwatchlogs 1.75.0

AWS SDK for Amazon CloudWatch Logs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListLogGroupsForQuery`](crate::operation::list_log_groups_for_query::builders::ListLogGroupsForQueryFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_log_groups_for_query::builders::ListLogGroupsForQueryFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`query_id(impl Into<String>)`](crate::operation::list_log_groups_for_query::builders::ListLogGroupsForQueryFluentBuilder::query_id) / [`set_query_id(Option<String>)`](crate::operation::list_log_groups_for_query::builders::ListLogGroupsForQueryFluentBuilder::set_query_id):<br>required: **true**<br><p>The ID of the query to use. This query ID is from the response to your <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html">StartQuery</a> operation.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_log_groups_for_query::builders::ListLogGroupsForQueryFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_log_groups_for_query::builders::ListLogGroupsForQueryFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of items to return. The token expires after 24 hours.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_log_groups_for_query::builders::ListLogGroupsForQueryFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_log_groups_for_query::builders::ListLogGroupsForQueryFluentBuilder::set_max_results):<br>required: **false**<br><p>Limits the number of returned log groups to the specified number.</p><br>
    /// - On success, responds with [`ListLogGroupsForQueryOutput`](crate::operation::list_log_groups_for_query::ListLogGroupsForQueryOutput) with field(s):
    ///   - [`log_group_identifiers(Option<Vec::<String>>)`](crate::operation::list_log_groups_for_query::ListLogGroupsForQueryOutput::log_group_identifiers): <p>An array of the names and ARNs of the log groups that were processed in the query.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_log_groups_for_query::ListLogGroupsForQueryOutput::next_token): <p>The token for the next set of items to return. The token expires after 24 hours.</p>
    /// - On failure, responds with [`SdkError<ListLogGroupsForQueryError>`](crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError)
    pub fn list_log_groups_for_query(&self) -> crate::operation::list_log_groups_for_query::builders::ListLogGroupsForQueryFluentBuilder {
        crate::operation::list_log_groups_for_query::builders::ListLogGroupsForQueryFluentBuilder::new(self.handle.clone())
    }
}