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.



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

#payloadObject



183
184
185
186
187
188
# File 'lib/cfnguardian/models/event.rb', line 183

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