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/route53.py
| def get_hosted_zone_count(
self, *, config_overrides: Optional[Route53ClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_route_53.types.get_hosted_zone_count_request.GetHostedZoneCountRequest]",
) -> OperationResponse[
"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 = (
capo_route_53._operations.aws_dns_v20130401.get_hosted_zone_count.get_hosted_zone_count(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|