A database secret.
import { DatabaseSecret } from 'aws-cdk-lib/aws-rds';Or use the module namespace:
import * as rds from 'aws-cdk-lib/aws-rds';
// rds.DatabaseSecretConfiguration passed to the constructor as DatabaseSecretProps.
usernameRequiredstringThe username.
dbnameOptionalstringThe database name, if not using the default one.
Default: - whatever the secret generates after the attach method is run
encryptionKeyOptionalIKeyThe KMS key to use to encrypt the secret.
Default: default master key
excludeCharactersOptionalstringCharacters to not include in the generated password.
Default: " %+~`#$&*()|[]{}:;<>?!'/@\"\\"
masterSecretOptionalISecretThe master secret which will be used to rotate this secret.
Default: - no master secret information will be included
replaceOnPasswordCriteriaChangesOptionalbooleanWhether to replace this secret when the criteria for the password change. This is achieved by overriding the logical id of the AWS::SecretsManager::Secret with a hash of the options that influence the password generation. This way a new secret will be created when the password is regenerated and the cluster or instance consuming this secret will have its credentials updated.
Default: false
replicaRegionsOptionalReplicaRegion[]A list of regions where to replicate this secret.
Default: - Secret is not replicated
secretNameOptionalstringA name for the secret.
Default: - A name is generated by CloudFormation.
Everything you need to know about Amazon RDS on one page. HD quality, print-friendly.
Download Free Infographicaws-rds