Ejemplo n.º 1
0
 /**
  * Delete Vpn Gateway 
  * Deletes a VPN gateway. Use this when you want to delete a VPC and all
  * its associated components because you no longer need them. We recommend
  * that before you delete a VPN gateway, you detach it from the VPC and
  * delete the VPN connection. Note that you don't need to delete the VPN
  * gateway if you just want to delete and re-create the VPN connection
  * between your VPC and data center.
  * AWS might delete any VPN gateway if you leave it inactive for an extended period of time
  * (inactive means that there's no VPN connection in use with the VPN gateway).
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DeleteVpnGateway.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteVpnGatewayRequest request
  * or Amazon_EC2_Model_DeleteVpnGatewayRequest object itself
  * @see Amazon_EC2_Model_DeleteVpnGateway
  * @return Amazon_EC2_Model_DeleteVpnGatewayResponse Amazon_EC2_Model_DeleteVpnGatewayResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteVpnGateway($request)
 {
     if (!$request instanceof Amazon_EC2_Model_DeleteVpnGatewayRequest) {
         require_once 'Amazon/EC2/Model/DeleteVpnGatewayRequest.php';
         $request = new Amazon_EC2_Model_DeleteVpnGatewayRequest($request);
     }
     require_once 'Amazon/EC2/Model/DeleteVpnGatewayResponse.php';
     return Amazon_EC2_Model_DeleteVpnGatewayResponse::fromXML($this->_invoke($this->_convertDeleteVpnGateway($request)));
 }
Ejemplo n.º 2
0
 /**
  * Delete Vpn Gateway 
  * Deletes a VPN gateway. Use this when you want to delete a VPC and all
  * its associated components because you no longer need them. We recommend
  * that before you delete a VPN gateway, you detach it from the VPC and
  * delete the VPN connection. Note that you don't need to delete the VPN
  * gateway if you just want to delete and re-create the VPN connection
  * between your VPC and data center.
  * AWS might delete any VPN gateway if you leave it inactive for an extended period of time
  * (inactive means that there's no VPN connection in use with the VPN gateway).  
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DeleteVpnGateway.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteVpnGateway request or Amazon_EC2_Model_DeleteVpnGateway object itself
  * @see Amazon_EC2_Model_DeleteVpnGateway
  * @return Amazon_EC2_Model_DeleteVpnGatewayResponse Amazon_EC2_Model_DeleteVpnGatewayResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteVpnGateway($request)
 {
     require_once 'Amazon/EC2/Model/DeleteVpnGatewayResponse.php';
     return Amazon_EC2_Model_DeleteVpnGatewayResponse::fromXML($this->_invoke('DeleteVpnGateway'));
 }