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 /// - [`scopes(ResourceScopes)`](crate::operation::get_resources_statistics_v2::builders::GetResourcesStatisticsV2FluentBuilder::scopes) / [`set_scopes(Option<ResourceScopes>)`](crate::operation::get_resources_statistics_v2::builders::GetResourcesStatisticsV2FluentBuilder::set_scopes):<br>required: **false**<br><p>Limits the results to resources from specific organizational units or from the delegated administrator's organization. Only the delegated administrator account can use this parameter. Other accounts receive an <code>AccessDeniedException</code>.</p> <p>This parameter is optional. If you omit it, the delegated administrator sees statistics from all accounts across the entire organization. Other accounts see only statistics for their own resources.</p> <p>You can specify up to 10 entries in <code>Scopes.AwsOrganizations</code>. If multiple entries are specified, the entries are combined using OR logic.</p><br>
8 /// - [`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>
9 /// - [`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>
10 /// - On success, responds with [`GetResourcesStatisticsV2Output`](crate::operation::get_resources_statistics_v2::GetResourcesStatisticsV2Output) with field(s):
11 /// - [`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>
12 /// - On failure, responds with [`SdkError<GetResourcesStatisticsV2Error>`](crate::operation::get_resources_statistics_v2::GetResourcesStatisticsV2Error)
13 pub fn get_resources_statistics_v2(&self) -> crate::operation::get_resources_statistics_v2::builders::GetResourcesStatisticsV2FluentBuilder {
14 crate::operation::get_resources_statistics_v2::builders::GetResourcesStatisticsV2FluentBuilder::new(self.handle.clone())
15 }
16}