class Aws::Api::Docs::Builder

def document_client_waiters(yard_class)

def document_client_waiters(yard_class)
  m = YARD::CodeObjects::MethodObject.new(yard_class, :wait_until)
  m.scope = :instance
  m.parameters << ['waiter_name', nil]
  m.parameters << ['params', '{}']
  m.docstring = YARD::Registry['Aws::ClientWaiters#wait_until'].docstring
  waiters = @client_class.waiters.waiter_names.sort.inject('') do |w,name|
    waiter = @client_class.waiters.waiter(name)
    operation = waiter.poller.operation_name
    w << "<tr><td><tt>:#{name}</tt></td><td>{##{operation}}</td><td>#{waiter.delay}</td><td>#{waiter.max_attempts}</td></tr>"
  end
  docstring = <<-DOCSTRING
the list of supported waiters. The following table lists the supported
and the client method they call:
Waiter Name</th><th>Client Method</th><th>Default Delay:</th><th>Default Max Attempts:</th></tr>

s}


[Array<Symbol>] the list of supported waiters.
  DOCSTRING
  m = YARD::CodeObjects::MethodObject.new(yard_class, :waiter_names)
  m.scope = :instance
  m.docstring = docstring
end