Sha256: 6a7ee762fd87ddc6b7bda75e812f01e62f22861db4b3740fe7012ebbd2b97633

Contents?: true

Size: 1.29 KB

Versions: 51

Compression:

Stored size: 1.29 KB

Contents

# frozen_string_literal: true

# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE

module Aws::Lambda
  module EventStreams
    class InvokeWithResponseStreamResponseEvent

      def initialize
        @event_emitter = Aws::EventEmitter.new
      end

      def on_payload_chunk_event(&block)
        @event_emitter.on(:payload_chunk, block) if block_given?
      end

      def on_invoke_complete_event(&block)
        @event_emitter.on(:invoke_complete, block) if block_given?
      end

      def on_error_event(&block)
        @event_emitter.on(:error, block) if block_given?
      end

      def on_initial_response_event(&block)
        @event_emitter.on(:initial_response, block) if block_given?
      end

      def on_unknown_event(&block)
        @event_emitter.on(:unknown_event, block) if block_given?
      end

      def on_event(&block)
        on_payload_chunk_event(&block)
        on_invoke_complete_event(&block)
        on_error_event(&block)
        on_initial_response_event(&block)
        on_unknown_event(&block)
      end

      # @api private
      # @return Aws::EventEmitter
      attr_reader :event_emitter

    end

  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
aws-sdk-lambda-1.144.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.143.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.142.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.141.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.140.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.139.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.138.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.137.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.136.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.135.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.134.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.133.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.132.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.131.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.130.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.129.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.128.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.127.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.126.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.125.0 lib/aws-sdk-lambda/event_streams.rb