Module: Jets::Job::Dsl::EventSourceMapping

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

Instance Method Summary collapse

Instance Method Details

#event_source_mapping(props = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/jets/job/dsl/event_source_mapping.rb', line 4

def event_source_mapping(props={})
  r = Jets::Resource::Lambda::EventSourceMapping.new(props)
  with_fresh_properties do
    resource(r.definition) # add associated resource immediately
  end
end