예제 #1
0
 /**
  * Delete Subnet 
  * Deletes a subnet from a VPC. You must terminate all running instances in the
  * subnet before deleting it, otherwise Amazon VPC returns an error.
  * AWS might delete any subnet if you leave it inactive for an extended period
  * of time (inactive means that there are no running Amazon EC2 instances in the subnet).
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DeleteSubnet.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteSubnetRequest request
  * or Amazon_EC2_Model_DeleteSubnetRequest object itself
  * @see Amazon_EC2_Model_DeleteSubnet
  * @return Amazon_EC2_Model_DeleteSubnetResponse Amazon_EC2_Model_DeleteSubnetResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteSubnet($request)
 {
     if (!$request instanceof Amazon_EC2_Model_DeleteSubnetRequest) {
         require_once 'Amazon/EC2/Model/DeleteSubnetRequest.php';
         $request = new Amazon_EC2_Model_DeleteSubnetRequest($request);
     }
     require_once 'Amazon/EC2/Model/DeleteSubnetResponse.php';
     return Amazon_EC2_Model_DeleteSubnetResponse::fromXML($this->_invoke($this->_convertDeleteSubnet($request)));
 }
예제 #2
0
 /**
  * Delete Subnet 
  * Deletes a subnet from a VPC. You must terminate all running instances in the
  * subnet before deleting it, otherwise Amazon VPC returns an error.
  * AWS might delete any subnet if you leave it inactive for an extended period
  * of time (inactive means that there are no running Amazon EC2 instances in the subnet).  
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DeleteSubnet.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_DeleteSubnet request or Amazon_EC2_Model_DeleteSubnet object itself
  * @see Amazon_EC2_Model_DeleteSubnet
  * @return Amazon_EC2_Model_DeleteSubnetResponse Amazon_EC2_Model_DeleteSubnetResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function deleteSubnet($request)
 {
     require_once 'Amazon/EC2/Model/DeleteSubnetResponse.php';
     return Amazon_EC2_Model_DeleteSubnetResponse::fromXML($this->_invoke('DeleteSubnet'));
 }