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