Example #1
0
 /**
  * Create Vpn Connection 
  * Creates a new VPN connection between an existing VPN gateway and customer
  * gateway. The only supported connection type is ipsec.1.
  * The response includes information that you need to configure your customer gateway,
  * in XML format. We recommend you use the command line version of this operation
  * (ec2-create-vpn-connection), which lets you get the configuration information
  * formatted in a friendlier way. For information about the command, go to
  * ec2-create-vpn-connection in the Amazon Virtual Private Cloud Command Line Reference.
  * Important
  * We strongly recommend you use HTTPS when calling this operation because
  * the response contains sensitive cryptographic information for configuring
  * your customer gateway.
  * If you decide to shut down your VPN connection for any reason and then create a new
  * one, you must re-configure your customer gateway with the new information
  * returned from this call.
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-CreateVpnConnection.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateVpnConnectionRequest request
  * or Amazon_EC2_Model_CreateVpnConnectionRequest object itself
  * @see Amazon_EC2_Model_CreateVpnConnection
  * @return Amazon_EC2_Model_CreateVpnConnectionResponse Amazon_EC2_Model_CreateVpnConnectionResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createVpnConnection($request)
 {
     if (!$request instanceof Amazon_EC2_Model_CreateVpnConnectionRequest) {
         require_once 'Amazon/EC2/Model/CreateVpnConnectionRequest.php';
         $request = new Amazon_EC2_Model_CreateVpnConnectionRequest($request);
     }
     require_once 'Amazon/EC2/Model/CreateVpnConnectionResponse.php';
     return Amazon_EC2_Model_CreateVpnConnectionResponse::fromXML($this->_invoke($this->_convertCreateVpnConnection($request)));
 }
Example #2
0
 /**
  * Create Vpn Connection 
  * Creates a new VPN connection between an existing VPN gateway and customer
  * gateway. The only supported connection type is ipsec.1.
  * The response includes information that you need to configure your customer gateway,
  * in XML format. We recommend you use the command line version of this operation
  * (ec2-create-vpn-connection), which lets you get the configuration information
  * formatted in a friendlier way. For information about the command, go to
  * ec2-create-vpn-connection in the Amazon Virtual Private Cloud Command Line Reference.
  * Important
  * We strongly recommend you use HTTPS when calling this operation because
  * the response contains sensitive cryptographic information for configuring
  * your customer gateway.
  * If you decide to shut down your VPN connection for any reason and then create a new
  * one, you must re-configure your customer gateway with the new information
  * returned from this call.  
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-CreateVpnConnection.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateVpnConnection request or Amazon_EC2_Model_CreateVpnConnection object itself
  * @see Amazon_EC2_Model_CreateVpnConnection
  * @return Amazon_EC2_Model_CreateVpnConnectionResponse Amazon_EC2_Model_CreateVpnConnectionResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createVpnConnection($request)
 {
     require_once 'Amazon/EC2/Model/CreateVpnConnectionResponse.php';
     return Amazon_EC2_Model_CreateVpnConnectionResponse::fromXML($this->_invoke('CreateVpnConnection'));
 }