class CfnGuardian::Models::TLSEvent
Public Class Methods
new(resource)
click to toggle source
Calls superclass method
CfnGuardian::Models::BaseEvent::new
# File lib/cfnguardian/models/event.rb, line 293 def initialize(resource) super(resource) @group = 'TLS' @name = 'TLSEvent' @target = 'TLSCheckFunction' @cron = resource.fetch('Schedule', "0/5 * * * ? *") @host = resource['Id'] @port = resource.fetch('Port', 443) @check_max = resource.fetch('MaxSupported', nil) @versions = resource.fetch('Versions', ['SSLv2','SSLv3','TLSv1','TLSv1.1','TLSv1.2']) end
Public Instance Methods
payload()
click to toggle source
# File lib/cfnguardian/models/event.rb, line 305 def payload payload = { 'HOSTNAME' => @host, 'PORT' => @port } payload['CHECK_MAX_SUPPORTED'] = @check_max.nil? payload['PROTOCOLS'] = @versions unless @versions.nil? return payload.to_json end