Sha256: 9e223e986e8f8aa61d288ac2b409a08cd23bfd2f361191466598c9b850f3d977

Contents?: true

Size: 534 Bytes

Versions: 13

Compression:

Stored size: 534 Bytes

Contents

# frozen_string_literal: true

module Awspec::Type
  class Elasticsearch < ResourceBase
    def resource_via_client
      @resource_via_client ||= find_elasticsearch_domain(@display_name)
    end

    def id
      @id ||= resource_via_client.arn if resource_via_client
    end

    def has_access_policies?(policy)
      resource_via_client.access_policies == policy.gsub(/\n/, '').gsub(/ /, '')
    end

    def created?
      resource_via_client.created
    end

    def deleted?
      resource_via_client.deleted
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
awspec-1.31.0 lib/awspec/type/elasticsearch.rb
awspec-1.30.0 lib/awspec/type/elasticsearch.rb
awspec-1.29.3 lib/awspec/type/elasticsearch.rb
awspec-1.29.2 lib/awspec/type/elasticsearch.rb
awspec-1.29.1 lib/awspec/type/elasticsearch.rb
awspec-1.29.0 lib/awspec/type/elasticsearch.rb
awspec-1.28.2 lib/awspec/type/elasticsearch.rb
awspec-1.28.1 lib/awspec/type/elasticsearch.rb
awspec-1.28.0 lib/awspec/type/elasticsearch.rb
awspec-1.27.1 lib/awspec/type/elasticsearch.rb
awspec-1.27.0 lib/awspec/type/elasticsearch.rb
awspec-1.26.0 lib/awspec/type/elasticsearch.rb
awspec-1.25.2 lib/awspec/type/elasticsearch.rb