Class CfnGlobalCluster
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::RDS::GlobalCluster.
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")
.engineVersion("engineVersion")
.globalClusterIdentifier("globalClusterIdentifier")
.sourceDbClusterIdentifier("sourceDbClusterIdentifier")
.storageEncrypted(false)
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnGlobalCluster(Construct scope, String id) Create a newAWS::RDS::GlobalCluster.CfnGlobalCluster(Construct scope, String id, CfnGlobalClusterProps props) Create a newAWS::RDS::GlobalCluster.protectedCfnGlobalCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnGlobalCluster(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe deletion protection setting for the new global database.The name of the database engine to be used for this DB cluster.The engine version of the Aurora global database.The cluster identifier of the global database cluster.The DB cluster identifier or Amazon Resource Name (ARN) to use as the primary cluster of the global database.The storage encryption setting for the global database cluster.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDeletionProtection(Boolean value) The deletion protection setting for the new global database.voidsetDeletionProtection(IResolvable value) The deletion protection setting for the new global database.voidThe name of the database engine to be used for this DB cluster.voidsetEngineVersion(String value) The engine version of the Aurora global database.voidsetGlobalClusterIdentifier(String value) The cluster identifier of the global database cluster.voidThe DB cluster identifier or Amazon Resource Name (ARN) to use as the primary cluster of the global database.voidsetStorageEncrypted(Boolean value) The storage encryption setting for the global database cluster.voidsetStorageEncrypted(IResolvable value) The storage encryption setting for the global database cluster.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @Nullable CfnGlobalClusterProps props) Create a newAWS::RDS::GlobalCluster.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
CfnGlobalCluster
Create a newAWS::RDS::GlobalCluster.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDeletionProtection
The deletion protection setting for the new global database.The global database can't be deleted when deletion protection is enabled.
-
setDeletionProtection
The deletion protection setting for the new global database.The global database can't be deleted when deletion protection is enabled.
-
setDeletionProtection
The deletion protection setting for the new global database.The global database can't be deleted when deletion protection is enabled.
-
getEngine
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
SourceDBClusterIdentifierproperty.If the
SourceDBClusterIdentifierproperty isn't specified, this property is required. If theSourceDBClusterIdentifierproperty is specified, make sure this property isn't specified. -
setEngine
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
SourceDBClusterIdentifierproperty.If the
SourceDBClusterIdentifierproperty isn't specified, this property is required. If theSourceDBClusterIdentifierproperty is specified, make sure this property isn't specified. -
getEngineVersion
The engine version of the Aurora global database. -
setEngineVersion
The engine version of the Aurora global database. -
getGlobalClusterIdentifier
The cluster identifier of the global database cluster. -
setGlobalClusterIdentifier
The cluster identifier of the global database cluster. -
getSourceDbClusterIdentifier
The DB cluster identifier or Amazon Resource Name (ARN) to use as the primary cluster of the global database.If the
Engineproperty isn't specified, this property is required. If theEngineproperty is specified, make sure this property isn't specified. -
setSourceDbClusterIdentifier
The DB cluster identifier or Amazon Resource Name (ARN) to use as the primary cluster of the global database.If the
Engineproperty isn't specified, this property is required. If theEngineproperty is specified, make sure this property isn't specified. -
getStorageEncrypted
The storage encryption setting for the global database cluster. -
setStorageEncrypted
The storage encryption setting for the global database cluster. -
setStorageEncrypted
The storage encryption setting for the global database cluster.
-