@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:35.947Z") public class CfnGlobalReplicationGroup extends CfnResource implements IInspectable
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.
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();
Modifier and Type | Class and Description |
---|---|
static class |
CfnGlobalReplicationGroup.Builder
A fluent builder for
CfnGlobalReplicationGroup . |
static interface |
CfnGlobalReplicationGroup.GlobalReplicationGroupMemberProperty
A member of a Global datastore.
|
static interface |
CfnGlobalReplicationGroup.RegionalConfigurationProperty
A list of the replication groups.
|
static interface |
CfnGlobalReplicationGroup.ReshardingConfigurationProperty
A list of `PreferredAvailabilityZones` objects that specifies the configuration of a node group in the resharded cluster.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnGlobalReplicationGroup(Construct scope,
java.lang.String id,
CfnGlobalReplicationGroupProps props)
Create a new `AWS::ElastiCache::GlobalReplicationGroup`.
|
protected |
CfnGlobalReplicationGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnGlobalReplicationGroup(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrGlobalReplicationGroupId()
The ID used to associate a secondary cluster to the Global Replication Group.
|
java.lang.String |
getAttrStatus()
The status of the Global Datastore.
|
java.lang.Object |
getAutomaticFailoverEnabled()
Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.
|
java.lang.String |
getCacheNodeType()
The cache node type of the Global datastore.
|
java.lang.String |
getCacheParameterGroupName()
The name of the cache parameter group to use with the Global datastore.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getEngineVersion()
The Elasticache Redis engine version.
|
java.lang.Number |
getGlobalNodeGroupCount()
The number of node groups that comprise the Global Datastore.
|
java.lang.String |
getGlobalReplicationGroupDescription()
The optional description of the Global datastore.
|
java.lang.String |
getGlobalReplicationGroupIdSuffix()
The suffix name of a Global Datastore.
|
java.lang.Object |
getMembers()
The replication groups that comprise the Global datastore.
|
java.lang.Object |
getRegionalConfigurations()
The Regions that comprise the Global Datastore.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAutomaticFailoverEnabled(java.lang.Boolean value)
Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.
|
void |
setAutomaticFailoverEnabled(IResolvable value)
Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.
|
void |
setCacheNodeType(java.lang.String value)
The cache node type of the Global datastore.
|
void |
setCacheParameterGroupName(java.lang.String value)
The name of the cache parameter group to use with the Global datastore.
|
void |
setEngineVersion(java.lang.String value)
The Elasticache Redis engine version.
|
void |
setGlobalNodeGroupCount(java.lang.Number value)
The number of node groups that comprise the Global Datastore.
|
void |
setGlobalReplicationGroupDescription(java.lang.String value)
The optional description of the Global datastore.
|
void |
setGlobalReplicationGroupIdSuffix(java.lang.String value)
The suffix name of a Global Datastore.
|
void |
setMembers(IResolvable value)
The replication groups that comprise the Global datastore.
|
void |
setMembers(java.util.List<java.lang.Object> value)
The replication groups that comprise the Global datastore.
|
void |
setRegionalConfigurations(IResolvable value)
The Regions that comprise the Global Datastore.
|
void |
setRegionalConfigurations(java.util.List<java.lang.Object> value)
The Regions that comprise the Global Datastore.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnGlobalReplicationGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnGlobalReplicationGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnGlobalReplicationGroup(Construct scope, java.lang.String id, CfnGlobalReplicationGroupProps 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. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrGlobalReplicationGroupId()
public java.lang.String getAttrStatus()
Can be Creating
, Modifying
, Available
, Deleting
or Primary-Only
. Primary-only status indicates the global datastore contains only a primary cluster. Either all secondary clusters are deleted or not successfully created.
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.Object getMembers()
public void setMembers(IResolvable value)
public void setMembers(java.util.List<java.lang.Object> value)
public java.lang.Object getAutomaticFailoverEnabled()
AutomaticFailoverEnabled
must be enabled for Redis (cluster mode enabled) replication groups.
public void setAutomaticFailoverEnabled(java.lang.Boolean value)
AutomaticFailoverEnabled
must be enabled for Redis (cluster mode enabled) replication groups.
public void setAutomaticFailoverEnabled(IResolvable value)
AutomaticFailoverEnabled
must be enabled for Redis (cluster mode enabled) replication groups.
public java.lang.String getCacheNodeType()
public void setCacheNodeType(java.lang.String value)
public java.lang.String getCacheParameterGroupName()
It must be compatible with the major engine version used by the Global datastore.
public void setCacheParameterGroupName(java.lang.String value)
It must be compatible with the major engine version used by the Global datastore.
public java.lang.String getEngineVersion()
public void setEngineVersion(java.lang.String value)
public java.lang.Number getGlobalNodeGroupCount()
public void setGlobalNodeGroupCount(java.lang.Number value)
public java.lang.String getGlobalReplicationGroupDescription()
public void setGlobalReplicationGroupDescription(java.lang.String value)
public java.lang.String getGlobalReplicationGroupIdSuffix()
The suffix guarantees uniqueness of the Global Datastore name across multiple regions.
public void setGlobalReplicationGroupIdSuffix(java.lang.String value)
The suffix guarantees uniqueness of the Global Datastore name across multiple regions.
public java.lang.Object getRegionalConfigurations()
public void setRegionalConfigurations(IResolvable value)
public void setRegionalConfigurations(java.util.List<java.lang.Object> value)