コード例 #1
0
 /**
  * Describe Vpcs 
  * Gives you information about your VPCs. You can filter the results to return
  * information only about VPCs that match criteria you specify. For example,
  * you could ask to get information about a particular VPC or VPCs (or all your VPCs)
  * only if the VPC's state is available. You can specify multiple filters (e.g.,
  * the VPC uses one of several sets of DHCP options, and the VPC's state is available).
  * The result includes information for a particular VPC only if the VPC
  * matches all your filters. If there's no match, no special message is
  * returned; the response is simply empty.
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DescribeVpcs.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_DescribeVpcsRequest request
  * or Amazon_EC2_Model_DescribeVpcsRequest object itself
  * @see Amazon_EC2_Model_DescribeVpcs
  * @return Amazon_EC2_Model_DescribeVpcsResponse Amazon_EC2_Model_DescribeVpcsResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function describeVpcs($request)
 {
     if (!$request instanceof Amazon_EC2_Model_DescribeVpcsRequest) {
         require_once 'Amazon/EC2/Model/DescribeVpcsRequest.php';
         $request = new Amazon_EC2_Model_DescribeVpcsRequest($request);
     }
     require_once 'Amazon/EC2/Model/DescribeVpcsResponse.php';
     return Amazon_EC2_Model_DescribeVpcsResponse::fromXML($this->_invoke($this->_convertDescribeVpcs($request)));
 }
コード例 #2
0
ファイル: Mock.php プロジェクト: edasque/ec2-manage-snapshots
 /**
  * Describe Vpcs 
  * Gives you information about your VPCs. You can filter the results to return
  * information only about VPCs that match criteria you specify. For example,
  * you could ask to get information about a particular VPC or VPCs (or all your VPCs)
  * only if the VPC's state is available. You can specify multiple filters (e.g.,
  * the VPC uses one of several sets of DHCP options, and the VPC's state is available).
  * The result includes information for a particular VPC only if the VPC
  * matches all your filters. If there's no match, no special message is
  * returned; the response is simply empty.  
  * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-DescribeVpcs.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_DescribeVpcs request or Amazon_EC2_Model_DescribeVpcs object itself
  * @see Amazon_EC2_Model_DescribeVpcs
  * @return Amazon_EC2_Model_DescribeVpcsResponse Amazon_EC2_Model_DescribeVpcsResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function describeVpcs($request)
 {
     require_once 'Amazon/EC2/Model/DescribeVpcsResponse.php';
     return Amazon_EC2_Model_DescribeVpcsResponse::fromXML($this->_invoke('DescribeVpcs'));
 }