Class CfnGlobalCluster
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.rds.CfnGlobalCluster
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggableV2,IGlobalClusterRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:13.243Z")
@Stability(Stable)
public class CfnGlobalCluster
extends CfnResource
implements IInspectable, IGlobalClusterRef, ITaggableV2
The
AWS::RDS::GlobalCluster resource creates or updates an Amazon Aurora global database spread across multiple AWS Regions.
The global database contains a single primary cluster with read-write capability, and a read-only secondary cluster that receives data from the primary cluster through high-speed replication performed by the Aurora storage subsystem.
You can create a global database that is initially empty, and then add a primary cluster and a secondary cluster to it.
For information about Aurora global databases, see Working with Amazon Aurora Global Databases in the Amazon Aurora User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rds.*;
CfnGlobalCluster cfnGlobalCluster = CfnGlobalCluster.Builder.create(this, "MyCfnGlobalCluster")
.deletionProtection(false)
.engine("engine")
.engineLifecycleSupport("engineLifecycleSupport")
.engineVersion("engineVersion")
.globalClusterIdentifier("globalClusterIdentifier")
.sourceDbClusterIdentifier("sourceDbClusterIdentifier")
.storageEncrypted(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnGlobalCluster.static interfaceThe writer endpoint for the new global database cluster.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.rds.IGlobalClusterRef
IGlobalClusterRef.Jsii$Default, IGlobalClusterRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnGlobalCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnGlobalCluster(software.amazon.jsii.JsiiObjectRef objRef) CfnGlobalCluster(software.constructs.Construct scope, String id) CfnGlobalCluster(software.constructs.Construct scope, String id, CfnGlobalClusterProps props) -
Method Summary
Modifier and TypeMethodDescriptionTag Manager which manages the tags for this resource.Specifies whether to enable deletion protection for the new global database cluster.The database engine to use for this global database cluster.The life cycle type for this global database cluster.The engine version to use for this global database cluster.The cluster identifier for this global database cluster.A reference to a GlobalCluster resource.The Amazon Resource Name (ARN) to use as the primary cluster of the global database.Specifies whether to enable storage encryption for the new global database cluster.getTags()Metadata assigned to an Amazon RDS resource consisting of a key-value pair.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDeletionProtection(Boolean value) Specifies whether to enable deletion protection for the new global database cluster.voidsetDeletionProtection(IResolvable value) Specifies whether to enable deletion protection for the new global database cluster.voidThe database engine to use for this global database cluster.voidsetEngineLifecycleSupport(String value) The life cycle type for this global database cluster.voidsetEngineVersion(String value) The engine version to use for this global database cluster.voidsetGlobalClusterIdentifier(String value) The cluster identifier for this global database cluster.voidThe Amazon Resource Name (ARN) to use as the primary cluster of the global database.voidsetStorageEncrypted(Boolean value) Specifies whether to enable storage encryption for the new global database cluster.voidsetStorageEncrypted(IResolvable value) Specifies whether to enable storage encryption for the new global database cluster.voidMetadata assigned to an Amazon RDS resource consisting of a key-value pair.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnGlobalCluster
protected CfnGlobalCluster(software.amazon.jsii.JsiiObjectRef objRef) -
CfnGlobalCluster
protected CfnGlobalCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnGlobalCluster
@Stability(Stable) public CfnGlobalCluster(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnGlobalClusterProps props) - 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.props- Resource properties.
-
CfnGlobalCluster
@Stability(Stable) public CfnGlobalCluster(@NotNull software.constructs.Construct scope, @NotNull 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.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrGlobalEndpoint
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getGlobalClusterRef
A reference to a GlobalCluster resource.- Specified by:
getGlobalClusterRefin interfaceIGlobalClusterRef
-
getDeletionProtection
Specifies whether to enable deletion protection for the new global database cluster.Returns union: either
BooleanorIResolvable -
setDeletionProtection
Specifies whether to enable deletion protection for the new global database cluster. -
setDeletionProtection
Specifies whether to enable deletion protection for the new global database cluster. -
getEngine
The database engine to use for this global database cluster. -
setEngine
The database engine to use for this global database cluster. -
getEngineLifecycleSupport
The life cycle type for this global database cluster. -
setEngineLifecycleSupport
The life cycle type for this global database cluster. -
getEngineVersion
The engine version to use for this global database cluster. -
setEngineVersion
The engine version to use for this global database cluster. -
getGlobalClusterIdentifier
The cluster identifier for this global database cluster. -
setGlobalClusterIdentifier
The cluster identifier for this global database cluster. -
getSourceDbClusterIdentifier
The Amazon Resource Name (ARN) to use as the primary cluster of the global database. -
setSourceDbClusterIdentifier
The Amazon Resource Name (ARN) to use as the primary cluster of the global database. -
getStorageEncrypted
Specifies whether to enable storage encryption for the new global database cluster.Returns union: either
BooleanorIResolvable -
setStorageEncrypted
Specifies whether to enable storage encryption for the new global database cluster. -
setStorageEncrypted
Specifies whether to enable storage encryption for the new global database cluster. -
getTags
Metadata assigned to an Amazon RDS resource consisting of a key-value pair. -
setTags
Metadata assigned to an Amazon RDS resource consisting of a key-value pair.
-