aws_sdk_macie2/client/
get_usage_totals.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 [`GetUsageTotals`](crate::operation::get_usage_totals::builders::GetUsageTotalsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`time_range(impl Into<String>)`](crate::operation::get_usage_totals::builders::GetUsageTotalsFluentBuilder::time_range) / [`set_time_range(Option<String>)`](crate::operation::get_usage_totals::builders::GetUsageTotalsFluentBuilder::set_time_range):<br>required: **false**<br><p>The inclusive time period to retrieve the data for. Valid values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days. If you don't specify a value for this parameter, Amazon Macie provides aggregated usage data for the preceding 30 days.</p><br>
7    /// - On success, responds with [`GetUsageTotalsOutput`](crate::operation::get_usage_totals::GetUsageTotalsOutput) with field(s):
8    ///   - [`time_range(Option<TimeRange>)`](crate::operation::get_usage_totals::GetUsageTotalsOutput::time_range): <p>The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.</p>
9    ///   - [`usage_totals(Option<Vec::<UsageTotal>>)`](crate::operation::get_usage_totals::GetUsageTotalsOutput::usage_totals): <p>An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.</p>
10    /// - On failure, responds with [`SdkError<GetUsageTotalsError>`](crate::operation::get_usage_totals::GetUsageTotalsError)
11    pub fn get_usage_totals(&self) -> crate::operation::get_usage_totals::builders::GetUsageTotalsFluentBuilder {
12        crate::operation::get_usage_totals::builders::GetUsageTotalsFluentBuilder::new(self.handle.clone())
13    }
14}