Class DatabaseSecret.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.alpha.DatabaseSecret.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseSecret>
- Enclosing class:
DatabaseSecret
@Stability(Experimental)
public static final class DatabaseSecret.Builder
extends Object
implements software.amazon.jsii.Builder<DatabaseSecret>
(experimental) A fluent builder for
DatabaseSecret
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static DatabaseSecret.Builder
encryptionKey
(IKey encryptionKey) (experimental) The KMS key to use to encrypt the secret.excludeCharacters
(String excludeCharacters) (experimental) Characters to not include in the generated password.(experimental) The username.
-
Method Details
-
create
@Stability(Experimental) public static DatabaseSecret.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
DatabaseSecret.Builder
.
-
username
(experimental) The username.- Parameters:
username
- The username. This parameter is required.- Returns:
this
-
encryptionKey
(experimental) The KMS key to use to encrypt the secret.Default: default master key
- Parameters:
encryptionKey
- The KMS key to use to encrypt the secret. This parameter is required.- Returns:
this
-
excludeCharacters
(experimental) Characters to not include in the generated password.Default: '"@/\\\ \''
- Parameters:
excludeCharacters
- Characters to not include in the generated password. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DatabaseSecret>
- Returns:
- a newly built instance of
DatabaseSecret
.
-