def route53_to_zone_file(records):
    """Return a list of Zone File lines from a list of AWS::Route53::RecordSet"""
    max_name_len = max([len(record["Name"]) for record in records], default=1)
    return [
        "{name:{max_name_len}}\t{ttl}\tIN\t{type:5}\t{data}".format(
            name=record["Name"], max_name_len=max_name_len,
            ttl=record["TTL"], type=record["Type"],
            data=" ".join(record["ResourceRecords"]))
        for record in records]