Method: Jets::Stack::Main::Dsl::Lambda#python_function

Defined in:
lib/jets/stack/main/extensions/lambda.rb

#python_function(id, props = {}) ⇒ Object



45
46
47
48
49
50
# File 'lib/jets/stack/main/extensions/lambda.rb', line 45

def python_function(id, props={})
  meth = id.to_s.underscore
  props[:handler] ||= "#{meth}.lambda_handler" # default python convention
  props[:runtime] = "python3.6"
  function(id, props)
end