Class CfnNamespace.Builder
java.lang.Object
software.amazon.awscdk.services.redshiftserverless.CfnNamespace.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNamespace>
- Enclosing class:
- CfnNamespace
@Stability(Stable)
public static final class CfnNamespace.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNamespace>
A fluent builder for
CfnNamespace
.-
Method Summary
Modifier and TypeMethodDescriptionadminUsername
(String adminUsername) The username of the administrator for the primary database created in the namespace.adminUserPassword
(String adminUserPassword) The password of the administrator for the primary database created in the namespace.build()
static CfnNamespace.Builder
The name of the primary database created in the namespace.defaultIamRoleArn
(String defaultIamRoleArn) The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.finalSnapshotName
(String finalSnapshotName) The name of the snapshot to be created before the namespace is deleted.finalSnapshotRetentionPeriod
(Number finalSnapshotRetentionPeriod) How long to retain the final snapshot.A list of IAM roles to associate with the namespace.The ID of the AWS Key Management Service key used to encrypt your data.logExports
(List<String> logExports) The types of logs the namespace can export.namespaceName
(String namespaceName) The name of the namespace.The map of the key-value pairs used to tag the namespace.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnNamespace.Builder
.
-
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.
- Parameters:
namespaceName
- The name of the namespace. This parameter is required.- Returns:
this
-
adminUsername
The username of the administrator for the primary database created in the namespace.- Parameters:
adminUsername
- The username of the administrator for the primary database created in the namespace. This parameter is required.- Returns:
this
-
adminUserPassword
The password of the administrator for the primary database created in the namespace.- Parameters:
adminUserPassword
- The password of the administrator for the primary database created in the namespace. This parameter is required.- Returns:
this
-
dbName
The name of the primary database created in the namespace.- Parameters:
dbName
- The name of the primary database created in the namespace. This parameter is required.- Returns:
this
-
defaultIamRoleArn
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.- Parameters:
defaultIamRoleArn
- The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. This parameter is required.- Returns:
this
-
finalSnapshotName
The name of the snapshot to be created before the namespace is deleted.- Parameters:
finalSnapshotName
- The name of the snapshot to be created before the namespace is deleted. This parameter is required.- Returns:
this
-
finalSnapshotRetentionPeriod
@Stability(Stable) public CfnNamespace.Builder finalSnapshotRetentionPeriod(Number finalSnapshotRetentionPeriod) How long to retain the final snapshot.- Parameters:
finalSnapshotRetentionPeriod
- How long to retain the final snapshot. This parameter is required.- Returns:
this
-
iamRoles
A list of IAM roles to associate with the namespace.- Parameters:
iamRoles
- A list of IAM roles to associate with the namespace. This parameter is required.- Returns:
this
-
kmsKeyId
The ID of the AWS Key Management Service key used to encrypt your data.- Parameters:
kmsKeyId
- The ID of the AWS Key Management Service key used to encrypt your data. This parameter is required.- Returns:
this
-
logExports
The types of logs the namespace can export.Available export types are
userlog
,connectionlog
, anduseractivitylog
.- Parameters:
logExports
- The types of logs the namespace can export. This parameter is required.- Returns:
this
-
tags
The map of the key-value pairs used to tag the namespace.- Parameters:
tags
- The map of the key-value pairs used to tag the namespace. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnNamespace>
- Returns:
- a newly built instance of
CfnNamespace
.
-