'Associates, updates, or disables a policy with a listener on the load
balancer. Currently only zero (0) or one (1) policy can be associated
with a listener.'

def set_lb_policies_of_listener(self, lb_name, lb_port, policies):

    params = {'LoadBalancerName': lb_name, 'LoadBalancerPort': lb_port}
    if len(policies):
        self.build_list_params(params, policies, 'PolicyNames.member.%d')
    else:
        params['PolicyNames'] = ''
    return self.get_status('SetLoadBalancerPoliciesOfListener', params)
