paws.networking (version 0.1.6)

elbv2_set_security_groups: Associates the specified security groups with the specified Application Load Balancer

Description

Associates the specified security groups with the specified Application Load Balancer. The specified security groups override the previously associated security groups.

Usage

elbv2_set_security_groups(LoadBalancerArn, SecurityGroups)

Arguments

LoadBalancerArn

[required] The Amazon Resource Name (ARN) of the load balancer.

SecurityGroups

[required] The IDs of the security groups.

Request syntax

svc$set_security_groups(
  LoadBalancerArn = "string",
  SecurityGroups = list(
    "string"
  )
)

Details

You can\'t specify a security group for a Network Load Balancer.

Examples

Run this code
# 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