Sha256: 8914adda412a917f9517a4f7493a1f322c2f2757cb019ffa6b3b5cdc0338378d

Contents?: true

Size: 527 Bytes

Versions: 43

Compression:

Stored size: 527 Bytes

Contents

module Awspec::Type
  class Lambda < ResourceBase
    def resource_via_client
      @resource_via_client ||= find_lambda(@display_name)
    end

    def id
      @id ||= resource_via_client.function_arn if resource_via_client
    end

    def timeout
      check_existence
      resource_via_client.timeout
    end

    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
  end
end

Version data entries

43 entries across 43 versions & 3 rubygems

Version Path
awspec-1.15.1 lib/awspec/type/lambda.rb
awspec-1.15.0 lib/awspec/type/lambda.rb
awspec-1.14.1 lib/awspec/type/lambda.rb