コード例 #1
0
 /**
  * Request Spot Instances 
  * Creates a Spot Instance request. 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-RequestSpotInstances.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_RequestSpotInstancesRequest request
  * or Amazon_EC2_Model_RequestSpotInstancesRequest object itself
  * @see Amazon_EC2_Model_RequestSpotInstances
  * @return Amazon_EC2_Model_RequestSpotInstancesResponse Amazon_EC2_Model_RequestSpotInstancesResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function requestSpotInstances($request)
 {
     if (!$request instanceof Amazon_EC2_Model_RequestSpotInstancesRequest) {
         require_once 'Amazon/EC2/Model/RequestSpotInstancesRequest.php';
         $request = new Amazon_EC2_Model_RequestSpotInstancesRequest($request);
     }
     require_once 'Amazon/EC2/Model/RequestSpotInstancesResponse.php';
     return Amazon_EC2_Model_RequestSpotInstancesResponse::fromXML($this->_invoke($this->_convertRequestSpotInstances($request)));
 }
コード例 #2
0
ファイル: Mock.php プロジェクト: edasque/ec2-manage-snapshots
 /**
  * Request Spot Instances 
  * Creates a Spot Instance request. 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-RequestSpotInstances.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_RequestSpotInstances request or Amazon_EC2_Model_RequestSpotInstances object itself
  * @see Amazon_EC2_Model_RequestSpotInstances
  * @return Amazon_EC2_Model_RequestSpotInstancesResponse Amazon_EC2_Model_RequestSpotInstancesResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function requestSpotInstances($request)
 {
     require_once 'Amazon/EC2/Model/RequestSpotInstancesResponse.php';
     return Amazon_EC2_Model_RequestSpotInstancesResponse::fromXML($this->_invoke('RequestSpotInstances'));
 }