Method: Awspec::Type::Lambda#has_event_source?

Defined in:
lib/awspec/type/lambda.rb

#has_event_source?(event_source_arn) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
16
17
18
# File 'lib/awspec/type/lambda.rb', line 13

def has_event_source?(event_source_arn)
  sources = select_event_source_by_function_arn(@id)
  sources.find do |source|
    source.event_source_arn == event_source_arn
  end
end