Class CfnGlobalCluster.Builder
java.lang.Object
software.amazon.awscdk.services.docdb.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) Indicates whether the global cluster has deletion protection enabled.deletionProtection(IResolvable deletionProtection) Indicates whether the global cluster has deletion protection enabled.The database engine to use for this global cluster.engineVersion(String engineVersion) The engine version to use for this global cluster.globalClusterIdentifier(String globalClusterIdentifier) The cluster identifier of the global cluster.sourceDbClusterIdentifier(String sourceDbClusterIdentifier) The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster.storageEncrypted(Boolean storageEncrypted) Indicates whether the global cluster has storage encryption enabled.storageEncrypted(IResolvable storageEncrypted) Indicates whether the global cluster has storage encryption enabled.The tags to be assigned to the Amazon DocumentDB resource.
-
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.
-
globalClusterIdentifier
@Stability(Stable) public CfnGlobalCluster.Builder globalClusterIdentifier(String globalClusterIdentifier) The cluster identifier of the global cluster.- Parameters:
globalClusterIdentifier- The cluster identifier of the global cluster. This parameter is required.- Returns:
this- See Also:
-
deletionProtection
Indicates whether the global cluster has deletion protection enabled.The global cluster can't be deleted when deletion protection is enabled.
- Parameters:
deletionProtection- Indicates whether the global cluster has deletion protection enabled. This parameter is required.- Returns:
this- See Also:
-
deletionProtection
@Stability(Stable) public CfnGlobalCluster.Builder deletionProtection(IResolvable deletionProtection) Indicates whether the global cluster has deletion protection enabled.The global cluster can't be deleted when deletion protection is enabled.
- Parameters:
deletionProtection- Indicates whether the global cluster has deletion protection enabled. This parameter is required.- Returns:
this- See Also:
-
engine
The database engine to use for this global cluster.Default: - "docdb"
- Parameters:
engine- The database engine to use for this global cluster. This parameter is required.- Returns:
this- See Also:
-
engineVersion
The engine version to use for this global cluster.- Parameters:
engineVersion- The engine version to use for this global 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 cluster.You may also choose to instead specify the DBClusterIdentifier. If you provide a value for this parameter, don't specify values for the following settings because Amazon DocumentDB uses the values from the specified source DB cluster: Engine, EngineVersion, StorageEncrypted
- Parameters:
sourceDbClusterIdentifier- The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster. This parameter is required.- Returns:
this- See Also:
-
storageEncrypted
Indicates whether the global cluster has storage encryption enabled.- Parameters:
storageEncrypted- Indicates whether the global cluster has storage encryption enabled. This parameter is required.- Returns:
this- See Also:
-
storageEncrypted
Indicates whether the global cluster has storage encryption enabled.- Parameters:
storageEncrypted- Indicates whether the global cluster has storage encryption enabled. This parameter is required.- Returns:
this- See Also:
-
tags
The tags to be assigned to the Amazon DocumentDB resource.- Parameters:
tags- The tags to be assigned to the Amazon DocumentDB resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGlobalCluster>- Returns:
- a newly built instance of
CfnGlobalCluster.
-