/usr/lib/ruby/vendor_ruby/AWS/EC2/products.rb is in ruby-amazon-ec2 0.9.17-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | module AWS
module EC2
class Base < AWS::Base
# The ConfirmProductInstance operation returns true if the given product code is attached to the instance
# with the given instance id. False is returned if the product code is not attached to the instance.
#
# @option options [String] :product_code ("")
# @option options [String] :instance_id ("")
#
def confirm_product_instance( options ={} )
options = {:product_code => "", :instance_id => ""}.merge(options)
raise ArgumentError, "No product code provided" if options[:product_code].nil? || options[:product_code].empty?
raise ArgumentError, "No instance ID provided" if options[:instance_id].nil? || options[:instance_id].empty?
params = { "ProductCode" => options[:product_code], "InstanceId" => options[:instance_id] }
return response_generator(:action => "ConfirmProductInstance", :params => params)
end
end
end
end
|