# -*- coding: utf-8 -*-
import boto3
from chaosaws.types import AWSResponse
from logzero import logger
from botocore.exceptions import ClientError


def hosted_zone_by_id(client: boto3.client, zone_id: str) -> AWSResponse:
    """Shared function for route53 actions/probes that will get a hosted zone

    :param client: A boto3 session client for route53
    :param zone_id: A route53 zone id
    :returns: Dict[str, Any]
    """
    try:
        return client.get_hosted_zone(Id=zone_id)
    except ClientError as e:
        logger.exception(e.response['Error']['Message'])
        return {'HostedZone': []}

0e563dcfc74a8fda40c81e2971d3158c8b2338ba
<mask token>

<mask token>


def hosted_zone_by_id(client: boto3.client, zone_id: str) ->AWSResponse:
    """Shared function for route53 actions/probes that will get a hosted zone

    :param client: A boto3 session client for route53
    :param zone_id: A route53 zone id
    :returns: Dict[str, Any]
    """
    try:
        return client.get_hosted_zone(Id=zone_id)
    except ClientError as e:
        logger.exception(e.response['Error']['Message'])
        return {'HostedZone': []}

import boto3
from chaosaws.types import AWSResponse
from logzero import logger
from botocore.exceptions import ClientError


def hosted_zone_by_id(client: boto3.client, zone_id: str) ->AWSResponse:
    """Shared function for route53 actions/probes that will get a hosted zone

    :param client: A boto3 session client for route53
    :param zone_id: A route53 zone id
    :returns: Dict[str, Any]
    """
    try:
        return client.get_hosted_zone(Id=zone_id)
    except ClientError as e:
        logger.exception(e.response['Error']['Message'])
        return {'HostedZone': []}

# -*- coding: utf-8 -*-
import boto3
from chaosaws.types import AWSResponse
from logzero import logger
from botocore.exceptions import ClientError


def hosted_zone_by_id(client: boto3.client, zone_id: str) -> AWSResponse:
    """Shared function for route53 actions/probes that will get a hosted zone

    :param client: A boto3 session client for route53
    :param zone_id: A route53 zone id
    :returns: Dict[str, Any]
    """
    try:
        return client.get_hosted_zone(Id=zone_id)
    except ClientError as e:
        logger.exception(e.response['Error']['Message'])
        return {'HostedZone': []}
