class Awspec::Type::Emr

Constants

READY_STATES
STARTING_STATES
STATES

Attributes

id[R]

Public Class Methods

new(id) click to toggle source
Calls superclass method
# File lib/awspec/type/emr.rb, line 5
def initialize(id)
  super
  @id = id
end

Public Instance Methods

applications() click to toggle source
# File lib/awspec/type/emr.rb, line 24
def applications
  resource_via_client.applications.map { |a| { name: a.name, version: a.version } }
end
healthy?()
Alias for: ok?
ok?() click to toggle source
# File lib/awspec/type/emr.rb, line 32
def ok?
  READY_STATES.include?(resource_via_client.status.state)
end
Also aliased as: healthy?, ready?
ready?()
Alias for: ok?
resource_via_client() click to toggle source
# File lib/awspec/type/emr.rb, line 10
def resource_via_client
  @resource_via_client ||= find_emr_cluster(@id)
end
tags() click to toggle source
# File lib/awspec/type/emr.rb, line 28
def tags
  resource_via_client.tags.map { |t| { t.key.to_sym => t.value } }
end