'Associates one or more security groups with the load balancer.
The provided security groups will override any currently applied
security groups.
:type name: string
:param name: The name of the Load Balancer
:type security_groups: List of strings
:param security_groups: The name of the security group(s) to add.
:rtype: List of strings
:return: An updated list of security groups for this Load Balancer.'

def apply_security_groups_to_lb(self, name, security_groups):

    params = {'LoadBalancerName': name}
    self.build_list_params(params, security_groups, 'SecurityGroups.member.%d')
    return self.get_list('ApplySecurityGroupsToLoadBalancer', params, None)
