aws_sdk_cloudwatchlogs/client/
list_aggregate_log_group_summaries.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 [`ListAggregateLogGroupSummaries`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`account_identifiers(impl Into<String>)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::account_identifiers) / [`set_account_identifiers(Option<Vec::<String>>)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::set_account_identifiers):<br>required: **false**<br><p>When <code>includeLinkedAccounts</code> is set to <code>true</code>, use this parameter to specify the list of accounts to search. You can specify as many as 20 account IDs in the array.</p><br>
7    ///   - [`include_linked_accounts(bool)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::include_linked_accounts) / [`set_include_linked_accounts(Option<bool>)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::set_include_linked_accounts):<br>required: **false**<br><p>If you are using a monitoring account, set this to <code>true</code> to have the operation return log groups in the accounts listed in <code>accountIdentifiers</code>.</p> <p>If this parameter is set to <code>true</code> and <code>accountIdentifiers</code> contains a null value, the operation returns all log groups in the monitoring account and all log groups in all source accounts that are linked to the monitoring account.</p> <p>The default for this parameter is <code>false</code>.</p><br>
8    ///   - [`log_group_class(LogGroupClass)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::log_group_class) / [`set_log_group_class(Option<LogGroupClass>)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::set_log_group_class):<br>required: **false**<br><p>Filters the results by log group class to include only log groups of the specified class.</p><br>
9    ///   - [`log_group_name_pattern(impl Into<String>)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::log_group_name_pattern) / [`set_log_group_name_pattern(Option<String>)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::set_log_group_name_pattern):<br>required: **false**<br><p>Use this parameter to limit the returned log groups to only those with names that match the pattern that you specify. This parameter is a regular expression that can match prefixes and substrings, and supports wildcard matching and matching multiple patterns, as in the following examples.</p> <ul>  <li>   <p>Use <code>^</code> to match log group names by prefix.</p></li>  <li>   <p>For a substring match, specify the string to match. All matches are case sensitive</p></li>  <li>   <p>To match multiple patterns, separate them with a <code>|</code> as in the example <code>^/aws/lambda|discovery</code></p></li> </ul> <p>You can specify as many as five different regular expression patterns in this field, each of which must be between 3 and 24 characters. You can include the <code>^</code> symbol as many as five times, and include the <code>|</code> symbol as many as four times.</p><br>
10    ///   - [`data_sources(DataSourceFilter)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::data_sources) / [`set_data_sources(Option<Vec::<DataSourceFilter>>)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::set_data_sources):<br>required: **false**<br><p>Filters the results by data source characteristics to include only log groups associated with the specified data sources.</p><br>
11    ///   - [`group_by(ListAggregateLogGroupSummariesGroupBy)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::group_by) / [`set_group_by(Option<ListAggregateLogGroupSummariesGroupBy>)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::set_group_by):<br>required: **true**<br><p>Specifies how to group the log groups in the summary.</p><br>
12    ///   - [`next_token(impl Into<String>)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::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>
13    ///   - [`limit(i32)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::limit) / [`set_limit(Option<i32>)`](crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::set_limit):<br>required: **false**<br><p>The maximum number of aggregated summaries to return. If you omit this parameter, the default is up to 50 aggregated summaries.</p><br>
14    /// - On success, responds with [`ListAggregateLogGroupSummariesOutput`](crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesOutput) with field(s):
15    ///   - [`aggregate_log_group_summaries(Option<Vec::<AggregateLogGroupSummary>>)`](crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesOutput::aggregate_log_group_summaries): <p>The list of aggregate log group summaries grouped by the specified data source characteristics.</p>
16    ///   - [`next_token(Option<String>)`](crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesOutput::next_token): <p>The token for the next set of items to return. The token expires after 24 hours.</p>
17    /// - On failure, responds with [`SdkError<ListAggregateLogGroupSummariesError>`](crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError)
18    pub fn list_aggregate_log_group_summaries(
19        &self,
20    ) -> crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder {
21        crate::operation::list_aggregate_log_group_summaries::builders::ListAggregateLogGroupSummariesFluentBuilder::new(self.handle.clone())
22    }
23}