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
ok?()
click to toggle source
# File lib/awspec/type/emr.rb, line 32 def ok? READY_STATES.include?(resource_via_client.status.state) end
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