AWS SDK for Ruby
Developer Guide

Displaying Information about All Lambda Functions

The following example displays the name, ARN, and role of all of your Lambda functions in the us-west-2 region.

require 'aws-sdk-lambda' # v2: require 'aws-sdk' client = Aws::Lambda::Client.new(region: 'us-west-2') client.list_functions.functions.each do |function| puts 'Name: ' + function.function_name puts 'ARN: ' + function.function_arn puts 'Role: ' + function.role puts