Example #1
0
 /**
  * Create Dhcp Options 
  * Creates a set of DHCP options that you can then associate with one or more VPCs,
  * causing all existing and new instances that you launch in those VPCs to use the
  * set of DHCP options. The following table lists the individual DHCP options you can
  * specify. For more information about the options, go to RFC 2132 - http://www.ietf.org/rfc/rfc2132.txt
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-CreateDhcpOptions.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateDhcpOptionsRequest request
  * or Amazon_EC2_Model_CreateDhcpOptionsRequest object itself
  * @see Amazon_EC2_Model_CreateDhcpOptions
  * @return Amazon_EC2_Model_CreateDhcpOptionsResponse Amazon_EC2_Model_CreateDhcpOptionsResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createDhcpOptions($request)
 {
     if (!$request instanceof Amazon_EC2_Model_CreateDhcpOptionsRequest) {
         require_once 'Amazon/EC2/Model/CreateDhcpOptionsRequest.php';
         $request = new Amazon_EC2_Model_CreateDhcpOptionsRequest($request);
     }
     require_once 'Amazon/EC2/Model/CreateDhcpOptionsResponse.php';
     return Amazon_EC2_Model_CreateDhcpOptionsResponse::fromXML($this->_invoke($this->_convertCreateDhcpOptions($request)));
 }
Example #2
0
 /**
  * Create Dhcp Options 
  * Creates a set of DHCP options that you can then associate with one or more VPCs,
  * causing all existing and new instances that you launch in those VPCs to use the
  * set of DHCP options. The following table lists the individual DHCP options you can
  * specify. For more information about the options, go to RFC 2132 - http://www.ietf.org/rfc/rfc2132.txt  
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-CreateDhcpOptions.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateDhcpOptions request or Amazon_EC2_Model_CreateDhcpOptions object itself
  * @see Amazon_EC2_Model_CreateDhcpOptions
  * @return Amazon_EC2_Model_CreateDhcpOptionsResponse Amazon_EC2_Model_CreateDhcpOptionsResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createDhcpOptions($request)
 {
     require_once 'Amazon/EC2/Model/CreateDhcpOptionsResponse.php';
     return Amazon_EC2_Model_CreateDhcpOptionsResponse::fromXML($this->_invoke('CreateDhcpOptions'));
 }