Sha256: 519db0384ec0057a4e13f79c699ffa6b42767692e7bdb2b66ecb1ed70d4b40d6

Contents?: true

Size: 1.62 KB

Versions: 113

Compression:

Stored size: 1.62 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::S3
  module EventStreams
    class SelectObjectContentEventStream

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

      def on_records_event(&block)
        @event_emitter.on(:records, block) if block_given?
      end

      def on_stats_event(&block)
        @event_emitter.on(:stats, block) if block_given?
      end

      def on_progress_event(&block)
        @event_emitter.on(:progress, block) if block_given?
      end

      def on_cont_event(&block)
        @event_emitter.on(:cont, block) if block_given?
      end

      def on_end_event(&block)
        @event_emitter.on(:end, 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_records_event(&block)
        on_stats_event(&block)
        on_progress_event(&block)
        on_cont_event(&block)
        on_end_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

113 entries across 113 versions & 1 rubygems

Version Path
aws-sdk-s3-1.178.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.177.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.176.1 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.176.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.175.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.174.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.173.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.172.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.171.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.170.1 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.170.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.169.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.168.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.167.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.166.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.165.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.164.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.163.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.162.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.161.0 lib/aws-sdk-s3/event_streams.rb