Module: Jets::Job::Dsl::LogEvent

Defined in:
lib/jets/job/dsl/log_event.rb

Instance Method Summary collapse

Instance Method Details

#declare_log_subscription_filter(props = {}) ⇒ Object



8
9
10
11
12
13
# File 'lib/jets/job/dsl/log_event.rb', line 8

def declare_log_subscription_filter(props={})
  r = Jets::Resource::Logs::SubscriptionFilter.new(props)
  with_fresh_properties do
    resource(r.definition) # add associated resource immediately
  end
end

#log_event(log_group_name, props = {}) ⇒ Object



3
4
5
6
# File 'lib/jets/job/dsl/log_event.rb', line 3

def log_event(log_group_name, props={})
  props.merge!(log_group_name: log_group_name)
  declare_log_subscription_filter(props)
end