class CfnGuardian::Models::ContainerInstanceEvent
Public Class Methods
new(resource)
click to toggle source
Calls superclass method
CfnGuardian::Models::BaseEvent::new
# File lib/cfnguardian/models/event.rb, line 226 def initialize(resource) super(resource) @group = 'ContainerInstance' @name = 'ContainerInstanceEvent' @target = 'ContainerInstanceCheckFunction' @cron = resource.fetch('Schedule', "0/5 * * * ? *") @cluster = resource['Id'] end
Public Instance Methods
payload()
click to toggle source
# File lib/cfnguardian/models/event.rb, line 235 def payload return {'CLUSTER' => @cluster}.to_json end