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.15.1 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.15.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.14.1 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.14.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.13.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.12.7 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.12.6 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.12.5 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.12.4 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.12.3 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.12.2 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.12.1 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.12.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.11.1 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.11.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.10.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.9.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.8.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.7.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-1.6.1 lib/awspec/helper/finder/elasticsearch.rb