paws.management (version 0.1.0)

autoscaling_attach_load_balancers: Attaches one or more Classic Load Balancers to the specified Auto Scaling group

Description

Attaches one or more Classic Load Balancers to the specified Auto Scaling group.

Usage

autoscaling_attach_load_balancers(AutoScalingGroupName,
  LoadBalancerNames)

Arguments

AutoScalingGroupName

[required] The name of the Auto Scaling group.

LoadBalancerNames

[required] The names of the load balancers. You can specify up to 10 load balancers.

Request syntax

svc$attach_load_balancers(
  AutoScalingGroupName = "string",
  LoadBalancerNames = list(
    "string"
  )
)

Details

To attach an Application Load Balancer or a Network Load Balancer instead, see AttachLoadBalancerTargetGroups.

To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers. To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.

For more information, see Attaching a Load Balancer to Your Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.

Examples

Run this code
# NOT RUN {
# This example attaches the specified load balancer to the specified Auto
# Scaling group.
# }
# NOT RUN {
svc$attach_load_balancers(
  AutoScalingGroupName = "my-auto-scaling-group",
  LoadBalancerNames = list(
    "my-load-balancer"
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace