Class CfnGlobalCluster.Builder

java.lang.Object
software.amazon.awscdk.services.rds.CfnGlobalCluster.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalCluster>
Enclosing class:
CfnGlobalCluster

@Stability(Stable) public static final class CfnGlobalCluster.Builder extends Object implements software.amazon.jsii.Builder<CfnGlobalCluster>
A fluent builder for CfnGlobalCluster.
  • Method Details

    • create

      @Stability(Stable) public static CfnGlobalCluster.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 CfnGlobalCluster.Builder.
    • deletionProtection

      @Stability(Stable) public CfnGlobalCluster.Builder deletionProtection(Boolean deletionProtection)
      The deletion protection setting for the new global database.

      The global database can't be deleted when deletion protection is enabled.

      Parameters:
      deletionProtection - The deletion protection setting for the new global database. This parameter is required.
      Returns:
      this
    • deletionProtection

      @Stability(Stable) public CfnGlobalCluster.Builder deletionProtection(IResolvable deletionProtection)
      The deletion protection setting for the new global database.

      The global database can't be deleted when deletion protection is enabled.

      Parameters:
      deletionProtection - The deletion protection setting for the new global database. This parameter is required.
      Returns:
      this
    • engine

      @Stability(Stable) public CfnGlobalCluster.Builder engine(String engine)
      The name of the database engine to be used for this DB cluster.

      If this property isn't specified, the database engine is derived from the source DB cluster specified by the SourceDBClusterIdentifier property.

      If the SourceDBClusterIdentifier property isn't specified, this property is required. If the SourceDBClusterIdentifier property is specified, make sure this property isn't specified.

      Parameters:
      engine - The name of the database engine to be used for this DB cluster. This parameter is required.
      Returns:
      this
    • engineVersion

      @Stability(Stable) public CfnGlobalCluster.Builder engineVersion(String engineVersion)
      The engine version of the Aurora global database.

      Parameters:
      engineVersion - The engine version of the Aurora global database. This parameter is required.
      Returns:
      this
    • globalClusterIdentifier

      @Stability(Stable) public CfnGlobalCluster.Builder globalClusterIdentifier(String globalClusterIdentifier)
      The cluster identifier of the global database cluster.

      Parameters:
      globalClusterIdentifier - The cluster identifier of the global database cluster. This parameter is required.
      Returns:
      this
    • sourceDbClusterIdentifier

      @Stability(Stable) public CfnGlobalCluster.Builder sourceDbClusterIdentifier(String sourceDbClusterIdentifier)
      The DB cluster identifier or Amazon Resource Name (ARN) to use as the primary cluster of the global database.

      If the Engine property isn't specified, this property is required. If the Engine property is specified, make sure this property isn't specified.

      Parameters:
      sourceDbClusterIdentifier - The DB cluster identifier or Amazon Resource Name (ARN) to use as the primary cluster of the global database. This parameter is required.
      Returns:
      this
    • storageEncrypted

      @Stability(Stable) public CfnGlobalCluster.Builder storageEncrypted(Boolean storageEncrypted)
      The storage encryption setting for the global database cluster.

      Parameters:
      storageEncrypted - The storage encryption setting for the global database cluster. This parameter is required.
      Returns:
      this
    • storageEncrypted

      @Stability(Stable) public CfnGlobalCluster.Builder storageEncrypted(IResolvable storageEncrypted)
      The storage encryption setting for the global database cluster.

      Parameters:
      storageEncrypted - The storage encryption setting for the global database cluster. This parameter is required.
      Returns:
      this
    • build

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