Module: Awspec::Helper::Finder::Sqs
- Included in:
- Awspec::Helper::Finder
- Defined in:
- lib/awspec/helper/finder/sqs.rb
Instance Method Summary collapse
Instance Method Details
#find_queue(queue_name) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/awspec/helper/finder/sqs.rb', line 4 def find_queue(queue_name) res = sqs_client.list_queues(queue_name_prefix: queue_name).queue_urls.select do |url| url.split('/').last == queue_name end res.single_resource(queue_name) end |
#find_tags_for_queue(queue_url) ⇒ Object
11 12 13 14 |
# File 'lib/awspec/helper/finder/sqs.rb', line 11 def (queue_url) res = sqs_client.({ queue_url: queue_url }) res. end |