@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.427Z") @Stability(value=Stable) public class CfnGlobalCluster extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnGlobalCluster.Builder
A fluent builder for
CfnGlobalCluster. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnGlobalCluster(software.constructs.Construct scope,
String id)
Create a new `AWS::RDS::GlobalCluster`.
|
|
CfnGlobalCluster(software.constructs.Construct scope,
String id,
CfnGlobalClusterProps props)
Create a new `AWS::RDS::GlobalCluster`.
|
protected |
CfnGlobalCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnGlobalCluster(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
Object |
getDeletionProtection()
The deletion protection setting for the new global database.
|
String |
getEngine()
The name of the database engine to be used for this DB cluster.
|
String |
getEngineVersion()
The engine version of the Aurora global database.
|
String |
getGlobalClusterIdentifier()
The cluster identifier of the global database cluster.
|
String |
getSourceDbClusterIdentifier()
The DB cluster identifier or Amazon Resource Name (ARN) to use as the primary cluster of the global database.
|
Object |
getStorageEncrypted()
The storage encryption setting for the global database cluster.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDeletionProtection(Boolean value)
The deletion protection setting for the new global database.
|
void |
setDeletionProtection(IResolvable value)
The deletion protection setting for the new global database.
|
void |
setEngine(String value)
The name of the database engine to be used for this DB cluster.
|
void |
setEngineVersion(String value)
The engine version of the Aurora global database.
|
void |
setGlobalClusterIdentifier(String value)
The cluster identifier of the global database cluster.
|
void |
setSourceDbClusterIdentifier(String value)
The DB cluster identifier or Amazon Resource Name (ARN) to use as the primary cluster of the global database.
|
void |
setStorageEncrypted(Boolean value)
The storage encryption setting for the global database cluster.
|
void |
setStorageEncrypted(IResolvable value)
The storage encryption setting for the global database cluster.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnGlobalCluster(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnGlobalCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnGlobalCluster(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnGlobalClusterProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnGlobalCluster(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public Object getDeletionProtection()
The global database can't be deleted when deletion protection is enabled.
@Stability(value=Stable)
public void setDeletionProtection(@Nullable
Boolean value)
The global database can't be deleted when deletion protection is enabled.
@Stability(value=Stable)
public void setDeletionProtection(@Nullable
IResolvable value)
The global database can't be deleted when deletion protection is enabled.
@Stability(value=Stable) @Nullable public String getEngine()
If this property isn't specified, the database engine is derived from the source DB cluster specified by the SourceDBClusterIdentifier property.
If the
SourceDBClusterIdentifierproperty isn't specified, this property is required. If theSourceDBClusterIdentifierproperty is specified, make sure this property isn't specified.
@Stability(value=Stable)
public void setEngine(@Nullable
String value)
If this property isn't specified, the database engine is derived from the source DB cluster specified by the SourceDBClusterIdentifier property.
If the
SourceDBClusterIdentifierproperty isn't specified, this property is required. If theSourceDBClusterIdentifierproperty is specified, make sure this property isn't specified.
@Stability(value=Stable) @Nullable public String getEngineVersion()
@Stability(value=Stable)
public void setEngineVersion(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getGlobalClusterIdentifier()
@Stability(value=Stable)
public void setGlobalClusterIdentifier(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getSourceDbClusterIdentifier()
If the
Engineproperty isn't specified, this property is required. If theEngineproperty is specified, make sure this property isn't specified.
@Stability(value=Stable)
public void setSourceDbClusterIdentifier(@Nullable
String value)
If the
Engineproperty isn't specified, this property is required. If theEngineproperty is specified, make sure this property isn't specified.
@Stability(value=Stable) @Nullable public Object getStorageEncrypted()
@Stability(value=Stable)
public void setStorageEncrypted(@Nullable
Boolean value)
@Stability(value=Stable)
public void setStorageEncrypted(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.