Ejemplo n.º 1
0
 /**
  * Attach Vpn Gateway 
  * Attaches a VPN gateway to a VPC. This is the last step required to get your
  * VPC fully connected to your data center before launching instances in it.
  * For more information, go to Process for Using Amazon VPC in the Amazon Virtual
  * Private Cloud Developer Guide.
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-AttachVpnGateway.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_AttachVpnGatewayRequest request
  * or Amazon_EC2_Model_AttachVpnGatewayRequest object itself
  * @see Amazon_EC2_Model_AttachVpnGateway
  * @return Amazon_EC2_Model_AttachVpnGatewayResponse Amazon_EC2_Model_AttachVpnGatewayResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function attachVpnGateway($request)
 {
     if (!$request instanceof Amazon_EC2_Model_AttachVpnGatewayRequest) {
         require_once 'Amazon/EC2/Model/AttachVpnGatewayRequest.php';
         $request = new Amazon_EC2_Model_AttachVpnGatewayRequest($request);
     }
     require_once 'Amazon/EC2/Model/AttachVpnGatewayResponse.php';
     return Amazon_EC2_Model_AttachVpnGatewayResponse::fromXML($this->_invoke($this->_convertAttachVpnGateway($request)));
 }
Ejemplo n.º 2
0
 /**
  * Attach Vpn Gateway 
  * Attaches a VPN gateway to a VPC. This is the last step required to get your
  * VPC fully connected to your data center before launching instances in it.
  * For more information, go to Process for Using Amazon VPC in the Amazon Virtual
  * Private Cloud Developer Guide.  
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-AttachVpnGateway.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_AttachVpnGateway request or Amazon_EC2_Model_AttachVpnGateway object itself
  * @see Amazon_EC2_Model_AttachVpnGateway
  * @return Amazon_EC2_Model_AttachVpnGatewayResponse Amazon_EC2_Model_AttachVpnGatewayResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function attachVpnGateway($request)
 {
     require_once 'Amazon/EC2/Model/AttachVpnGatewayResponse.php';
     return Amazon_EC2_Model_AttachVpnGatewayResponse::fromXML($this->_invoke('AttachVpnGateway'));
 }