aws_sdk_guardduty/client/get_coverage_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 [`GetCoverageStatistics`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`detector_id(impl Into<String>)`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::detector_id) / [`set_detector_id(Option<String>)`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::set_detector_id):<br>required: **true**<br><p>The unique ID of the GuardDuty detector.</p> <p>To find the <code>detectorId</code> in the current Region, see the Settings page in the GuardDuty console, or run the <a href="https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html">ListDetectors</a> API.</p><br>
7 /// - [`filter_criteria(CoverageFilterCriteria)`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::filter_criteria) / [`set_filter_criteria(Option<CoverageFilterCriteria>)`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::set_filter_criteria):<br>required: **false**<br><p>Represents the criteria used to filter the coverage statistics.</p><br>
8 /// - [`statistics_type(CoverageStatisticsType)`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::statistics_type) / [`set_statistics_type(Option<Vec::<CoverageStatisticsType>>)`](crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::set_statistics_type):<br>required: **true**<br><p>Represents the statistics type used to aggregate the coverage details.</p><br>
9 /// - On success, responds with [`GetCoverageStatisticsOutput`](crate::operation::get_coverage_statistics::GetCoverageStatisticsOutput) with field(s):
10 /// - [`coverage_statistics(Option<CoverageStatistics>)`](crate::operation::get_coverage_statistics::GetCoverageStatisticsOutput::coverage_statistics): <p>Represents the count aggregated by the <code>statusCode</code> and <code>resourceType</code>.</p>
11 /// - On failure, responds with [`SdkError<GetCoverageStatisticsError>`](crate::operation::get_coverage_statistics::GetCoverageStatisticsError)
12 pub fn get_coverage_statistics(&self) -> crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder {
13 crate::operation::get_coverage_statistics::builders::GetCoverageStatisticsFluentBuilder::new(self.handle.clone())
14 }
15}