Class: Cartography::Cluster::Site::ServerGroup
- Inherits:
-
Object
- Object
- Cartography::Cluster::Site::ServerGroup
- Defined in:
- lib/cartography/cluster.rb
Defined Under Namespace
Classes: LaunchTemplate
Instance Attribute Summary collapse
-
#actual_size ⇒ Object
readonly
Returns the value of attribute actual_size.
-
#arn ⇒ Object
readonly
Returns the value of attribute arn.
-
#desired_size ⇒ Object
readonly
Returns the value of attribute desired_size.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
-
#launch_templates ⇒ Object
readonly
Returns the value of attribute launch_templates.
-
#max_size ⇒ Object
readonly
Returns the value of attribute max_size.
-
#min_size ⇒ Object
readonly
Returns the value of attribute min_size.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ServerGroup
constructor
A new instance of ServerGroup.
Constructor Details
#initialize(params = {}) ⇒ ServerGroup
86 87 88 89 90 91 92 93 94 95 |
# File 'lib/cartography/cluster.rb', line 86 def initialize(params = {}) @name = params["Name"] @full_name = params["FullName"] @arn = params["Arn"] @min_size = params["MinSize"] @max_size = params["MaxSize"] @launch_templates = params["LaunchTemplates"].map { |p| LaunchTemplate.new(p) } @desired_size = params["DesiredSize"] @actual_size = params["ActualSize"] end |
Instance Attribute Details
#actual_size ⇒ Object (readonly)
Returns the value of attribute actual_size.
77 78 79 |
# File 'lib/cartography/cluster.rb', line 77 def actual_size @actual_size end |
#arn ⇒ Object (readonly)
Returns the value of attribute arn.
77 78 79 |
# File 'lib/cartography/cluster.rb', line 77 def arn @arn end |
#desired_size ⇒ Object (readonly)
Returns the value of attribute desired_size.
77 78 79 |
# File 'lib/cartography/cluster.rb', line 77 def desired_size @desired_size end |
#full_name ⇒ Object (readonly)
Returns the value of attribute full_name.
77 78 79 |
# File 'lib/cartography/cluster.rb', line 77 def full_name @full_name end |
#launch_templates ⇒ Object (readonly)
Returns the value of attribute launch_templates.
77 78 79 |
# File 'lib/cartography/cluster.rb', line 77 def launch_templates @launch_templates end |
#max_size ⇒ Object (readonly)
Returns the value of attribute max_size.
77 78 79 |
# File 'lib/cartography/cluster.rb', line 77 def max_size @max_size end |
#min_size ⇒ Object (readonly)
Returns the value of attribute min_size.
77 78 79 |
# File 'lib/cartography/cluster.rb', line 77 def min_size @min_size end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
77 78 79 |
# File 'lib/cartography/cluster.rb', line 77 def name @name end |