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.
187 188 189 190 191 192 193 194 195 |
# File 'lib/cfnguardian/models/event.rb', line 187 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
197 198 199 200 201 202 |
# File 'lib/cfnguardian/models/event.rb', line 197 def payload return { 'Url' => @url, 'Region' => @region }.to_json end |