    # File lib/fog/aws.rb, line 31
        def self.indexed_param(key, values)
          params = {}
          unless key.include?('%d')
            key << '.%d'
          end
          [*values].each_with_index do |value, index|
            if value.respond_to?('keys')
              k = format(key, index + 1)
              value.each do | vkey, vvalue |
                params["#{k}.#{vkey}"] = vvalue
              end
            else
              params[format(key, index + 1)] = value
            end
          end
          params
        end