Sha256: 8914adda412a917f9517a4f7493a1f322c2f2757cb019ffa6b3b5cdc0338378d

Contents?: true

Size: 527 Bytes

Versions: 43

Compression:

Stored size: 527 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
      check_existence
      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

43 entries across 43 versions & 3 rubygems

Version Path
awspec-1.25.1 lib/awspec/type/lambda.rb
awspec-1.25.0 lib/awspec/type/lambda.rb
awspec-1.24.4 lib/awspec/type/lambda.rb
awspec-1.24.3 lib/awspec/type/lambda.rb
awspec-1.24.2 lib/awspec/type/lambda.rb
awspec-1.24.1 lib/awspec/type/lambda.rb
awspec-1.24.0 lib/awspec/type/lambda.rb
awspec-1.23.0 lib/awspec/type/lambda.rb
awspec-1.22.1 lib/awspec/type/lambda.rb
awspec-1.22.0 lib/awspec/type/lambda.rb
awspec-1.21.1 lib/awspec/type/lambda.rb
awspec-1.21.0 lib/awspec/type/lambda.rb
awspec-1.20.0 lib/awspec/type/lambda.rb
awspec-1.19.2 lib/awspec/type/lambda.rb
awspec-1.19.1 lib/awspec/type/lambda.rb
awspec-1.19.0 lib/awspec/type/lambda.rb
cthiesfork-awspec-1.2.4 lib/awspec/type/lambda.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/type/lambda.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/type/lambda.rb
awspec-1.18.6 lib/awspec/type/lambda.rb