Class CfnDataSource.RedshiftIAMParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDataSource.RedshiftIAMParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource.RedshiftIAMParametersProperty>
- Enclosing interface:
CfnDataSource.RedshiftIAMParametersProperty
@Stability(Stable)
public static final class CfnDataSource.RedshiftIAMParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSource.RedshiftIAMParametersProperty>
A builder for
CfnDataSource.RedshiftIAMParametersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoCreateDatabaseUser(Boolean autoCreateDatabaseUser) Sets the value ofCfnDataSource.RedshiftIAMParametersProperty.getAutoCreateDatabaseUser()autoCreateDatabaseUser(IResolvable autoCreateDatabaseUser) Sets the value ofCfnDataSource.RedshiftIAMParametersProperty.getAutoCreateDatabaseUser()build()Builds the configured instance.databaseGroups(List<String> databaseGroups) Sets the value ofCfnDataSource.RedshiftIAMParametersProperty.getDatabaseGroups()databaseUser(String databaseUser) Sets the value ofCfnDataSource.RedshiftIAMParametersProperty.getDatabaseUser()Sets the value ofCfnDataSource.RedshiftIAMParametersProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
@Stability(Stable) public CfnDataSource.RedshiftIAMParametersProperty.Builder roleArn(String roleArn) Sets the value ofCfnDataSource.RedshiftIAMParametersProperty.getRoleArn()- Parameters:
roleArn- Use theRoleArnstructure to allow Quick Sight to callredshift:GetClusterCredentialson your cluster. This parameter is required. The calling principal must haveiam:PassRoleaccess to pass the role to Quick Sight. The role's trust policy must allow the Quick Sight service principal to assume the role.- Returns:
this
-
autoCreateDatabaseUser
@Stability(Stable) public CfnDataSource.RedshiftIAMParametersProperty.Builder autoCreateDatabaseUser(Boolean autoCreateDatabaseUser) Sets the value ofCfnDataSource.RedshiftIAMParametersProperty.getAutoCreateDatabaseUser()- Parameters:
autoCreateDatabaseUser- Automatically creates a database user. If your database doesn't have aDatabaseUser, set this parameter toTrue. If there is noDatabaseUser, Quick Sight can't connect to your cluster. TheRoleArnthat you use for this operation must grant access toredshift:CreateClusterUserto successfully create the user.- Returns:
this
-
autoCreateDatabaseUser
@Stability(Stable) public CfnDataSource.RedshiftIAMParametersProperty.Builder autoCreateDatabaseUser(IResolvable autoCreateDatabaseUser) Sets the value ofCfnDataSource.RedshiftIAMParametersProperty.getAutoCreateDatabaseUser()- Parameters:
autoCreateDatabaseUser- Automatically creates a database user. If your database doesn't have aDatabaseUser, set this parameter toTrue. If there is noDatabaseUser, Quick Sight can't connect to your cluster. TheRoleArnthat you use for this operation must grant access toredshift:CreateClusterUserto successfully create the user.- Returns:
this
-
databaseGroups
@Stability(Stable) public CfnDataSource.RedshiftIAMParametersProperty.Builder databaseGroups(List<String> databaseGroups) Sets the value ofCfnDataSource.RedshiftIAMParametersProperty.getDatabaseGroups()- Parameters:
databaseGroups- A list of groups whose permissions will be granted to Quick Sight to access the cluster. These permissions are combined with the permissions granted to Quick Sight by theDatabaseUser. If you choose to include this parameter, theRoleArnmust grant access toredshift:JoinGroup.- Returns:
this
-
databaseUser
@Stability(Stable) public CfnDataSource.RedshiftIAMParametersProperty.Builder databaseUser(String databaseUser) Sets the value ofCfnDataSource.RedshiftIAMParametersProperty.getDatabaseUser()- Parameters:
databaseUser- The user whose permissions and group memberships will be used by Quick Sight to access the cluster. If this user already exists in your database, Amazon Quick Sight is granted the same permissions that the user has. If the user doesn't exist, set the value ofAutoCreateDatabaseUsertoTrueto create a new user with PUBLIC permissions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSource.RedshiftIAMParametersProperty>- Returns:
- a new instance of
CfnDataSource.RedshiftIAMParametersProperty - Throws:
NullPointerException- if any required attribute was not provided
-