Class: CfnGuardian::Models::Composite

Inherits:
Object
  • Object
show all
Defined in:
lib/cfnguardian/models/composite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_actionObject

Returns the value of attribute alarm_action.



6
7
8
# File 'lib/cfnguardian/models/composite.rb', line 6

def alarm_action
  @alarm_action
end

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/cfnguardian/models/composite.rb', line 6

def description
  @description
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/cfnguardian/models/composite.rb', line 6

def name
  @name
end

#ruleObject

Returns the value of attribute rule.



6
7
8
# File 'lib/cfnguardian/models/composite.rb', line 6

def rule
  @rule
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/cfnguardian/models/composite.rb', line 5

def type
  @type
end