import ipaddress


def record_aaaa(zone_in, host_in, ip_in):
    """Validates and constructs AAAA record parameters."""
    try:
        ip_out = ipaddress.ip_address(ip_in)
        record = {zone_in: {"type": "AAAA", "name": host_in, "content": str(ip_out)}}
    except ValueError:
        raise AttributeError(f"{ip_in} is an invalid IPv6 Address")
    return record