#[non_exhaustive]pub struct RedshiftIamParametersBuilder { /* private fields */ }
Expand description
A builder for RedshiftIamParameters
.
Implementations§
source§impl RedshiftIamParametersBuilder
impl RedshiftIamParametersBuilder
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
Use the RoleArn
structure to allow Amazon QuickSight to call redshift: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.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
Use the RoleArn
structure to allow Amazon QuickSight to call redshift: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.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
Use the RoleArn
structure to allow Amazon QuickSight to call redshift: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.
sourcepub fn database_user(self, input: impl Into<String>) -> Self
pub fn database_user(self, input: impl Into<String>) -> Self
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
to True
to create a new user with PUBLIC permissions.
sourcepub fn set_database_user(self, input: Option<String>) -> Self
pub fn set_database_user(self, input: Option<String>) -> Self
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
to True
to create a new user with PUBLIC permissions.
sourcepub fn get_database_user(&self) -> &Option<String>
pub fn get_database_user(&self) -> &Option<String>
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
to True
to create a new user with PUBLIC permissions.
sourcepub fn database_groups(self, input: impl Into<String>) -> Self
pub fn database_groups(self, input: impl Into<String>) -> Self
Appends an item to database_groups
.
To override the contents of this collection use set_database_groups
.
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, the RoleArn
must grant access to redshift:JoinGroup
.
sourcepub fn set_database_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_database_groups(self, input: Option<Vec<String>>) -> Self
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, the RoleArn
must grant access to redshift:JoinGroup
.
sourcepub fn get_database_groups(&self) -> &Option<Vec<String>>
pub fn get_database_groups(&self) -> &Option<Vec<String>>
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, the RoleArn
must grant access to redshift:JoinGroup
.
sourcepub fn auto_create_database_user(self, input: bool) -> Self
pub fn auto_create_database_user(self, input: bool) -> Self
Automatically creates a database user. If your database doesn't have a DatabaseUser
, set this parameter to True
. If there is no DatabaseUser
, Amazon QuickSight can't connect to your cluster. The RoleArn
that you use for this operation must grant access to redshift:CreateClusterUser
to successfully create the user.
sourcepub fn set_auto_create_database_user(self, input: Option<bool>) -> Self
pub fn set_auto_create_database_user(self, input: Option<bool>) -> Self
Automatically creates a database user. If your database doesn't have a DatabaseUser
, set this parameter to True
. If there is no DatabaseUser
, Amazon QuickSight can't connect to your cluster. The RoleArn
that you use for this operation must grant access to redshift:CreateClusterUser
to successfully create the user.
sourcepub fn get_auto_create_database_user(&self) -> &Option<bool>
pub fn get_auto_create_database_user(&self) -> &Option<bool>
Automatically creates a database user. If your database doesn't have a DatabaseUser
, set this parameter to True
. If there is no DatabaseUser
, Amazon QuickSight can't connect to your cluster. The RoleArn
that you use for this operation must grant access to redshift:CreateClusterUser
to successfully create the user.
sourcepub fn build(self) -> Result<RedshiftIamParameters, BuildError>
pub fn build(self) -> Result<RedshiftIamParameters, BuildError>
Consumes the builder and constructs a RedshiftIamParameters
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RedshiftIamParametersBuilder
impl Clone for RedshiftIamParametersBuilder
source§fn clone(&self) -> RedshiftIamParametersBuilder
fn clone(&self) -> RedshiftIamParametersBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RedshiftIamParametersBuilder
impl Debug for RedshiftIamParametersBuilder
source§impl Default for RedshiftIamParametersBuilder
impl Default for RedshiftIamParametersBuilder
source§fn default() -> RedshiftIamParametersBuilder
fn default() -> RedshiftIamParametersBuilder
source§impl PartialEq for RedshiftIamParametersBuilder
impl PartialEq for RedshiftIamParametersBuilder
source§fn eq(&self, other: &RedshiftIamParametersBuilder) -> bool
fn eq(&self, other: &RedshiftIamParametersBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.