Interface IRotationMultiUserOptions
Options to add the multi user rotation.
Namespace: Amazon.CDK.AWS.DocDB
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IRotationMultiUserOptions
Syntax (vb)
Public Interface IRotationMultiUserOptions
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.SecretsManager;
Secret myImportedSecret;
DatabaseCluster cluster;
cluster.AddRotationMultiUser("MyUser", new RotationMultiUserOptions {
Secret = myImportedSecret
});
Synopsis
Properties
AutomaticallyAfter | Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation. |
Secret | The secret to rotate. |
Properties
AutomaticallyAfter
Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
virtual Duration AutomaticallyAfter { get; }
Property Value
Remarks
Default: Duration.days(30)
Secret
The secret to rotate.
ISecret Secret { get; }
Property Value
Remarks
It must be a JSON string with the following format:
{
"engine": <required: must be set to 'mongo'>,
"host": <required: instance host name>,
"username": <required: username>,
"password": <required: password>,
"dbname": <optional: database name>,
"port": <optional: if not specified, default port 27017 will be used>,
"masterarn": <required: the arn of the master secret which will be used to create users/change passwords>
"ssl": <optional: if not specified, defaults to false. This must be true if being used for DocumentDB rotations
where the cluster has TLS enabled>
}