Class User.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.User.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<User>
- Enclosing class:
- User
@Stability(Experimental)
public static final class User.Builder
extends Object
implements software.amazon.jsii.Builder<User>
(experimental) A fluent builder for
User
.-
Method Summary
Modifier and TypeMethodDescription(experimental) The secret containing credentials to a Redshift user with administrator privileges.build()
(experimental) The cluster containing the database.static User.Builder
databaseName
(String databaseName) (experimental) The name of the database.encryptionKey
(IKey encryptionKey) (experimental) KMS key to encrypt the generated secret.removalPolicy
(RemovalPolicy removalPolicy) (experimental) The policy to apply when this resource is removed from the application.(experimental) The name of the user.
-
Method Details
-
create
@Stability(Experimental) public static User.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
User.Builder
.
-
cluster
(experimental) The cluster containing the database.- Parameters:
cluster
- The cluster containing the database. This parameter is required.- Returns:
this
-
databaseName
(experimental) The name of the database.- Parameters:
databaseName
- The name of the database. This parameter is required.- Returns:
this
-
adminUser
(experimental) The secret containing credentials to a Redshift user with administrator privileges.Secret JSON schema:
{ username: string; password: string }
.Default: - the admin secret is taken from the cluster
- Parameters:
adminUser
- The secret containing credentials to a Redshift user with administrator privileges. This parameter is required.- Returns:
this
-
encryptionKey
(experimental) KMS key to encrypt the generated secret.Default: - the default AWS managed key is used
- Parameters:
encryptionKey
- KMS key to encrypt the generated secret. This parameter is required.- Returns:
this
-
removalPolicy
(experimental) The policy to apply when this resource is removed from the application.Default: cdk.RemovalPolicy.Destroy
- Parameters:
removalPolicy
- The policy to apply when this resource is removed from the application. This parameter is required.- Returns:
this
-
username
(experimental) The name of the user.For valid values, see: https://docs.aws.amazon.com/redshift/latest/dg/r_names.html
Default: - a name is generated
- Parameters:
username
- The name of the user. This parameter is required.- Returns:
this
-
build
-