Interface CfnDataSource.RedshiftIAMParametersProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDataSource.RedshiftIAMParametersProperty.Jsii$Proxy
- Enclosing class:
CfnDataSource
redshift:GetClusterCredentials API.
For more information on the redshift:GetClusterCredentials API, see GetClusterCredentials .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;
RedshiftIAMParametersProperty redshiftIAMParametersProperty = RedshiftIAMParametersProperty.builder()
.roleArn("roleArn")
// the properties below are optional
.autoCreateDatabaseUser(false)
.databaseGroups(List.of("databaseGroups"))
.databaseUser("databaseUser")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDataSource.RedshiftIAMParametersPropertystatic final classAn implementation forCfnDataSource.RedshiftIAMParametersProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectAutomatically creates a database user.A list of groups whose permissions will be granted to Quick Sight to access the cluster.default StringThe user whose permissions and group memberships will be used by Quick Sight to access the cluster.Use theRoleArnstructure to allow Quick Sight to callredshift:GetClusterCredentialson your cluster.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRoleArn
Use theRoleArnstructure to allow Quick Sight to callredshift:GetClusterCredentialson your cluster.The calling principal must have
iam:PassRoleaccess to pass the role to Quick Sight. The role's trust policy must allow the Quick Sight service principal to assume the role.- See Also:
-
getAutoCreateDatabaseUser
Automatically creates a database user.If your database doesn't have a
DatabaseUser, 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 union: either
BooleanorIResolvableDefault: - false
- See Also:
-
getDatabaseGroups
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 the
DatabaseUser. If you choose to include this parameter, theRoleArnmust grant access toredshift:JoinGroup.- See Also:
-
getDatabaseUser
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 of
AutoCreateDatabaseUsertoTrueto create a new user with PUBLIC permissions.- See Also:
-
builder
-