Class: CfnGuardian::Models::DomainExpiryEvent
- Defined in:
- lib/cfnguardian/models/event.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#region ⇒ Object
Returns the value of attribute region.
Attributes inherited from BaseEvent
#cron, #enabled, #environment, #group, #hash, #name, #resource, #ssm_parameters, #target, #type
Instance Method Summary collapse
-
#initialize(resource) ⇒ DomainExpiryEvent
constructor
A new instance of DomainExpiryEvent.
- #payload ⇒ Object
Constructor Details
#initialize(resource) ⇒ DomainExpiryEvent
Returns a new instance of DomainExpiryEvent.
206 207 208 209 210 211 212 213 214 |
# File 'lib/cfnguardian/models/event.rb', line 206 def initialize(resource) super(resource) @group = 'DomainExpiry' @name = 'DomainExpiryEvent' @target = 'DomainExpiryCheckFunction' @cron = resource.fetch('Schedule', "0 12 * * ? *") @domain = resource['Id'] @region = resource.fetch('Region',"${AWS::Region}") end |
Instance Attribute Details
#domain ⇒ Object
Returns the value of attribute domain.
203 204 205 |
# File 'lib/cfnguardian/models/event.rb', line 203 def domain @domain end |
#region ⇒ Object
Returns the value of attribute region.
203 204 205 |
# File 'lib/cfnguardian/models/event.rb', line 203 def region @region end |
Instance Method Details
#payload ⇒ Object
216 217 218 |
# File 'lib/cfnguardian/models/event.rb', line 216 def payload return {'Domain' => @domain}.to_json end |