generate_db_auth_token

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

Generates an auth token used to connect to a db with IAM credentials.

Parameters
  • DBHostname (str) -- The hostname of the database to connect to.
  • Port (int) -- The port number the database is listening on.
  • DBUsername (str) -- The username to log in as.
  • Region (str) -- The region the database is in. If None, the client region will be used.
Returns

A presigned url which can be used as an auth token.