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