1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. redis
  5. Cluster
Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi

gcp.redis.Cluster

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi

    A Google Cloud Redis Cluster instance.

    To get more information about Cluster, see:

    Example Usage

    Redis Cluster Ha

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const producerNet = new gcp.compute.Network("producer_net", {
        name: "mynetwork",
        autoCreateSubnetworks: false,
    });
    const producerSubnet = new gcp.compute.Subnetwork("producer_subnet", {
        name: "mysubnet",
        ipCidrRange: "10.0.0.248/29",
        region: "us-central1",
        network: producerNet.id,
    });
    const _default = new gcp.networkconnectivity.ServiceConnectionPolicy("default", {
        name: "mypolicy",
        location: "us-central1",
        serviceClass: "gcp-memorystore-redis",
        description: "my basic service connection policy",
        network: producerNet.id,
        pscConfig: {
            subnetworks: [producerSubnet.id],
        },
    });
    const cluster_ha = new gcp.redis.Cluster("cluster-ha", {
        name: "ha-cluster",
        shardCount: 3,
        pscConfigs: [{
            network: producerNet.id,
        }],
        region: "us-central1",
        replicaCount: 1,
        nodeType: "REDIS_SHARED_CORE_NANO",
        transitEncryptionMode: "TRANSIT_ENCRYPTION_MODE_DISABLED",
        authorizationMode: "AUTH_MODE_DISABLED",
        redisConfigs: {
            "maxmemory-policy": "volatile-ttl",
        },
        deletionProtectionEnabled: true,
        zoneDistributionConfig: {
            mode: "MULTI_ZONE",
        },
        maintenancePolicy: {
            weeklyMaintenanceWindows: [{
                day: "MONDAY",
                startTime: {
                    hours: 1,
                    minutes: 0,
                    seconds: 0,
                    nanos: 0,
                },
            }],
        },
    }, {
        dependsOn: [_default],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    producer_net = gcp.compute.Network("producer_net",
        name="mynetwork",
        auto_create_subnetworks=False)
    producer_subnet = gcp.compute.Subnetwork("producer_subnet",
        name="mysubnet",
        ip_cidr_range="10.0.0.248/29",
        region="us-central1",
        network=producer_net.id)
    default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
        name="mypolicy",
        location="us-central1",
        service_class="gcp-memorystore-redis",
        description="my basic service connection policy",
        network=producer_net.id,
        psc_config={
            "subnetworks": [producer_subnet.id],
        })
    cluster_ha = gcp.redis.Cluster("cluster-ha",
        name="ha-cluster",
        shard_count=3,
        psc_configs=[{
            "network": producer_net.id,
        }],
        region="us-central1",
        replica_count=1,
        node_type="REDIS_SHARED_CORE_NANO",
        transit_encryption_mode="TRANSIT_ENCRYPTION_MODE_DISABLED",
        authorization_mode="AUTH_MODE_DISABLED",
        redis_configs={
            "maxmemory-policy": "volatile-ttl",
        },
        deletion_protection_enabled=True,
        zone_distribution_config={
            "mode": "MULTI_ZONE",
        },
        maintenance_policy={
            "weekly_maintenance_windows": [{
                "day": "MONDAY",
                "start_time": {
                    "hours": 1,
                    "minutes": 0,
                    "seconds": 0,
                    "nanos": 0,
                },
            }],
        },
        opts = pulumi.ResourceOptions(depends_on=[default]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networkconnectivity"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/redis"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		producerNet, err := compute.NewNetwork(ctx, "producer_net", &compute.NetworkArgs{
    			Name:                  pulumi.String("mynetwork"),
    			AutoCreateSubnetworks: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		producerSubnet, err := compute.NewSubnetwork(ctx, "producer_subnet", &compute.SubnetworkArgs{
    			Name:        pulumi.String("mysubnet"),
    			IpCidrRange: pulumi.String("10.0.0.248/29"),
    			Region:      pulumi.String("us-central1"),
    			Network:     producerNet.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = networkconnectivity.NewServiceConnectionPolicy(ctx, "default", &networkconnectivity.ServiceConnectionPolicyArgs{
    			Name:         pulumi.String("mypolicy"),
    			Location:     pulumi.String("us-central1"),
    			ServiceClass: pulumi.String("gcp-memorystore-redis"),
    			Description:  pulumi.String("my basic service connection policy"),
    			Network:      producerNet.ID(),
    			PscConfig: &networkconnectivity.ServiceConnectionPolicyPscConfigArgs{
    				Subnetworks: pulumi.StringArray{
    					producerSubnet.ID(),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = redis.NewCluster(ctx, "cluster-ha", &redis.ClusterArgs{
    			Name:       pulumi.String("ha-cluster"),
    			ShardCount: pulumi.Int(3),
    			PscConfigs: redis.ClusterPscConfigArray{
    				&redis.ClusterPscConfigArgs{
    					Network: producerNet.ID(),
    				},
    			},
    			Region:                pulumi.String("us-central1"),
    			ReplicaCount:          pulumi.Int(1),
    			NodeType:              pulumi.String("REDIS_SHARED_CORE_NANO"),
    			TransitEncryptionMode: pulumi.String("TRANSIT_ENCRYPTION_MODE_DISABLED"),
    			AuthorizationMode:     pulumi.String("AUTH_MODE_DISABLED"),
    			RedisConfigs: pulumi.StringMap{
    				"maxmemory-policy": pulumi.String("volatile-ttl"),
    			},
    			DeletionProtectionEnabled: pulumi.Bool(true),
    			ZoneDistributionConfig: &redis.ClusterZoneDistributionConfigArgs{
    				Mode: pulumi.String("MULTI_ZONE"),
    			},
    			MaintenancePolicy: &redis.ClusterMaintenancePolicyArgs{
    				WeeklyMaintenanceWindows: redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowArray{
    					&redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs{
    						Day: pulumi.String("MONDAY"),
    						StartTime: &redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs{
    							Hours:   pulumi.Int(1),
    							Minutes: pulumi.Int(0),
    							Seconds: pulumi.Int(0),
    							Nanos:   pulumi.Int(0),
    						},
    					},
    				},
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			_default,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var producerNet = new Gcp.Compute.Network("producer_net", new()
        {
            Name = "mynetwork",
            AutoCreateSubnetworks = false,
        });
    
        var producerSubnet = new Gcp.Compute.Subnetwork("producer_subnet", new()
        {
            Name = "mysubnet",
            IpCidrRange = "10.0.0.248/29",
            Region = "us-central1",
            Network = producerNet.Id,
        });
    
        var @default = new Gcp.NetworkConnectivity.ServiceConnectionPolicy("default", new()
        {
            Name = "mypolicy",
            Location = "us-central1",
            ServiceClass = "gcp-memorystore-redis",
            Description = "my basic service connection policy",
            Network = producerNet.Id,
            PscConfig = new Gcp.NetworkConnectivity.Inputs.ServiceConnectionPolicyPscConfigArgs
            {
                Subnetworks = new[]
                {
                    producerSubnet.Id,
                },
            },
        });
    
        var cluster_ha = new Gcp.Redis.Cluster("cluster-ha", new()
        {
            Name = "ha-cluster",
            ShardCount = 3,
            PscConfigs = new[]
            {
                new Gcp.Redis.Inputs.ClusterPscConfigArgs
                {
                    Network = producerNet.Id,
                },
            },
            Region = "us-central1",
            ReplicaCount = 1,
            NodeType = "REDIS_SHARED_CORE_NANO",
            TransitEncryptionMode = "TRANSIT_ENCRYPTION_MODE_DISABLED",
            AuthorizationMode = "AUTH_MODE_DISABLED",
            RedisConfigs = 
            {
                { "maxmemory-policy", "volatile-ttl" },
            },
            DeletionProtectionEnabled = true,
            ZoneDistributionConfig = new Gcp.Redis.Inputs.ClusterZoneDistributionConfigArgs
            {
                Mode = "MULTI_ZONE",
            },
            MaintenancePolicy = new Gcp.Redis.Inputs.ClusterMaintenancePolicyArgs
            {
                WeeklyMaintenanceWindows = new[]
                {
                    new Gcp.Redis.Inputs.ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs
                    {
                        Day = "MONDAY",
                        StartTime = new Gcp.Redis.Inputs.ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs
                        {
                            Hours = 1,
                            Minutes = 0,
                            Seconds = 0,
                            Nanos = 0,
                        },
                    },
                },
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                @default,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.Network;
    import com.pulumi.gcp.compute.NetworkArgs;
    import com.pulumi.gcp.compute.Subnetwork;
    import com.pulumi.gcp.compute.SubnetworkArgs;
    import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicy;
    import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicyArgs;
    import com.pulumi.gcp.networkconnectivity.inputs.ServiceConnectionPolicyPscConfigArgs;
    import com.pulumi.gcp.redis.Cluster;
    import com.pulumi.gcp.redis.ClusterArgs;
    import com.pulumi.gcp.redis.inputs.ClusterPscConfigArgs;
    import com.pulumi.gcp.redis.inputs.ClusterZoneDistributionConfigArgs;
    import com.pulumi.gcp.redis.inputs.ClusterMaintenancePolicyArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var producerNet = new Network("producerNet", NetworkArgs.builder()
                .name("mynetwork")
                .autoCreateSubnetworks(false)
                .build());
    
            var producerSubnet = new Subnetwork("producerSubnet", SubnetworkArgs.builder()
                .name("mysubnet")
                .ipCidrRange("10.0.0.248/29")
                .region("us-central1")
                .network(producerNet.id())
                .build());
    
            var default_ = new ServiceConnectionPolicy("default", ServiceConnectionPolicyArgs.builder()
                .name("mypolicy")
                .location("us-central1")
                .serviceClass("gcp-memorystore-redis")
                .description("my basic service connection policy")
                .network(producerNet.id())
                .pscConfig(ServiceConnectionPolicyPscConfigArgs.builder()
                    .subnetworks(producerSubnet.id())
                    .build())
                .build());
    
            var cluster_ha = new Cluster("cluster-ha", ClusterArgs.builder()
                .name("ha-cluster")
                .shardCount(3)
                .pscConfigs(ClusterPscConfigArgs.builder()
                    .network(producerNet.id())
                    .build())
                .region("us-central1")
                .replicaCount(1)
                .nodeType("REDIS_SHARED_CORE_NANO")
                .transitEncryptionMode("TRANSIT_ENCRYPTION_MODE_DISABLED")
                .authorizationMode("AUTH_MODE_DISABLED")
                .redisConfigs(Map.of("maxmemory-policy", "volatile-ttl"))
                .deletionProtectionEnabled(true)
                .zoneDistributionConfig(ClusterZoneDistributionConfigArgs.builder()
                    .mode("MULTI_ZONE")
                    .build())
                .maintenancePolicy(ClusterMaintenancePolicyArgs.builder()
                    .weeklyMaintenanceWindows(ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs.builder()
                        .day("MONDAY")
                        .startTime(ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs.builder()
                            .hours(1)
                            .minutes(0)
                            .seconds(0)
                            .nanos(0)
                            .build())
                        .build())
                    .build())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(default_)
                    .build());
    
        }
    }
    
    resources:
      cluster-ha:
        type: gcp:redis:Cluster
        properties:
          name: ha-cluster
          shardCount: 3
          pscConfigs:
            - network: ${producerNet.id}
          region: us-central1
          replicaCount: 1
          nodeType: REDIS_SHARED_CORE_NANO
          transitEncryptionMode: TRANSIT_ENCRYPTION_MODE_DISABLED
          authorizationMode: AUTH_MODE_DISABLED
          redisConfigs:
            maxmemory-policy: volatile-ttl
          deletionProtectionEnabled: true
          zoneDistributionConfig:
            mode: MULTI_ZONE
          maintenancePolicy:
            weeklyMaintenanceWindows:
              - day: MONDAY
                startTime:
                  hours: 1
                  minutes: 0
                  seconds: 0
                  nanos: 0
        options:
          dependson:
            - ${default}
      default:
        type: gcp:networkconnectivity:ServiceConnectionPolicy
        properties:
          name: mypolicy
          location: us-central1
          serviceClass: gcp-memorystore-redis
          description: my basic service connection policy
          network: ${producerNet.id}
          pscConfig:
            subnetworks:
              - ${producerSubnet.id}
      producerSubnet:
        type: gcp:compute:Subnetwork
        name: producer_subnet
        properties:
          name: mysubnet
          ipCidrRange: 10.0.0.248/29
          region: us-central1
          network: ${producerNet.id}
      producerNet:
        type: gcp:compute:Network
        name: producer_net
        properties:
          name: mynetwork
          autoCreateSubnetworks: false
    

    Redis Cluster Ha Single Zone

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const producerNet = new gcp.compute.Network("producer_net", {
        name: "mynetwork",
        autoCreateSubnetworks: false,
    });
    const producerSubnet = new gcp.compute.Subnetwork("producer_subnet", {
        name: "mysubnet",
        ipCidrRange: "10.0.0.248/29",
        region: "us-central1",
        network: producerNet.id,
    });
    const _default = new gcp.networkconnectivity.ServiceConnectionPolicy("default", {
        name: "mypolicy",
        location: "us-central1",
        serviceClass: "gcp-memorystore-redis",
        description: "my basic service connection policy",
        network: producerNet.id,
        pscConfig: {
            subnetworks: [producerSubnet.id],
        },
    });
    const cluster_ha_single_zone = new gcp.redis.Cluster("cluster-ha-single-zone", {
        name: "ha-cluster-single-zone",
        shardCount: 3,
        pscConfigs: [{
            network: producerNet.id,
        }],
        region: "us-central1",
        zoneDistributionConfig: {
            mode: "SINGLE_ZONE",
            zone: "us-central1-f",
        },
        maintenancePolicy: {
            weeklyMaintenanceWindows: [{
                day: "MONDAY",
                startTime: {
                    hours: 1,
                    minutes: 0,
                    seconds: 0,
                    nanos: 0,
                },
            }],
        },
        deletionProtectionEnabled: true,
    }, {
        dependsOn: [_default],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    producer_net = gcp.compute.Network("producer_net",
        name="mynetwork",
        auto_create_subnetworks=False)
    producer_subnet = gcp.compute.Subnetwork("producer_subnet",
        name="mysubnet",
        ip_cidr_range="10.0.0.248/29",
        region="us-central1",
        network=producer_net.id)
    default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
        name="mypolicy",
        location="us-central1",
        service_class="gcp-memorystore-redis",
        description="my basic service connection policy",
        network=producer_net.id,
        psc_config={
            "subnetworks": [producer_subnet.id],
        })
    cluster_ha_single_zone = gcp.redis.Cluster("cluster-ha-single-zone",
        name="ha-cluster-single-zone",
        shard_count=3,
        psc_configs=[{
            "network": producer_net.id,
        }],
        region="us-central1",
        zone_distribution_config={
            "mode": "SINGLE_ZONE",
            "zone": "us-central1-f",
        },
        maintenance_policy={
            "weekly_maintenance_windows": [{
                "day": "MONDAY",
                "start_time": {
                    "hours": 1,
                    "minutes": 0,
                    "seconds": 0,
                    "nanos": 0,
                },
            }],
        },
        deletion_protection_enabled=True,
        opts = pulumi.ResourceOptions(depends_on=[default]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networkconnectivity"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/redis"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		producerNet, err := compute.NewNetwork(ctx, "producer_net", &compute.NetworkArgs{
    			Name:                  pulumi.String("mynetwork"),
    			AutoCreateSubnetworks: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		producerSubnet, err := compute.NewSubnetwork(ctx, "producer_subnet", &compute.SubnetworkArgs{
    			Name:        pulumi.String("mysubnet"),
    			IpCidrRange: pulumi.String("10.0.0.248/29"),
    			Region:      pulumi.String("us-central1"),
    			Network:     producerNet.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = networkconnectivity.NewServiceConnectionPolicy(ctx, "default", &networkconnectivity.ServiceConnectionPolicyArgs{
    			Name:         pulumi.String("mypolicy"),
    			Location:     pulumi.String("us-central1"),
    			ServiceClass: pulumi.String("gcp-memorystore-redis"),
    			Description:  pulumi.String("my basic service connection policy"),
    			Network:      producerNet.ID(),
    			PscConfig: &networkconnectivity.ServiceConnectionPolicyPscConfigArgs{
    				Subnetworks: pulumi.StringArray{
    					producerSubnet.ID(),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = redis.NewCluster(ctx, "cluster-ha-single-zone", &redis.ClusterArgs{
    			Name:       pulumi.String("ha-cluster-single-zone"),
    			ShardCount: pulumi.Int(3),
    			PscConfigs: redis.ClusterPscConfigArray{
    				&redis.ClusterPscConfigArgs{
    					Network: producerNet.ID(),
    				},
    			},
    			Region: pulumi.String("us-central1"),
    			ZoneDistributionConfig: &redis.ClusterZoneDistributionConfigArgs{
    				Mode: pulumi.String("SINGLE_ZONE"),
    				Zone: pulumi.String("us-central1-f"),
    			},
    			MaintenancePolicy: &redis.ClusterMaintenancePolicyArgs{
    				WeeklyMaintenanceWindows: redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowArray{
    					&redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs{
    						Day: pulumi.String("MONDAY"),
    						StartTime: &redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs{
    							Hours:   pulumi.Int(1),
    							Minutes: pulumi.Int(0),
    							Seconds: pulumi.Int(0),
    							Nanos:   pulumi.Int(0),
    						},
    					},
    				},
    			},
    			DeletionProtectionEnabled: pulumi.Bool(true),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			_default,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var producerNet = new Gcp.Compute.Network("producer_net", new()
        {
            Name = "mynetwork",
            AutoCreateSubnetworks = false,
        });
    
        var producerSubnet = new Gcp.Compute.Subnetwork("producer_subnet", new()
        {
            Name = "mysubnet",
            IpCidrRange = "10.0.0.248/29",
            Region = "us-central1",
            Network = producerNet.Id,
        });
    
        var @default = new Gcp.NetworkConnectivity.ServiceConnectionPolicy("default", new()
        {
            Name = "mypolicy",
            Location = "us-central1",
            ServiceClass = "gcp-memorystore-redis",
            Description = "my basic service connection policy",
            Network = producerNet.Id,
            PscConfig = new Gcp.NetworkConnectivity.Inputs.ServiceConnectionPolicyPscConfigArgs
            {
                Subnetworks = new[]
                {
                    producerSubnet.Id,
                },
            },
        });
    
        var cluster_ha_single_zone = new Gcp.Redis.Cluster("cluster-ha-single-zone", new()
        {
            Name = "ha-cluster-single-zone",
            ShardCount = 3,
            PscConfigs = new[]
            {
                new Gcp.Redis.Inputs.ClusterPscConfigArgs
                {
                    Network = producerNet.Id,
                },
            },
            Region = "us-central1",
            ZoneDistributionConfig = new Gcp.Redis.Inputs.ClusterZoneDistributionConfigArgs
            {
                Mode = "SINGLE_ZONE",
                Zone = "us-central1-f",
            },
            MaintenancePolicy = new Gcp.Redis.Inputs.ClusterMaintenancePolicyArgs
            {
                WeeklyMaintenanceWindows = new[]
                {
                    new Gcp.Redis.Inputs.ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs
                    {
                        Day = "MONDAY",
                        StartTime = new Gcp.Redis.Inputs.ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs
                        {
                            Hours = 1,
                            Minutes = 0,
                            Seconds = 0,
                            Nanos = 0,
                        },
                    },
                },
            },
            DeletionProtectionEnabled = true,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                @default,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.Network;
    import com.pulumi.gcp.compute.NetworkArgs;
    import com.pulumi.gcp.compute.Subnetwork;
    import com.pulumi.gcp.compute.SubnetworkArgs;
    import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicy;
    import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicyArgs;
    import com.pulumi.gcp.networkconnectivity.inputs.ServiceConnectionPolicyPscConfigArgs;
    import com.pulumi.gcp.redis.Cluster;
    import com.pulumi.gcp.redis.ClusterArgs;
    import com.pulumi.gcp.redis.inputs.ClusterPscConfigArgs;
    import com.pulumi.gcp.redis.inputs.ClusterZoneDistributionConfigArgs;
    import com.pulumi.gcp.redis.inputs.ClusterMaintenancePolicyArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var producerNet = new Network("producerNet", NetworkArgs.builder()
                .name("mynetwork")
                .autoCreateSubnetworks(false)
                .build());
    
            var producerSubnet = new Subnetwork("producerSubnet", SubnetworkArgs.builder()
                .name("mysubnet")
                .ipCidrRange("10.0.0.248/29")
                .region("us-central1")
                .network(producerNet.id())
                .build());
    
            var default_ = new ServiceConnectionPolicy("default", ServiceConnectionPolicyArgs.builder()
                .name("mypolicy")
                .location("us-central1")
                .serviceClass("gcp-memorystore-redis")
                .description("my basic service connection policy")
                .network(producerNet.id())
                .pscConfig(ServiceConnectionPolicyPscConfigArgs.builder()
                    .subnetworks(producerSubnet.id())
                    .build())
                .build());
    
            var cluster_ha_single_zone = new Cluster("cluster-ha-single-zone", ClusterArgs.builder()
                .name("ha-cluster-single-zone")
                .shardCount(3)
                .pscConfigs(ClusterPscConfigArgs.builder()
                    .network(producerNet.id())
                    .build())
                .region("us-central1")
                .zoneDistributionConfig(ClusterZoneDistributionConfigArgs.builder()
                    .mode("SINGLE_ZONE")
                    .zone("us-central1-f")
                    .build())
                .maintenancePolicy(ClusterMaintenancePolicyArgs.builder()
                    .weeklyMaintenanceWindows(ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs.builder()
                        .day("MONDAY")
                        .startTime(ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs.builder()
                            .hours(1)
                            .minutes(0)
                            .seconds(0)
                            .nanos(0)
                            .build())
                        .build())
                    .build())
                .deletionProtectionEnabled(true)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(default_)
                    .build());
    
        }
    }
    
    resources:
      cluster-ha-single-zone:
        type: gcp:redis:Cluster
        properties:
          name: ha-cluster-single-zone
          shardCount: 3
          pscConfigs:
            - network: ${producerNet.id}
          region: us-central1
          zoneDistributionConfig:
            mode: SINGLE_ZONE
            zone: us-central1-f
          maintenancePolicy:
            weeklyMaintenanceWindows:
              - day: MONDAY
                startTime:
                  hours: 1
                  minutes: 0
                  seconds: 0
                  nanos: 0
          deletionProtectionEnabled: true
        options:
          dependson:
            - ${default}
      default:
        type: gcp:networkconnectivity:ServiceConnectionPolicy
        properties:
          name: mypolicy
          location: us-central1
          serviceClass: gcp-memorystore-redis
          description: my basic service connection policy
          network: ${producerNet.id}
          pscConfig:
            subnetworks:
              - ${producerSubnet.id}
      producerSubnet:
        type: gcp:compute:Subnetwork
        name: producer_subnet
        properties:
          name: mysubnet
          ipCidrRange: 10.0.0.248/29
          region: us-central1
          network: ${producerNet.id}
      producerNet:
        type: gcp:compute:Network
        name: producer_net
        properties:
          name: mynetwork
          autoCreateSubnetworks: false
    

    Create Cluster Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
    @overload
    def Cluster(resource_name: str,
                args: ClusterArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Cluster(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                psc_configs: Optional[Sequence[ClusterPscConfigArgs]] = None,
                shard_count: Optional[int] = None,
                name: Optional[str] = None,
                authorization_mode: Optional[str] = None,
                node_type: Optional[str] = None,
                project: Optional[str] = None,
                maintenance_policy: Optional[ClusterMaintenancePolicyArgs] = None,
                redis_configs: Optional[Mapping[str, str]] = None,
                region: Optional[str] = None,
                replica_count: Optional[int] = None,
                deletion_protection_enabled: Optional[bool] = None,
                transit_encryption_mode: Optional[str] = None,
                zone_distribution_config: Optional[ClusterZoneDistributionConfigArgs] = None)
    func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
    public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
    public Cluster(String name, ClusterArgs args)
    public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
    
    type: gcp:redis:Cluster
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var exampleclusterResourceResourceFromRediscluster = new Gcp.Redis.Cluster("exampleclusterResourceResourceFromRediscluster", new()
    {
        PscConfigs = new[]
        {
            new Gcp.Redis.Inputs.ClusterPscConfigArgs
            {
                Network = "string",
            },
        },
        ShardCount = 0,
        Name = "string",
        AuthorizationMode = "string",
        NodeType = "string",
        Project = "string",
        MaintenancePolicy = new Gcp.Redis.Inputs.ClusterMaintenancePolicyArgs
        {
            CreateTime = "string",
            UpdateTime = "string",
            WeeklyMaintenanceWindows = new[]
            {
                new Gcp.Redis.Inputs.ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs
                {
                    Day = "string",
                    StartTime = new Gcp.Redis.Inputs.ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs
                    {
                        Hours = 0,
                        Minutes = 0,
                        Nanos = 0,
                        Seconds = 0,
                    },
                    Duration = "string",
                },
            },
        },
        RedisConfigs = 
        {
            { "string", "string" },
        },
        Region = "string",
        ReplicaCount = 0,
        DeletionProtectionEnabled = false,
        TransitEncryptionMode = "string",
        ZoneDistributionConfig = new Gcp.Redis.Inputs.ClusterZoneDistributionConfigArgs
        {
            Mode = "string",
            Zone = "string",
        },
    });
    
    example, err := redis.NewCluster(ctx, "exampleclusterResourceResourceFromRediscluster", &redis.ClusterArgs{
    	PscConfigs: redis.ClusterPscConfigArray{
    		&redis.ClusterPscConfigArgs{
    			Network: pulumi.String("string"),
    		},
    	},
    	ShardCount:        pulumi.Int(0),
    	Name:              pulumi.String("string"),
    	AuthorizationMode: pulumi.String("string"),
    	NodeType:          pulumi.String("string"),
    	Project:           pulumi.String("string"),
    	MaintenancePolicy: &redis.ClusterMaintenancePolicyArgs{
    		CreateTime: pulumi.String("string"),
    		UpdateTime: pulumi.String("string"),
    		WeeklyMaintenanceWindows: redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowArray{
    			&redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs{
    				Day: pulumi.String("string"),
    				StartTime: &redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs{
    					Hours:   pulumi.Int(0),
    					Minutes: pulumi.Int(0),
    					Nanos:   pulumi.Int(0),
    					Seconds: pulumi.Int(0),
    				},
    				Duration: pulumi.String("string"),
    			},
    		},
    	},
    	RedisConfigs: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Region:                    pulumi.String("string"),
    	ReplicaCount:              pulumi.Int(0),
    	DeletionProtectionEnabled: pulumi.Bool(false),
    	TransitEncryptionMode:     pulumi.String("string"),
    	ZoneDistributionConfig: &redis.ClusterZoneDistributionConfigArgs{
    		Mode: pulumi.String("string"),
    		Zone: pulumi.String("string"),
    	},
    })
    
    var exampleclusterResourceResourceFromRediscluster = new Cluster("exampleclusterResourceResourceFromRediscluster", ClusterArgs.builder()
        .pscConfigs(ClusterPscConfigArgs.builder()
            .network("string")
            .build())
        .shardCount(0)
        .name("string")
        .authorizationMode("string")
        .nodeType("string")
        .project("string")
        .maintenancePolicy(ClusterMaintenancePolicyArgs.builder()
            .createTime("string")
            .updateTime("string")
            .weeklyMaintenanceWindows(ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs.builder()
                .day("string")
                .startTime(ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs.builder()
                    .hours(0)
                    .minutes(0)
                    .nanos(0)
                    .seconds(0)
                    .build())
                .duration("string")
                .build())
            .build())
        .redisConfigs(Map.of("string", "string"))
        .region("string")
        .replicaCount(0)
        .deletionProtectionEnabled(false)
        .transitEncryptionMode("string")
        .zoneDistributionConfig(ClusterZoneDistributionConfigArgs.builder()
            .mode("string")
            .zone("string")
            .build())
        .build());
    
    examplecluster_resource_resource_from_rediscluster = gcp.redis.Cluster("exampleclusterResourceResourceFromRediscluster",
        psc_configs=[{
            "network": "string",
        }],
        shard_count=0,
        name="string",
        authorization_mode="string",
        node_type="string",
        project="string",
        maintenance_policy={
            "createTime": "string",
            "updateTime": "string",
            "weeklyMaintenanceWindows": [{
                "day": "string",
                "startTime": {
                    "hours": 0,
                    "minutes": 0,
                    "nanos": 0,
                    "seconds": 0,
                },
                "duration": "string",
            }],
        },
        redis_configs={
            "string": "string",
        },
        region="string",
        replica_count=0,
        deletion_protection_enabled=False,
        transit_encryption_mode="string",
        zone_distribution_config={
            "mode": "string",
            "zone": "string",
        })
    
    const exampleclusterResourceResourceFromRediscluster = new gcp.redis.Cluster("exampleclusterResourceResourceFromRediscluster", {
        pscConfigs: [{
            network: "string",
        }],
        shardCount: 0,
        name: "string",
        authorizationMode: "string",
        nodeType: "string",
        project: "string",
        maintenancePolicy: {
            createTime: "string",
            updateTime: "string",
            weeklyMaintenanceWindows: [{
                day: "string",
                startTime: {
                    hours: 0,
                    minutes: 0,
                    nanos: 0,
                    seconds: 0,
                },
                duration: "string",
            }],
        },
        redisConfigs: {
            string: "string",
        },
        region: "string",
        replicaCount: 0,
        deletionProtectionEnabled: false,
        transitEncryptionMode: "string",
        zoneDistributionConfig: {
            mode: "string",
            zone: "string",
        },
    });
    
    type: gcp:redis:Cluster
    properties:
        authorizationMode: string
        deletionProtectionEnabled: false
        maintenancePolicy:
            createTime: string
            updateTime: string
            weeklyMaintenanceWindows:
                - day: string
                  duration: string
                  startTime:
                    hours: 0
                    minutes: 0
                    nanos: 0
                    seconds: 0
        name: string
        nodeType: string
        project: string
        pscConfigs:
            - network: string
        redisConfigs:
            string: string
        region: string
        replicaCount: 0
        shardCount: 0
        transitEncryptionMode: string
        zoneDistributionConfig:
            mode: string
            zone: string
    

    Cluster Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Cluster resource accepts the following input properties:

    PscConfigs List<ClusterPscConfig>
    Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
    ShardCount int
    Required. Number of shards for the Redis cluster.
    AuthorizationMode string
    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"]
    DeletionProtectionEnabled bool
    Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
    MaintenancePolicy ClusterMaintenancePolicy
    Maintenance policy for a cluster
    Name string
    Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
    NodeType string
    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"]
    Project string
    RedisConfigs Dictionary<string, string>
    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
    Region string
    The name of the region of the Redis cluster.
    ReplicaCount int
    Optional. The number of replica nodes per shard.
    TransitEncryptionMode string
    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"]
    ZoneDistributionConfig ClusterZoneDistributionConfig
    Immutable. Zone distribution config for Memorystore Redis cluster.
    PscConfigs []ClusterPscConfigArgs
    Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
    ShardCount int
    Required. Number of shards for the Redis cluster.
    AuthorizationMode string
    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"]
    DeletionProtectionEnabled bool
    Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
    MaintenancePolicy ClusterMaintenancePolicyArgs
    Maintenance policy for a cluster
    Name string
    Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
    NodeType string
    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"]
    Project string
    RedisConfigs map[string]string
    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
    Region string
    The name of the region of the Redis cluster.
    ReplicaCount int
    Optional. The number of replica nodes per shard.
    TransitEncryptionMode string
    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"]
    ZoneDistributionConfig ClusterZoneDistributionConfigArgs
    Immutable. Zone distribution config for Memorystore Redis cluster.
    pscConfigs List<ClusterPscConfig>
    Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
    shardCount Integer
    Required. Number of shards for the Redis cluster.
    authorizationMode String
    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"]
    deletionProtectionEnabled Boolean
    Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
    maintenancePolicy ClusterMaintenancePolicy
    Maintenance policy for a cluster
    name String
    Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
    nodeType String
    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"]
    project String
    redisConfigs Map<String,String>
    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
    region String
    The name of the region of the Redis cluster.
    replicaCount Integer
    Optional. The number of replica nodes per shard.
    transitEncryptionMode String
    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"]
    zoneDistributionConfig ClusterZoneDistributionConfig
    Immutable. Zone distribution config for Memorystore Redis cluster.
    pscConfigs ClusterPscConfig[]
    Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
    shardCount number
    Required. Number of shards for the Redis cluster.
    authorizationMode string
    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"]
    deletionProtectionEnabled boolean
    Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
    maintenancePolicy ClusterMaintenancePolicy
    Maintenance policy for a cluster
    name string
    Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
    nodeType string
    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"]
    project string
    redisConfigs {[key: string]: string}
    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
    region string
    The name of the region of the Redis cluster.
    replicaCount number
    Optional. The number of replica nodes per shard.
    transitEncryptionMode string
    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"]
    zoneDistributionConfig ClusterZoneDistributionConfig
    Immutable. Zone distribution config for Memorystore Redis cluster.
    psc_configs Sequence[ClusterPscConfigArgs]
    Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
    shard_count int
    Required. Number of shards for the Redis cluster.
    authorization_mode str
    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"]
    deletion_protection_enabled bool
    Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
    maintenance_policy ClusterMaintenancePolicyArgs
    Maintenance policy for a cluster
    name str
    Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
    node_type str
    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"]
    project str
    redis_configs Mapping[str, str]
    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
    region str
    The name of the region of the Redis cluster.
    replica_count int
    Optional. The number of replica nodes per shard.
    transit_encryption_mode str
    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"]
    zone_distribution_config ClusterZoneDistributionConfigArgs
    Immutable. Zone distribution config for Memorystore Redis cluster.
    pscConfigs List<Property Map>
    Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
    shardCount Number
    Required. Number of shards for the Redis cluster.
    authorizationMode String
    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"]
    deletionProtectionEnabled Boolean
    Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
    maintenancePolicy Property Map
    Maintenance policy for a cluster
    name String
    Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
    nodeType String
    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"]
    project String
    redisConfigs Map<String>
    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
    region String
    The name of the region of the Redis cluster.
    replicaCount Number
    Optional. The number of replica nodes per shard.
    transitEncryptionMode String
    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"]
    zoneDistributionConfig Property Map
    Immutable. Zone distribution config for Memorystore Redis cluster.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:

    CreateTime string
    The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    DiscoveryEndpoints List<ClusterDiscoveryEndpoint>
    Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    MaintenanceSchedules List<ClusterMaintenanceSchedule>
    Upcoming maintenance schedule. Structure is documented below.
    PreciseSizeGb double
    Output only. Redis memory precise size in GB for the entire cluster.
    PscConnections List<ClusterPscConnection>
    Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
    SizeGb int
    Output only. Redis memory size in GB for the entire cluster.
    State string
    The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    StateInfos List<ClusterStateInfo>
    Output only. Additional information about the current state of the cluster. Structure is documented below.
    Uid string
    System assigned, unique identifier for the cluster.
    CreateTime string
    The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    DiscoveryEndpoints []ClusterDiscoveryEndpoint
    Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    MaintenanceSchedules []ClusterMaintenanceSchedule
    Upcoming maintenance schedule. Structure is documented below.
    PreciseSizeGb float64
    Output only. Redis memory precise size in GB for the entire cluster.
    PscConnections []ClusterPscConnection
    Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
    SizeGb int
    Output only. Redis memory size in GB for the entire cluster.
    State string
    The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    StateInfos []ClusterStateInfo
    Output only. Additional information about the current state of the cluster. Structure is documented below.
    Uid string
    System assigned, unique identifier for the cluster.
    createTime String
    The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    discoveryEndpoints List<ClusterDiscoveryEndpoint>
    Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    maintenanceSchedules List<ClusterMaintenanceSchedule>
    Upcoming maintenance schedule. Structure is documented below.
    preciseSizeGb Double
    Output only. Redis memory precise size in GB for the entire cluster.
    pscConnections List<ClusterPscConnection>
    Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
    sizeGb Integer
    Output only. Redis memory size in GB for the entire cluster.
    state String
    The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    stateInfos List<ClusterStateInfo>
    Output only. Additional information about the current state of the cluster. Structure is documented below.
    uid String
    System assigned, unique identifier for the cluster.
    createTime string
    The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    discoveryEndpoints ClusterDiscoveryEndpoint[]
    Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
    id string
    The provider-assigned unique ID for this managed resource.
    maintenanceSchedules ClusterMaintenanceSchedule[]
    Upcoming maintenance schedule. Structure is documented below.
    preciseSizeGb number
    Output only. Redis memory precise size in GB for the entire cluster.
    pscConnections ClusterPscConnection[]
    Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
    sizeGb number
    Output only. Redis memory size in GB for the entire cluster.
    state string
    The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    stateInfos ClusterStateInfo[]
    Output only. Additional information about the current state of the cluster. Structure is documented below.
    uid string
    System assigned, unique identifier for the cluster.
    create_time str
    The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    discovery_endpoints Sequence[ClusterDiscoveryEndpoint]
    Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
    id str
    The provider-assigned unique ID for this managed resource.
    maintenance_schedules Sequence[ClusterMaintenanceSchedule]
    Upcoming maintenance schedule. Structure is documented below.
    precise_size_gb float
    Output only. Redis memory precise size in GB for the entire cluster.
    psc_connections Sequence[ClusterPscConnection]
    Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
    size_gb int
    Output only. Redis memory size in GB for the entire cluster.
    state str
    The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    state_infos Sequence[ClusterStateInfo]
    Output only. Additional information about the current state of the cluster. Structure is documented below.
    uid str
    System assigned, unique identifier for the cluster.
    createTime String
    The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    discoveryEndpoints List<Property Map>
    Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    maintenanceSchedules List<Property Map>
    Upcoming maintenance schedule. Structure is documented below.
    preciseSizeGb Number
    Output only. Redis memory precise size in GB for the entire cluster.
    pscConnections List<Property Map>
    Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
    sizeGb Number
    Output only. Redis memory size in GB for the entire cluster.
    state String
    The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    stateInfos List<Property Map>
    Output only. Additional information about the current state of the cluster. Structure is documented below.
    uid String
    System assigned, unique identifier for the cluster.

    Look up Existing Cluster Resource

    Get an existing Cluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ClusterState, opts?: CustomResourceOptions): Cluster
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            authorization_mode: Optional[str] = None,
            create_time: Optional[str] = None,
            deletion_protection_enabled: Optional[bool] = None,
            discovery_endpoints: Optional[Sequence[ClusterDiscoveryEndpointArgs]] = None,
            maintenance_policy: Optional[ClusterMaintenancePolicyArgs] = None,
            maintenance_schedules: Optional[Sequence[ClusterMaintenanceScheduleArgs]] = None,
            name: Optional[str] = None,
            node_type: Optional[str] = None,
            precise_size_gb: Optional[float] = None,
            project: Optional[str] = None,
            psc_configs: Optional[Sequence[ClusterPscConfigArgs]] = None,
            psc_connections: Optional[Sequence[ClusterPscConnectionArgs]] = None,
            redis_configs: Optional[Mapping[str, str]] = None,
            region: Optional[str] = None,
            replica_count: Optional[int] = None,
            shard_count: Optional[int] = None,
            size_gb: Optional[int] = None,
            state: Optional[str] = None,
            state_infos: Optional[Sequence[ClusterStateInfoArgs]] = None,
            transit_encryption_mode: Optional[str] = None,
            uid: Optional[str] = None,
            zone_distribution_config: Optional[ClusterZoneDistributionConfigArgs] = None) -> Cluster
    func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)
    public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)
    public static Cluster get(String name, Output<String> id, ClusterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AuthorizationMode string
    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"]
    CreateTime string
    The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    DeletionProtectionEnabled bool
    Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
    DiscoveryEndpoints List<ClusterDiscoveryEndpoint>
    Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
    MaintenancePolicy ClusterMaintenancePolicy
    Maintenance policy for a cluster
    MaintenanceSchedules List<ClusterMaintenanceSchedule>
    Upcoming maintenance schedule. Structure is documented below.
    Name string
    Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
    NodeType string
    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"]
    PreciseSizeGb double
    Output only. Redis memory precise size in GB for the entire cluster.
    Project string
    PscConfigs List<ClusterPscConfig>
    Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
    PscConnections List<ClusterPscConnection>
    Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
    RedisConfigs Dictionary<string, string>
    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
    Region string
    The name of the region of the Redis cluster.
    ReplicaCount int
    Optional. The number of replica nodes per shard.
    ShardCount int
    Required. Number of shards for the Redis cluster.
    SizeGb int
    Output only. Redis memory size in GB for the entire cluster.
    State string
    The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    StateInfos List<ClusterStateInfo>
    Output only. Additional information about the current state of the cluster. Structure is documented below.
    TransitEncryptionMode string
    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"]
    Uid string
    System assigned, unique identifier for the cluster.
    ZoneDistributionConfig ClusterZoneDistributionConfig
    Immutable. Zone distribution config for Memorystore Redis cluster.
    AuthorizationMode string
    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"]
    CreateTime string
    The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    DeletionProtectionEnabled bool
    Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
    DiscoveryEndpoints []ClusterDiscoveryEndpointArgs
    Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
    MaintenancePolicy ClusterMaintenancePolicyArgs
    Maintenance policy for a cluster
    MaintenanceSchedules []ClusterMaintenanceScheduleArgs
    Upcoming maintenance schedule. Structure is documented below.
    Name string
    Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
    NodeType string
    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"]
    PreciseSizeGb float64
    Output only. Redis memory precise size in GB for the entire cluster.
    Project string
    PscConfigs []ClusterPscConfigArgs
    Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
    PscConnections []ClusterPscConnectionArgs
    Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
    RedisConfigs map[string]string
    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
    Region string
    The name of the region of the Redis cluster.
    ReplicaCount int
    Optional. The number of replica nodes per shard.
    ShardCount int
    Required. Number of shards for the Redis cluster.
    SizeGb int
    Output only. Redis memory size in GB for the entire cluster.
    State string
    The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    StateInfos []ClusterStateInfoArgs
    Output only. Additional information about the current state of the cluster. Structure is documented below.
    TransitEncryptionMode string
    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"]
    Uid string
    System assigned, unique identifier for the cluster.
    ZoneDistributionConfig ClusterZoneDistributionConfigArgs
    Immutable. Zone distribution config for Memorystore Redis cluster.
    authorizationMode String
    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"]
    createTime String
    The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    deletionProtectionEnabled Boolean
    Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
    discoveryEndpoints List<ClusterDiscoveryEndpoint>
    Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
    maintenancePolicy ClusterMaintenancePolicy
    Maintenance policy for a cluster
    maintenanceSchedules List<ClusterMaintenanceSchedule>
    Upcoming maintenance schedule. Structure is documented below.
    name String
    Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
    nodeType String
    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"]
    preciseSizeGb Double
    Output only. Redis memory precise size in GB for the entire cluster.
    project String
    pscConfigs List<ClusterPscConfig>
    Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
    pscConnections List<ClusterPscConnection>
    Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
    redisConfigs Map<String,String>
    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
    region String
    The name of the region of the Redis cluster.
    replicaCount Integer
    Optional. The number of replica nodes per shard.
    shardCount Integer
    Required. Number of shards for the Redis cluster.
    sizeGb Integer
    Output only. Redis memory size in GB for the entire cluster.
    state String
    The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    stateInfos List<ClusterStateInfo>
    Output only. Additional information about the current state of the cluster. Structure is documented below.
    transitEncryptionMode String
    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"]
    uid String
    System assigned, unique identifier for the cluster.
    zoneDistributionConfig ClusterZoneDistributionConfig
    Immutable. Zone distribution config for Memorystore Redis cluster.
    authorizationMode string
    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"]
    createTime string
    The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    deletionProtectionEnabled boolean
    Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
    discoveryEndpoints ClusterDiscoveryEndpoint[]
    Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
    maintenancePolicy ClusterMaintenancePolicy
    Maintenance policy for a cluster
    maintenanceSchedules ClusterMaintenanceSchedule[]
    Upcoming maintenance schedule. Structure is documented below.
    name string
    Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
    nodeType string
    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"]
    preciseSizeGb number
    Output only. Redis memory precise size in GB for the entire cluster.
    project string
    pscConfigs ClusterPscConfig[]
    Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
    pscConnections ClusterPscConnection[]
    Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
    redisConfigs {[key: string]: string}
    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
    region string
    The name of the region of the Redis cluster.
    replicaCount number
    Optional. The number of replica nodes per shard.
    shardCount number
    Required. Number of shards for the Redis cluster.
    sizeGb number
    Output only. Redis memory size in GB for the entire cluster.
    state string
    The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    stateInfos ClusterStateInfo[]
    Output only. Additional information about the current state of the cluster. Structure is documented below.
    transitEncryptionMode string
    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"]
    uid string
    System assigned, unique identifier for the cluster.
    zoneDistributionConfig ClusterZoneDistributionConfig
    Immutable. Zone distribution config for Memorystore Redis cluster.
    authorization_mode str
    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"]
    create_time str
    The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    deletion_protection_enabled bool
    Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
    discovery_endpoints Sequence[ClusterDiscoveryEndpointArgs]
    Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
    maintenance_policy ClusterMaintenancePolicyArgs
    Maintenance policy for a cluster
    maintenance_schedules Sequence[ClusterMaintenanceScheduleArgs]
    Upcoming maintenance schedule. Structure is documented below.
    name str
    Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
    node_type str
    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"]
    precise_size_gb float
    Output only. Redis memory precise size in GB for the entire cluster.
    project str
    psc_configs Sequence[ClusterPscConfigArgs]
    Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
    psc_connections Sequence[ClusterPscConnectionArgs]
    Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
    redis_configs Mapping[str, str]
    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
    region str
    The name of the region of the Redis cluster.
    replica_count int
    Optional. The number of replica nodes per shard.
    shard_count int
    Required. Number of shards for the Redis cluster.
    size_gb int
    Output only. Redis memory size in GB for the entire cluster.
    state str
    The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    state_infos Sequence[ClusterStateInfoArgs]
    Output only. Additional information about the current state of the cluster. Structure is documented below.
    transit_encryption_mode str
    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"]
    uid str
    System assigned, unique identifier for the cluster.
    zone_distribution_config ClusterZoneDistributionConfigArgs
    Immutable. Zone distribution config for Memorystore Redis cluster.
    authorizationMode String
    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"]
    createTime String
    The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    deletionProtectionEnabled Boolean
    Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
    discoveryEndpoints List<Property Map>
    Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
    maintenancePolicy Property Map
    Maintenance policy for a cluster
    maintenanceSchedules List<Property Map>
    Upcoming maintenance schedule. Structure is documented below.
    name String
    Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
    nodeType String
    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"]
    preciseSizeGb Number
    Output only. Redis memory precise size in GB for the entire cluster.
    project String
    pscConfigs List<Property Map>
    Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
    pscConnections List<Property Map>
    Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
    redisConfigs Map<String>
    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
    region String
    The name of the region of the Redis cluster.
    replicaCount Number
    Optional. The number of replica nodes per shard.
    shardCount Number
    Required. Number of shards for the Redis cluster.
    sizeGb Number
    Output only. Redis memory size in GB for the entire cluster.
    state String
    The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
    stateInfos List<Property Map>
    Output only. Additional information about the current state of the cluster. Structure is documented below.
    transitEncryptionMode String
    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"]
    uid String
    System assigned, unique identifier for the cluster.
    zoneDistributionConfig Property Map
    Immutable. Zone distribution config for Memorystore Redis cluster.

    Supporting Types

    ClusterDiscoveryEndpoint, ClusterDiscoveryEndpointArgs

    Address string
    Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    Port int
    Output only. The port number of the exposed Redis endpoint.
    PscConfig ClusterDiscoveryEndpointPscConfig
    Output only. Customer configuration for where the endpoint is created and accessed from. Structure is documented below.
    Address string
    Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    Port int
    Output only. The port number of the exposed Redis endpoint.
    PscConfig ClusterDiscoveryEndpointPscConfig
    Output only. Customer configuration for where the endpoint is created and accessed from. Structure is documented below.
    address String
    Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    port Integer
    Output only. The port number of the exposed Redis endpoint.
    pscConfig ClusterDiscoveryEndpointPscConfig
    Output only. Customer configuration for where the endpoint is created and accessed from. Structure is documented below.
    address string
    Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    port number
    Output only. The port number of the exposed Redis endpoint.
    pscConfig ClusterDiscoveryEndpointPscConfig
    Output only. Customer configuration for where the endpoint is created and accessed from. Structure is documented below.
    address str
    Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    port int
    Output only. The port number of the exposed Redis endpoint.
    psc_config ClusterDiscoveryEndpointPscConfig
    Output only. Customer configuration for where the endpoint is created and accessed from. Structure is documented below.
    address String
    Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    port Number
    Output only. The port number of the exposed Redis endpoint.
    pscConfig Property Map
    Output only. Customer configuration for where the endpoint is created and accessed from. Structure is documented below.

    ClusterDiscoveryEndpointPscConfig, ClusterDiscoveryEndpointPscConfigArgs

    Network string
    The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
    Network string
    The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
    network String
    The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
    network string
    The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
    network str
    The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
    network String
    The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.

    ClusterMaintenancePolicy, ClusterMaintenancePolicyArgs

    CreateTime string
    (Output) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    UpdateTime string
    (Output) Output only. The time when the policy was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    WeeklyMaintenanceWindows List<ClusterMaintenancePolicyWeeklyMaintenanceWindow>
    Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one. Structure is documented below.
    CreateTime string
    (Output) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    UpdateTime string
    (Output) Output only. The time when the policy was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    WeeklyMaintenanceWindows []ClusterMaintenancePolicyWeeklyMaintenanceWindow
    Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one. Structure is documented below.
    createTime String
    (Output) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    updateTime String
    (Output) Output only. The time when the policy was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    weeklyMaintenanceWindows List<ClusterMaintenancePolicyWeeklyMaintenanceWindow>
    Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one. Structure is documented below.
    createTime string
    (Output) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    updateTime string
    (Output) Output only. The time when the policy was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    weeklyMaintenanceWindows ClusterMaintenancePolicyWeeklyMaintenanceWindow[]
    Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one. Structure is documented below.
    create_time str
    (Output) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    update_time str
    (Output) Output only. The time when the policy was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    weekly_maintenance_windows Sequence[ClusterMaintenancePolicyWeeklyMaintenanceWindow]
    Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one. Structure is documented below.
    createTime String
    (Output) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    updateTime String
    (Output) Output only. The time when the policy was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    weeklyMaintenanceWindows List<Property Map>
    Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one. Structure is documented below.

    ClusterMaintenancePolicyWeeklyMaintenanceWindow, ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs

    Day string
    Required. The day of week that maintenance updates occur.

    • DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
    • MONDAY: Monday
    • TUESDAY: Tuesday
    • WEDNESDAY: Wednesday
    • THURSDAY: Thursday
    • FRIDAY: Friday
    • SATURDAY: Saturday
    • SUNDAY: Sunday Possible values are: DAY_OF_WEEK_UNSPECIFIED, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
    StartTime ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTime
    Required. Start time of the window in UTC time. Structure is documented below.
    Duration string
    (Output) Output only. Duration of the maintenance window. The current window is fixed at 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    Day string
    Required. The day of week that maintenance updates occur.

    • DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
    • MONDAY: Monday
    • TUESDAY: Tuesday
    • WEDNESDAY: Wednesday
    • THURSDAY: Thursday
    • FRIDAY: Friday
    • SATURDAY: Saturday
    • SUNDAY: Sunday Possible values are: DAY_OF_WEEK_UNSPECIFIED, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
    StartTime ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTime
    Required. Start time of the window in UTC time. Structure is documented below.
    Duration string
    (Output) Output only. Duration of the maintenance window. The current window is fixed at 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    day String
    Required. The day of week that maintenance updates occur.

    • DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
    • MONDAY: Monday
    • TUESDAY: Tuesday
    • WEDNESDAY: Wednesday
    • THURSDAY: Thursday
    • FRIDAY: Friday
    • SATURDAY: Saturday
    • SUNDAY: Sunday Possible values are: DAY_OF_WEEK_UNSPECIFIED, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
    startTime ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTime
    Required. Start time of the window in UTC time. Structure is documented below.
    duration String
    (Output) Output only. Duration of the maintenance window. The current window is fixed at 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    day string
    Required. The day of week that maintenance updates occur.

    • DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
    • MONDAY: Monday
    • TUESDAY: Tuesday
    • WEDNESDAY: Wednesday
    • THURSDAY: Thursday
    • FRIDAY: Friday
    • SATURDAY: Saturday
    • SUNDAY: Sunday Possible values are: DAY_OF_WEEK_UNSPECIFIED, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
    startTime ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTime
    Required. Start time of the window in UTC time. Structure is documented below.
    duration string
    (Output) Output only. Duration of the maintenance window. The current window is fixed at 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    day str
    Required. The day of week that maintenance updates occur.

    • DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
    • MONDAY: Monday
    • TUESDAY: Tuesday
    • WEDNESDAY: Wednesday
    • THURSDAY: Thursday
    • FRIDAY: Friday
    • SATURDAY: Saturday
    • SUNDAY: Sunday Possible values are: DAY_OF_WEEK_UNSPECIFIED, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
    start_time ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTime
    Required. Start time of the window in UTC time. Structure is documented below.
    duration str
    (Output) Output only. Duration of the maintenance window. The current window is fixed at 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
    day String
    Required. The day of week that maintenance updates occur.

    • DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
    • MONDAY: Monday
    • TUESDAY: Tuesday
    • WEDNESDAY: Wednesday
    • THURSDAY: Thursday
    • FRIDAY: Friday
    • SATURDAY: Saturday
    • SUNDAY: Sunday Possible values are: DAY_OF_WEEK_UNSPECIFIED, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
    startTime Property Map
    Required. Start time of the window in UTC time. Structure is documented below.
    duration String
    (Output) Output only. Duration of the maintenance window. The current window is fixed at 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".

    ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTime, ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs

    Hours int
    Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
    Minutes int
    Minutes of hour of day. Must be from 0 to 59.
    Nanos int
    Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
    Seconds int
    Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
    Hours int
    Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
    Minutes int
    Minutes of hour of day. Must be from 0 to 59.
    Nanos int
    Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
    Seconds int
    Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
    hours Integer
    Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
    minutes Integer
    Minutes of hour of day. Must be from 0 to 59.
    nanos Integer
    Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
    seconds Integer
    Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
    hours number
    Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
    minutes number
    Minutes of hour of day. Must be from 0 to 59.
    nanos number
    Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
    seconds number
    Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
    hours int
    Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
    minutes int
    Minutes of hour of day. Must be from 0 to 59.
    nanos int
    Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
    seconds int
    Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
    hours Number
    Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
    minutes Number
    Minutes of hour of day. Must be from 0 to 59.
    nanos Number
    Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
    seconds Number
    Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.

    ClusterMaintenanceSchedule, ClusterMaintenanceScheduleArgs

    EndTime string
    (Output) Output only. The end time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    ScheduleDeadlineTime string
    (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    StartTime string
    (Output) Output only. The start time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    EndTime string
    (Output) Output only. The end time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    ScheduleDeadlineTime string
    (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    StartTime string
    (Output) Output only. The start time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    endTime String
    (Output) Output only. The end time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    scheduleDeadlineTime String
    (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    startTime String
    (Output) Output only. The start time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    endTime string
    (Output) Output only. The end time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    scheduleDeadlineTime string
    (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    startTime string
    (Output) Output only. The start time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    end_time str
    (Output) Output only. The end time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    schedule_deadline_time str
    (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    start_time str
    (Output) Output only. The start time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    endTime String
    (Output) Output only. The end time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    scheduleDeadlineTime String
    (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
    startTime String
    (Output) Output only. The start time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.

    ClusterPscConfig, ClusterPscConfigArgs

    Network string
    Required. The consumer network where the network address of the discovery endpoint will be reserved, in the form of projects/{network_project_id_or_number}/global/networks/{network_id}.


    Network string
    Required. The consumer network where the network address of the discovery endpoint will be reserved, in the form of projects/{network_project_id_or_number}/global/networks/{network_id}.


    network String
    Required. The consumer network where the network address of the discovery endpoint will be reserved, in the form of projects/{network_project_id_or_number}/global/networks/{network_id}.


    network string
    Required. The consumer network where the network address of the discovery endpoint will be reserved, in the form of projects/{network_project_id_or_number}/global/networks/{network_id}.


    network str
    Required. The consumer network where the network address of the discovery endpoint will be reserved, in the form of projects/{network_project_id_or_number}/global/networks/{network_id}.


    network String
    Required. The consumer network where the network address of the discovery endpoint will be reserved, in the form of projects/{network_project_id_or_number}/global/networks/{network_id}.


    ClusterPscConnection, ClusterPscConnectionArgs

    Address string
    Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    ForwardingRule string
    Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    Network string
    The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
    ProjectId string
    Output only. The consumer projectId where the forwarding rule is created from.
    PscConnectionId string
    Output only. The PSC connection id of the forwarding rule connected to the service attachment.
    Address string
    Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    ForwardingRule string
    Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    Network string
    The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
    ProjectId string
    Output only. The consumer projectId where the forwarding rule is created from.
    PscConnectionId string
    Output only. The PSC connection id of the forwarding rule connected to the service attachment.
    address String
    Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    forwardingRule String
    Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    network String
    The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
    projectId String
    Output only. The consumer projectId where the forwarding rule is created from.
    pscConnectionId String
    Output only. The PSC connection id of the forwarding rule connected to the service attachment.
    address string
    Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    forwardingRule string
    Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    network string
    The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
    projectId string
    Output only. The consumer projectId where the forwarding rule is created from.
    pscConnectionId string
    Output only. The PSC connection id of the forwarding rule connected to the service attachment.
    address str
    Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    forwarding_rule str
    Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    network str
    The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
    project_id str
    Output only. The consumer projectId where the forwarding rule is created from.
    psc_connection_id str
    Output only. The PSC connection id of the forwarding rule connected to the service attachment.
    address String
    Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    forwardingRule String
    Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
    network String
    The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
    projectId String
    Output only. The consumer projectId where the forwarding rule is created from.
    pscConnectionId String
    Output only. The PSC connection id of the forwarding rule connected to the service attachment.

    ClusterStateInfo, ClusterStateInfoArgs

    UpdateInfo ClusterStateInfoUpdateInfo
    A nested object resource Structure is documented below.
    UpdateInfo ClusterStateInfoUpdateInfo
    A nested object resource Structure is documented below.
    updateInfo ClusterStateInfoUpdateInfo
    A nested object resource Structure is documented below.
    updateInfo ClusterStateInfoUpdateInfo
    A nested object resource Structure is documented below.
    update_info ClusterStateInfoUpdateInfo
    A nested object resource Structure is documented below.
    updateInfo Property Map
    A nested object resource Structure is documented below.

    ClusterStateInfoUpdateInfo, ClusterStateInfoUpdateInfoArgs

    TargetReplicaCount int
    Target number of replica nodes per shard.
    TargetShardCount int
    Target number of shards for redis cluster.
    TargetReplicaCount int
    Target number of replica nodes per shard.
    TargetShardCount int
    Target number of shards for redis cluster.
    targetReplicaCount Integer
    Target number of replica nodes per shard.
    targetShardCount Integer
    Target number of shards for redis cluster.
    targetReplicaCount number
    Target number of replica nodes per shard.
    targetShardCount number
    Target number of shards for redis cluster.
    target_replica_count int
    Target number of replica nodes per shard.
    target_shard_count int
    Target number of shards for redis cluster.
    targetReplicaCount Number
    Target number of replica nodes per shard.
    targetShardCount Number
    Target number of shards for redis cluster.

    ClusterZoneDistributionConfig, ClusterZoneDistributionConfigArgs

    Mode string
    Immutable. The mode for zone distribution for Memorystore Redis cluster. If not provided, MULTI_ZONE will be used as default Possible values are: MULTI_ZONE, SINGLE_ZONE.
    Zone string
    Immutable. The zone for single zone Memorystore Redis cluster.
    Mode string
    Immutable. The mode for zone distribution for Memorystore Redis cluster. If not provided, MULTI_ZONE will be used as default Possible values are: MULTI_ZONE, SINGLE_ZONE.
    Zone string
    Immutable. The zone for single zone Memorystore Redis cluster.
    mode String
    Immutable. The mode for zone distribution for Memorystore Redis cluster. If not provided, MULTI_ZONE will be used as default Possible values are: MULTI_ZONE, SINGLE_ZONE.
    zone String
    Immutable. The zone for single zone Memorystore Redis cluster.
    mode string
    Immutable. The mode for zone distribution for Memorystore Redis cluster. If not provided, MULTI_ZONE will be used as default Possible values are: MULTI_ZONE, SINGLE_ZONE.
    zone string
    Immutable. The zone for single zone Memorystore Redis cluster.
    mode str
    Immutable. The mode for zone distribution for Memorystore Redis cluster. If not provided, MULTI_ZONE will be used as default Possible values are: MULTI_ZONE, SINGLE_ZONE.
    zone str
    Immutable. The zone for single zone Memorystore Redis cluster.
    mode String
    Immutable. The mode for zone distribution for Memorystore Redis cluster. If not provided, MULTI_ZONE will be used as default Possible values are: MULTI_ZONE, SINGLE_ZONE.
    zone String
    Immutable. The zone for single zone Memorystore Redis cluster.

    Import

    Cluster can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{region}}/clusters/{{name}}

    • {{project}}/{{region}}/{{name}}

    • {{region}}/{{name}}

    • {{name}}

    When using the pulumi import command, Cluster can be imported using one of the formats above. For example:

    $ pulumi import gcp:redis/cluster:Cluster default projects/{{project}}/locations/{{region}}/clusters/{{name}}
    
    $ pulumi import gcp:redis/cluster:Cluster default {{project}}/{{region}}/{{name}}
    
    $ pulumi import gcp:redis/cluster:Cluster default {{region}}/{{name}}
    
    $ pulumi import gcp:redis/cluster:Cluster default {{name}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 by Pulumi