/** * Stop Instances * Stops an instance that uses an Amazon EBS volume as its root device. * Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. * When an instance is stopped, the compute resources are released and you are not billed for hourly * instance usage. However, your root partition Amazon EBS volume remains, continues to persist your * data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-StopInstances.html * @param mixed $request array of parameters for Amazon_EC2_Model_StopInstancesRequest request * or Amazon_EC2_Model_StopInstancesRequest object itself * @see Amazon_EC2_Model_StopInstances * @return Amazon_EC2_Model_StopInstancesResponse Amazon_EC2_Model_StopInstancesResponse * * @throws Amazon_EC2_Exception */ public function stopInstances($request) { if (!$request instanceof Amazon_EC2_Model_StopInstancesRequest) { require_once 'Amazon/EC2/Model/StopInstancesRequest.php'; $request = new Amazon_EC2_Model_StopInstancesRequest($request); } require_once 'Amazon/EC2/Model/StopInstancesResponse.php'; return Amazon_EC2_Model_StopInstancesResponse::fromXML($this->_invoke($this->_convertStopInstances($request))); }
/** * Stop Instances * Stops an instance that uses an Amazon EBS volume as its root device. * Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. * When an instance is stopped, the compute resources are released and you are not billed for hourly * instance usage. However, your root partition Amazon EBS volume remains, continues to persist your * data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-StopInstances.html * @param mixed $request array of parameters for Amazon_EC2_Model_StopInstances request or Amazon_EC2_Model_StopInstances object itself * @see Amazon_EC2_Model_StopInstances * @return Amazon_EC2_Model_StopInstancesResponse Amazon_EC2_Model_StopInstancesResponse * * @throws Amazon_EC2_Exception */ public function stopInstances($request) { require_once 'Amazon/EC2/Model/StopInstancesResponse.php'; return Amazon_EC2_Model_StopInstancesResponse::fromXML($this->_invoke('StopInstances')); }