Class CfnDataSourcePropsMixin.RedshiftIAMParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.quicksight.CfnDataSourcePropsMixin.RedshiftIAMParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSourcePropsMixin.RedshiftIAMParametersProperty>
- Enclosing interface:
CfnDataSourcePropsMixin.RedshiftIAMParametersProperty
@Stability(Stable)
public static final class CfnDataSourcePropsMixin.RedshiftIAMParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourcePropsMixin.RedshiftIAMParametersProperty>
A builder for
CfnDataSourcePropsMixin.RedshiftIAMParametersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoCreateDatabaseUser(Boolean autoCreateDatabaseUser) autoCreateDatabaseUser(IResolvable autoCreateDatabaseUser) build()Builds the configured instance.databaseGroups(List<String> databaseGroups) databaseUser(String databaseUser) Sets the value ofCfnDataSourcePropsMixin.RedshiftIAMParametersProperty.getDatabaseUser()Sets the value ofCfnDataSourcePropsMixin.RedshiftIAMParametersProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoCreateDatabaseUser
@Stability(Stable) public CfnDataSourcePropsMixin.RedshiftIAMParametersProperty.Builder autoCreateDatabaseUser(Boolean autoCreateDatabaseUser) - 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 CfnDataSourcePropsMixin.RedshiftIAMParametersProperty.Builder autoCreateDatabaseUser(IResolvable autoCreateDatabaseUser) - 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 CfnDataSourcePropsMixin.RedshiftIAMParametersProperty.Builder databaseGroups(List<String> databaseGroups) - 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 CfnDataSourcePropsMixin.RedshiftIAMParametersProperty.Builder databaseUser(String databaseUser) Sets the value ofCfnDataSourcePropsMixin.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
-
roleArn
@Stability(Stable) public CfnDataSourcePropsMixin.RedshiftIAMParametersProperty.Builder roleArn(String roleArn) Sets the value ofCfnDataSourcePropsMixin.RedshiftIAMParametersProperty.getRoleArn()- Parameters:
roleArn- Use theRoleArnstructure to allow Quick Sight to callredshift:GetClusterCredentialson your cluster. 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSourcePropsMixin.RedshiftIAMParametersProperty>- Returns:
- a new instance of
CfnDataSourcePropsMixin.RedshiftIAMParametersProperty - Throws:
NullPointerException- if any required attribute was not provided
-