Sha256: 85ac7cfaf933e40e7ac6990f6ed6e1d4c7b42e2ff547a417f2007f53c4c478a3

Contents?: true

Size: 534 Bytes

Versions: 13

Compression:

Stored size: 534 Bytes

Contents

module Awspec::Type
  class Msk < ResourceBase
    def initialize(name)
      super
      @desplay_name = name
    end

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

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

    STATES = %w(
      active creating updating
      deleting failed
    )

    STATES.each do |state|
      define_method state + '?' do
        resource_via_client.state == state.upcase
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
awspec-1.25.1 lib/awspec/type/msk.rb
awspec-1.25.0 lib/awspec/type/msk.rb
awspec-1.24.4 lib/awspec/type/msk.rb
awspec-1.24.3 lib/awspec/type/msk.rb
awspec-1.24.2 lib/awspec/type/msk.rb
awspec-1.24.1 lib/awspec/type/msk.rb
awspec-1.24.0 lib/awspec/type/msk.rb
awspec-1.23.0 lib/awspec/type/msk.rb
awspec-1.22.1 lib/awspec/type/msk.rb
awspec-1.22.0 lib/awspec/type/msk.rb
awspec-1.21.1 lib/awspec/type/msk.rb
awspec-1.21.0 lib/awspec/type/msk.rb
awspec-1.20.0 lib/awspec/type/msk.rb