Class: CfnGuardian::Resource::DomainExpiry
- Defined in:
- lib/cfnguardian/resources/domain_expiry.rb
Instance Method Summary collapse
Methods inherited from Base
#default_event_subscriptions, #default_metric_filters, #get_alarms, #get_checks, #get_cost, #get_event_subscriptions, #get_events, #get_metric_filters, #initialize, #resource_exists?
Methods included from Logging
colors, included, logger, #logger, logger=
Constructor Details
This class inherits a constructor from CfnGuardian::Resource::Base
Instance Method Details
#default_alarms ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/cfnguardian/resources/domain_expiry.rb', line 6 def default_alarms alarm = CfnGuardian::Models::DomainExpiryAlarm.new(@resource) alarm.name = 'ExpiresInDaysCritical' alarm.metric_name = 'ExpiresInDays' alarm.threshold = 7 @alarms.push(alarm) alarm = CfnGuardian::Models::DomainExpiryAlarm.new(@resource) alarm.name = 'ExpiresInDaysWarning' alarm.metric_name = 'ExpiresInDays' alarm.threshold = 30 alarm.alarm_action = 'Warning' @alarms.push(alarm) end |
#default_checks ⇒ Object
25 26 27 |
# File 'lib/cfnguardian/resources/domain_expiry.rb', line 25 def default_checks() @checks.push(CfnGuardian::Models::DomainExpiryCheck.new(@resource)) end |
#default_events ⇒ Object
21 22 23 |
# File 'lib/cfnguardian/resources/domain_expiry.rb', line 21 def default_events() @events.push(CfnGuardian::Models::DomainExpiryEvent.new(@resource)) end |