Class: Awspec::Type::EksNodeEC2

Inherits:
Object
  • Object
show all
Defined in:
lib/awspec/type/eks_nodegroup.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, state, subnet_id, sec_groups) ⇒ EksNodeEC2

Returns a new instance of EksNodeEC2.



9
10
11
12
13
14
# File 'lib/awspec/type/eks_nodegroup.rb', line 9

def initialize(id, state, subnet_id, sec_groups)
  @id = id
  @state = state
  @subnet_id = subnet_id
  @sec_groups = sec_groups
end

Instance Attribute Details

#sec_groupsObject (readonly)

Returns the value of attribute sec_groups.



7
8
9
# File 'lib/awspec/type/eks_nodegroup.rb', line 7

def sec_groups
  @sec_groups
end

#stateObject (readonly)

Returns the value of attribute state.



7
8
9
# File 'lib/awspec/type/eks_nodegroup.rb', line 7

def state
  @state
end

#subnet_idObject (readonly)

Returns the value of attribute subnet_id.



7
8
9
# File 'lib/awspec/type/eks_nodegroup.rb', line 7

def subnet_id
  @subnet_id
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/awspec/type/eks_nodegroup.rb', line 16

def to_s
  "ID: #{@id}, State: #{@state}, Subnet ID: #{@subnet_id}, Security Groups: #{@sec_groups}"
end