Last chance! 50% off unlimited learning
Sale ends in
Associates the specified security groups with the specified Application Load Balancer. The specified security groups override the previously associated security groups.
elbv2_set_security_groups(LoadBalancerArn, SecurityGroups)
[required] The Amazon Resource Name (ARN) of the load balancer.
[required] The IDs of the security groups.
svc$set_security_groups( LoadBalancerArn = "string", SecurityGroups = list( "string" ) )
You can\'t specify a security group for a Network Load Balancer.
# NOT RUN {
# This example associates the specified security group with the specified
# load balancer.
# }
# NOT RUN {
svc$set_security_groups(
LoadBalancerArn = "arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my...",
SecurityGroups = list(
"sg-5943793c"
)
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab