# File lib/aws/cloud_formation/stack_collection.rb, line 202
      def _each_item next_token, options = {}
        options[:next_token] = next_token if next_token

        if @status_filters.empty?
          api_method = :describe_stacks
          resp_key = :stacks
        else
          api_method = :list_stacks
          resp_key = :stack_summaries
          options[:stack_status_filter] = @status_filters
        end

        resp = client.send(api_method, options)

        resp[resp_key].each do |data|

          stack = Stack.new_from(
            api_method,
            data,
            data[:stack_name],
            :config => config)

          yield(stack)

        end
        resp[:next_token]
      end