aws elb apply-security-groups-to-load-balancer
Associates one or more security groups with your load balancer in a virtual private cloud (VPC). AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--load-balancer-nameThe name of the load balancer.--security-groupsThe IDs of the security groups to associate with the load balancer.