Class CfnGlobalClusterProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • deletionProtection

      @Stability(Stable) public CfnGlobalClusterProps.Builder deletionProtection(Boolean deletionProtection)
      Parameters:
      deletionProtection - Specifies whether to enable deletion protection for the new global database cluster. The global database can't be deleted when deletion protection is enabled.
      Returns:
      this
    • deletionProtection

      @Stability(Stable) public CfnGlobalClusterProps.Builder deletionProtection(IResolvable deletionProtection)
      Parameters:
      deletionProtection - Specifies whether to enable deletion protection for the new global database cluster. The global database can't be deleted when deletion protection is enabled.
      Returns:
      this
    • engine

      @Stability(Stable) public CfnGlobalClusterProps.Builder engine(String engine)
      Parameters:
      engine - The database engine to use for this global database cluster. Valid Values: aurora-mysql | aurora-postgresql

      Constraints:

      • Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the engine of the source DB cluster.
      Returns:
      this
    • engineLifecycleSupport

      @Stability(Stable) public CfnGlobalClusterProps.Builder engineLifecycleSupport(String engineLifecycleSupport)
      Parameters:
      engineLifecycleSupport - The life cycle type for this global database cluster.

      By default, this value is set to open-source-rds-extended-support , which enrolls your global cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to open-source-rds-extended-support-disabled . In this case, creating the global cluster will fail if the DB major version is past its end of standard support date.

      This setting only applies to Aurora PostgreSQL-based global databases.

      You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your global cluster past the end of standard support for that engine version. For more information, see Using Amazon RDS Extended Support in the Amazon Aurora User Guide .

      Valid Values: open-source-rds-extended-support | open-source-rds-extended-support-disabled

      Default: open-source-rds-extended-support

      Returns:
      this
    • engineVersion

      @Stability(Stable) public CfnGlobalClusterProps.Builder engineVersion(String engineVersion)
      Parameters:
      engineVersion - The engine version to use for this global database cluster. Constraints:

      • Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the engine version of the source DB cluster.
      Returns:
      this
    • globalClusterIdentifier

      @Stability(Stable) public CfnGlobalClusterProps.Builder globalClusterIdentifier(String globalClusterIdentifier)
      Parameters:
      globalClusterIdentifier - The cluster identifier for this global database cluster. This parameter is stored as a lowercase string.
      Returns:
      this
    • sourceDbClusterIdentifier

      @Stability(Stable) public CfnGlobalClusterProps.Builder sourceDbClusterIdentifier(String sourceDbClusterIdentifier)
      Parameters:
      sourceDbClusterIdentifier - The Amazon Resource Name (ARN) to use as the primary cluster of the global database. If you provide a value for this parameter, don't specify values for the following settings because Amazon Aurora uses the values from the specified source DB cluster:

      • DatabaseName
      • Engine
      • EngineVersion
      • StorageEncrypted
      Returns:
      this
    • storageEncrypted

      @Stability(Stable) public CfnGlobalClusterProps.Builder storageEncrypted(Boolean storageEncrypted)
      Parameters:
      storageEncrypted - Specifies whether to enable storage encryption for the new global database cluster. Constraints:

      • Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the setting from the source DB cluster.
      Returns:
      this
    • storageEncrypted

      @Stability(Stable) public CfnGlobalClusterProps.Builder storageEncrypted(IResolvable storageEncrypted)
      Parameters:
      storageEncrypted - Specifies whether to enable storage encryption for the new global database cluster. Constraints:

      • Can't be specified if SourceDBClusterIdentifier is specified. In this case, Amazon Aurora uses the setting from the source DB cluster.
      Returns:
      this
    • build

      @Stability(Stable) public CfnGlobalClusterProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnGlobalClusterProps>
      Returns:
      a new instance of CfnGlobalClusterProps
      Throws:
      NullPointerException - if any required attribute was not provided