Sha256: 6b18a14914bebab34a8dd8e53abd818876e4108df608bb58493b5ee49b24c01c

Contents?: true

Size: 530 Bytes

Versions: 57

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

module Aws
  module Plugins
    # @api private
    class ResponsePaging < Seahorse::Client::Plugin

      class Handler < Seahorse::Client::Handler

        def call(context)
          context[:original_params] = context.params
          resp = @handler.call(context)
          resp.extend(PageableResponse)
          resp.pager = context.operation[:pager] || Aws::Pager::NullPager.new
          resp
        end

      end

      handle(Handler, step: :initialize, priority: 90)

    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
aws-sdk-core-3.128.0 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.127.0 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.126.2 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.126.1 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.126.0 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.125.6 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.125.5 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.125.4 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.125.3 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.125.2 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.125.1 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.125.0 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.124.0 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.123.0 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.122.1 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.122.0 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.121.6 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.121.5 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.121.3 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-3.121.2 lib/aws-sdk-core/plugins/response_paging.rb