Class: CfnGuardian::Models::SslEvent

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

Direct Known Subclasses

InternalSslEvent

Instance Attribute Summary

Attributes inherited from BaseEvent

#cron, #enabled, #environment, #group, #hash, #name, #resource, #ssm_parameters, #target, #type

Instance Method Summary collapse

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

#payloadObject



197
198
199
200
201
202
# File 'lib/cfnguardian/models/event.rb', line 197

def payload
  return {
    'Url' => @url,
    'Region' => @region
  }.to_json
end