Class: Stax::Aws::Lambda
Constant Summary
Constants inherited from Sdk
Class Method Summary collapse
- .client ⇒ Object
- .code(name) ⇒ Object
- .configuration(name) ⇒ Object
- .invoke(opt) ⇒ Object
- .list ⇒ Object
- .update_code(opt) ⇒ Object
Methods inherited from Sdk
Class Method Details
.client ⇒ Object
9 10 11 |
# File 'lib/stax/aws/lambda.rb', line 9 def client @_client ||= ::Aws::Lambda::Client.new end |
.code(name) ⇒ Object
23 24 25 |
# File 'lib/stax/aws/lambda.rb', line 23 def code(name) client.get_function(function_name: name).code.location end |
.configuration(name) ⇒ Object
19 20 21 |
# File 'lib/stax/aws/lambda.rb', line 19 def configuration(name) client.get_function_configuration(function_name: name) end |
.invoke(opt) ⇒ Object
27 28 29 |
# File 'lib/stax/aws/lambda.rb', line 27 def invoke(opt) client.invoke(opt) end |
.list ⇒ Object
13 14 15 16 17 |
# File 'lib/stax/aws/lambda.rb', line 13 def list paginate(:functions) do |marker| client.list_functions(marker: marker) end end |
.update_code(opt) ⇒ Object
31 32 33 |
# File 'lib/stax/aws/lambda.rb', line 31 def update_code(opt) client.update_function_code(opt) end |