Struct aws_sdk_macie2::client::fluent_builders::GetUsageTotals
source · [−]pub struct GetUsageTotals { /* private fields */ }
Expand description
Fluent builder constructing a request to GetUsageTotals
.
Retrieves (queries) aggregated usage data for an account.
Implementations
sourceimpl GetUsageTotals
impl GetUsageTotals
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetUsageTotals, AwsResponseRetryClassifier>, SdkError<GetUsageTotalsError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetUsageTotals, AwsResponseRetryClassifier>, SdkError<GetUsageTotalsError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<GetUsageTotalsOutput, SdkError<GetUsageTotalsError>>
pub async fn send(
self
) -> Result<GetUsageTotalsOutput, SdkError<GetUsageTotalsError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn time_range(self, input: impl Into<String>) -> Self
pub fn time_range(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_time_range(self, input: Option<String>) -> Self
pub fn set_time_range(self, input: Option<String>) -> Self
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.
Trait Implementations
sourceimpl Clone for GetUsageTotals
impl Clone for GetUsageTotals
sourcefn clone(&self) -> GetUsageTotals
fn clone(&self) -> GetUsageTotals
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more