/** * Describe Customer Gateways * Gives you information about your customer gateways. You can filter the results to return * information only about customer gateways that match criteria you specify. For example, * you could ask to get information about a particular customer gateway (or all) only if * the gateway's state is pending or available. You can specify multiple filters (e.g., * the customer gateway has a particular IP address for the Internet-routable external * interface, and the gateway's state is pending or available). The result includes * information for a particular customer gateway only if the gateway 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-DescribeCustomerGateways.html * @param mixed $request array of parameters for Amazon_EC2_Model_DescribeCustomerGatewaysRequest request * or Amazon_EC2_Model_DescribeCustomerGatewaysRequest object itself * @see Amazon_EC2_Model_DescribeCustomerGateways * @return Amazon_EC2_Model_DescribeCustomerGatewaysResponse Amazon_EC2_Model_DescribeCustomerGatewaysResponse * * @throws Amazon_EC2_Exception */ public function describeCustomerGateways($request) { if (!$request instanceof Amazon_EC2_Model_DescribeCustomerGatewaysRequest) { require_once 'Amazon/EC2/Model/DescribeCustomerGatewaysRequest.php'; $request = new Amazon_EC2_Model_DescribeCustomerGatewaysRequest($request); } require_once 'Amazon/EC2/Model/DescribeCustomerGatewaysResponse.php'; return Amazon_EC2_Model_DescribeCustomerGatewaysResponse::fromXML($this->_invoke($this->_convertDescribeCustomerGateways($request))); }
/** * Describe Customer Gateways * Gives you information about your customer gateways. You can filter the results to return * information only about customer gateways that match criteria you specify. For example, * you could ask to get information about a particular customer gateway (or all) only if * the gateway's state is pending or available. You can specify multiple filters (e.g., * the customer gateway has a particular IP address for the Internet-routable external * interface, and the gateway's state is pending or available). The result includes * information for a particular customer gateway only if the gateway 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-DescribeCustomerGateways.html * @param mixed $request array of parameters for Amazon_EC2_Model_DescribeCustomerGateways request or Amazon_EC2_Model_DescribeCustomerGateways object itself * @see Amazon_EC2_Model_DescribeCustomerGateways * @return Amazon_EC2_Model_DescribeCustomerGatewaysResponse Amazon_EC2_Model_DescribeCustomerGatewaysResponse * * @throws Amazon_EC2_Exception */ public function describeCustomerGateways($request) { require_once 'Amazon/EC2/Model/DescribeCustomerGatewaysResponse.php'; return Amazon_EC2_Model_DescribeCustomerGatewaysResponse::fromXML($this->_invoke('DescribeCustomerGateways')); }