Class CfnGlobalReplicationGroup
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.elasticache.CfnGlobalReplicationGroup
- All Implemented Interfaces:
IInspectable,IGlobalReplicationGroupRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:04.890Z")
@Stability(Stable)
public class CfnGlobalReplicationGroup
extends CfnResource
implements IInspectable, IGlobalReplicationGroupRef
Consists of a primary cluster that accepts writes and an associated secondary cluster that resides in a different Amazon region.
The secondary cluster accepts only reads. The primary cluster automatically replicates updates to the secondary cluster.
- The GlobalReplicationGroupIdSuffix represents the name of the Global datastore, which is what you use to associate a secondary cluster.
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.elasticache.*;
CfnGlobalReplicationGroup cfnGlobalReplicationGroup = CfnGlobalReplicationGroup.Builder.create(this, "MyCfnGlobalReplicationGroup")
.members(List.of(GlobalReplicationGroupMemberProperty.builder()
.replicationGroupId("replicationGroupId")
.replicationGroupRegion("replicationGroupRegion")
.role("role")
.build()))
// the properties below are optional
.automaticFailoverEnabled(false)
.cacheNodeType("cacheNodeType")
.cacheParameterGroupName("cacheParameterGroupName")
.engine("engine")
.engineVersion("engineVersion")
.globalNodeGroupCount(123)
.globalReplicationGroupDescription("globalReplicationGroupDescription")
.globalReplicationGroupIdSuffix("globalReplicationGroupIdSuffix")
.regionalConfigurations(List.of(RegionalConfigurationProperty.builder()
.replicationGroupId("replicationGroupId")
.replicationGroupRegion("replicationGroupRegion")
.reshardingConfigurations(List.of(ReshardingConfigurationProperty.builder()
.nodeGroupId("nodeGroupId")
.preferredAvailabilityZones(List.of("preferredAvailabilityZones"))
.build()))
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnGlobalReplicationGroup.static interfaceA member of a Global datastore.static interfaceA list of the replication groups.static interfaceA list ofPreferredAvailabilityZonesobjects that specifies the configuration of a node group in the resharded 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.interfaces.elasticache.IGlobalReplicationGroupRef
IGlobalReplicationGroupRef.Jsii$Default, IGlobalReplicationGroupRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnGlobalReplicationGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnGlobalReplicationGroup(software.amazon.jsii.JsiiObjectRef objRef) CfnGlobalReplicationGroup(software.constructs.Construct scope, String id, CfnGlobalReplicationGroupProps props) Create a newAWS::ElastiCache::GlobalReplicationGroup. -
Method Summary
Modifier and TypeMethodDescriptionstatic IGlobalReplicationGroupReffromGlobalReplicationGroupId(software.constructs.Construct scope, String id, String globalReplicationGroupId) Creates a new IGlobalReplicationGroupRef from a globalReplicationGroupId.The ID used to associate a secondary cluster to the Global Replication Group.The status of the Global Datastore.Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.The cache node type of the Global datastore.The name of the cache parameter group to use with the Global datastore.The ElastiCache engine.The Elasticache Valkey or Redis OSS engine version.The number of node groups that comprise the Global Datastore.The optional description of the Global datastore.The suffix name of a Global Datastore.A reference to a GlobalReplicationGroup resource.The replication groups that comprise the Global datastore.The Regions that comprise the Global Datastore.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidSpecifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.voidSpecifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.voidsetCacheNodeType(String value) The cache node type of the Global datastore.voidsetCacheParameterGroupName(String value) The name of the cache parameter group to use with the Global datastore.voidThe ElastiCache engine.voidsetEngineVersion(String value) The Elasticache Valkey or Redis OSS engine version.voidsetGlobalNodeGroupCount(Number value) The number of node groups that comprise the Global Datastore.voidThe optional description of the Global datastore.voidThe suffix name of a Global Datastore.voidsetMembers(List<Object> value) The replication groups that comprise the Global datastore.voidsetMembers(IResolvable value) The replication groups that comprise the Global datastore.voidsetRegionalConfigurations(List<Object> value) The Regions that comprise the Global Datastore.voidThe Regions that comprise the Global Datastore.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.interfaces.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
-
CfnGlobalReplicationGroup
protected CfnGlobalReplicationGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnGlobalReplicationGroup
protected CfnGlobalReplicationGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnGlobalReplicationGroup
@Stability(Stable) public CfnGlobalReplicationGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnGlobalReplicationGroupProps props) Create a newAWS::ElastiCache::GlobalReplicationGroup.- 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. This parameter is required.
-
-
Method Details
-
fromGlobalReplicationGroupId
@Stability(Stable) @NotNull public static IGlobalReplicationGroupRef fromGlobalReplicationGroupId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String globalReplicationGroupId) Creates a new IGlobalReplicationGroupRef from a globalReplicationGroupId.- Parameters:
scope- This parameter is required.id- This parameter is required.globalReplicationGroupId- This parameter is required.
-
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.
-
getAttrGlobalReplicationGroupId
The ID used to associate a secondary cluster to the Global Replication Group. -
getAttrStatus
The status of the Global Datastore.Can be
Creating,Modifying,Available,DeletingorPrimary-Only. Primary-only status indicates the global datastore contains only a primary cluster. Either all secondary clusters are deleted or not successfully created. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getGlobalReplicationGroupRef
A reference to a GlobalReplicationGroup resource.- Specified by:
getGlobalReplicationGroupRefin interfaceIGlobalReplicationGroupRef
-
getMembers
The replication groups that comprise the Global datastore.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty> -
setMembers
The replication groups that comprise the Global datastore. -
setMembers
The replication groups that comprise the Global datastore. -
getAutomaticFailoverEnabled
Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.Returns union: either
BooleanorIResolvable -
setAutomaticFailoverEnabled
Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails. -
setAutomaticFailoverEnabled
Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails. -
getCacheNodeType
The cache node type of the Global datastore. -
setCacheNodeType
The cache node type of the Global datastore. -
getCacheParameterGroupName
The name of the cache parameter group to use with the Global datastore. -
setCacheParameterGroupName
The name of the cache parameter group to use with the Global datastore. -
getEngine
The ElastiCache engine. -
setEngine
The ElastiCache engine. -
getEngineVersion
The Elasticache Valkey or Redis OSS engine version. -
setEngineVersion
The Elasticache Valkey or Redis OSS engine version. -
getGlobalNodeGroupCount
The number of node groups that comprise the Global Datastore. -
setGlobalNodeGroupCount
The number of node groups that comprise the Global Datastore. -
getGlobalReplicationGroupDescription
The optional description of the Global datastore. -
setGlobalReplicationGroupDescription
The optional description of the Global datastore. -
getGlobalReplicationGroupIdSuffix
The suffix name of a Global Datastore. -
setGlobalReplicationGroupIdSuffix
The suffix name of a Global Datastore. -
getRegionalConfigurations
The Regions that comprise the Global Datastore.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnGlobalReplicationGroup.RegionalConfigurationProperty> -
setRegionalConfigurations
The Regions that comprise the Global Datastore. -
setRegionalConfigurations
The Regions that comprise the Global Datastore.
-