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.125.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.124.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.123.2 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.123.1 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.123.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.122.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.121.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.120.1 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.120.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.119.2 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.119.1 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.119.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.118.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.117.2 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.117.1 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.117.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.116.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.115.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.114.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.113.2 lib/aws-sdk-s3/event_streams.rb