Associates one or more security groups with your load balancer in a virtual private cloud (VPC). The specified security groups override the previously associated security groups.
For more information, see Security Groups for Load Balancers in a VPC in the Classic Load Balancers Guide.
[required] The name of the load balancer.
[required] The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
A list with the following syntax:
1 2 3 4 5
1 2 3 4 5 6
svc$apply_security_groups_to_load_balancer( LoadBalancerName = "string", SecurityGroups = list( "string" ) )
1 2 3 4 5 6 7 8 9 10 11
## Not run: # This example associates a security group with the specified load # balancer in a VPC. svc$apply_security_groups_to_load_balancer( LoadBalancerName = "my-load-balancer", SecurityGroups = list( "sg-fc448899" ) ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.