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.Builder
deletionProtection
(Boolean deletionProtection) The deletion protection setting for the new global database.deletionProtection
(IResolvable deletionProtection) The deletion protection setting for the new global database.The name of the database engine to be used for this DB cluster.engineVersion
(String engineVersion) The engine version of the Aurora global database.globalClusterIdentifier
(String globalClusterIdentifier) The cluster identifier of the global database cluster.sourceDbClusterIdentifier
(String sourceDbClusterIdentifier) The DB cluster identifier or Amazon Resource Name (ARN) to use as the primary cluster of the global database.storageEncrypted
(Boolean storageEncrypted) The storage encryption setting for the global database cluster.storageEncrypted
(IResolvable storageEncrypted) The storage encryption setting for the global database cluster.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnGlobalCluster.Builder
.
-
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
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 theSourceDBClusterIdentifier
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
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 theEngine
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
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
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGlobalCluster>
- Returns:
- a newly built instance of
CfnGlobalCluster
.
-