1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/ec2/terminate_instances.rb

21 lines
489 B
Ruby

module Fog
module AWS
class EC2
# Launch specified instances
#
# ==== Parameters
# * instance_id<~Array> - Ids of instances to terminates
#
# ==== Returns
# FIXME: docs
def terminate_instances(instance_id = [])
params = indexed_params('InstanceId', instance_id)
request({
'Action' => 'TerminateInstances'
}.merge!(params), Fog::Parsers::AWS::EC2::TerminateInstances.new)
end
end
end
end