RotationMultiUserOptions

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

Bases: object

(experimental) Options to add the multi user rotation.

Parameters:
  • secret (ISecret) – (experimental) 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]) – (experimental) Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation. Default: Duration.days(30)

Stability:

experimental

ExampleMetadata:

fixture=cluster infused

Example:

user = User(self, "User",
    cluster=cluster,
    database_name="databaseName"
)
cluster.add_rotation_multi_user("MultiUserRotation",
    secret=user.secret
)

Attributes

automatically_after

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

Default:

Duration.days(30)

Stability:

experimental

secret

(experimental) 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>
}
Stability:

experimental