Class UserAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.UserAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserAttributes>
- Enclosing interface:
- UserAttributes
@Stability(Experimental)
public static final class UserAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<UserAttributes>
A builder for
UserAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofDatabaseOptions.getAdminUser()build()Builds the configured instance.Sets the value ofDatabaseOptions.getCluster()databaseName(String databaseName) Sets the value ofDatabaseOptions.getDatabaseName()password(SecretValue password) Sets the value ofUserAttributes.getPassword()Sets the value ofUserAttributes.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
password
Sets the value ofUserAttributes.getPassword()- Parameters:
password- The password of the user. This parameter is required. Do not put passwords in CDK code directly.- Returns:
this
-
username
Sets the value ofUserAttributes.getUsername()- Parameters:
username- The name of the user. This parameter is required.- Returns:
this
-
cluster
Sets the value ofDatabaseOptions.getCluster()- Parameters:
cluster- The cluster containing the database. This parameter is required.- Returns:
this
-
databaseName
Sets the value ofDatabaseOptions.getDatabaseName()- Parameters:
databaseName- The name of the database. This parameter is required.- Returns:
this
-
adminUser
Sets the value ofDatabaseOptions.getAdminUser()- Parameters:
adminUser- The secret containing credentials to a Redshift user with administrator privileges. Secret JSON schema:{ username: string; password: string }.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<UserAttributes>- Returns:
- a new instance of
UserAttributes - Throws:
NullPointerException- if any required attribute was not provided
-