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 Details

    • create

      @Stability(Stable) public static CfnNamespace.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnNamespace.Builder.
    • namespaceName

      @Stability(Stable) public CfnNamespace.Builder namespaceName(String 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

      @Stability(Stable) public CfnNamespace.Builder adminUsername(String 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

      @Stability(Stable) public CfnNamespace.Builder adminUserPassword(String 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

      @Stability(Stable) public CfnNamespace.Builder dbName(String 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

      @Stability(Stable) public CfnNamespace.Builder defaultIamRoleArn(String 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

      @Stability(Stable) public CfnNamespace.Builder finalSnapshotName(String 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

      @Stability(Stable) public CfnNamespace.Builder iamRoles(List<String> 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

      @Stability(Stable) public CfnNamespace.Builder kmsKeyId(String 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

      @Stability(Stable) public CfnNamespace.Builder logExports(List<String> logExports)
      The types of logs the namespace can export.

      Available export types are userlog , connectionlog , and useractivitylog .

      Parameters:
      logExports - The types of logs the namespace can export. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnNamespace.Builder tags(List<? extends CfnTag> 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

      @Stability(Stable) public CfnNamespace build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnNamespace>
      Returns:
      a newly built instance of CfnNamespace.