/**
  * Delete Vpn Connection 
  * Deletes a VPN connection. Use this if you want to delete a VPC and
  * all its associated components. Another reason to use this operation
  * is if you believe the tunnel credentials for your VPN connection have
  * been compromised. In that situation, you can delete the VPN connection
  * and create a new one that has new keys, without needing to delete the
  * VPC or VPN gateway. If you create a new VPN connection, you must
  * reconfigure the customer gateway using the new configuration
  * information returned with the new VPN connection ID.
  * If you're deleting the VPC and all its associated parts, we recommend you
  * detach the VPN gateway from the VPC and delete the VPC before deleting
  * the VPN connection.
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DeleteVpnConnection.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteVpnConnectionRequest request
  * or Amazon_EC2_Model_DeleteVpnConnectionRequest object itself
  * @see Amazon_EC2_Model_DeleteVpnConnection
  * @return Amazon_EC2_Model_DeleteVpnConnectionResponse Amazon_EC2_Model_DeleteVpnConnectionResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteVpnConnection($request)
 {
     if (!$request instanceof Amazon_EC2_Model_DeleteVpnConnectionRequest) {
         require_once 'Amazon/EC2/Model/DeleteVpnConnectionRequest.php';
         $request = new Amazon_EC2_Model_DeleteVpnConnectionRequest($request);
     }
     require_once 'Amazon/EC2/Model/DeleteVpnConnectionResponse.php';
     return Amazon_EC2_Model_DeleteVpnConnectionResponse::fromXML($this->_invoke($this->_convertDeleteVpnConnection($request)));
 }
Beispiel #2
0
 /**
  * Delete Vpn Connection 
  * Deletes a VPN connection. Use this if you want to delete a VPC and
  * all its associated components. Another reason to use this operation
  * is if you believe the tunnel credentials for your VPN connection have
  * been compromised. In that situation, you can delete the VPN connection
  * and create a new one that has new keys, without needing to delete the
  * VPC or VPN gateway. If you create a new VPN connection, you must
  * reconfigure the customer gateway using the new configuration
  * information returned with the new VPN connection ID.
  * If you're deleting the VPC and all its associated parts, we recommend you
  * detach the VPN gateway from the VPC and delete the VPC before deleting
  * the VPN connection.  
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DeleteVpnConnection.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteVpnConnection request or Amazon_EC2_Model_DeleteVpnConnection object itself
  * @see Amazon_EC2_Model_DeleteVpnConnection
  * @return Amazon_EC2_Model_DeleteVpnConnectionResponse Amazon_EC2_Model_DeleteVpnConnectionResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteVpnConnection($request)
 {
     require_once 'Amazon/EC2/Model/DeleteVpnConnectionResponse.php';
     return Amazon_EC2_Model_DeleteVpnConnectionResponse::fromXML($this->_invoke('DeleteVpnConnection'));
 }