Sha256: c0b5f0aa688d021edc64b13a33be5838dcfb4982fed2ae6be787ca4018dc3efd

Contents?: true

Size: 477 Bytes

Versions: 13

Compression:

Stored size: 477 Bytes

Contents

module Awspec::Type
  class Lambda < Base
    def initialize(id)
      super
      @resource_via_client = find_lambda(id)
      @id = @resource_via_client[:function_arn] if @resource_via_client
    end

    def timeout
      @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

13 entries across 13 versions & 1 rubygems

Version Path
awspec-0.33.0 lib/awspec/type/lambda.rb
awspec-0.32.0 lib/awspec/type/lambda.rb
awspec-0.31.0 lib/awspec/type/lambda.rb
awspec-0.30.0 lib/awspec/type/lambda.rb
awspec-0.29.0 lib/awspec/type/lambda.rb
awspec-0.28.1 lib/awspec/type/lambda.rb
awspec-0.28.0 lib/awspec/type/lambda.rb
awspec-0.27.2 lib/awspec/type/lambda.rb
awspec-0.27.1 lib/awspec/type/lambda.rb
awspec-0.27.0 lib/awspec/type/lambda.rb
awspec-0.26.2 lib/awspec/type/lambda.rb
awspec-0.26.1 lib/awspec/type/lambda.rb
awspec-0.26.0 lib/awspec/type/lambda.rb