@@ -153,12 +153,26 @@ MONGODB-AWS
153153 The ``MONGODB-AWS`` authentication mechanism is available only for
154154 MongoDB deployments on MongoDB Atlas.
155155
156- The ``MONGODB-AWS`` authentication mechanism uses your Amazon Web Services
157- Identity and Access Management (AWS IAM) credentials to authenticate your
158- user. You can either specify your credentials explicitly
159- or instruct the driver to retrieve them automatically from an external source.
156+ The ``MONGODB-AWS`` authentication mechanism uses Amazon Web Services
157+ Identity and Access Management (AWS IAM) credentials to authenticate a user to MongoDB.
160158
161- The following sections contain code examples that use the following placeholders:
159+ To use AWS authentication, first perform the following steps:
160+
161+ - Add the `MongoDB.Driver.Authentication.AWS <https://www.nuget.org/packages/MongoDB.Driver.Authentication.AWS>`__
162+ NuGet package to your project.
163+ - Add the following line of code to your application's bootstrap code to register the
164+ AWS authentication provider:
165+
166+ .. code-block:: csharp
167+ :copyable: true
168+
169+ MongoClientSettings.Extensions.AddAWSAuthentication();
170+
171+ After you register the AWS authentication provider, you can either specify the AWS IAM
172+ credentials explicitly or instruct the driver to retrieve them automatically from an
173+ external source. The following sections describe both of these methods.
174+
175+ The code examples in these sections use the following placeholders:
162176
163177- ``<awsKeyId>`` - value of the AWS access key ID
164178- ``<awsSecretKey>`` - value of the AWS secret access key
0 commit comments