:doc:`RDS <../../rds>` / Client / generate_db_auth_token

**********************
generate_db_auth_token
**********************



.. py:method:: RDS.Client.generate_db_auth_token(DBHostname, Port, DBUsername, Region=None)

    
  Generates an auth token used to connect to a db with IAM credentials.
  
  :type DBHostname: str
  :param DBHostname: The hostname of the database to connect to.
  
  :type Port: int
  :param Port: The port number the database is listening on.
  
  :type DBUsername: str
  :param DBUsername: The username to log in as.
  
  :type Region: str
  :param Region: The region the database is in. If None, the client
      region will be used.
  
  :return: A presigned url which can be used as an auth token.
