@Stability(value=Stable) public static final class DatabaseSecretProps.Builder extends Object implements software.amazon.jsii.Builder<DatabaseSecretProps>
DatabaseSecretProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public DatabaseSecretProps.Builder username(String username)
DatabaseSecretProps.getUsername()username - The username. This parameter is required.this@Stability(value=Stable) public DatabaseSecretProps.Builder encryptionKey(IKey encryptionKey)
DatabaseSecretProps.getEncryptionKey()encryptionKey - The KMS key to use to encrypt the secret.this@Stability(value=Stable) public DatabaseSecretProps.Builder excludeCharacters(String excludeCharacters)
DatabaseSecretProps.getExcludeCharacters()excludeCharacters - Characters to not include in the generated password.this@Stability(value=Stable) public DatabaseSecretProps.Builder masterSecret(ISecret masterSecret)
DatabaseSecretProps.getMasterSecret()masterSecret - The master secret which will be used to rotate this secret.this@Stability(value=Stable) public DatabaseSecretProps.Builder replaceOnPasswordCriteriaChanges(Boolean replaceOnPasswordCriteriaChanges)
DatabaseSecretProps.getReplaceOnPasswordCriteriaChanges()replaceOnPasswordCriteriaChanges - Whether 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.this@Stability(value=Stable) public DatabaseSecretProps.Builder replicaRegions(List<? extends ReplicaRegion> replicaRegions)
DatabaseSecretProps.getReplicaRegions()replicaRegions - A list of regions where to replicate this secret.this@Stability(value=Stable) public DatabaseSecretProps.Builder secretName(String secretName)
DatabaseSecretProps.getSecretName()secretName - A name for the secret.this@Stability(value=Stable) public DatabaseSecretProps build()
build in interface software.amazon.jsii.Builder<DatabaseSecretProps>DatabaseSecretPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.