Sha256: 2c3f45e126001fd4049c895293ae28c036a46839e5268e0af5d2ebf82bdf6995

Contents?: true

Size: 441 Bytes

Versions: 49

Compression:

Stored size: 441 Bytes

Contents

module Awspec::Helper
  module Finder
    module Sqs
      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

      def find_tags_for_queue(queue_url)
        res = sqs_client.list_queue_tags({ queue_url: queue_url })
        res.tags
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 3 rubygems

Version Path
awspec-1.15.1 lib/awspec/helper/finder/sqs.rb
awspec-1.15.0 lib/awspec/helper/finder/sqs.rb
awspec-1.14.1 lib/awspec/helper/finder/sqs.rb
awspec-1.14.0 lib/awspec/helper/finder/sqs.rb
awspec-1.13.0 lib/awspec/helper/finder/sqs.rb
awspec-1.12.7 lib/awspec/helper/finder/sqs.rb
awspec-1.12.6 lib/awspec/helper/finder/sqs.rb
awspec-1.12.5 lib/awspec/helper/finder/sqs.rb
awspec-1.12.4 lib/awspec/helper/finder/sqs.rb