/**
  * Delete Customer Gateway 
  * Deletes a customer gateway. You must delete the VPN connection before
  * deleting the customer gateway.
  * AWS might delete any customer gateway if you leave it inactive for an extended
  * period of time (inactive means that there's no VPN connection in use with the
  * customer gateway).
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DeleteCustomerGateway.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteCustomerGatewayRequest request
  * or Amazon_EC2_Model_DeleteCustomerGatewayRequest object itself
  * @see Amazon_EC2_Model_DeleteCustomerGateway
  * @return Amazon_EC2_Model_DeleteCustomerGatewayResponse Amazon_EC2_Model_DeleteCustomerGatewayResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteCustomerGateway($request)
 {
     if (!$request instanceof Amazon_EC2_Model_DeleteCustomerGatewayRequest) {
         require_once 'Amazon/EC2/Model/DeleteCustomerGatewayRequest.php';
         $request = new Amazon_EC2_Model_DeleteCustomerGatewayRequest($request);
     }
     require_once 'Amazon/EC2/Model/DeleteCustomerGatewayResponse.php';
     return Amazon_EC2_Model_DeleteCustomerGatewayResponse::fromXML($this->_invoke($this->_convertDeleteCustomerGateway($request)));
 }
Beispiel #2
0
 /**
  * Delete Customer Gateway 
  * Deletes a customer gateway. You must delete the VPN connection before
  * deleting the customer gateway.
  * AWS might delete any customer gateway if you leave it inactive for an extended
  * period of time (inactive means that there's no VPN connection in use with the
  * customer gateway).  
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DeleteCustomerGateway.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteCustomerGateway request or Amazon_EC2_Model_DeleteCustomerGateway object itself
  * @see Amazon_EC2_Model_DeleteCustomerGateway
  * @return Amazon_EC2_Model_DeleteCustomerGatewayResponse Amazon_EC2_Model_DeleteCustomerGatewayResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteCustomerGateway($request)
 {
     require_once 'Amazon/EC2/Model/DeleteCustomerGatewayResponse.php';
     return Amazon_EC2_Model_DeleteCustomerGatewayResponse::fromXML($this->_invoke('DeleteCustomerGateway'));
 }