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 class
A fluent builder forCfnGlobalReplicationGroup
.static interface
A member of a Global datastore.static interface
A list of the replication groups.static interface
A list ofPreferredAvailabilityZones
objects 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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnGlobalReplicationGroup
(Construct scope, String id, CfnGlobalReplicationGroupProps props) Create a newAWS::ElastiCache::GlobalReplicationGroup
.protected
CfnGlobalReplicationGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnGlobalReplicationGroup
(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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.void
Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.void
setCacheNodeType
(String value) The cache node type of the Global datastore.void
setCacheParameterGroupName
(String value) The name of the cache parameter group to use with the Global datastore.void
setEngineVersion
(String value) The Elasticache Redis engine version.void
setGlobalNodeGroupCount
(Number value) The number of node groups that comprise the Global Datastore.void
The optional description of the Global datastore.void
The suffix name of a Global Datastore.void
setMembers
(List<Object> value) The replication groups that comprise the Global datastore.void
setMembers
(IResolvable value) The replication groups that comprise the Global datastore.void
setRegionalConfigurations
(List<Object> value) The Regions that comprise the Global Datastore.void
The 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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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
,Deleting
orPrimary-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:
getCfnProperties
in 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.AutomaticFailoverEnabled
must 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.AutomaticFailoverEnabled
must 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.AutomaticFailoverEnabled
must 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.
-