class Stax::Aws::Lambda

Public Class Methods

client() click to toggle source
# File lib/stax/aws/lambda.rb, line 9
def client
  @_client ||= ::Aws::Lambda::Client.new
end
code(name) click to toggle source
# File lib/stax/aws/lambda.rb, line 23
def code(name)
  client.get_function(function_name: name).code.location
end
configuration(name) click to toggle source
# File lib/stax/aws/lambda.rb, line 19
def configuration(name)
  client.get_function_configuration(function_name: name)
end
invoke(opt) click to toggle source
# File lib/stax/aws/lambda.rb, line 27
def invoke(opt)
  client.invoke(opt)
end
list() click to toggle source
# File lib/stax/aws/lambda.rb, line 13
def list
  paginate(:functions) do |marker|
    client.list_functions(marker: marker)
  end
end
update_code(opt) click to toggle source
# File lib/stax/aws/lambda.rb, line 31
def update_code(opt)
  client.update_function_code(opt)
end