Class CfnGlobalReplicationGroup.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnGlobalReplicationGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalReplicationGroup>
- Enclosing class:
CfnGlobalReplicationGroup
@Stability(Stable)
public static final class CfnGlobalReplicationGroup.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalReplicationGroup>
A fluent builder for
CfnGlobalReplicationGroup
.-
Method Summary
Modifier and TypeMethodDescriptionautomaticFailoverEnabled
(Boolean automaticFailoverEnabled) Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.automaticFailoverEnabled
(IResolvable automaticFailoverEnabled) Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.build()
cacheNodeType
(String cacheNodeType) The cache node type of the Global datastore.cacheParameterGroupName
(String cacheParameterGroupName) The name of the cache parameter group to use with the Global datastore.engineVersion
(String engineVersion) The Elasticache Redis OSS engine version.globalNodeGroupCount
(Number globalNodeGroupCount) The number of node groups that comprise the Global Datastore.globalReplicationGroupDescription
(String globalReplicationGroupDescription) The optional description of the Global datastore.globalReplicationGroupIdSuffix
(String globalReplicationGroupIdSuffix) The suffix name of a Global Datastore.The replication groups that comprise the Global datastore.members
(IResolvable members) The replication groups that comprise the Global datastore.regionalConfigurations
(List<? extends Object> regionalConfigurations) The Regions that comprise the Global Datastore.regionalConfigurations
(IResolvable regionalConfigurations) The Regions that comprise the Global Datastore.
-
Method Details
-
create
@Stability(Stable) public static CfnGlobalReplicationGroup.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnGlobalReplicationGroup.Builder
.
-
members
The replication groups that comprise the Global datastore.- Parameters:
members
- The replication groups that comprise the Global datastore. This parameter is required.- Returns:
this
- See Also:
-
members
The replication groups that comprise the Global datastore.- Parameters:
members
- The replication groups that comprise the Global datastore. This parameter is required.- Returns:
this
- See Also:
-
automaticFailoverEnabled
@Stability(Stable) public CfnGlobalReplicationGroup.Builder automaticFailoverEnabled(Boolean automaticFailoverEnabled) Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.AutomaticFailoverEnabled
must be enabled for Redis OSS (cluster mode enabled) replication groups.- Parameters:
automaticFailoverEnabled
- Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails. This parameter is required.- Returns:
this
- See Also:
-
automaticFailoverEnabled
@Stability(Stable) public CfnGlobalReplicationGroup.Builder automaticFailoverEnabled(IResolvable automaticFailoverEnabled) Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.AutomaticFailoverEnabled
must be enabled for Redis OSS (cluster mode enabled) replication groups.- Parameters:
automaticFailoverEnabled
- Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails. This parameter is required.- Returns:
this
- See Also:
-
cacheNodeType
The cache node type of the Global datastore.- Parameters:
cacheNodeType
- The cache node type of the Global datastore. This parameter is required.- Returns:
this
- See Also:
-
cacheParameterGroupName
@Stability(Stable) public CfnGlobalReplicationGroup.Builder cacheParameterGroupName(String cacheParameterGroupName) 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.
- Parameters:
cacheParameterGroupName
- The name of the cache parameter group to use with the Global datastore. This parameter is required.- Returns:
this
- See Also:
-
engineVersion
The Elasticache Redis OSS engine version.- Parameters:
engineVersion
- The Elasticache Redis OSS engine version. This parameter is required.- Returns:
this
- See Also:
-
globalNodeGroupCount
@Stability(Stable) public CfnGlobalReplicationGroup.Builder globalNodeGroupCount(Number globalNodeGroupCount) The number of node groups that comprise the Global Datastore.- Parameters:
globalNodeGroupCount
- The number of node groups that comprise the Global Datastore. This parameter is required.- Returns:
this
- See Also:
-
globalReplicationGroupDescription
@Stability(Stable) public CfnGlobalReplicationGroup.Builder globalReplicationGroupDescription(String globalReplicationGroupDescription) The optional description of the Global datastore.- Parameters:
globalReplicationGroupDescription
- The optional description of the Global datastore. This parameter is required.- Returns:
this
- See Also:
-
globalReplicationGroupIdSuffix
@Stability(Stable) public CfnGlobalReplicationGroup.Builder globalReplicationGroupIdSuffix(String globalReplicationGroupIdSuffix) The suffix name of a Global Datastore.The suffix guarantees uniqueness of the Global Datastore name across multiple regions.
- Parameters:
globalReplicationGroupIdSuffix
- The suffix name of a Global Datastore. This parameter is required.- Returns:
this
- See Also:
-
regionalConfigurations
@Stability(Stable) public CfnGlobalReplicationGroup.Builder regionalConfigurations(IResolvable regionalConfigurations) The Regions that comprise the Global Datastore.- Parameters:
regionalConfigurations
- The Regions that comprise the Global Datastore. This parameter is required.- Returns:
this
- See Also:
-
regionalConfigurations
@Stability(Stable) public CfnGlobalReplicationGroup.Builder regionalConfigurations(List<? extends Object> regionalConfigurations) The Regions that comprise the Global Datastore.- Parameters:
regionalConfigurations
- The Regions that comprise the Global Datastore. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGlobalReplicationGroup>
- Returns:
- a newly built instance of
CfnGlobalReplicationGroup
.
-