'Associates one or more security groups with the load balancer.
The provided security groups will override any currently applied
security groups.
:type security_groups: string or List of strings
:param security_groups: The name of the security group(s) to add.'

def apply_security_groups(self, security_groups):

    if isinstance(security_groups, six.string_types):
        security_groups = [security_groups]
    new_sgs = self.connection.apply_security_groups_to_lb(self.name, security_groups)
    self.security_groups = new_sgs
