Ejemplo n.º 1
0
 /**
  * Delete Vpc 
  * Deletes a VPC. You must terminate all running instances and delete all
  * subnets before deleting the VPC, otherwise Amazon VPC returns an error.
  * AWS might delete any VPC 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-DeleteVpc.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteVpcRequest request
  * or Amazon_EC2_Model_DeleteVpcRequest object itself
  * @see Amazon_EC2_Model_DeleteVpc
  * @return Amazon_EC2_Model_DeleteVpcResponse Amazon_EC2_Model_DeleteVpcResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteVpc($request)
 {
     if (!$request instanceof Amazon_EC2_Model_DeleteVpcRequest) {
         require_once 'Amazon/EC2/Model/DeleteVpcRequest.php';
         $request = new Amazon_EC2_Model_DeleteVpcRequest($request);
     }
     require_once 'Amazon/EC2/Model/DeleteVpcResponse.php';
     return Amazon_EC2_Model_DeleteVpcResponse::fromXML($this->_invoke($this->_convertDeleteVpc($request)));
 }
Ejemplo n.º 2
0
 /**
  * Delete Vpc 
  * Deletes a VPC. You must terminate all running instances and delete all
  * subnets before deleting the VPC, otherwise Amazon VPC returns an error.
  * AWS might delete any VPC 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-DeleteVpc.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteVpc request or Amazon_EC2_Model_DeleteVpc object itself
  * @see Amazon_EC2_Model_DeleteVpc
  * @return Amazon_EC2_Model_DeleteVpcResponse Amazon_EC2_Model_DeleteVpcResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteVpc($request)
 {
     require_once 'Amazon/EC2/Model/DeleteVpcResponse.php';
     return Amazon_EC2_Model_DeleteVpcResponse::fromXML($this->_invoke('DeleteVpc'));
 }