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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnDataSource.RedshiftIAMParametersProperty
static final class
An implementation forCfnDataSource.RedshiftIAMParametersProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
Automatically creates a database user.A list of groups whose permissions will be granted to Amazon QuickSight to access the cluster.default String
The user whose permissions and group memberships will be used by Amazon QuickSight to access the cluster.Use theRoleArn
structure to allow Amazon QuickSight to callredshift:GetClusterCredentials
on your cluster.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRoleArn
Use theRoleArn
structure to allow Amazon QuickSight to callredshift:GetClusterCredentials
on your cluster.The calling principal must have
iam:PassRole
access to pass the role to Amazon QuickSight. The role's trust policy must allow the Amazon QuickSight 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
, Amazon QuickSight can't connect to your cluster. TheRoleArn
that you use for this operation must grant access toredshift:CreateClusterUser
to successfully create the user.Default: - false
- See Also:
-
getDatabaseGroups
A list of groups whose permissions will be granted to Amazon QuickSight to access the cluster.These permissions are combined with the permissions granted to Amazon QuickSight by the
DatabaseUser
. If you choose to include this parameter, theRoleArn
must grant access toredshift:JoinGroup
.- See Also:
-
getDatabaseUser
The user whose permissions and group memberships will be used by Amazon QuickSight to access the cluster.If this user already exists in your database, Amazon QuickSight is granted the same permissions that the user has. If the user doesn't exist, set the value of
AutoCreateDatabaseUser
toTrue
to create a new user with PUBLIC permissions.- See Also:
-
builder
-