Sha256: 83d63dc914bf38503df030b4dc569e52dfce6c9279aff59f2391d43d0aa85632

Contents?: true

Size: 432 Bytes

Versions: 15

Compression:

Stored size: 432 Bytes

Contents

module Jets::Job::Dsl
  module LogEvent
    def log_event(log_group_name, props={})
      props.merge!(LogGroupName: log_group_name)
      declare_log_subscription_filter(props)
    end

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jets-5.0.13 lib/jets/job/dsl/log_event.rb
jets-5.0.12 lib/jets/job/dsl/log_event.rb
jets-5.0.11 lib/jets/job/dsl/log_event.rb
jets-5.0.10 lib/jets/job/dsl/log_event.rb
jets-5.0.9 lib/jets/job/dsl/log_event.rb
jets-5.0.8 lib/jets/job/dsl/log_event.rb
jets-5.0.7 lib/jets/job/dsl/log_event.rb
jets-5.0.6 lib/jets/job/dsl/log_event.rb
jets-5.0.5 lib/jets/job/dsl/log_event.rb
jets-5.0.4 lib/jets/job/dsl/log_event.rb
jets-5.0.3 lib/jets/job/dsl/log_event.rb
jets-5.0.2 lib/jets/job/dsl/log_event.rb
jets-5.0.1 lib/jets/job/dsl/log_event.rb
jets-5.0.0 lib/jets/job/dsl/log_event.rb
jets-5.0.0.beta1 lib/jets/job/dsl/log_event.rb