Sha256: 9e8a595d1532885415140b8eb57b416a5a0b04a792291e1c36353bb499b68930

Contents?: true

Size: 529 Bytes

Versions: 50

Compression:

Stored size: 529 Bytes

Contents

module Aws
  module Plugins
    class ResponsePaging < Seahorse::Client::Plugin

      # @api private
      class Handler < Seahorse::Client::Handler

        def call(context)
          context[:original_params] = context.params
          PageableResponse.new(@handler.call(context), pager(context))
        end

        private

        def pager(context)
          context.client.class.paginators.pager(context.operation.name)
        end

      end

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

    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
aws-sdk-core-2.0.48 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.47 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.46 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.45 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.44 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.43 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.42 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.41 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.40 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.39 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.38 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.37 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.36 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.35 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.34 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.33 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.32 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.31 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.30 lib/aws-sdk-core/plugins/response_paging.rb
aws-sdk-core-2.0.29 lib/aws-sdk-core/plugins/response_paging.rb