Ejemplo n.º 1
0
 /**
  * Create Vpn Gateway 
  * Creates a new VPN gateway. A VPN gateway is the VPC-side endpoint for
  * your VPN connection. You can create a VPN gateway before creating the VPC
  * itself. AWS might delete any VPN gateway that you create with this operation
  * 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-CreateVpnGateway.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateVpnGatewayRequest request
  * or Amazon_EC2_Model_CreateVpnGatewayRequest object itself
  * @see Amazon_EC2_Model_CreateVpnGateway
  * @return Amazon_EC2_Model_CreateVpnGatewayResponse Amazon_EC2_Model_CreateVpnGatewayResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createVpnGateway($request)
 {
     if (!$request instanceof Amazon_EC2_Model_CreateVpnGatewayRequest) {
         require_once 'Amazon/EC2/Model/CreateVpnGatewayRequest.php';
         $request = new Amazon_EC2_Model_CreateVpnGatewayRequest($request);
     }
     require_once 'Amazon/EC2/Model/CreateVpnGatewayResponse.php';
     return Amazon_EC2_Model_CreateVpnGatewayResponse::fromXML($this->_invoke($this->_convertCreateVpnGateway($request)));
 }
Ejemplo n.º 2
0
 /**
  * Create Vpn Gateway 
  * Creates a new VPN gateway. A VPN gateway is the VPC-side endpoint for
  * your VPN connection. You can create a VPN gateway before creating the VPC
  * itself. AWS might delete any VPN gateway that you create with this operation
  * 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-CreateVpnGateway.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateVpnGateway request or Amazon_EC2_Model_CreateVpnGateway object itself
  * @see Amazon_EC2_Model_CreateVpnGateway
  * @return Amazon_EC2_Model_CreateVpnGatewayResponse Amazon_EC2_Model_CreateVpnGatewayResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createVpnGateway($request)
 {
     require_once 'Amazon/EC2/Model/CreateVpnGatewayResponse.php';
     return Amazon_EC2_Model_CreateVpnGatewayResponse::fromXML($this->_invoke('CreateVpnGateway'));
 }