paws.networking (version 0.1.6)

elb_apply_security_groups_to_load_balancer: Associates one or more security groups with your load balancer in a virtual private cloud (VPC)

Description

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.

Usage

elb_apply_security_groups_to_load_balancer(LoadBalancerName,
  SecurityGroups)

Arguments

LoadBalancerName

[required] The name of the load balancer.

SecurityGroups

[required] The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.

Request syntax

svc$apply_security_groups_to_load_balancer(
  LoadBalancerName = "string",
  SecurityGroups = list(
    "string"
  )
)

Details

For more information, see Security Groups for Load Balancers in a VPC in the Classic Load Balancers Guide.

Examples

Run this code
# NOT RUN {
# This example associates a security group with the specified load
# balancer in a VPC.
# }
# NOT RUN {
svc$apply_security_groups_to_load_balancer(
  LoadBalancerName = "my-load-balancer",
  SecurityGroups = list(
    "sg-fc448899"
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace