Class: CfnGuardian::Models::SslEvent
- Defined in:
- lib/cfnguardian/models/event.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from BaseEvent
#cron, #enabled, #environment, #group, #hash, #name, #resource, #ssm_parameters, #target, #type
Instance Method Summary collapse
-
#initialize(resource) ⇒ SslEvent
constructor
A new instance of SslEvent.
- #payload ⇒ Object
Constructor Details
#initialize(resource) ⇒ SslEvent
Returns a new instance of SslEvent.
173 174 175 176 177 178 179 180 181 |
# File 'lib/cfnguardian/models/event.rb', line 173 def initialize(resource) super(resource) @group = 'Ssl' @name = 'SslEvent' @target = 'SslCheckFunction' @cron = resource.fetch('Schedule', "0 12 * * ? *") @url = resource['Id'] @region = resource.fetch('Region',"${AWS::Region}") end |
Instance Method Details
#payload ⇒ Object
183 184 185 186 187 188 |
# File 'lib/cfnguardian/models/event.rb', line 183 def payload return { 'Url' => @url, 'Region' => @region }.to_json end |