aws_sdk_route53/client/
get_hosted_zone_limit.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 [`GetHostedZoneLimit`](crate::operation::get_hosted_zone_limit::builders::GetHostedZoneLimitFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`r#type(HostedZoneLimitType)`](crate::operation::get_hosted_zone_limit::builders::GetHostedZoneLimitFluentBuilder::type) / [`set_type(Option<HostedZoneLimitType>)`](crate::operation::get_hosted_zone_limit::builders::GetHostedZoneLimitFluentBuilder::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_RRSETS_BY_ZONE</b>: The maximum number of records that you can create in the specified hosted zone.</p></li>  <li>   <p><b>MAX_VPCS_ASSOCIATED_BY_ZONE</b>: The maximum number of Amazon VPCs that you can associate with the specified private hosted zone.</p></li> </ul><br>
7    ///   - [`hosted_zone_id(impl Into<String>)`](crate::operation::get_hosted_zone_limit::builders::GetHostedZoneLimitFluentBuilder::hosted_zone_id) / [`set_hosted_zone_id(Option<String>)`](crate::operation::get_hosted_zone_limit::builders::GetHostedZoneLimitFluentBuilder::set_hosted_zone_id):<br>required: **true**<br><p>The ID of the hosted zone that you want to get a limit for.</p><br>
8    /// - On success, responds with [`GetHostedZoneLimitOutput`](crate::operation::get_hosted_zone_limit::GetHostedZoneLimitOutput) with field(s):
9    ///   - [`limit(Option<HostedZoneLimit>)`](crate::operation::get_hosted_zone_limit::GetHostedZoneLimitOutput::limit): <p>The current setting for the specified limit. For example, if you specified <code>MAX_RRSETS_BY_ZONE</code> for the value of <code>Type</code> in the request, the value of <code>Limit</code> is the maximum number of records that you can create in the specified hosted zone.</p>
10    ///   - [`count(i64)`](crate::operation::get_hosted_zone_limit::GetHostedZoneLimitOutput::count): <p>The current number of entities that you have created of the specified type. For example, if you specified <code>MAX_RRSETS_BY_ZONE</code> for the value of <code>Type</code> in the request, the value of <code>Count</code> is the current number of records that you have created in the specified hosted zone.</p>
11    /// - On failure, responds with [`SdkError<GetHostedZoneLimitError>`](crate::operation::get_hosted_zone_limit::GetHostedZoneLimitError)
12    pub fn get_hosted_zone_limit(&self) -> crate::operation::get_hosted_zone_limit::builders::GetHostedZoneLimitFluentBuilder {
13        crate::operation::get_hosted_zone_limit::builders::GetHostedZoneLimitFluentBuilder::new(self.handle.clone())
14    }
15}