Method: Fog::AWS::SQS::Real#get_queue_attributes
- Defined in:
- lib/fog/aws/requests/sqs/get_queue_attributes.rb
permalink #get_queue_attributes(queue_url, attribute_name) ⇒ Object
Get attributes of a queue
Parameters
-
queue_url<~String> - Url of queue to get attributes for
-
attribute_name<~Array> - Name of attribute to return, in [‘All’, ‘ApproximateNumberOfMessages’, ‘ApproximateNumberOfMessagesNotVisible’, ‘CreatedTimestamp’, ‘LastModifiedTimestamp’, ‘MaximumMessageSize’, ‘MessageRetentionPeriod’, ‘Policy’, ‘QueueArn’, ‘VisibilityTimeout’]
See Also
18 19 20 21 22 23 24 25 |
# File 'lib/fog/aws/requests/sqs/get_queue_attributes.rb', line 18 def get_queue_attributes(queue_url, attribute_name) request({ 'Action' => 'GetQueueAttributes', 'AttributeName' => attribute_name, :path => path_from_queue_url(queue_url), :parser => Fog::Parsers::AWS::SQS::GetQueueAttributes.new }) end |