How Amazon DocumentDB (with MongoDB compatibility) uses Amazon Secrets Manager
In Amazon DocumentDB, users authenticate to a cluster in conjunction with a password. With Amazon Secrets Manager, you can replace hardcoded credentials in your code (including passwords) with an API call to Secrets Manager to retrieve the secret programmatically. For more information, see Create an Amazon Secrets Manager database secret and Managing Amazon DocumentDB Users in the Amazon DocumentDB Developer Guide.