# File lib/aws/collections.rb, line 138 def each_response options, limit, batch_size, &block next_token = nil begin page_opts = {} page_opts[next_token_key] = next_token if next_token response = client.send(request_method, options.merge(page_opts)) yield(response) next_token = next_token_for(response) end until next_token.nil? end