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.14.0 lib/awspec/type/lambda.rb
awspec-1.13.0 lib/awspec/type/lambda.rb
awspec-1.12.7 lib/awspec/type/lambda.rb
awspec-1.12.6 lib/awspec/type/lambda.rb
awspec-1.12.5 lib/awspec/type/lambda.rb
awspec-1.12.4 lib/awspec/type/lambda.rb
awspec-1.12.3 lib/awspec/type/lambda.rb
awspec-1.12.2 lib/awspec/type/lambda.rb
awspec-1.12.1 lib/awspec/type/lambda.rb
awspec-1.12.0 lib/awspec/type/lambda.rb
awspec-1.11.1 lib/awspec/type/lambda.rb
awspec-1.11.0 lib/awspec/type/lambda.rb
awspec-1.10.0 lib/awspec/type/lambda.rb
awspec-1.9.0 lib/awspec/type/lambda.rb
awspec-1.8.0 lib/awspec/type/lambda.rb
awspec-1.7.0 lib/awspec/type/lambda.rb
awspec-1.6.1 lib/awspec/type/lambda.rb
awspec-1.6.0 lib/awspec/type/lambda.rb
awspec-1.5.4 lib/awspec/type/lambda.rb
awspec-1.5.3 lib/awspec/type/lambda.rb