Example #1
0
 /**
  * Describe Spot Price History 
  * Describes historical pricing for Spot Instances. Spot Instances are instances that automatically launch
  * when your request price exceeds the Spot Price that Amazon EC2 periodically calculates.
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DescribeSpotPriceHistory.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_DescribeSpotPriceHistoryRequest request
  * or Amazon_EC2_Model_DescribeSpotPriceHistoryRequest object itself
  * @see Amazon_EC2_Model_DescribeSpotPriceHistory
  * @return Amazon_EC2_Model_DescribeSpotPriceHistoryResponse Amazon_EC2_Model_DescribeSpotPriceHistoryResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function describeSpotPriceHistory($request)
 {
     if (!$request instanceof Amazon_EC2_Model_DescribeSpotPriceHistoryRequest) {
         require_once 'Amazon/EC2/Model/DescribeSpotPriceHistoryRequest.php';
         $request = new Amazon_EC2_Model_DescribeSpotPriceHistoryRequest($request);
     }
     require_once 'Amazon/EC2/Model/DescribeSpotPriceHistoryResponse.php';
     return Amazon_EC2_Model_DescribeSpotPriceHistoryResponse::fromXML($this->_invoke($this->_convertDescribeSpotPriceHistory($request)));
 }
Example #2
0
 /**
  * Describe Spot Price History 
  * Describes historical pricing for Spot Instances. Spot Instances are instances that automatically launch
  * when your request price exceeds the Spot Price that Amazon EC2 periodically calculates.  
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DescribeSpotPriceHistory.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_DescribeSpotPriceHistory request or Amazon_EC2_Model_DescribeSpotPriceHistory object itself
  * @see Amazon_EC2_Model_DescribeSpotPriceHistory
  * @return Amazon_EC2_Model_DescribeSpotPriceHistoryResponse Amazon_EC2_Model_DescribeSpotPriceHistoryResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function describeSpotPriceHistory($request)
 {
     require_once 'Amazon/EC2/Model/DescribeSpotPriceHistoryResponse.php';
     return Amazon_EC2_Model_DescribeSpotPriceHistoryResponse::fromXML($this->_invoke('DescribeSpotPriceHistory'));
 }