Class CfnGlobalReplicationGroup
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::ElastiCache::GlobalReplicationGroup.
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")
.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();
-
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.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
ConstructorsModifierConstructorDescriptionCfnGlobalReplicationGroup(Construct scope, String id, CfnGlobalReplicationGroupProps props) Create a newAWS::ElastiCache::GlobalReplicationGroup.protectedCfnGlobalReplicationGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnGlobalReplicationGroup(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe 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 Redis 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.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.voidsetEngineVersion(String value) The Elasticache Redis 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.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
-
CfnGlobalReplicationGroup
protected CfnGlobalReplicationGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnGlobalReplicationGroup
protected CfnGlobalReplicationGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnGlobalReplicationGroup
@Stability(Stable) public CfnGlobalReplicationGroup(@NotNull Construct scope, @NotNull String id, @NotNull CfnGlobalReplicationGroupProps props) Create a newAWS::ElastiCache::GlobalReplicationGroup.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
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.
-
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
-
getMembers
The replication groups that comprise the Global datastore. -
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.AutomaticFailoverEnabledmust be enabled for Redis (cluster mode enabled) replication groups. -
setAutomaticFailoverEnabled
Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.AutomaticFailoverEnabledmust be enabled for Redis (cluster mode enabled) replication groups. -
setAutomaticFailoverEnabled
Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.AutomaticFailoverEnabledmust be enabled for Redis (cluster mode enabled) replication groups. -
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.It must be compatible with the major engine version used by the Global datastore.
-
setCacheParameterGroupName
The name of the cache parameter group to use with the Global datastore.It must be compatible with the major engine version used by the Global datastore.
-
getEngineVersion
The Elasticache Redis engine version. -
setEngineVersion
The Elasticache Redis 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.The suffix guarantees uniqueness of the Global Datastore name across multiple regions.
-
setGlobalReplicationGroupIdSuffix
The suffix name of a Global Datastore.The suffix guarantees uniqueness of the Global Datastore name across multiple regions.
-
getRegionalConfigurations
The Regions that comprise the Global Datastore. -
setRegionalConfigurations
The Regions that comprise the Global Datastore. -
setRegionalConfigurations
The Regions that comprise the Global Datastore.
-