Class: CfnGuardian::Models::Composite
- Inherits:
-
Object
- Object
- CfnGuardian::Models::Composite
- Defined in:
- lib/cfnguardian/models/composite.rb
Instance Attribute Summary collapse
-
#alarm_action ⇒ Object
Returns the value of attribute alarm_action.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#rule ⇒ Object
Returns the value of attribute rule.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, params = {}) ⇒ Composite
constructor
A new instance of Composite.
Constructor Details
#initialize(name, params = {}) ⇒ Composite
Returns a new instance of Composite.
11 12 13 14 15 16 17 |
# File 'lib/cfnguardian/models/composite.rb', line 11 def initialize(name,params = {}) @type = 'Composite' @name = name @description = params.fetch('Description', '') @rule = params.fetch('Rule', 'FALSE') @alarm_action = params.fetch('Action', nil) end |
Instance Attribute Details
#alarm_action ⇒ Object
Returns the value of attribute alarm_action.
6 7 8 |
# File 'lib/cfnguardian/models/composite.rb', line 6 def alarm_action @alarm_action end |
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/cfnguardian/models/composite.rb', line 6 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/cfnguardian/models/composite.rb', line 6 def name @name end |
#rule ⇒ Object
Returns the value of attribute rule.
6 7 8 |
# File 'lib/cfnguardian/models/composite.rb', line 6 def rule @rule end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/cfnguardian/models/composite.rb', line 5 def type @type end |