Sha256: 7dd7f1c51a2ae57fe02f83e411ec900220f3b73211efc932e2d7200cb202f2b7

Contents?: true

Size: 473 Bytes

Versions: 34

Compression:

Stored size: 473 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

34 entries across 34 versions & 1 rubygems

Version Path
awspec-0.38.0 lib/awspec/type/lambda.rb
awspec-0.37.8 lib/awspec/type/lambda.rb
awspec-0.37.7 lib/awspec/type/lambda.rb
awspec-0.37.6 lib/awspec/type/lambda.rb
awspec-0.37.5 lib/awspec/type/lambda.rb
awspec-0.37.4 lib/awspec/type/lambda.rb
awspec-0.37.3 lib/awspec/type/lambda.rb
awspec-0.37.2 lib/awspec/type/lambda.rb
awspec-0.37.1 lib/awspec/type/lambda.rb
awspec-0.37.0 lib/awspec/type/lambda.rb
awspec-0.36.1 lib/awspec/type/lambda.rb
awspec-0.36.0 lib/awspec/type/lambda.rb
awspec-0.35.0 lib/awspec/type/lambda.rb
awspec-0.34.0 lib/awspec/type/lambda.rb