Esempio n. 1
0
 /**
  * Create Customer Gateway 
  * Provides information to AWS about your customer gateway device.
  * The customer gateway is the appliance at your end of the VPN connection
  * (compared to the VPN gateway, which is the device at the AWS side of the VPN
  * connection). AWS might delete any customer 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 customer gateway).
  * You must provide the Internet-routable IP address of the customer gateway's external
  * interface. The IP address must be static and can't be behind a device performing
  * network address translation (NAT).
  * You must also provide the device's Border Gateway Protocol (BGP) Autonomous
  * System Number (ASN). You can use an existing ASN assigned to your network.
  * If you don't have an ASN already, you can use a private ASN (in the 64512 - 65534 range).
  * For more information about ASNs, go to the Wikipedia article -
  * http://en.wikipedia.org/wiki/Autonomous_system_%28Internet%29.
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-CreateCustomerGateway.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateCustomerGatewayRequest request
  * or Amazon_EC2_Model_CreateCustomerGatewayRequest object itself
  * @see Amazon_EC2_Model_CreateCustomerGateway
  * @return Amazon_EC2_Model_CreateCustomerGatewayResponse Amazon_EC2_Model_CreateCustomerGatewayResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createCustomerGateway($request)
 {
     if (!$request instanceof Amazon_EC2_Model_CreateCustomerGatewayRequest) {
         require_once 'Amazon/EC2/Model/CreateCustomerGatewayRequest.php';
         $request = new Amazon_EC2_Model_CreateCustomerGatewayRequest($request);
     }
     require_once 'Amazon/EC2/Model/CreateCustomerGatewayResponse.php';
     return Amazon_EC2_Model_CreateCustomerGatewayResponse::fromXML($this->_invoke($this->_convertCreateCustomerGateway($request)));
 }
Esempio n. 2
0
 /**
  * Create Customer Gateway 
  * Provides information to AWS about your customer gateway device.
  * The customer gateway is the appliance at your end of the VPN connection
  * (compared to the VPN gateway, which is the device at the AWS side of the VPN
  * connection). AWS might delete any customer 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 customer gateway).
  * You must provide the Internet-routable IP address of the customer gateway's external
  * interface. The IP address must be static and can't be behind a device performing
  * network address translation (NAT).
  * You must also provide the device's Border Gateway Protocol (BGP) Autonomous
  * System Number (ASN). You can use an existing ASN assigned to your network.
  * If you don't have an ASN already, you can use a private ASN (in the 64512 - 65534 range).
  * For more information about ASNs, go to the Wikipedia article -
  * http://en.wikipedia.org/wiki/Autonomous_system_%28Internet%29.  
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-CreateCustomerGateway.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateCustomerGateway request or Amazon_EC2_Model_CreateCustomerGateway object itself
  * @see Amazon_EC2_Model_CreateCustomerGateway
  * @return Amazon_EC2_Model_CreateCustomerGatewayResponse Amazon_EC2_Model_CreateCustomerGatewayResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createCustomerGateway($request)
 {
     require_once 'Amazon/EC2/Model/CreateCustomerGatewayResponse.php';
     return Amazon_EC2_Model_CreateCustomerGatewayResponse::fromXML($this->_invoke('CreateCustomerGateway'));
 }