Sha256: e51f265741688b8491ebe1cbcd1d526b71ff2bf412be7018e8a0a4669ec5942a

Contents?: true

Size: 970 Bytes

Versions: 56

Compression:

Stored size: 970 Bytes

Contents

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

Version data entries

56 entries across 56 versions & 5 rubygems

Version Path
grempe-amazon-ec2-0.5.2 lib/AWS/EC2/products.rb
grempe-amazon-ec2-0.5.3 lib/AWS/EC2/products.rb
grempe-amazon-ec2-0.5.4 lib/AWS/EC2/products.rb
grempe-amazon-ec2-0.5.5 lib/AWS/EC2/products.rb
amazon-ec2-0.9.17 lib/AWS/EC2/products.rb
amazon-ec2-0.9.15 lib/AWS/EC2/products.rb
amazon-ec2-0.9.14 lib/AWS/EC2/products.rb
amazon-ec2-0.9.13 lib/AWS/EC2/products.rb
amazon-ec2-0.9.12 lib/AWS/EC2/products.rb
amazon-ec2-0.9.11 lib/AWS/EC2/products.rb
amazon-ec2-0.9.10 lib/AWS/EC2/products.rb
newrelic-amazon-ec2-0.6.2 lib/AWS/EC2/products.rb
poolparty-1.6.6 vendor/gems/amazon-ec2/lib/AWS/EC2/products.rb
amazon-ec2-0.9.9 lib/AWS/EC2/products.rb
poolparty-1.6.5 vendor/gems/amazon-ec2/lib/AWS/EC2/products.rb
poolparty-1.6.4 vendor/gems/amazon-ec2/lib/AWS/EC2/products.rb
amazon-ec2-0.9.8 lib/AWS/EC2/products.rb
amazon-ec2-0.9.7 lib/AWS/EC2/products.rb
poolparty-1.6.3 vendor/gems/amazon-ec2/lib/AWS/EC2/products.rb
poolparty-1.6.2 vendor/gems/amazon-ec2/lib/AWS/EC2/products.rb