1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetAccountLimit`](crate::operation::get_account_limit::builders::GetAccountLimitFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`r#type(AccountLimitType)`](crate::operation::get_account_limit::builders::GetAccountLimitFluentBuilder::type) / [`set_type(Option<AccountLimitType>)`](crate::operation::get_account_limit::builders::GetAccountLimitFluentBuilder::set_type):<br>required: **true**<br><p>The limit that you want to get. Valid values include the following:</p> <ul>  <li>   <p><b>MAX_HEALTH_CHECKS_BY_OWNER</b>: The maximum number of health checks that you can create using the current account.</p></li>  <li>   <p><b>MAX_HOSTED_ZONES_BY_OWNER</b>: The maximum number of hosted zones that you can create using the current account.</p></li>  <li>   <p><b>MAX_REUSABLE_DELEGATION_SETS_BY_OWNER</b>: The maximum number of reusable delegation sets that you can create using the current account.</p></li>  <li>   <p><b>MAX_TRAFFIC_POLICIES_BY_OWNER</b>: The maximum number of traffic policies that you can create using the current account.</p></li>  <li>   <p><b>MAX_TRAFFIC_POLICY_INSTANCES_BY_OWNER</b>: The maximum number of traffic policy instances that you can create using the current account. (Traffic policy instances are referred to as traffic flow policy records in the Amazon Route 53 console.)</p></li> </ul><br>
    /// - On success, responds with [`GetAccountLimitOutput`](crate::operation::get_account_limit::GetAccountLimitOutput) with field(s):
    ///   - [`limit(Option<AccountLimit>)`](crate::operation::get_account_limit::GetAccountLimitOutput::limit): <p>The current setting for the specified limit. For example, if you specified <code>MAX_HEALTH_CHECKS_BY_OWNER</code> for the value of <code>Type</code> in the request, the value of <code>Limit</code> is the maximum number of health checks that you can create using the current account.</p>
    ///   - [`count(i64)`](crate::operation::get_account_limit::GetAccountLimitOutput::count): <p>The current number of entities that you have created of the specified type. For example, if you specified <code>MAX_HEALTH_CHECKS_BY_OWNER</code> for the value of <code>Type</code> in the request, the value of <code>Count</code> is the current number of health checks that you have created using the current account.</p>
    /// - On failure, responds with [`SdkError<GetAccountLimitError>`](crate::operation::get_account_limit::GetAccountLimitError)
    pub fn get_account_limit(&self) -> crate::operation::get_account_limit::builders::GetAccountLimitFluentBuilder {
        crate::operation::get_account_limit::builders::GetAccountLimitFluentBuilder::new(self.handle.clone())
    }
}