/** * Terminate Instances * The TerminateInstances operation shuts down one or more instances. This * operation is idempotent; if you terminate an instance more than once, each call * will succeed. * Terminated instances will remain visible after termination (approximately one * hour). * * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-TerminateInstances.html * @param mixed $request array of parameters for Amazon_EC2_Model_TerminateInstancesRequest request * or Amazon_EC2_Model_TerminateInstancesRequest object itself * @see Amazon_EC2_Model_TerminateInstances * @return Amazon_EC2_Model_TerminateInstancesResponse Amazon_EC2_Model_TerminateInstancesResponse * * @throws Amazon_EC2_Exception */ public function terminateInstances($request) { if (!$request instanceof Amazon_EC2_Model_TerminateInstancesRequest) { require_once 'Amazon/EC2/Model/TerminateInstancesRequest.php'; $request = new Amazon_EC2_Model_TerminateInstancesRequest($request); } require_once 'Amazon/EC2/Model/TerminateInstancesResponse.php'; return Amazon_EC2_Model_TerminateInstancesResponse::fromXML($this->_invoke($this->_convertTerminateInstances($request))); }
/** * Terminate Instances * The TerminateInstances operation shuts down one or more instances. This * operation is idempotent; if you terminate an instance more than once, each call * will succeed. * Terminated instances will remain visible after termination (approximately one * hour). * * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-TerminateInstances.html * @param mixed $request array of parameters for Amazon_EC2_Model_TerminateInstances request or Amazon_EC2_Model_TerminateInstances object itself * @see Amazon_EC2_Model_TerminateInstances * @return Amazon_EC2_Model_TerminateInstancesResponse Amazon_EC2_Model_TerminateInstancesResponse * * @throws Amazon_EC2_Exception */ public function terminateInstances($request) { require_once 'Amazon/EC2/Model/TerminateInstancesResponse.php'; return Amazon_EC2_Model_TerminateInstancesResponse::fromXML($this->_invoke('TerminateInstances')); }