SetDesiredCapacity#

Description#

Changes the desired capacity of an Auto Scaling Group (ASG).

Request Parameters#

Required parameters#

  • AutoScalingGroupName — The name of the ASG.

    • Type: String

    • Required: Yes

  • DesiredCapacity — The desired capacity of the ASG.

    • Type: Integer

    • Required: Yes

Optional parameters#

  • HonorCooldown — Indicates whether it is required to check that enough time has passed, since the previous activity.

    • Type: String

    • Required: No

    • Default value: False

Examples#

c2-as SetDesiredCapacity AutoScalingGroupName "asg-name" DesiredCapacity 3
c2-as SetDesiredCapacity AutoScalingGroupName "asg-name" DesiredCapacity 3 HonorCooldown True