Пример #1
0
 /**
  * Create Image 
  * Creates an AMI that uses an Amazon EBS root device from a "running" or "stopped" instance.
  * AMIs that use an Amazon EBS root device boot faster than AMIs that use instance stores. They can be
  * up to 1 TiB in size, use storage that persists on instance failure, and can be stopped and started.
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-CreateImage.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateImageRequest request
  * or Amazon_EC2_Model_CreateImageRequest object itself
  * @see Amazon_EC2_Model_CreateImage
  * @return Amazon_EC2_Model_CreateImageResponse Amazon_EC2_Model_CreateImageResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createImage($request)
 {
     if (!$request instanceof Amazon_EC2_Model_CreateImageRequest) {
         require_once 'Amazon/EC2/Model/CreateImageRequest.php';
         $request = new Amazon_EC2_Model_CreateImageRequest($request);
     }
     require_once 'Amazon/EC2/Model/CreateImageResponse.php';
     return Amazon_EC2_Model_CreateImageResponse::fromXML($this->_invoke($this->_convertCreateImage($request)));
 }
Пример #2
0
 /**
  * Create Image 
  * Creates an AMI that uses an Amazon EBS root device from a "running" or "stopped" instance.
  * AMIs that use an Amazon EBS root device boot faster than AMIs that use instance stores. They can be
  * up to 1 TiB in size, use storage that persists on instance failure, and can be stopped and started.  
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-CreateImage.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateImage request or Amazon_EC2_Model_CreateImage object itself
  * @see Amazon_EC2_Model_CreateImage
  * @return Amazon_EC2_Model_CreateImageResponse Amazon_EC2_Model_CreateImageResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createImage($request)
 {
     require_once 'Amazon/EC2/Model/CreateImageResponse.php';
     return Amazon_EC2_Model_CreateImageResponse::fromXML($this->_invoke('CreateImage'));
 }