@aws-cdk_aws-redshift-alpha.RotationMultiUserOptions

interface RotationMultiUserOptions ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Redshift.Alpha.RotationMultiUserOptions
Gogithub.com/aws/aws-cdk-go/awscdkredshiftalpha/v2#RotationMultiUserOptions
Javasoftware.amazon.awscdk.services.redshift.alpha.RotationMultiUserOptions
Pythonaws_cdk.aws_redshift_alpha.RotationMultiUserOptions
TypeScript (source)@aws-cdk/aws-redshift-alpha ยป RotationMultiUserOptions

Options to add the multi user rotation.

Example


const user = new User(this, 'User', {
  cluster: cluster,
  databaseName: 'databaseName',
});
cluster.addRotationMultiUser('MultiUserRotation', {
  secret: user.secret,
});

Properties

NameTypeDescription
secret๐Ÿ”นISecretThe secret to rotate.
automaticallyAfter?๐Ÿ”นDurationSpecifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.

secret๐Ÿ”น

Type: 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>
}

automaticallyAfter?๐Ÿ”น

Type: Duration (optional, default: Duration.days(30))

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