/**
  * Register Image 
  * The RegisterImage operation registers an AMI with Amazon EC2. Images must be
  * registered before they can be launched. For more information, see RunInstances.
  * Each AMI is associated with an unique ID which is provided by the Amazon EC2
  * service through the RegisterImage operation. During registration, Amazon EC2
  * retrieves the specified image manifest from Amazon S3 and verifies that the
  * image is owned by the user registering the image.
  * The image manifest is retrieved once and stored within the Amazon EC2. Any
  * modifications to an image in Amazon S3 invalidates this registration. If you
  * make changes to an image, deregister the previous image and register the new
  * image. For more information, see DeregisterImage.
  * 
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-RegisterImage.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_RegisterImageRequest request
  * or Amazon_EC2_Model_RegisterImageRequest object itself
  * @see Amazon_EC2_Model_RegisterImage
  * @return Amazon_EC2_Model_RegisterImageResponse Amazon_EC2_Model_RegisterImageResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function registerImage($request)
 {
     if (!$request instanceof Amazon_EC2_Model_RegisterImageRequest) {
         require_once 'Amazon/EC2/Model/RegisterImageRequest.php';
         $request = new Amazon_EC2_Model_RegisterImageRequest($request);
     }
     require_once 'Amazon/EC2/Model/RegisterImageResponse.php';
     return Amazon_EC2_Model_RegisterImageResponse::fromXML($this->_invoke($this->_convertRegisterImage($request)));
 }
 /**
  * Register Image 
  * The RegisterImage operation registers an AMI with Amazon EC2. Images must be
  * registered before they can be launched. For more information, see RunInstances.
  * Each AMI is associated with an unique ID which is provided by the Amazon EC2
  * service through the RegisterImage operation. During registration, Amazon EC2
  * retrieves the specified image manifest from Amazon S3 and verifies that the
  * image is owned by the user registering the image.
  * The image manifest is retrieved once and stored within the Amazon EC2. Any
  * modifications to an image in Amazon S3 invalidates this registration. If you
  * make changes to an image, deregister the previous image and register the new
  * image. For more information, see DeregisterImage.
  *   
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-RegisterImage.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_RegisterImage request or Amazon_EC2_Model_RegisterImage object itself
  * @see Amazon_EC2_Model_RegisterImage
  * @return Amazon_EC2_Model_RegisterImageResponse Amazon_EC2_Model_RegisterImageResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function registerImage($request)
 {
     require_once 'Amazon/EC2/Model/RegisterImageResponse.php';
     return Amazon_EC2_Model_RegisterImageResponse::fromXML($this->_invoke('RegisterImage'));
 }