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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-autoscaling/types.rb

Overview

Note:

When making an API call, you may pass SetDesiredCapacityType data as a 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)


4218
4219
4220
4221
4222
4223
# File 'lib/aws-sdk-autoscaling/types.rb', line 4218

class SetDesiredCapacityType < Struct.new(
  :auto_scaling_group_name,
  :desired_capacity,
  :honor_cooldown)
  include Aws::Structure
end

#desired_capacityInteger

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

Returns:

  • (Integer)


4218
4219
4220
4221
4222
4223
# File 'lib/aws-sdk-autoscaling/types.rb', line 4218

class SetDesiredCapacityType < Struct.new(
  :auto_scaling_group_name,
  :desired_capacity,
  :honor_cooldown)
  include Aws::Structure
end

#honor_cooldownBoolean

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.

Returns:

  • (Boolean)


4218
4219
4220
4221
4222
4223
# File 'lib/aws-sdk-autoscaling/types.rb', line 4218

class SetDesiredCapacityType < Struct.new(
  :auto_scaling_group_name,
  :desired_capacity,
  :honor_cooldown)
  include Aws::Structure
end