/** * Release Address * The ReleaseAddress operation releases an elastic IP address associated with * your account. * Note: * Releasing an IP address automatically disassociates it from any instance with * which it is associated. For more information, see DisassociateAddress. * Important: * After releasing an elastic IP address, it is released to the IP address pool * and might no longer be available to your account. Make sure to update your DNS * records and any servers or devices that communicate with the address. * If you run this operation on an elastic IP address that is already released, * the address might be assigned to another account which will cause Amazon EC2 to * return an error. * * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-ReleaseAddress.html * @param mixed $request array of parameters for Amazon_EC2_Model_ReleaseAddressRequest request * or Amazon_EC2_Model_ReleaseAddressRequest object itself * @see Amazon_EC2_Model_ReleaseAddress * @return Amazon_EC2_Model_ReleaseAddressResponse Amazon_EC2_Model_ReleaseAddressResponse * * @throws Amazon_EC2_Exception */ public function releaseAddress($request) { if (!$request instanceof Amazon_EC2_Model_ReleaseAddressRequest) { require_once 'Amazon/EC2/Model/ReleaseAddressRequest.php'; $request = new Amazon_EC2_Model_ReleaseAddressRequest($request); } require_once 'Amazon/EC2/Model/ReleaseAddressResponse.php'; return Amazon_EC2_Model_ReleaseAddressResponse::fromXML($this->_invoke($this->_convertReleaseAddress($request))); }
/** * Release Address * The ReleaseAddress operation releases an elastic IP address associated with * your account. * Note: * Releasing an IP address automatically disassociates it from any instance with * which it is associated. For more information, see DisassociateAddress. * Important: * After releasing an elastic IP address, it is released to the IP address pool * and might no longer be available to your account. Make sure to update your DNS * records and any servers or devices that communicate with the address. * If you run this operation on an elastic IP address that is already released, * the address might be assigned to another account which will cause Amazon EC2 to * return an error. * * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-ReleaseAddress.html * @param mixed $request array of parameters for Amazon_EC2_Model_ReleaseAddress request or Amazon_EC2_Model_ReleaseAddress object itself * @see Amazon_EC2_Model_ReleaseAddress * @return Amazon_EC2_Model_ReleaseAddressResponse Amazon_EC2_Model_ReleaseAddressResponse * * @throws Amazon_EC2_Exception */ public function releaseAddress($request) { require_once 'Amazon/EC2/Model/ReleaseAddressResponse.php'; return Amazon_EC2_Model_ReleaseAddressResponse::fromXML($this->_invoke('ReleaseAddress')); }