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.103.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.102.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.101.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.100.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.99.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.98.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.97.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.96.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.95.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.94.0 lib/aws-sdk-lambda/event_streams.rb
aws-sdk-lambda-1.93.0 lib/aws-sdk-lambda/event_streams.rb