lib/as/right_as_interface.rb
# This call will terminate the specified Instance. Optionally, the desired group size can be adjusted.
# If set to true, the default, the AutoScalingGroup size will decrease by one. If the AutoScalingGroup
# is associated with a LoadBalancer, the system will deregister the instance before terminating it.
# This call simply registers a termination request. The termination of the instance can not happen
# immediately.
#
# Returns the activity to terminate the instance.
#
This call will terminate the specified Instance. Optionally, the desired group size can be adjusted.
If set to true, the default, the AutoScalingGroup size will decrease by one. If the AutoScalingGroup
is associated with a LoadBalancer, the system will deregister the instance before terminating it.
This call simply registers a termination request. The termination of the instance can not happen
immediately.

Returns the activity to terminate the instance.
This call will terminate the specified Instance . Optionally the desired group size can be adjusted . If set to true the default the AutoScalingGroup size will decrease by one . If the AutoScalingGroup is associated with a LoadBalancer the system will deregister the instance before terminating it . This call simply registers a termination request . The termination of the instance can not happen immediately . Returns the activity to terminate the instance .
def terminate_instance_in_auto_scaling_group(instance_id, should_decrement_desired_capacity=true)
      request_hash = { 'InstanceId' => instance_id }
      request_hash['ShouldDecrementDesiredCapacity'] = should_decrement_desired_capacity
      link = generate_request('TerminateInstanceInAutoScalingGroup', request_hash )
      request_info(link, DescribeScalingActivitiesParser.new(:logger => @logger))[:scaling_activities].first
    end
def terminate_instance_in_auto_scaling_group ( instance_id , should_decrement_desired_capacity = true ) request_hash = { 'InstanceId' => instance_id } request_hash [ 'ShouldDecrementDesiredCapacity' ] = should_decrement_desired_capacity link = generate_request ( 'TerminateInstanceInAutoScalingGroup' , request_hash ) request_info ( link , DescribeScalingActivitiesParser . new ( :logger => @logger ) ) [ :scaling_activities ] . first end
This call will terminate the specified Instance.
This call will terminate the specified Instance .
instance_id
<not_specific>
should_decrement_desired_capacity
<not_specific>