Gets the specified limit for a specified hosted zone, for example, the maximum number of records that you can create in the hosted zone.
For the default limit, see Limits in the Amazon Route 53 Developer Guide. To request a higher limit, open a case.
Parameters:
-
type
(HostedZoneLimitType)
–
The limit that you want to get. Valid values include the following:
-
MAX_RRSETS_BY_ZONE: The maximum number of records that you can create in the specified hosted zone.
-
MAX_VPCS_ASSOCIATED_BY_ZONE: The maximum number of Amazon VPCs that you can associate with the specified private hosted zone.
-
hosted_zone_id
(ResourceId)
–
The ID of the hosted zone that you want to get a limit for.
Raises:
Source code in docs_src/capo_route_53/_services/async_route53.py
| async def get_hosted_zone_limit(
self,
type: "capo_route_53.types.hosted_zone_limit_type.HostedZoneLimitType",
hosted_zone_id: "capo_route_53.types.resource_id.ResourceId",
*,
config_overrides: Optional[AsyncRoute53ClientConfig] = None,
) -> (
"capo_route_53.types.get_hosted_zone_limit_response.GetHostedZoneLimitResponse"
):
"""<p>Gets the specified limit for a specified hosted zone, for example, the maximum number of records that you can create in the hosted zone. </p> <p>For the default limit, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html">Limits</a> in the <i>Amazon Route 53 Developer Guide</i>. To request a higher limit, <a href="https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&limitType=service-code-route53">open a case</a>.</p>
Args:
type: <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>
hosted_zone_id: <p>The ID of the hosted zone that you want to get a limit for.</p>
Raises:
capo_route_53.errors.hosted_zone_not_private.HostedZoneNotPrivate: <p>The specified hosted zone is a public hosted zone, not a private hosted zone.</p>
capo_route_53.errors.invalid_input.InvalidInput: <p>The input is not valid.</p>
capo_route_53.errors.no_such_hosted_zone.NoSuchHostedZone: <p>No hosted zone exists with the ID that you specified.</p>
capo_route_53.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_route_53.types.get_hosted_zone_limit_request.GetHostedZoneLimitRequest]",
) -> AsyncOperationResponse[
"capo_route_53.types.get_hosted_zone_limit_response.GetHostedZoneLimitResponse"
]:
import capo_route_53._operations.aws_dns_v20130401.get_hosted_zone_limit
(
output,
http_response,
) = await capo_route_53._operations.aws_dns_v20130401.get_hosted_zone_limit.async_get_hosted_zone_limit(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetHostedZoneLimit")
)
input_: capo_route_53.types.get_hosted_zone_limit_request.GetHostedZoneLimitRequest = {
"type": type,
"hosted_zone_id": hosted_zone_id,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|