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 Details

    • create

      @Stability(Stable) public static CfnGlobalReplicationGroup.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnGlobalReplicationGroup.Builder.
    • members

      @Stability(Stable) public CfnGlobalReplicationGroup.Builder members(IResolvable 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
    • members

      @Stability(Stable) public CfnGlobalReplicationGroup.Builder members(List<? extends Object> 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
    • 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 (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
    • 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 (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
    • cacheNodeType

      @Stability(Stable) public CfnGlobalReplicationGroup.Builder cacheNodeType(String 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
    • 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
    • engineVersion

      @Stability(Stable) public CfnGlobalReplicationGroup.Builder engineVersion(String engineVersion)
      The Elasticache Redis engine version.

      Parameters:
      engineVersion - The Elasticache Redis engine version. This parameter is required.
      Returns:
      this
    • 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
    • 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
    • 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
    • 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
    • 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
    • build

      @Stability(Stable) public CfnGlobalReplicationGroup build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnGlobalReplicationGroup>
      Returns:
      a newly built instance of CfnGlobalReplicationGroup.