Sha256: eec692b716fbe959de2f34fa158e483d38251ac364a5d0ebf6f311261dfac576

Contents?: true

Size: 472 Bytes

Versions: 14

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true

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

14 entries across 14 versions & 1 rubygems

Version Path
awspec-1.32.0 lib/awspec/helper/finder/sqs.rb
awspec-1.31.0 lib/awspec/helper/finder/sqs.rb
awspec-1.30.0 lib/awspec/helper/finder/sqs.rb
awspec-1.29.3 lib/awspec/helper/finder/sqs.rb
awspec-1.29.2 lib/awspec/helper/finder/sqs.rb
awspec-1.29.1 lib/awspec/helper/finder/sqs.rb
awspec-1.29.0 lib/awspec/helper/finder/sqs.rb
awspec-1.28.2 lib/awspec/helper/finder/sqs.rb
awspec-1.28.1 lib/awspec/helper/finder/sqs.rb
awspec-1.28.0 lib/awspec/helper/finder/sqs.rb
awspec-1.27.1 lib/awspec/helper/finder/sqs.rb
awspec-1.27.0 lib/awspec/helper/finder/sqs.rb
awspec-1.26.0 lib/awspec/helper/finder/sqs.rb
awspec-1.25.2 lib/awspec/helper/finder/sqs.rb