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

Class: Aws::AutoScaling::Types::TerminateInstanceInAutoScalingGroupType

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

Overview

Note:

When making an API call, you may pass TerminateInstanceInAutoScalingGroupType data as a hash:

{
  instance_id: "XmlStringMaxLen19", # required
  should_decrement_desired_capacity: false, # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#instance_idString

The ID of the instance.

Returns:

  • (String)


4032
4033
4034
4035
4036
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 4032

class TerminateInstanceInAutoScalingGroupType < Struct.new(
  :instance_id,
  :should_decrement_desired_capacity)
  include Aws::Structure
end

#should_decrement_desired_capacityBoolean

If true, terminating the instance also decrements the size of the Auto Scaling group.

Returns:

  • (Boolean)


4032
4033
4034
4035
4036
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 4032

class TerminateInstanceInAutoScalingGroupType < Struct.new(
  :instance_id,
  :should_decrement_desired_capacity)
  include Aws::Structure
end