Class: Awspec::Type::EksNodeEC2
- Inherits:
-
Object
- Object
- Awspec::Type::EksNodeEC2
- Defined in:
- lib/awspec/type/eks_nodegroup.rb
Instance Attribute Summary collapse
-
#sec_groups ⇒ Object
readonly
Returns the value of attribute sec_groups.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#subnet_id ⇒ Object
readonly
Returns the value of attribute subnet_id.
Instance Method Summary collapse
-
#initialize(id, state, subnet_id, sec_groups) ⇒ EksNodeEC2
constructor
A new instance of EksNodeEC2.
- #to_s ⇒ Object
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_groups ⇒ Object (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 |
#state ⇒ Object (readonly)
Returns the value of attribute state.
7 8 9 |
# File 'lib/awspec/type/eks_nodegroup.rb', line 7 def state @state end |
#subnet_id ⇒ Object (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_s ⇒ Object
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 |