Sha256: 44b0ee11999c626276cd22dcd7e4359a11b8f916cb1ad4bf594304d03ecb3476

Contents?: true

Size: 536 Bytes

Versions: 108

Compression:

Stored size: 536 Bytes

Contents

module Awspec::Helper
  module Finder
    module Elasticsearch
      def find_elasticsearch_domain(id)
        res = elasticsearch_client.describe_elasticsearch_domain(domain_name: id)
        res.domain_status
      rescue
        nil
      end

      def select_all_elasticsearch_domains
        domain_names = elasticsearch_client.list_domain_names.domain_names
        domain_names.map do |domain|
          elasticsearch_client.describe_elasticsearch_domain(domain_name: domain.domain_name)
        end
      end
    end
  end
end

Version data entries

108 entries across 108 versions & 4 rubygems

Version Path
awspec-1.6.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.5.4 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.5.3 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.5.2 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.5.1 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.5.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.4.3 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.4.2 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.4.1 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.4.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.3.1 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.3.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.2.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.1.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.0.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.0.0.rc lib/awspec/helper/finder/elasticsearch.rb
awspec-0.88.2 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.88.1 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.88.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.87.1 lib/awspec/helper/finder/elasticsearch.rb