Class: Stax::Aws::Lambda

Inherits:
Sdk
  • Object
show all
Defined in:
lib/stax/aws/lambda.rb

Constant Summary

Constants inherited from Sdk

Sdk::RETRY_LIMIT

Class Method Summary collapse

Methods inherited from Sdk

paginate

Class Method Details

.clientObject



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

.listObject



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