/** * Create Vpc * Creates a VPC with the CIDR block you specify. The smallest VPC you can create * uses a /28 netmask (16 IP addresses), and the largest uses a /18 netmask * (16,384 IP addresses). To help you decide how big to make your VPC, go * to the topic about creating VPCs in the Amazon Virtual Private Cloud * Developer Guide. * By default, each instance you launch in the VPC has the default DHCP options * (the standard EC2 host name, no domain name, no DNS server, no NTP server, and * no NetBIOS server or node type). * AWS might delete any VPC that you create with this operation if you leave it inactive * for an extended period of time (inactive means that there are no running Amazon EC2 * instances in the VPC). * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-CreateVpc.html * @param mixed $request array of parameters for Amazon_EC2_Model_CreateVpcRequest request * or Amazon_EC2_Model_CreateVpcRequest object itself * @see Amazon_EC2_Model_CreateVpc * @return Amazon_EC2_Model_CreateVpcResponse Amazon_EC2_Model_CreateVpcResponse * * @throws Amazon_EC2_Exception */ public function createVpc($request) { if (!$request instanceof Amazon_EC2_Model_CreateVpcRequest) { require_once 'Amazon/EC2/Model/CreateVpcRequest.php'; $request = new Amazon_EC2_Model_CreateVpcRequest($request); } require_once 'Amazon/EC2/Model/CreateVpcResponse.php'; return Amazon_EC2_Model_CreateVpcResponse::fromXML($this->_invoke($this->_convertCreateVpc($request))); }
/** * Create Vpc * Creates a VPC with the CIDR block you specify. The smallest VPC you can create * uses a /28 netmask (16 IP addresses), and the largest uses a /18 netmask * (16,384 IP addresses). To help you decide how big to make your VPC, go * to the topic about creating VPCs in the Amazon Virtual Private Cloud * Developer Guide. * By default, each instance you launch in the VPC has the default DHCP options * (the standard EC2 host name, no domain name, no DNS server, no NTP server, and * no NetBIOS server or node type). * AWS might delete any VPC that you create with this operation if you leave it inactive * for an extended period of time (inactive means that there are no running Amazon EC2 * instances in the VPC). * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-CreateVpc.html * @param mixed $request array of parameters for Amazon_EC2_Model_CreateVpc request or Amazon_EC2_Model_CreateVpc object itself * @see Amazon_EC2_Model_CreateVpc * @return Amazon_EC2_Model_CreateVpcResponse Amazon_EC2_Model_CreateVpcResponse * * @throws Amazon_EC2_Exception */ public function createVpc($request) { require_once 'Amazon/EC2/Model/CreateVpcResponse.php'; return Amazon_EC2_Model_CreateVpcResponse::fromXML($this->_invoke('CreateVpc')); }