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-0.77.1 lib/awspec/type/lambda.rb
awspec-0.77.0 lib/awspec/type/lambda.rb
awspec-0.76.1 lib/awspec/type/lambda.rb
awspec-0.76.0 lib/awspec/type/lambda.rb
awspec-0.75.2 lib/awspec/type/lambda.rb
awspec-0.75.1 lib/awspec/type/lambda.rb
awspec-0.75.0 lib/awspec/type/lambda.rb
awspec-0.74.1 lib/awspec/type/lambda.rb
awspec-0.74.0 lib/awspec/type/lambda.rb
awspec-0.73.2 lib/awspec/type/lambda.rb
awspec-0.73.1 lib/awspec/type/lambda.rb
awspec-0.73.0 lib/awspec/type/lambda.rb
awspec-0.72.0 lib/awspec/type/lambda.rb
awspec-0.71.0 lib/awspec/type/lambda.rb
awspec-0.70.0 lib/awspec/type/lambda.rb