Skip to main content

aws_sdk_devopsagent/client/
get_account_usage.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 [`GetAccountUsage`](crate::operation::get_account_usage::builders::GetAccountUsageFluentBuilder) operation.
4    ///
5    /// - The fluent builder takes no input, just [`send`](crate::operation::get_account_usage::builders::GetAccountUsageFluentBuilder::send) it.
6    /// - On success, responds with [`GetAccountUsageOutput`](crate::operation::get_account_usage::GetAccountUsageOutput) with field(s):
7    ///   - [`monthly_account_investigation_hours(Option<UsageMetric>)`](crate::operation::get_account_usage::GetAccountUsageOutput::monthly_account_investigation_hours): <p>Monthly investigation hours usage and limit for an account</p>
8    ///   - [`monthly_account_evaluation_hours(Option<UsageMetric>)`](crate::operation::get_account_usage::GetAccountUsageOutput::monthly_account_evaluation_hours): <p>Monthly evaluation hours usage and limit for an account</p>
9    ///   - [`monthly_account_system_learning_hours(Option<UsageMetric>)`](crate::operation::get_account_usage::GetAccountUsageOutput::monthly_account_system_learning_hours): <p>Monthly system learning hours usage and limit for an account</p>
10    ///   - [`monthly_account_on_demand_hours(Option<UsageMetric>)`](crate::operation::get_account_usage::GetAccountUsageOutput::monthly_account_on_demand_hours): <p>Monthly on-demand hours usage and limit for an account</p>
11    ///   - [`monthly_account_grader_hours(Option<UsageMetric>)`](crate::operation::get_account_usage::GetAccountUsageOutput::monthly_account_grader_hours): <p>Represents a usage metric with its configured limit and current usage value.</p>
12    ///   - [`usage_period_start_time(DateTime)`](crate::operation::get_account_usage::GetAccountUsageOutput::usage_period_start_time): <p>The start time of the usage tracking period</p>
13    ///   - [`usage_period_end_time(DateTime)`](crate::operation::get_account_usage::GetAccountUsageOutput::usage_period_end_time): <p>The end time of the usage tracking period</p>
14    /// - On failure, responds with [`SdkError<GetAccountUsageError>`](crate::operation::get_account_usage::GetAccountUsageError)
15    pub fn get_account_usage(&self) -> crate::operation::get_account_usage::builders::GetAccountUsageFluentBuilder {
16        crate::operation::get_account_usage::builders::GetAccountUsageFluentBuilder::new(self.handle.clone())
17    }
18}