def update_function_configuration(params={})
response = self.get_function_configuration(params)
function_arn = response.body['FunctionArn']
description = params.delete('Description')
handler = params.delete('Handler')
memory_size = params.delete('MemorySize')
role = params.delete('Role')
timeout = params.delete('Timeout')
update = {}
update.merge!('Description' => description) if description
update.merge!('Handler' => handler) if handler
update.merge!('MemorySize' => memory_size) if memory_size
update.merge!('Role' => role) if role
update.merge!('Timeout' => timeout) if timeout
self.data[:functions][function_arn].merge!(update)
response = Excon::Response.new
response.status = 200
response.body = self.data[:functions][function_arn]
response
end