Method: Jets::Commands::Call#lambda_client

Defined in:
lib/jets/commands/call.rb

#lambda_clientObject



170
171
172
173
174
175
176
177
178
179
180
# File 'lib/jets/commands/call.rb', line 170

def lambda_client
  opt = {}
  opt = opt.merge({retry_limit: @options[:retry_limit]}) if @options[:retry_limit].present?
  opt = opt.merge({http_read_timeout: @options[:read_timeout]}) if @options[:read_timeout].present?

  if opt.empty?
    aws_lambda
  else
    Aws::Lambda::Client.new(opt)
  end
end