def _update_dns_record_set(hosted_zone_id, domain_name_prefix, ip_list, action):
    client = boto3.client('route53')
    records = []
    for ip in ip_list:
        records.append({'Value': ip})
    result = list_dns_record_set(hosted_zone_id)
    hosted_zone_name = result['HostedZone']['Name']
    change_batch = {'Comment': 'YugaWare driven Record Set', 'Changes': [{'Action': action, 'ResourceRecordSet': {'Name': '{}.{}'.format(domain_name_prefix, hosted_zone_name), 'Type': 'A', 'TTL': 5, 'ResourceRecords': records}}]}
    result = client.change_resource_record_sets(HostedZoneId=hosted_zone_id, ChangeBatch=change_batch)
    client.get_waiter('resource_record_sets_changed').wait(Id=result['ChangeInfo']['Id'], WaiterConfig={'Delay': 10, 'MaxAttempts': 60})
def _update_dns_record_set(hosted_zone_id, domain_name_prefix, ip_list, action):
    client = boto3.client('route53')
    records = []
    for ip in ip_list:
        records.append({'Value': ip})
    result = list_dns_record_set(hosted_zone_id)
    hosted_zone_name = result['HostedZone']['Name']
    change_batch = {'Comment': 'YugaWare driven Record Set', 'Changes': [{'Action': action, 'ResourceRecordSet': {'Name': '{}.{}'.format(domain_name_prefix, hosted_zone_name), 'Type': 'A', 'TTL': 5, 'ResourceRecords': records}}]}
    result = client.change_resource_record_sets(HostedZoneId=hosted_zone_id, ChangeBatch=change_batch)
    client.get_waiter('resource_record_sets_changed').wait(Id=result['ChangeInfo']['Id'], WaiterConfig={'Delay': 10, 'MaxAttempts': 60})