You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::AutoScaling::Types::SetDesiredCapacityType

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing SetDesiredCapacityType as input to an Aws::Client method, you can use a vanilla Hash:

{
  auto_scaling_group_name: "ResourceName", # required
  desired_capacity: 1, # required
  honor_cooldown: false,
}

Instance Attribute Summary collapse

Instance Attribute Details

#auto_scaling_group_nameString

The name of the Auto Scaling group.

Returns:

  • (String)

    The name of the Auto Scaling group.

#desired_capacityInteger

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

Returns:

  • (Integer)

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

#honor_cooldownBoolean

By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group. Specify True to make Auto Scaling to wait for the cool-down period associated with the Auto Scaling group to complete before initiating a scaling activity to set your Auto Scaling group to its new capacity.

Returns:

  • (Boolean)

    By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group.