RotationMultiUserOptions

class aws_cdk.aws_rds.RotationMultiUserOptions(*, secret, automatically_after=None, exclude_characters=None)

Bases: object

Options to add the multi user rotation.

Parameters
  • secret (ISecret) – The secret to rotate. It must be a JSON string with the following format:: { “engine”: <required: database engine>, “host”: <required: instance host name>, “username”: <required: username>, “password”: <required: password>, “dbname”: <optional: database name>, “port”: <optional: if not specified, default port will be used>, “masterarn”: <required: the arn of the master secret which will be used to create users/change passwords> }

  • automatically_after (Optional[Duration]) – Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation. Default: - 30 days

  • exclude_characters (Optional[str]) – Specifies characters to not include in generated passwords. Default: ” %+~`#$&*()|[]{}:;<>?!’/

Attributes

automatically_after

Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.

Default
  • 30 days

Return type

Optional[Duration]

exclude_characters

Specifies characters to not include in generated passwords.

Default

” %+~`#$&*()|[]{}:;<>?!’/

:: “”

Return type

Optional[str]

secret

The secret to rotate.

It must be a JSON string with the following format:

{
   "engine": <required: database engine>,
   "host": <required: instance host name>,
   "username": <required: username>,
   "password": <required: password>,
   "dbname": <optional: database name>,
   "port": <optional: if not specified, default port will be used>,
   "masterarn": <required: the arn of the master secret which will be used to create users/change passwords>
}
Return type

ISecret