Class CfnNamespaceMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.redshiftserverless.CfnNamespaceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNamespaceMixinProps>
- Enclosing interface:
CfnNamespaceMixinProps
@Stability(Stable)
public static final class CfnNamespaceMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNamespaceMixinProps>
A builder for
CfnNamespaceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadminPasswordSecretKmsKeyId(String adminPasswordSecretKmsKeyId) Sets the value ofCfnNamespaceMixinProps.getAdminPasswordSecretKmsKeyId()adminUsername(String adminUsername) Sets the value ofCfnNamespaceMixinProps.getAdminUsername()adminUserPassword(String adminUserPassword) Sets the value ofCfnNamespaceMixinProps.getAdminUserPassword()build()Builds the configured instance.Sets the value ofCfnNamespaceMixinProps.getDbName()defaultIamRoleArn(String defaultIamRoleArn) Sets the value ofCfnNamespaceMixinProps.getDefaultIamRoleArn()defaultIamRoleArn(IRoleRef defaultIamRoleArn) Sets the value ofCfnNamespaceMixinProps.getDefaultIamRoleArn()finalSnapshotName(String finalSnapshotName) Sets the value ofCfnNamespaceMixinProps.getFinalSnapshotName()finalSnapshotRetentionPeriod(Number finalSnapshotRetentionPeriod) Sets the value ofCfnNamespaceMixinProps.getFinalSnapshotRetentionPeriod()Sets the value ofCfnNamespaceMixinProps.getIamRoles()Sets the value ofCfnNamespaceMixinProps.getKmsKeyId()Sets the value ofCfnNamespaceMixinProps.getKmsKeyId()logExports(List<String> logExports) Sets the value ofCfnNamespaceMixinProps.getLogExports()manageAdminPassword(Boolean manageAdminPassword) Sets the value ofCfnNamespaceMixinProps.getManageAdminPassword()manageAdminPassword(IResolvable manageAdminPassword) Sets the value ofCfnNamespaceMixinProps.getManageAdminPassword()namespaceName(String namespaceName) Sets the value ofCfnNamespaceMixinProps.getNamespaceName()namespaceResourcePolicy(Object namespaceResourcePolicy) Sets the value ofCfnNamespaceMixinProps.getNamespaceResourcePolicy()redshiftIdcApplicationArn(String redshiftIdcApplicationArn) Sets the value ofCfnNamespaceMixinProps.getRedshiftIdcApplicationArn()snapshotCopyConfigurations(List<? extends Object> snapshotCopyConfigurations) Sets the value ofCfnNamespaceMixinProps.getSnapshotCopyConfigurations()snapshotCopyConfigurations(IResolvable snapshotCopyConfigurations) Sets the value ofCfnNamespaceMixinProps.getSnapshotCopyConfigurations()Sets the value ofCfnNamespaceMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adminPasswordSecretKmsKeyId
@Stability(Stable) public CfnNamespaceMixinProps.Builder adminPasswordSecretKmsKeyId(String adminPasswordSecretKmsKeyId) Sets the value ofCfnNamespaceMixinProps.getAdminPasswordSecretKmsKeyId()- Parameters:
adminPasswordSecretKmsKeyId- The ID of the AWS Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret. You can only use this parameter ifManageAdminPasswordistrue.- Returns:
this
-
adminUsername
Sets the value ofCfnNamespaceMixinProps.getAdminUsername()- Parameters:
adminUsername- The username of the administrator for the primary database created in the namespace.- Returns:
this
-
adminUserPassword
@Stability(Stable) public CfnNamespaceMixinProps.Builder adminUserPassword(String adminUserPassword) Sets the value ofCfnNamespaceMixinProps.getAdminUserPassword()- Parameters:
adminUserPassword- The password of the administrator for the primary database created in the namespace.- Returns:
this
-
dbName
Sets the value ofCfnNamespaceMixinProps.getDbName()- Parameters:
dbName- The name of the primary database created in the namespace.- Returns:
this
-
defaultIamRoleArn
@Stability(Stable) public CfnNamespaceMixinProps.Builder defaultIamRoleArn(String defaultIamRoleArn) Sets the value ofCfnNamespaceMixinProps.getDefaultIamRoleArn()- Parameters:
defaultIamRoleArn- The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.- Returns:
this
-
defaultIamRoleArn
@Stability(Stable) public CfnNamespaceMixinProps.Builder defaultIamRoleArn(IRoleRef defaultIamRoleArn) Sets the value ofCfnNamespaceMixinProps.getDefaultIamRoleArn()- Parameters:
defaultIamRoleArn- The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.- Returns:
this
-
finalSnapshotName
@Stability(Stable) public CfnNamespaceMixinProps.Builder finalSnapshotName(String finalSnapshotName) Sets the value ofCfnNamespaceMixinProps.getFinalSnapshotName()- Parameters:
finalSnapshotName- The name of the snapshot to be created before the namespace is deleted.- Returns:
this
-
finalSnapshotRetentionPeriod
@Stability(Stable) public CfnNamespaceMixinProps.Builder finalSnapshotRetentionPeriod(Number finalSnapshotRetentionPeriod) Sets the value ofCfnNamespaceMixinProps.getFinalSnapshotRetentionPeriod()- Parameters:
finalSnapshotRetentionPeriod- How long to retain the final snapshot.- Returns:
this
-
iamRoles
Sets the value ofCfnNamespaceMixinProps.getIamRoles()- Parameters:
iamRoles- A list of IAM roles to associate with the namespace.- Returns:
this
-
kmsKeyId
Sets the value ofCfnNamespaceMixinProps.getKmsKeyId()- Parameters:
kmsKeyId- The ID of the AWS Key Management Service key used to encrypt your data.- Returns:
this
-
kmsKeyId
Sets the value ofCfnNamespaceMixinProps.getKmsKeyId()- Parameters:
kmsKeyId- The ID of the AWS Key Management Service key used to encrypt your data.- Returns:
this
-
logExports
Sets the value ofCfnNamespaceMixinProps.getLogExports()- Parameters:
logExports- The types of logs the namespace can export. Available export types areuserlog,connectionlog, anduseractivitylog.- Returns:
this
-
manageAdminPassword
@Stability(Stable) public CfnNamespaceMixinProps.Builder manageAdminPassword(Boolean manageAdminPassword) Sets the value ofCfnNamespaceMixinProps.getManageAdminPassword()- Parameters:
manageAdminPassword- If true, Amazon Redshift uses AWS Secrets Manager to manage the namespace's admin credentials. You can't useAdminUserPasswordifManageAdminPasswordis true. IfManageAdminPasswordisfalseor not set, Amazon Redshift usesAdminUserPasswordfor the admin user account's password.- Returns:
this
-
manageAdminPassword
@Stability(Stable) public CfnNamespaceMixinProps.Builder manageAdminPassword(IResolvable manageAdminPassword) Sets the value ofCfnNamespaceMixinProps.getManageAdminPassword()- Parameters:
manageAdminPassword- If true, Amazon Redshift uses AWS Secrets Manager to manage the namespace's admin credentials. You can't useAdminUserPasswordifManageAdminPasswordis true. IfManageAdminPasswordisfalseor not set, Amazon Redshift usesAdminUserPasswordfor the admin user account's password.- Returns:
this
-
namespaceName
Sets the value ofCfnNamespaceMixinProps.getNamespaceName()- Parameters:
namespaceName- The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.- Returns:
this
-
namespaceResourcePolicy
@Stability(Stable) public CfnNamespaceMixinProps.Builder namespaceResourcePolicy(Object namespaceResourcePolicy) Sets the value ofCfnNamespaceMixinProps.getNamespaceResourcePolicy()- Parameters:
namespaceResourcePolicy- The resource policy that will be attached to the namespace.- Returns:
this
-
redshiftIdcApplicationArn
@Stability(Stable) public CfnNamespaceMixinProps.Builder redshiftIdcApplicationArn(String redshiftIdcApplicationArn) Sets the value ofCfnNamespaceMixinProps.getRedshiftIdcApplicationArn()- Parameters:
redshiftIdcApplicationArn- The ARN for the Redshift application that integrates with IAM Identity Center.- Returns:
this
-
snapshotCopyConfigurations
@Stability(Stable) public CfnNamespaceMixinProps.Builder snapshotCopyConfigurations(IResolvable snapshotCopyConfigurations) Sets the value ofCfnNamespaceMixinProps.getSnapshotCopyConfigurations()- Parameters:
snapshotCopyConfigurations- The snapshot copy configurations for the namespace.- Returns:
this
-
snapshotCopyConfigurations
@Stability(Stable) public CfnNamespaceMixinProps.Builder snapshotCopyConfigurations(List<? extends Object> snapshotCopyConfigurations) Sets the value ofCfnNamespaceMixinProps.getSnapshotCopyConfigurations()- Parameters:
snapshotCopyConfigurations- The snapshot copy configurations for the namespace.- Returns:
this
-
tags
Sets the value ofCfnNamespaceMixinProps.getTags()- Parameters:
tags- The map of the key-value pairs used to tag the namespace.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNamespaceMixinProps>- Returns:
- a new instance of
CfnNamespaceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-