aws_sdk_accessanalyzer/client/
get_findings_statistics.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 [`GetFindingsStatistics`](crate::operation::get_findings_statistics::builders::GetFindingsStatisticsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`analyzer_arn(impl Into<String>)`](crate::operation::get_findings_statistics::builders::GetFindingsStatisticsFluentBuilder::analyzer_arn) / [`set_analyzer_arn(Option<String>)`](crate::operation::get_findings_statistics::builders::GetFindingsStatisticsFluentBuilder::set_analyzer_arn):<br>required: **true**<br><p>The <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources">ARN of the analyzer</a> used to generate the statistics.</p><br>
7    /// - On success, responds with [`GetFindingsStatisticsOutput`](crate::operation::get_findings_statistics::GetFindingsStatisticsOutput) with field(s):
8    ///   - [`findings_statistics(Option<Vec::<FindingsStatistics>>)`](crate::operation::get_findings_statistics::GetFindingsStatisticsOutput::findings_statistics): <p>A group of external access or unused access findings statistics.</p>
9    ///   - [`last_updated_at(Option<DateTime>)`](crate::operation::get_findings_statistics::GetFindingsStatisticsOutput::last_updated_at): <p>The time at which the retrieval of the findings statistics was last updated. If the findings statistics have not been previously retrieved for the specified analyzer, this field will not be populated.</p>
10    /// - On failure, responds with [`SdkError<GetFindingsStatisticsError>`](crate::operation::get_findings_statistics::GetFindingsStatisticsError)
11    pub fn get_findings_statistics(&self) -> crate::operation::get_findings_statistics::builders::GetFindingsStatisticsFluentBuilder {
12        crate::operation::get_findings_statistics::builders::GetFindingsStatisticsFluentBuilder::new(self.handle.clone())
13    }
14}