Sha256: fb43aa119d46090b598cc4a43175fe9b2a4d9e91a0be2485c0bcf696d647a17a

Contents?: true

Size: 514 Bytes

Versions: 14

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true

module Awspec::Type
  class Efs < ResourceBase
    def initialize(file_system_id)
      super
      @display_name = file_system_id
    end

    def resource_via_client
      @resource_via_client ||= find_efs(@display_name)
    end

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

    def has_tag?(tag_key, tag_value)
      tag = find_efs_tags(@display_name, tag_key)
      return nil if tag.value != tag_value

      tag
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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