Module: Jets::Stack::Dsl::Main::Lambda
- Defined in:
- lib/jets/stack/dsl/main/lambda.rb
Instance Method Summary collapse
-
#function(id, props = {}) ⇒ Object
(also: #ruby_function, #lambda_function)
Example:.
- #node_function(id, props = {}) ⇒ Object
-
#permission(id, props = {}) ⇒ Object
Usage:.
- #python_function(id, props = {}) ⇒ Object
Instance Method Details
#function(id, props = {}) ⇒ Object Also known as: ruby_function, lambda_function
Example:
function(:hello,
handler: handler("hello.lambda_hander"),
runtime: "python3.6"
)
Defaults to ruby. So:
function(:hello)
is the same as:
function(:hello,
handler: handler("hello.hande"),
runtime: :ruby
)
21 22 |
# File 'lib/jets/stack/dsl/main/lambda.rb', line 21 def function(id, props = {}) end |
#node_function(id, props = {}) ⇒ Object
29 30 |
# File 'lib/jets/stack/dsl/main/lambda.rb', line 29 def node_function(id, props = {}) end |
#permission(id, props = {}) ⇒ Object
Usage:
(:my_permission, principal: "events.amazonaws.com")
36 37 |
# File 'lib/jets/stack/dsl/main/lambda.rb', line 36 def (id, props = {}) end |
#python_function(id, props = {}) ⇒ Object
26 27 |
# File 'lib/jets/stack/dsl/main/lambda.rb', line 26 def python_function(id, props = {}) end |