Retrieves the number of hosted zones that are associated with the current Amazon Web Services account.
Raises:
Source code in docs_src/capo_route_53/_services/async_route53.py
| async def get_hosted_zone_count(
self, *, config_overrides: Optional[AsyncRoute53ClientConfig] = None
) -> (
"capo_route_53.types.get_hosted_zone_count_response.GetHostedZoneCountResponse"
):
"""<p>Retrieves the number of hosted zones that are associated with the current Amazon Web Services account.</p>
Raises:
capo_route_53.errors.invalid_input.InvalidInput: <p>The input is not valid.</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_count_request.GetHostedZoneCountRequest]",
) -> AsyncOperationResponse[
"capo_route_53.types.get_hosted_zone_count_response.GetHostedZoneCountResponse"
]:
import capo_route_53._operations.aws_dns_v20130401.get_hosted_zone_count
(
output,
http_response,
) = await capo_route_53._operations.aws_dns_v20130401.get_hosted_zone_count.async_get_hosted_zone_count(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetHostedZoneCount")
)
input_: capo_route_53.types.get_hosted_zone_count_request.GetHostedZoneCountRequest = {}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|