Esempio n. 1
0
 /**
  * Purchase Reserved Instances Offering 
  * The PurchaseReservedInstancesOffering operation purchases a
  * Reserved Instance for use with your account. With Amazon EC2
  * Reserved Instances, you purchase the right to launch Amazon EC2
  * instances for a period of time (without getting insufficient
  * capacity errors) and pay a lower usage rate for the
  * actual time used.
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-PurchaseReservedInstancesOffering.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_PurchaseReservedInstancesOfferingRequest request
  * or Amazon_EC2_Model_PurchaseReservedInstancesOfferingRequest object itself
  * @see Amazon_EC2_Model_PurchaseReservedInstancesOffering
  * @return Amazon_EC2_Model_PurchaseReservedInstancesOfferingResponse Amazon_EC2_Model_PurchaseReservedInstancesOfferingResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function purchaseReservedInstancesOffering($request)
 {
     if (!$request instanceof Amazon_EC2_Model_PurchaseReservedInstancesOfferingRequest) {
         require_once 'Amazon/EC2/Model/PurchaseReservedInstancesOfferingRequest.php';
         $request = new Amazon_EC2_Model_PurchaseReservedInstancesOfferingRequest($request);
     }
     require_once 'Amazon/EC2/Model/PurchaseReservedInstancesOfferingResponse.php';
     return Amazon_EC2_Model_PurchaseReservedInstancesOfferingResponse::fromXML($this->_invoke($this->_convertPurchaseReservedInstancesOffering($request)));
 }
Esempio n. 2
0
 /**
  * Purchase Reserved Instances Offering 
  * The PurchaseReservedInstancesOffering operation purchases a
  * Reserved Instance for use with your account. With Amazon EC2
  * Reserved Instances, you purchase the right to launch Amazon EC2
  * instances for a period of time (without getting insufficient
  * capacity errors) and pay a lower usage rate for the
  * actual time used.  
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-PurchaseReservedInstancesOffering.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_PurchaseReservedInstancesOffering request or Amazon_EC2_Model_PurchaseReservedInstancesOffering object itself
  * @see Amazon_EC2_Model_PurchaseReservedInstancesOffering
  * @return Amazon_EC2_Model_PurchaseReservedInstancesOfferingResponse Amazon_EC2_Model_PurchaseReservedInstancesOfferingResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function purchaseReservedInstancesOffering($request)
 {
     require_once 'Amazon/EC2/Model/PurchaseReservedInstancesOfferingResponse.php';
     return Amazon_EC2_Model_PurchaseReservedInstancesOfferingResponse::fromXML($this->_invoke('PurchaseReservedInstancesOffering'));
 }