Class RedisClusterConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • pscConfigs

        @Stability(Stable)
        public RedisClusterConfig.Builder pscConfigs​(com.hashicorp.cdktf.IResolvable pscConfigs)
        Parameters:
        pscConfigs - psc_configs block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#psc_configs RedisCluster#psc_configs}
        Returns:
        this
      • pscConfigs

        @Stability(Stable)
        public RedisClusterConfig.Builder pscConfigs​(List<? extends RedisClusterPscConfigs> pscConfigs)
        Parameters:
        pscConfigs - psc_configs block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#psc_configs RedisCluster#psc_configs}
        Returns:
        this
      • shardCount

        @Stability(Stable)
        public RedisClusterConfig.Builder shardCount​(Number shardCount)
        Parameters:
        shardCount - Required. Number of shards for the Redis cluster. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#shard_count RedisCluster#shard_count}
        Returns:
        this
      • authorizationMode

        @Stability(Stable)
        public RedisClusterConfig.Builder authorizationMode​(String authorizationMode)
        Parameters:
        authorizationMode - Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#authorization_mode RedisCluster#authorization_mode}
        Returns:
        this
      • id

        @Stability(Stable)
        public RedisClusterConfig.Builder id​(String id)
        Sets the value of RedisClusterConfig.getId()
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#id RedisCluster#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
        Returns:
        this
      • name

        @Stability(Stable)
        public RedisClusterConfig.Builder name​(String name)
        Parameters:
        name - Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#name RedisCluster#name}
        Returns:
        this
      • nodeType

        @Stability(Stable)
        public RedisClusterConfig.Builder nodeType​(String nodeType)
        Parameters:
        nodeType - The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#node_type RedisCluster#node_type}
        Returns:
        this
      • project

        @Stability(Stable)
        public RedisClusterConfig.Builder project​(String project)
        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#project RedisCluster#project}.
        Returns:
        this
      • redisConfigs

        @Stability(Stable)
        public RedisClusterConfig.Builder redisConfigs​(Map<String,​String> redisConfigs)
        Parameters:
        redisConfigs - Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#redis_configs RedisCluster#redis_configs}
        Returns:
        this
      • region

        @Stability(Stable)
        public RedisClusterConfig.Builder region​(String region)
        Parameters:
        region - The name of the region of the Redis cluster. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#region RedisCluster#region}
        Returns:
        this
      • replicaCount

        @Stability(Stable)
        public RedisClusterConfig.Builder replicaCount​(Number replicaCount)
        Parameters:
        replicaCount - Optional. The number of replica nodes per shard. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#replica_count RedisCluster#replica_count}
        Returns:
        this
      • transitEncryptionMode

        @Stability(Stable)
        public RedisClusterConfig.Builder transitEncryptionMode​(String transitEncryptionMode)
        Parameters:
        transitEncryptionMode - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/redis_cluster#transit_encryption_mode RedisCluster#transit_encryption_mode}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public RedisClusterConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public RedisClusterConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public RedisClusterConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public RedisClusterConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public RedisClusterConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Sets the value of TerraformMetaArguments.getDependsOn()
        Parameters:
        dependsOn - the value to be set.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public RedisClusterConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Sets the value of TerraformMetaArguments.getForEach()
        Parameters:
        forEach - the value to be set.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public RedisClusterConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Sets the value of TerraformMetaArguments.getLifecycle()
        Parameters:
        lifecycle - the value to be set.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public RedisClusterConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public RedisClusterConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this