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.85.3 lib/awspec/type/lambda.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/type/lambda.rb
awspec-0.85.2 lib/awspec/type/lambda.rb
awspec-0.85.1 lib/awspec/type/lambda.rb
awspec-0.85.0 lib/awspec/type/lambda.rb
awspec-0.84.1 lib/awspec/type/lambda.rb
awspec-0.84.0 lib/awspec/type/lambda.rb
awspec-0.83.0 lib/awspec/type/lambda.rb
awspec-0.82.3 lib/awspec/type/lambda.rb
awspec-0.82.2 lib/awspec/type/lambda.rb
awspec-0.82.1 lib/awspec/type/lambda.rb
awspec-0.82.0 lib/awspec/type/lambda.rb
awspec-0.81.1 lib/awspec/type/lambda.rb
awspec-0.81.0 lib/awspec/type/lambda.rb
awspec-0.80.1 lib/awspec/type/lambda.rb
awspec-0.80.0 lib/awspec/type/lambda.rb
awspec-0.79.2 lib/awspec/type/lambda.rb
awspec-0.79.1 lib/awspec/type/lambda.rb
awspec-0.79.0 lib/awspec/type/lambda.rb
awspec-0.78.1 lib/awspec/type/lambda.rb