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-0.87.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.86.0 lib/awspec/helper/finder/elasticsearch.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.85.3 lib/awspec/helper/finder/elasticsearch.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.85.2 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.85.1 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.85.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.84.1 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.84.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.83.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.82.3 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.82.2 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.82.1 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.82.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.81.1 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.81.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.80.1 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.80.0 lib/awspec/helper/finder/elasticsearch.rb
awspec-0.79.2 lib/awspec/helper/finder/elasticsearch.rb