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



24
25
26
27
28
29
# File 'lib/awspec/helper/finder/lambda.rb', line 24

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