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 Summary
Modifier and TypeMethodDescriptionbuild()static CfnGlobalCluster.BuilderdeletionProtection(Boolean deletionProtection) Specifies whether to enable deletion protection for the new global database cluster.deletionProtection(IResolvable deletionProtection) Specifies whether to enable deletion protection for the new global database cluster.The database engine to use for this global database cluster.engineVersion(String engineVersion) The engine version to use for this global database cluster.globalClusterIdentifier(String globalClusterIdentifier) The cluster identifier for this global database cluster.sourceDbClusterIdentifier(String sourceDbClusterIdentifier) The Amazon Resource Name (ARN) to use as the primary cluster of the global database.storageEncrypted(Boolean storageEncrypted) Specifies whether to enable storage encryption for the new global database cluster.storageEncrypted(IResolvable storageEncrypted) Specifies whether to enable storage encryption for the new global database cluster.
-
Method Details
-
create
@Stability(Stable) public static CfnGlobalCluster.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnGlobalCluster.Builder.
-
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.
- Parameters:
deletionProtection- Specifies whether to enable deletion protection for the new global database cluster. This parameter is required.- Returns:
this- See Also:
-
deletionProtection
@Stability(Stable) public CfnGlobalCluster.Builder deletionProtection(IResolvable 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.
- Parameters:
deletionProtection- Specifies whether to enable deletion protection for the new global database cluster. This parameter is required.- Returns:
this- See Also:
-
engine
The database engine to use for this global database cluster.Valid Values:
aurora-mysql | aurora-postgresqlConstraints:
- Can't be specified if
SourceDBClusterIdentifieris specified. In this case, Amazon Aurora uses the engine of the source DB cluster.
- Parameters:
engine- The database engine to use for this global database cluster. This parameter is required.- Returns:
this- See Also:
- Can't be specified if
-
engineVersion
The engine version to use for this global database cluster.Constraints:
- Can't be specified if
SourceDBClusterIdentifieris specified. In this case, Amazon Aurora uses the engine version of the source DB cluster.
- Parameters:
engineVersion- The engine version to use for this global database cluster. This parameter is required.- Returns:
this- See Also:
- Can't be specified if
-
globalClusterIdentifier
@Stability(Stable) public CfnGlobalCluster.Builder globalClusterIdentifier(String globalClusterIdentifier) The cluster identifier for this global database cluster.This parameter is stored as a lowercase string.
- Parameters:
globalClusterIdentifier- The cluster identifier for this global database cluster. This parameter is required.- Returns:
this- See Also:
-
sourceDbClusterIdentifier
@Stability(Stable) public CfnGlobalCluster.Builder sourceDbClusterIdentifier(String 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:
DatabaseNameEngineEngineVersionStorageEncrypted
- Parameters:
sourceDbClusterIdentifier- The Amazon Resource Name (ARN) to use as the primary cluster of the global database. This parameter is required.- Returns:
this- See Also:
-
storageEncrypted
Specifies whether to enable storage encryption for the new global database cluster.Constraints:
- Can't be specified if
SourceDBClusterIdentifieris specified. In this case, Amazon Aurora uses the setting from the source DB cluster.
- Parameters:
storageEncrypted- Specifies whether to enable storage encryption for the new global database cluster. This parameter is required.- Returns:
this- See Also:
- Can't be specified if
-
storageEncrypted
Specifies whether to enable storage encryption for the new global database cluster.Constraints:
- Can't be specified if
SourceDBClusterIdentifieris specified. In this case, Amazon Aurora uses the setting from the source DB cluster.
- Parameters:
storageEncrypted- Specifies whether to enable storage encryption for the new global database cluster. This parameter is required.- Returns:
this- See Also:
- Can't be specified if
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGlobalCluster>- Returns:
- a newly built instance of
CfnGlobalCluster.
-