Learn R Programming

paws.management (version 0.1.8)

autoscaling_set_desired_capacity: Sets the size of the specified Auto Scaling group

Description

Sets the size of the specified Auto Scaling group.

Usage

autoscaling_set_desired_capacity(AutoScalingGroupName, DesiredCapacity,
  HonorCooldown)

Arguments

AutoScalingGroupName

[required] The name of the Auto Scaling group.

DesiredCapacity

[required] The number of EC2 instances that should be running in the Auto Scaling group.

HonorCooldown

Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete before initiating a scaling activity to set your Auto Scaling group to its new capacity. By default, Amazon EC2 Auto Scaling does not honor the cooldown period during manual scaling activities.

Request syntax

svc$set_desired_capacity(
  AutoScalingGroupName = "string",
  DesiredCapacity = 123,
  HonorCooldown = TRUE|FALSE
)

Details

For more information about desired capacity, see What Is Amazon EC2 Auto Scaling? in the Amazon EC2 Auto Scaling User Guide.

Examples

Run this code
# NOT RUN {
# This example sets the desired capacity for the specified Auto Scaling
# group.
svc$set_desired_capacity(
  AutoScalingGroupName = "my-auto-scaling-group",
  DesiredCapacity = 2L,
  HonorCooldown = TRUE
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab