aws_sdk_securityhub/client/get_resources_statistics_v2.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 [`GetResourcesStatisticsV2`](crate::operation::get_resources_statistics_v2::builders::GetResourcesStatisticsV2FluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`group_by_rules(ResourceGroupByRule)`](crate::operation::get_resources_statistics_v2::builders::GetResourcesStatisticsV2FluentBuilder::group_by_rules) / [`set_group_by_rules(Option<Vec::<ResourceGroupByRule>>)`](crate::operation::get_resources_statistics_v2::builders::GetResourcesStatisticsV2FluentBuilder::set_group_by_rules):<br>required: **true**<br><p>How resource statistics should be aggregated and organized in the response.</p><br>
7 /// - [`sort_order(SortOrder)`](crate::operation::get_resources_statistics_v2::builders::GetResourcesStatisticsV2FluentBuilder::sort_order) / [`set_sort_order(Option<SortOrder>)`](crate::operation::get_resources_statistics_v2::builders::GetResourcesStatisticsV2FluentBuilder::set_sort_order):<br>required: **false**<br><p>Sorts aggregated statistics.</p><br>
8 /// - [`max_statistic_results(i32)`](crate::operation::get_resources_statistics_v2::builders::GetResourcesStatisticsV2FluentBuilder::max_statistic_results) / [`set_max_statistic_results(Option<i32>)`](crate::operation::get_resources_statistics_v2::builders::GetResourcesStatisticsV2FluentBuilder::set_max_statistic_results):<br>required: **false**<br><p>The maximum number of results to be returned.</p><br>
9 /// - On success, responds with [`GetResourcesStatisticsV2Output`](crate::operation::get_resources_statistics_v2::GetResourcesStatisticsV2Output) with field(s):
10 /// - [`group_by_results(Option<Vec::<GroupByResult>>)`](crate::operation::get_resources_statistics_v2::GetResourcesStatisticsV2Output::group_by_results): <p>The aggregated statistics about resources based on the specified grouping rule.</p>
11 /// - On failure, responds with [`SdkError<GetResourcesStatisticsV2Error>`](crate::operation::get_resources_statistics_v2::GetResourcesStatisticsV2Error)
12 pub fn get_resources_statistics_v2(&self) -> crate::operation::get_resources_statistics_v2::builders::GetResourcesStatisticsV2FluentBuilder {
13 crate::operation::get_resources_statistics_v2::builders::GetResourcesStatisticsV2FluentBuilder::new(self.handle.clone())
14 }
15}