Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UserProps.Builder |
adminUser(ISecret adminUser)
Sets the value of
DatabaseOptions.getAdminUser() |
UserProps |
build()
Builds the configured instance.
|
UserProps.Builder |
cluster(ICluster cluster)
Sets the value of
DatabaseOptions.getCluster() |
UserProps.Builder |
databaseName(java.lang.String databaseName)
Sets the value of
DatabaseOptions.getDatabaseName() |
UserProps.Builder |
encryptionKey(IKey encryptionKey)
Sets the value of
UserProps.getEncryptionKey() |
UserProps.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Sets the value of
UserProps.getRemovalPolicy() |
UserProps.Builder |
username(java.lang.String username)
Sets the value of
UserProps.getUsername() |
public UserProps.Builder encryptionKey(IKey encryptionKey)
UserProps.getEncryptionKey()
encryptionKey
- KMS key to encrypt the generated secret.this
public UserProps.Builder removalPolicy(RemovalPolicy removalPolicy)
UserProps.getRemovalPolicy()
removalPolicy
- The policy to apply when this resource is removed from the application.this
public UserProps.Builder username(java.lang.String username)
UserProps.getUsername()
username
- The name of the user.
For valid values, see: https://docs.aws.amazon.com/redshift/latest/dg/r_names.htmlthis
public UserProps.Builder cluster(ICluster cluster)
DatabaseOptions.getCluster()
cluster
- The cluster containing the database. This parameter is required.this
public UserProps.Builder databaseName(java.lang.String databaseName)
DatabaseOptions.getDatabaseName()
databaseName
- The name of the database. This parameter is required.this
public UserProps.Builder adminUser(ISecret adminUser)
DatabaseOptions.getAdminUser()
adminUser
- The secret containing credentials to a Redshift user with administrator privileges.
Secret JSON schema: { username: string; password: string }
.this