Sha256: d07a2f4114f833b30015e704358c6586a5711a53df334f03e70a5f1754988615

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

module Awspec::Type
  class Elasticsearch < Base
    def initialize(id)
      super
      @resource_via_client = find_elasticsearch_domain(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

2 entries across 2 versions & 1 rubygems

Version Path
awspec-0.55.0 lib/awspec/type/elasticsearch.rb
awspec-0.54.0 lib/awspec/type/elasticsearch.rb