package awsdocdb import ( "github.com/aws/aws-cdk-go/awscdk/v2" "github.com/aws/aws-cdk-go/awscdk/v2/awssecretsmanager" ) // Options to add the multi user rotation. // // Example: // import secretsmanager "github.com/aws/aws-cdk-go/awscdk" // // var myImportedSecret secret // var cluster databaseCluster // // // cluster.AddRotationMultiUser(jsii.String("MyUser"), &RotationMultiUserOptions{ // Secret: myImportedSecret, // }) // type RotationMultiUserOptions struct { // The secret to rotate. // // It must be a JSON string with the following format: // ``` // { // "engine": , // "host": , // "username": , // "password": , // "dbname": , // "port": , // "masterarn": // "ssl": // } // ```. Secret awssecretsmanager.ISecret `field:"required" json:"secret" yaml:"secret"` // Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation. AutomaticallyAfter awscdk.Duration `field:"optional" json:"automaticallyAfter" yaml:"automaticallyAfter"` }