class Client

Attributes

client[RW]

Public Class Methods

new(aws_region) click to toggle source
# File lib/client.rb, line 4
def initialize(aws_region)
  @client = Aws::Lambda::Client.new(region: aws_region)
end

Public Instance Methods

update_function_code(function_name, s3_bucket, s3_key) click to toggle source
# File lib/client.rb, line 8
def update_function_code(function_name, s3_bucket, s3_key)
  response = client.update_function_code({function_name: function_name, s3_bucket: s3_bucket, s3_key: s3_key})
  puts "Updated: #{response.function_name}"
end