class CfnGuardian::Models::SslEvent

Public Class Methods

new(resource) click to toggle source
Calls superclass method CfnGuardian::Models::BaseEvent::new
# File lib/cfnguardian/models/event.rb, line 139
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

Public Instance Methods

payload() click to toggle source
# File lib/cfnguardian/models/event.rb, line 149
def payload
  return {
    'Url' => @url,
    'Region' => @region
  }.to_json
end