# File lib/AWS/EC2/image_attributes.rb, line 107
107:       def reset_image_attribute( options = {} )
108: 
109:         # defaults
110:         options = {:image_id => "",
111:                    :attribute => "launchPermission"}.merge(options)
112: 
113:         raise ArgumentError, "No ':image_id' provided" if options[:image_id].nil? || options[:image_id].empty?
114:         raise ArgumentError, "No ':attribute' provided" if options[:attribute].nil? || options[:attribute].empty?
115: 
116:         params = {"ImageId" => options[:image_id],
117:                   "Attribute" => options[:attribute] }
118: 
119:         # test options provided and make sure they are valid
120:         case options[:attribute]
121:         when "launchPermission"
122:           # these args are ok
123:         else
124:           raise ArgumentError, "attribute : #{options[:attribute].to_s} is not an known attribute."
125:         end
126: 
127:         return response_generator(:action => "ResetImageAttribute", :params => params)
128: 
129:       end