Class GlobalReplicationGroupArgs.Builder

  • Enclosing class:
    GlobalReplicationGroupArgs

    public static final class GlobalReplicationGroupArgs.Builder
    extends java.lang.Object
    • Method Detail

      • automaticFailoverEnabled

        public GlobalReplicationGroupArgs.Builder automaticFailoverEnabled​(@Nullable
                                                                           com.pulumi.core.Output<java.lang.Boolean> automaticFailoverEnabled)
        Parameters:
        automaticFailoverEnabled - Specifies whether read-only replicas will be automatically promoted to read/write primary if the existing primary fails. When creating, by default the Global Replication Group inherits the automatic failover setting of the primary replication group.
        Returns:
        builder
      • automaticFailoverEnabled

        public GlobalReplicationGroupArgs.Builder automaticFailoverEnabled​(java.lang.Boolean automaticFailoverEnabled)
        Parameters:
        automaticFailoverEnabled - Specifies whether read-only replicas will be automatically promoted to read/write primary if the existing primary fails. When creating, by default the Global Replication Group inherits the automatic failover setting of the primary replication group.
        Returns:
        builder
      • cacheNodeType

        public GlobalReplicationGroupArgs.Builder cacheNodeType​(@Nullable
                                                                com.pulumi.core.Output<java.lang.String> cacheNodeType)
        Parameters:
        cacheNodeType - The instance class used. See AWS documentation for information on [supported node types](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html) and [guidance on selecting node types](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/nodes-select-size.html). When creating, by default the Global Replication Group inherits the node type of the primary replication group.
        Returns:
        builder
      • cacheNodeType

        public GlobalReplicationGroupArgs.Builder cacheNodeType​(java.lang.String cacheNodeType)
        Parameters:
        cacheNodeType - The instance class used. See AWS documentation for information on [supported node types](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html) and [guidance on selecting node types](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/nodes-select-size.html). When creating, by default the Global Replication Group inherits the node type of the primary replication group.
        Returns:
        builder
      • engine

        public GlobalReplicationGroupArgs.Builder engine​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> engine)
        Parameters:
        engine - The name of the cache engine to be used for the clusters in this global replication group. When creating, by default the Global Replication Group inherits the engine of the primary replication group. If an engine is specified, the Global Replication Group and all member replication groups will be upgraded to this engine. Valid values are `redis` or `valkey`. Default is `redis` if `engineVersion` is specified.
        Returns:
        builder
      • engine

        public GlobalReplicationGroupArgs.Builder engine​(java.lang.String engine)
        Parameters:
        engine - The name of the cache engine to be used for the clusters in this global replication group. When creating, by default the Global Replication Group inherits the engine of the primary replication group. If an engine is specified, the Global Replication Group and all member replication groups will be upgraded to this engine. Valid values are `redis` or `valkey`. Default is `redis` if `engineVersion` is specified.
        Returns:
        builder
      • engineVersion

        public GlobalReplicationGroupArgs.Builder engineVersion​(@Nullable
                                                                com.pulumi.core.Output<java.lang.String> engineVersion)
        Parameters:
        engineVersion - Engine version to use for the Global Replication Group. When creating, by default the Global Replication Group inherits the version of the primary replication group. If a version is specified, the Global Replication Group and all member replication groups will be upgraded to this version. Cannot be downgraded without replacing the Global Replication Group and all member replication groups. When the version is 7 or higher, the major and minor version should be set, e.g., `7.2`. When the version is 6, the major and minor version can be set, e.g., `6.2`, or the minor version can be unspecified which will use the latest version at creation time, e.g., `6.x`. The actual engine version used is returned in the attribute `engineVersionActual`, see Attribute Reference below.
        Returns:
        builder
      • engineVersion

        public GlobalReplicationGroupArgs.Builder engineVersion​(java.lang.String engineVersion)
        Parameters:
        engineVersion - Engine version to use for the Global Replication Group. When creating, by default the Global Replication Group inherits the version of the primary replication group. If a version is specified, the Global Replication Group and all member replication groups will be upgraded to this version. Cannot be downgraded without replacing the Global Replication Group and all member replication groups. When the version is 7 or higher, the major and minor version should be set, e.g., `7.2`. When the version is 6, the major and minor version can be set, e.g., `6.2`, or the minor version can be unspecified which will use the latest version at creation time, e.g., `6.x`. The actual engine version used is returned in the attribute `engineVersionActual`, see Attribute Reference below.
        Returns:
        builder
      • globalReplicationGroupDescription

        public GlobalReplicationGroupArgs.Builder globalReplicationGroupDescription​(@Nullable
                                                                                    com.pulumi.core.Output<java.lang.String> globalReplicationGroupDescription)
        Parameters:
        globalReplicationGroupDescription - A user-created description for the global replication group.
        Returns:
        builder
      • globalReplicationGroupDescription

        public GlobalReplicationGroupArgs.Builder globalReplicationGroupDescription​(java.lang.String globalReplicationGroupDescription)
        Parameters:
        globalReplicationGroupDescription - A user-created description for the global replication group.
        Returns:
        builder
      • globalReplicationGroupIdSuffix

        public GlobalReplicationGroupArgs.Builder globalReplicationGroupIdSuffix​(com.pulumi.core.Output<java.lang.String> globalReplicationGroupIdSuffix)
        Parameters:
        globalReplicationGroupIdSuffix - The suffix name of a Global Datastore. If `globalReplicationGroupIdSuffix` is changed, creates a new resource.
        Returns:
        builder
      • globalReplicationGroupIdSuffix

        public GlobalReplicationGroupArgs.Builder globalReplicationGroupIdSuffix​(java.lang.String globalReplicationGroupIdSuffix)
        Parameters:
        globalReplicationGroupIdSuffix - The suffix name of a Global Datastore. If `globalReplicationGroupIdSuffix` is changed, creates a new resource.
        Returns:
        builder
      • numNodeGroups

        public GlobalReplicationGroupArgs.Builder numNodeGroups​(@Nullable
                                                                com.pulumi.core.Output<java.lang.Integer> numNodeGroups)
        Parameters:
        numNodeGroups - The number of node groups (shards) on the global replication group.
        Returns:
        builder
      • numNodeGroups

        public GlobalReplicationGroupArgs.Builder numNodeGroups​(java.lang.Integer numNodeGroups)
        Parameters:
        numNodeGroups - The number of node groups (shards) on the global replication group.
        Returns:
        builder
      • parameterGroupName

        public GlobalReplicationGroupArgs.Builder parameterGroupName​(@Nullable
                                                                     com.pulumi.core.Output<java.lang.String> parameterGroupName)
        Parameters:
        parameterGroupName - An ElastiCache Parameter Group to use for the Global Replication Group. Required when upgrading a major engine version, but will be ignored if left configured after the upgrade is complete. Specifying without a major version upgrade will fail. When a replication group joins a global datastore, AWS auto-generates a new parameter group (prefixed `global-datastore-`) derived from the primary's parameter group. Note that ElastiCache creates a copy of this parameter group for each member replication group.
        Returns:
        builder
      • parameterGroupName

        public GlobalReplicationGroupArgs.Builder parameterGroupName​(java.lang.String parameterGroupName)
        Parameters:
        parameterGroupName - An ElastiCache Parameter Group to use for the Global Replication Group. Required when upgrading a major engine version, but will be ignored if left configured after the upgrade is complete. Specifying without a major version upgrade will fail. When a replication group joins a global datastore, AWS auto-generates a new parameter group (prefixed `global-datastore-`) derived from the primary's parameter group. Note that ElastiCache creates a copy of this parameter group for each member replication group.
        Returns:
        builder
      • primaryReplicationGroupId

        public GlobalReplicationGroupArgs.Builder primaryReplicationGroupId​(com.pulumi.core.Output<java.lang.String> primaryReplicationGroupId)
        Parameters:
        primaryReplicationGroupId - The ID of the primary cluster that accepts writes and will replicate updates to the secondary cluster. Changing this value will trigger a failover to the specified replication group.
        Returns:
        builder
      • primaryReplicationGroupId

        public GlobalReplicationGroupArgs.Builder primaryReplicationGroupId​(java.lang.String primaryReplicationGroupId)
        Parameters:
        primaryReplicationGroupId - The ID of the primary cluster that accepts writes and will replicate updates to the secondary cluster. Changing this value will trigger a failover to the specified replication group.
        Returns:
        builder
      • region

        public GlobalReplicationGroupArgs.Builder region​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public GlobalReplicationGroupArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder