Example #1
0
 /**
  * Create Queue 
  * The CreateQueue action creates a new queue, or returns the URL of an existing one.  When you request CreateQueue, you provide a name for the queue. To successfully create a new queue, you must provide a name that is unique within the scope of your own queues. If you provide the name of an existing queue, a new queue isn't created and an error isn't returned. Instead, the request succeeds and the queue URL for the existing queue is returned. Exception: if you provide a value for DefaultVisibilityTimeout that is different from the value for the existing queue, you receive an error.  
  * @see http://docs.amazonwebservices.com/AWSSimpleQueueService/2009-02-01/SQSDeveloperGuide/Query_QueryCreateQueue.html      
  * @param mixed $request array of parameters for Amazon_SQS_Model_CreateQueue request or Amazon_SQS_Model_CreateQueue object itself
  * @see Amazon_SQS_Model_CreateQueue
  * @return Amazon_SQS_Model_CreateQueueResponse Amazon_SQS_Model_CreateQueueResponse
  *
  * @throws Amazon_SQS_Exception
  */
 public function createQueue($request)
 {
     require_once 'Amazon/SQS/Model/CreateQueueResponse.php';
     return Amazon_SQS_Model_CreateQueueResponse::fromXML($this->_invoke('CreateQueue'));
 }
Example #2
0
 /**
  * Create Queue 
  * The CreateQueue action creates a new queue, or returns the URL of an existing one.  When you request CreateQueue, you provide a name for the queue. To successfully create a new queue, you must provide a name that is unique within the scope of your own queues. If you provide the name of an existing queue, a new queue isn't created and an error isn't returned. Instead, the request succeeds and the queue URL for the existing queue is returned. Exception: if you provide a value for DefaultVisibilityTimeout that is different from the value for the existing queue, you receive an error.
  * @see http://docs.amazonwebservices.com/AWSSimpleQueueService/2009-02-01/SQSDeveloperGuide/Query_QueryCreateQueue.html
  * @param mixed $request array of parameters for Amazon_SQS_Model_CreateQueueRequest request
  * or Amazon_SQS_Model_CreateQueueRequest object itself
  * @see Amazon_SQS_Model_CreateQueue
  * @return Amazon_SQS_Model_CreateQueueResponse Amazon_SQS_Model_CreateQueueResponse
  *
  * @throws Amazon_SQS_Exception
  */
 public function createQueue($request)
 {
     if (!$request instanceof Amazon_SQS_Model_CreateQueueRequest) {
         require_once dirname(__FILE__) . '/Model/CreateQueueRequest.php';
         $request = new Amazon_SQS_Model_CreateQueueRequest($request);
     }
     require_once dirname(__FILE__) . '/Model/CreateQueueResponse.php';
     return Amazon_SQS_Model_CreateQueueResponse::fromXML($this->_invoke($this->_convertCreateQueue($request)));
 }