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.25.1 lib/awspec/helper/finder/sqs.rb
awspec-1.25.0 lib/awspec/helper/finder/sqs.rb
awspec-1.24.4 lib/awspec/helper/finder/sqs.rb
awspec-1.24.3 lib/awspec/helper/finder/sqs.rb
awspec-1.24.2 lib/awspec/helper/finder/sqs.rb
awspec-1.24.1 lib/awspec/helper/finder/sqs.rb
awspec-1.24.0 lib/awspec/helper/finder/sqs.rb
awspec-1.23.0 lib/awspec/helper/finder/sqs.rb
awspec-1.22.1 lib/awspec/helper/finder/sqs.rb
awspec-1.22.0 lib/awspec/helper/finder/sqs.rb
awspec-1.21.1 lib/awspec/helper/finder/sqs.rb
awspec-1.21.0 lib/awspec/helper/finder/sqs.rb
awspec-1.20.0 lib/awspec/helper/finder/sqs.rb
awspec-1.19.2 lib/awspec/helper/finder/sqs.rb
awspec-1.19.1 lib/awspec/helper/finder/sqs.rb
awspec-1.19.0 lib/awspec/helper/finder/sqs.rb
cthiesfork-awspec-1.2.4 lib/awspec/helper/finder/sqs.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/helper/finder/sqs.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/helper/finder/sqs.rb
awspec-1.18.6 lib/awspec/helper/finder/sqs.rb