/** * Create Spot Datafeed Subscription * Creates the data feed for spot instances, enabling you to view Spot Instance usage logs. You can * create one data feed per account. * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-CreateSpotDatafeedSubscription.html * @param mixed $request array of parameters for Amazon_EC2_Model_CreateSpotDatafeedSubscriptionRequest request * or Amazon_EC2_Model_CreateSpotDatafeedSubscriptionRequest object itself * @see Amazon_EC2_Model_CreateSpotDatafeedSubscription * @return Amazon_EC2_Model_CreateSpotDatafeedSubscriptionResponse Amazon_EC2_Model_CreateSpotDatafeedSubscriptionResponse * * @throws Amazon_EC2_Exception */ public function createSpotDatafeedSubscription($request) { if (!$request instanceof Amazon_EC2_Model_CreateSpotDatafeedSubscriptionRequest) { require_once 'Amazon/EC2/Model/CreateSpotDatafeedSubscriptionRequest.php'; $request = new Amazon_EC2_Model_CreateSpotDatafeedSubscriptionRequest($request); } require_once 'Amazon/EC2/Model/CreateSpotDatafeedSubscriptionResponse.php'; return Amazon_EC2_Model_CreateSpotDatafeedSubscriptionResponse::fromXML($this->_invoke($this->_convertCreateSpotDatafeedSubscription($request))); }
/** * Create Spot Datafeed Subscription * Creates the data feed for spot instances, enabling you to view Spot Instance usage logs. You can * create one data feed per account. * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-CreateSpotDatafeedSubscription.html * @param mixed $request array of parameters for Amazon_EC2_Model_CreateSpotDatafeedSubscription request or Amazon_EC2_Model_CreateSpotDatafeedSubscription object itself * @see Amazon_EC2_Model_CreateSpotDatafeedSubscription * @return Amazon_EC2_Model_CreateSpotDatafeedSubscriptionResponse Amazon_EC2_Model_CreateSpotDatafeedSubscriptionResponse * * @throws Amazon_EC2_Exception */ public function createSpotDatafeedSubscription($request) { require_once 'Amazon/EC2/Model/CreateSpotDatafeedSubscriptionResponse.php'; return Amazon_EC2_Model_CreateSpotDatafeedSubscriptionResponse::fromXML($this->_invoke('CreateSpotDatafeedSubscription')); }