

def created_hosted_zone_parser(root, connection):
    '\n    Parses the API responses for the\n    :py:meth:`route53.connection.Route53Connection.create_hosted_zone` method.\n\n    :param lxml.etree._Element root: The root node of the etree parsed\n        response from the API.\n    :param Route53Connection connection: The connection instance used to\n        query the API.\n    :rtype: HostedZone\n    :returns: The newly created HostedZone.\n    '
    zone = root.find('./{*}HostedZone')
    hosted_zone = parse_hosted_zone(zone, connection)
    e_delegation_set = root.find('./{*}DelegationSet')
    parse_delegation_set(hosted_zone, e_delegation_set)
    e_change_info = root.find('./{*}ChangeInfo')
    change_info = parse_change_info(e_change_info)
    return (hosted_zone, change_info)

dataset/ETHPy150Open gtaylor/python-route53/route53/xml_parsers/created_hosted_zone.py created_hosted_zone_parser/original