@Stability(value=Experimental) public static final class DatabaseSecret.Builder extends Object implements software.amazon.jsii.Builder<DatabaseSecret>
DatabaseSecret.| Modifier and Type | Method and Description |
|---|---|
DatabaseSecret |
build() |
static DatabaseSecret.Builder |
create(software.constructs.Construct scope,
String id) |
DatabaseSecret.Builder |
encryptionKey(IKey encryptionKey)
(experimental) The KMS key to use to encrypt the secret.
|
DatabaseSecret.Builder |
excludeCharacters(String excludeCharacters)
(experimental) Characters to not include in the generated password.
|
DatabaseSecret.Builder |
masterSecret(ISecret masterSecret)
(experimental) The master secret which will be used to rotate this secret.
|
DatabaseSecret.Builder |
replaceOnPasswordCriteriaChanges(Boolean replaceOnPasswordCriteriaChanges)
(experimental) Whether to replace this secret when the criteria for the password change.
|
DatabaseSecret.Builder |
secretName(String secretName)
(experimental) A name for the secret.
|
DatabaseSecret.Builder |
username(String username)
(experimental) The username.
|
@Stability(value=Experimental) public static DatabaseSecret.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.DatabaseSecret.Builder.@Stability(value=Experimental) public DatabaseSecret.Builder username(String username)
username - The username. This parameter is required.this@Stability(value=Experimental) public DatabaseSecret.Builder encryptionKey(IKey encryptionKey)
Default: default master key
encryptionKey - The KMS key to use to encrypt the secret. This parameter is required.this@Stability(value=Experimental) public DatabaseSecret.Builder excludeCharacters(String excludeCharacters)
Default: " %+~`#$&*()|[]{}:;<>?!'/
excludeCharacters - Characters to not include in the generated password. This parameter is required.this@Stability(value=Experimental) public DatabaseSecret.Builder masterSecret(ISecret masterSecret)
Default: - no master secret information will be included
masterSecret - The master secret which will be used to rotate this secret. This parameter is required.this@Stability(value=Experimental) public DatabaseSecret.Builder replaceOnPasswordCriteriaChanges(Boolean replaceOnPasswordCriteriaChanges)
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
replaceOnPasswordCriteriaChanges - Whether to replace this secret when the criteria for the password change. This parameter is required.this@Stability(value=Experimental) public DatabaseSecret.Builder secretName(String secretName)
Default: - A name is generated by CloudFormation.
secretName - A name for the secret. This parameter is required.this@Stability(value=Experimental) public DatabaseSecret build()
build in interface software.amazon.jsii.Builder<DatabaseSecret>Copyright © 2021. All rights reserved.