Sha256: 7a8c9f56df8ec21f890fa3085bdd16c6244c2d2922b41500b5f61f02fef64a04

Contents?: true

Size: 505 Bytes

Versions: 75

Compression:

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

75 entries across 75 versions & 2 rubygems

Version Path
awspec-1.5.2 lib/awspec/type/lambda.rb
awspec-1.5.1 lib/awspec/type/lambda.rb
awspec-1.5.0 lib/awspec/type/lambda.rb
awspec-1.4.3 lib/awspec/type/lambda.rb
awspec-1.4.2 lib/awspec/type/lambda.rb
awspec-1.4.1 lib/awspec/type/lambda.rb
awspec-1.4.0 lib/awspec/type/lambda.rb
awspec-1.3.1 lib/awspec/type/lambda.rb
awspec-1.3.0 lib/awspec/type/lambda.rb
awspec-1.2.0 lib/awspec/type/lambda.rb
awspec-1.1.0 lib/awspec/type/lambda.rb
awspec-1.0.0 lib/awspec/type/lambda.rb
awspec-1.0.0.rc lib/awspec/type/lambda.rb
awspec-0.88.2 lib/awspec/type/lambda.rb
awspec-0.88.1 lib/awspec/type/lambda.rb
awspec-0.88.0 lib/awspec/type/lambda.rb
awspec-0.87.1 lib/awspec/type/lambda.rb
awspec-0.87.0 lib/awspec/type/lambda.rb
awspec-0.86.0 lib/awspec/type/lambda.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/type/lambda.rb