elb_apply_security_groups_to_load_balancer: Associates one or more security groups with your load...

Description Usage Arguments Value Request syntax Examples

View source: R/elb_operations.R

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

1
2
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:

1
2
3
4
5
list(
  SecurityGroups = list(
    "string"
  )
)

Request syntax

1
2
3
4
5
6
svc$apply_security_groups_to_load_balancer(
  LoadBalancerName = "string",
  SecurityGroups = list(
    "string"
  )
)

Examples

 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)

paws.networking documentation built on March 7, 2021, 5:08 p.m.