module Aws::PageableResponse::Extension

def next_page_params(params)

def next_page_params(params)
  # Remove all previous tokens from original params
  # Sometimes a token can be nil and merge would not include it.
  tokens = @pager.tokens.values.map(&:to_sym)
  params_without_tokens = context[:original_params].reject { |k, _v| tokens.include?(k) }
  params_without_tokens.merge!(@pager.next_tokens(self).merge(params))
  params_without_tokens
end