vendor/bundle/ruby/1.8/gems/aws-2.5.6/lib/ec2/ec2.rb
def terminate_instances(list=[])
      link = generate_request("TerminateInstances", hash_params('InstanceId', list.to_a))
      request_info(link, QEc2TerminateInstancesParser.new(:logger => @logger))
    rescue Exception
      on_exception
    end
# Terminates EC2 instances. Returns a list of termination params or an exception.
#
#  ec2.terminate_instances(['i-f222222d','i-f222222e']) #=>
#    [{:aws_shutdown_state      => "shutting-down",
#      :aws_instance_id         => "i-f222222d",
#      :aws_shutdown_state_code => 32,
#      :aws_prev_state          => "running",
#      :aws_prev_state_code     => 16},
#     {:aws_shutdown_state      => "shutting-down",
#      :aws_instance_id         => "i-f222222e",
#      :aws_shutdown_state_code => 32,
#      :aws_prev_state          => "running",
#      :aws_prev_state_code     => 16}]
#
Terminates EC2 instances. Returns a list of termination params or an exception.
Terminates EC2 instances . Returns a list of termination params or an exception .
def terminate_instances(list=[])
      link = generate_request("TerminateInstances", hash_params('InstanceId', list.to_a))
      request_info(link, QEc2TerminateInstancesParser.new(:logger => @logger))
    rescue Exception
      on_exception
    end
def terminate_instances ( list = [ ] ) link = generate_request ( "TerminateInstances" , hash_params ( 'InstanceId' , list . to_a ) ) request_info ( link , QEc2TerminateInstancesParser . new ( :logger => @logger ) ) rescue Exception on_exception end
Terminates EC2 instances.
Terminates EC2 instances .
list