Method: Awspec::Helper::Finder::Lambda#select_event_source_by_function_arn

Defined in:
lib/awspec/helper/finder/lambda.rb

#select_event_source_by_function_arn(function_arn) ⇒ Object



18
19
20
21
22
23
# File 'lib/awspec/helper/finder/lambda.rb', line 18

def select_event_source_by_function_arn(function_arn)
  res = lambda_client.list_event_source_mappings({
                                                   function_name: function_arn
                                                 })
  res.event_source_mappings
end