Skip to content

Apply Security Groups To Load Balancer

elb_apply_security_groups_to_load_balancer R Documentation

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.

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

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.

Value

A list with the following syntax:

list(
  SecurityGroups = list(
    "string"
  )
)

Request syntax

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

Examples

## 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)