1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. memorystore
  5. Instance
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.memorystore.Instance

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    A Google Cloud Memorystore instance.

    Example Usage

    Memorystore Instance Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const producerNet = new gcp.compute.Network("producer_net", {
        name: "my-network",
        autoCreateSubnetworks: false,
    });
    const producerSubnet = new gcp.compute.Subnetwork("producer_subnet", {
        name: "my-subnet",
        ipCidrRange: "10.0.0.248/29",
        region: "us-central1",
        network: producerNet.id,
    });
    const _default = new gcp.networkconnectivity.ServiceConnectionPolicy("default", {
        name: "my-policy",
        location: "us-central1",
        serviceClass: "gcp-memorystore",
        description: "my basic service connection policy",
        network: producerNet.id,
        pscConfig: {
            subnetworks: [producerSubnet.id],
        },
    });
    const project = gcp.organizations.getProject({});
    const instance_basic = new gcp.memorystore.Instance("instance-basic", {
        instanceId: "basic-instance",
        shardCount: 3,
        desiredPscAutoConnections: [{
            network: producerNet.id,
            projectId: project.then(project => project.projectId),
        }],
        location: "us-central1",
        deletionProtectionEnabled: false,
    }, {
        dependsOn: [_default],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    producer_net = gcp.compute.Network("producer_net",
        name="my-network",
        auto_create_subnetworks=False)
    producer_subnet = gcp.compute.Subnetwork("producer_subnet",
        name="my-subnet",
        ip_cidr_range="10.0.0.248/29",
        region="us-central1",
        network=producer_net.id)
    default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
        name="my-policy",
        location="us-central1",
        service_class="gcp-memorystore",
        description="my basic service connection policy",
        network=producer_net.id,
        psc_config={
            "subnetworks": [producer_subnet.id],
        })
    project = gcp.organizations.get_project()
    instance_basic = gcp.memorystore.Instance("instance-basic",
        instance_id="basic-instance",
        shard_count=3,
        desired_psc_auto_connections=[{
            "network": producer_net.id,
            "project_id": project.project_id,
        }],
        location="us-central1",
        deletion_protection_enabled=False,
        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/memorystore"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networkconnectivity"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
    	"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("my-network"),
    			AutoCreateSubnetworks: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		producerSubnet, err := compute.NewSubnetwork(ctx, "producer_subnet", &compute.SubnetworkArgs{
    			Name:        pulumi.String("my-subnet"),
    			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("my-policy"),
    			Location:     pulumi.String("us-central1"),
    			ServiceClass: pulumi.String("gcp-memorystore"),
    			Description:  pulumi.String("my basic service connection policy"),
    			Network:      producerNet.ID(),
    			PscConfig: &networkconnectivity.ServiceConnectionPolicyPscConfigArgs{
    				Subnetworks: pulumi.StringArray{
    					producerSubnet.ID(),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = memorystore.NewInstance(ctx, "instance-basic", &memorystore.InstanceArgs{
    			InstanceId: pulumi.String("basic-instance"),
    			ShardCount: pulumi.Int(3),
    			DesiredPscAutoConnections: memorystore.InstanceDesiredPscAutoConnectionArray{
    				&memorystore.InstanceDesiredPscAutoConnectionArgs{
    					Network:   producerNet.ID(),
    					ProjectId: pulumi.String(project.ProjectId),
    				},
    			},
    			Location:                  pulumi.String("us-central1"),
    			DeletionProtectionEnabled: pulumi.Bool(false),
    		}, 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 = "my-network",
            AutoCreateSubnetworks = false,
        });
    
        var producerSubnet = new Gcp.Compute.Subnetwork("producer_subnet", new()
        {
            Name = "my-subnet",
            IpCidrRange = "10.0.0.248/29",
            Region = "us-central1",
            Network = producerNet.Id,
        });
    
        var @default = new Gcp.NetworkConnectivity.ServiceConnectionPolicy("default", new()
        {
            Name = "my-policy",
            Location = "us-central1",
            ServiceClass = "gcp-memorystore",
            Description = "my basic service connection policy",
            Network = producerNet.Id,
            PscConfig = new Gcp.NetworkConnectivity.Inputs.ServiceConnectionPolicyPscConfigArgs
            {
                Subnetworks = new[]
                {
                    producerSubnet.Id,
                },
            },
        });
    
        var project = Gcp.Organizations.GetProject.Invoke();
    
        var instance_basic = new Gcp.MemoryStore.Instance("instance-basic", new()
        {
            InstanceId = "basic-instance",
            ShardCount = 3,
            DesiredPscAutoConnections = new[]
            {
                new Gcp.MemoryStore.Inputs.InstanceDesiredPscAutoConnectionArgs
                {
                    Network = producerNet.Id,
                    ProjectId = project.Apply(getProjectResult => getProjectResult.ProjectId),
                },
            },
            Location = "us-central1",
            DeletionProtectionEnabled = false,
        }, 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.organizations.OrganizationsFunctions;
    import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
    import com.pulumi.gcp.memorystore.Instance;
    import com.pulumi.gcp.memorystore.InstanceArgs;
    import com.pulumi.gcp.memorystore.inputs.InstanceDesiredPscAutoConnectionArgs;
    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("my-network")
                .autoCreateSubnetworks(false)
                .build());
    
            var producerSubnet = new Subnetwork("producerSubnet", SubnetworkArgs.builder()
                .name("my-subnet")
                .ipCidrRange("10.0.0.248/29")
                .region("us-central1")
                .network(producerNet.id())
                .build());
    
            var default_ = new ServiceConnectionPolicy("default", ServiceConnectionPolicyArgs.builder()
                .name("my-policy")
                .location("us-central1")
                .serviceClass("gcp-memorystore")
                .description("my basic service connection policy")
                .network(producerNet.id())
                .pscConfig(ServiceConnectionPolicyPscConfigArgs.builder()
                    .subnetworks(producerSubnet.id())
                    .build())
                .build());
    
            final var project = OrganizationsFunctions.getProject();
    
            var instance_basic = new Instance("instance-basic", InstanceArgs.builder()
                .instanceId("basic-instance")
                .shardCount(3)
                .desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
                    .network(producerNet.id())
                    .projectId(project.applyValue(getProjectResult -> getProjectResult.projectId()))
                    .build())
                .location("us-central1")
                .deletionProtectionEnabled(false)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(default_)
                    .build());
    
        }
    }
    
    resources:
      instance-basic:
        type: gcp:memorystore:Instance
        properties:
          instanceId: basic-instance
          shardCount: 3
          desiredPscAutoConnections:
            - network: ${producerNet.id}
              projectId: ${project.projectId}
          location: us-central1
          deletionProtectionEnabled: false
        options:
          dependson:
            - ${default}
      default:
        type: gcp:networkconnectivity:ServiceConnectionPolicy
        properties:
          name: my-policy
          location: us-central1
          serviceClass: gcp-memorystore
          description: my basic service connection policy
          network: ${producerNet.id}
          pscConfig:
            subnetworks:
              - ${producerSubnet.id}
      producerSubnet:
        type: gcp:compute:Subnetwork
        name: producer_subnet
        properties:
          name: my-subnet
          ipCidrRange: 10.0.0.248/29
          region: us-central1
          network: ${producerNet.id}
      producerNet:
        type: gcp:compute:Network
        name: producer_net
        properties:
          name: my-network
          autoCreateSubnetworks: false
    variables:
      project:
        fn::invoke:
          Function: gcp:organizations:getProject
          Arguments: {}
    

    Memorystore Instance Full

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const producerNet = new gcp.compute.Network("producer_net", {
        name: "my-network",
        autoCreateSubnetworks: false,
    });
    const producerSubnet = new gcp.compute.Subnetwork("producer_subnet", {
        name: "my-subnet",
        ipCidrRange: "10.0.0.248/29",
        region: "us-central1",
        network: producerNet.id,
    });
    const _default = new gcp.networkconnectivity.ServiceConnectionPolicy("default", {
        name: "my-policy",
        location: "us-central1",
        serviceClass: "gcp-memorystore",
        description: "my basic service connection policy",
        network: producerNet.id,
        pscConfig: {
            subnetworks: [producerSubnet.id],
        },
    });
    const project = gcp.organizations.getProject({});
    const instance_full = new gcp.memorystore.Instance("instance-full", {
        instanceId: "full-instance",
        shardCount: 3,
        desiredPscAutoConnections: [{
            network: producerNet.id,
            projectId: project.then(project => project.projectId),
        }],
        location: "us-central1",
        replicaCount: 2,
        nodeType: "SHARED_CORE_NANO",
        transitEncryptionMode: "TRANSIT_ENCRYPTION_DISABLED",
        authorizationMode: "AUTH_DISABLED",
        engineConfigs: {
            "maxmemory-policy": "volatile-ttl",
        },
        zoneDistributionConfig: {
            mode: "SINGLE_ZONE",
            zone: "us-central1-b",
        },
        engineVersion: "VALKEY_7_2",
        deletionProtectionEnabled: false,
        mode: "CLUSTER",
        persistenceConfig: {
            mode: "RDB",
            rdbConfig: {
                rdbSnapshotPeriod: "ONE_HOUR",
                rdbSnapshotStartTime: "2024-10-02T15:01:23Z",
            },
        },
        labels: {
            abc: "xyz",
        },
    }, {
        dependsOn: [_default],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    producer_net = gcp.compute.Network("producer_net",
        name="my-network",
        auto_create_subnetworks=False)
    producer_subnet = gcp.compute.Subnetwork("producer_subnet",
        name="my-subnet",
        ip_cidr_range="10.0.0.248/29",
        region="us-central1",
        network=producer_net.id)
    default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
        name="my-policy",
        location="us-central1",
        service_class="gcp-memorystore",
        description="my basic service connection policy",
        network=producer_net.id,
        psc_config={
            "subnetworks": [producer_subnet.id],
        })
    project = gcp.organizations.get_project()
    instance_full = gcp.memorystore.Instance("instance-full",
        instance_id="full-instance",
        shard_count=3,
        desired_psc_auto_connections=[{
            "network": producer_net.id,
            "project_id": project.project_id,
        }],
        location="us-central1",
        replica_count=2,
        node_type="SHARED_CORE_NANO",
        transit_encryption_mode="TRANSIT_ENCRYPTION_DISABLED",
        authorization_mode="AUTH_DISABLED",
        engine_configs={
            "maxmemory-policy": "volatile-ttl",
        },
        zone_distribution_config={
            "mode": "SINGLE_ZONE",
            "zone": "us-central1-b",
        },
        engine_version="VALKEY_7_2",
        deletion_protection_enabled=False,
        mode="CLUSTER",
        persistence_config={
            "mode": "RDB",
            "rdb_config": {
                "rdb_snapshot_period": "ONE_HOUR",
                "rdb_snapshot_start_time": "2024-10-02T15:01:23Z",
            },
        },
        labels={
            "abc": "xyz",
        },
        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/memorystore"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networkconnectivity"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
    	"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("my-network"),
    			AutoCreateSubnetworks: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		producerSubnet, err := compute.NewSubnetwork(ctx, "producer_subnet", &compute.SubnetworkArgs{
    			Name:        pulumi.String("my-subnet"),
    			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("my-policy"),
    			Location:     pulumi.String("us-central1"),
    			ServiceClass: pulumi.String("gcp-memorystore"),
    			Description:  pulumi.String("my basic service connection policy"),
    			Network:      producerNet.ID(),
    			PscConfig: &networkconnectivity.ServiceConnectionPolicyPscConfigArgs{
    				Subnetworks: pulumi.StringArray{
    					producerSubnet.ID(),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = memorystore.NewInstance(ctx, "instance-full", &memorystore.InstanceArgs{
    			InstanceId: pulumi.String("full-instance"),
    			ShardCount: pulumi.Int(3),
    			DesiredPscAutoConnections: memorystore.InstanceDesiredPscAutoConnectionArray{
    				&memorystore.InstanceDesiredPscAutoConnectionArgs{
    					Network:   producerNet.ID(),
    					ProjectId: pulumi.String(project.ProjectId),
    				},
    			},
    			Location:              pulumi.String("us-central1"),
    			ReplicaCount:          pulumi.Int(2),
    			NodeType:              pulumi.String("SHARED_CORE_NANO"),
    			TransitEncryptionMode: pulumi.String("TRANSIT_ENCRYPTION_DISABLED"),
    			AuthorizationMode:     pulumi.String("AUTH_DISABLED"),
    			EngineConfigs: pulumi.StringMap{
    				"maxmemory-policy": pulumi.String("volatile-ttl"),
    			},
    			ZoneDistributionConfig: &memorystore.InstanceZoneDistributionConfigArgs{
    				Mode: pulumi.String("SINGLE_ZONE"),
    				Zone: pulumi.String("us-central1-b"),
    			},
    			EngineVersion:             pulumi.String("VALKEY_7_2"),
    			DeletionProtectionEnabled: pulumi.Bool(false),
    			Mode:                      pulumi.String("CLUSTER"),
    			PersistenceConfig: &memorystore.InstancePersistenceConfigArgs{
    				Mode: pulumi.String("RDB"),
    				RdbConfig: &memorystore.InstancePersistenceConfigRdbConfigArgs{
    					RdbSnapshotPeriod:    pulumi.String("ONE_HOUR"),
    					RdbSnapshotStartTime: pulumi.String("2024-10-02T15:01:23Z"),
    				},
    			},
    			Labels: pulumi.StringMap{
    				"abc": pulumi.String("xyz"),
    			},
    		}, 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 = "my-network",
            AutoCreateSubnetworks = false,
        });
    
        var producerSubnet = new Gcp.Compute.Subnetwork("producer_subnet", new()
        {
            Name = "my-subnet",
            IpCidrRange = "10.0.0.248/29",
            Region = "us-central1",
            Network = producerNet.Id,
        });
    
        var @default = new Gcp.NetworkConnectivity.ServiceConnectionPolicy("default", new()
        {
            Name = "my-policy",
            Location = "us-central1",
            ServiceClass = "gcp-memorystore",
            Description = "my basic service connection policy",
            Network = producerNet.Id,
            PscConfig = new Gcp.NetworkConnectivity.Inputs.ServiceConnectionPolicyPscConfigArgs
            {
                Subnetworks = new[]
                {
                    producerSubnet.Id,
                },
            },
        });
    
        var project = Gcp.Organizations.GetProject.Invoke();
    
        var instance_full = new Gcp.MemoryStore.Instance("instance-full", new()
        {
            InstanceId = "full-instance",
            ShardCount = 3,
            DesiredPscAutoConnections = new[]
            {
                new Gcp.MemoryStore.Inputs.InstanceDesiredPscAutoConnectionArgs
                {
                    Network = producerNet.Id,
                    ProjectId = project.Apply(getProjectResult => getProjectResult.ProjectId),
                },
            },
            Location = "us-central1",
            ReplicaCount = 2,
            NodeType = "SHARED_CORE_NANO",
            TransitEncryptionMode = "TRANSIT_ENCRYPTION_DISABLED",
            AuthorizationMode = "AUTH_DISABLED",
            EngineConfigs = 
            {
                { "maxmemory-policy", "volatile-ttl" },
            },
            ZoneDistributionConfig = new Gcp.MemoryStore.Inputs.InstanceZoneDistributionConfigArgs
            {
                Mode = "SINGLE_ZONE",
                Zone = "us-central1-b",
            },
            EngineVersion = "VALKEY_7_2",
            DeletionProtectionEnabled = false,
            Mode = "CLUSTER",
            PersistenceConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigArgs
            {
                Mode = "RDB",
                RdbConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigRdbConfigArgs
                {
                    RdbSnapshotPeriod = "ONE_HOUR",
                    RdbSnapshotStartTime = "2024-10-02T15:01:23Z",
                },
            },
            Labels = 
            {
                { "abc", "xyz" },
            },
        }, 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.organizations.OrganizationsFunctions;
    import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
    import com.pulumi.gcp.memorystore.Instance;
    import com.pulumi.gcp.memorystore.InstanceArgs;
    import com.pulumi.gcp.memorystore.inputs.InstanceDesiredPscAutoConnectionArgs;
    import com.pulumi.gcp.memorystore.inputs.InstanceZoneDistributionConfigArgs;
    import com.pulumi.gcp.memorystore.inputs.InstancePersistenceConfigArgs;
    import com.pulumi.gcp.memorystore.inputs.InstancePersistenceConfigRdbConfigArgs;
    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("my-network")
                .autoCreateSubnetworks(false)
                .build());
    
            var producerSubnet = new Subnetwork("producerSubnet", SubnetworkArgs.builder()
                .name("my-subnet")
                .ipCidrRange("10.0.0.248/29")
                .region("us-central1")
                .network(producerNet.id())
                .build());
    
            var default_ = new ServiceConnectionPolicy("default", ServiceConnectionPolicyArgs.builder()
                .name("my-policy")
                .location("us-central1")
                .serviceClass("gcp-memorystore")
                .description("my basic service connection policy")
                .network(producerNet.id())
                .pscConfig(ServiceConnectionPolicyPscConfigArgs.builder()
                    .subnetworks(producerSubnet.id())
                    .build())
                .build());
    
            final var project = OrganizationsFunctions.getProject();
    
            var instance_full = new Instance("instance-full", InstanceArgs.builder()
                .instanceId("full-instance")
                .shardCount(3)
                .desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
                    .network(producerNet.id())
                    .projectId(project.applyValue(getProjectResult -> getProjectResult.projectId()))
                    .build())
                .location("us-central1")
                .replicaCount(2)
                .nodeType("SHARED_CORE_NANO")
                .transitEncryptionMode("TRANSIT_ENCRYPTION_DISABLED")
                .authorizationMode("AUTH_DISABLED")
                .engineConfigs(Map.of("maxmemory-policy", "volatile-ttl"))
                .zoneDistributionConfig(InstanceZoneDistributionConfigArgs.builder()
                    .mode("SINGLE_ZONE")
                    .zone("us-central1-b")
                    .build())
                .engineVersion("VALKEY_7_2")
                .deletionProtectionEnabled(false)
                .mode("CLUSTER")
                .persistenceConfig(InstancePersistenceConfigArgs.builder()
                    .mode("RDB")
                    .rdbConfig(InstancePersistenceConfigRdbConfigArgs.builder()
                        .rdbSnapshotPeriod("ONE_HOUR")
                        .rdbSnapshotStartTime("2024-10-02T15:01:23Z")
                        .build())
                    .build())
                .labels(Map.of("abc", "xyz"))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(default_)
                    .build());
    
        }
    }
    
    resources:
      instance-full:
        type: gcp:memorystore:Instance
        properties:
          instanceId: full-instance
          shardCount: 3
          desiredPscAutoConnections:
            - network: ${producerNet.id}
              projectId: ${project.projectId}
          location: us-central1
          replicaCount: 2
          nodeType: SHARED_CORE_NANO
          transitEncryptionMode: TRANSIT_ENCRYPTION_DISABLED
          authorizationMode: AUTH_DISABLED
          engineConfigs:
            maxmemory-policy: volatile-ttl
          zoneDistributionConfig:
            mode: SINGLE_ZONE
            zone: us-central1-b
          engineVersion: VALKEY_7_2
          deletionProtectionEnabled: false
          mode: CLUSTER
          persistenceConfig:
            mode: RDB
            rdbConfig:
              rdbSnapshotPeriod: ONE_HOUR
              rdbSnapshotStartTime: 2024-10-02T15:01:23Z
          labels:
            abc: xyz
        options:
          dependson:
            - ${default}
      default:
        type: gcp:networkconnectivity:ServiceConnectionPolicy
        properties:
          name: my-policy
          location: us-central1
          serviceClass: gcp-memorystore
          description: my basic service connection policy
          network: ${producerNet.id}
          pscConfig:
            subnetworks:
              - ${producerSubnet.id}
      producerSubnet:
        type: gcp:compute:Subnetwork
        name: producer_subnet
        properties:
          name: my-subnet
          ipCidrRange: 10.0.0.248/29
          region: us-central1
          network: ${producerNet.id}
      producerNet:
        type: gcp:compute:Network
        name: producer_net
        properties:
          name: my-network
          autoCreateSubnetworks: false
    variables:
      project:
        fn::invoke:
          Function: gcp:organizations:getProject
          Arguments: {}
    

    Memorystore Instance Persistence Aof

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const producerNet = new gcp.compute.Network("producer_net", {
        name: "my-network",
        autoCreateSubnetworks: false,
    });
    const producerSubnet = new gcp.compute.Subnetwork("producer_subnet", {
        name: "my-subnet",
        ipCidrRange: "10.0.0.248/29",
        region: "us-central1",
        network: producerNet.id,
    });
    const _default = new gcp.networkconnectivity.ServiceConnectionPolicy("default", {
        name: "my-policy",
        location: "us-central1",
        serviceClass: "gcp-memorystore",
        description: "my basic service connection policy",
        network: producerNet.id,
        pscConfig: {
            subnetworks: [producerSubnet.id],
        },
    });
    const project = gcp.organizations.getProject({});
    const instance_persistence_aof = new gcp.memorystore.Instance("instance-persistence-aof", {
        instanceId: "aof-instance",
        shardCount: 3,
        desiredPscAutoConnections: [{
            network: producerNet.id,
            projectId: project.then(project => project.projectId),
        }],
        location: "us-central1",
        persistenceConfig: {
            mode: "AOF",
            aofConfig: {
                appendFsync: "EVERY_SEC",
            },
        },
        deletionProtectionEnabled: false,
    }, {
        dependsOn: [_default],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    producer_net = gcp.compute.Network("producer_net",
        name="my-network",
        auto_create_subnetworks=False)
    producer_subnet = gcp.compute.Subnetwork("producer_subnet",
        name="my-subnet",
        ip_cidr_range="10.0.0.248/29",
        region="us-central1",
        network=producer_net.id)
    default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
        name="my-policy",
        location="us-central1",
        service_class="gcp-memorystore",
        description="my basic service connection policy",
        network=producer_net.id,
        psc_config={
            "subnetworks": [producer_subnet.id],
        })
    project = gcp.organizations.get_project()
    instance_persistence_aof = gcp.memorystore.Instance("instance-persistence-aof",
        instance_id="aof-instance",
        shard_count=3,
        desired_psc_auto_connections=[{
            "network": producer_net.id,
            "project_id": project.project_id,
        }],
        location="us-central1",
        persistence_config={
            "mode": "AOF",
            "aof_config": {
                "append_fsync": "EVERY_SEC",
            },
        },
        deletion_protection_enabled=False,
        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/memorystore"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networkconnectivity"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
    	"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("my-network"),
    			AutoCreateSubnetworks: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		producerSubnet, err := compute.NewSubnetwork(ctx, "producer_subnet", &compute.SubnetworkArgs{
    			Name:        pulumi.String("my-subnet"),
    			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("my-policy"),
    			Location:     pulumi.String("us-central1"),
    			ServiceClass: pulumi.String("gcp-memorystore"),
    			Description:  pulumi.String("my basic service connection policy"),
    			Network:      producerNet.ID(),
    			PscConfig: &networkconnectivity.ServiceConnectionPolicyPscConfigArgs{
    				Subnetworks: pulumi.StringArray{
    					producerSubnet.ID(),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = memorystore.NewInstance(ctx, "instance-persistence-aof", &memorystore.InstanceArgs{
    			InstanceId: pulumi.String("aof-instance"),
    			ShardCount: pulumi.Int(3),
    			DesiredPscAutoConnections: memorystore.InstanceDesiredPscAutoConnectionArray{
    				&memorystore.InstanceDesiredPscAutoConnectionArgs{
    					Network:   producerNet.ID(),
    					ProjectId: pulumi.String(project.ProjectId),
    				},
    			},
    			Location: pulumi.String("us-central1"),
    			PersistenceConfig: &memorystore.InstancePersistenceConfigArgs{
    				Mode: pulumi.String("AOF"),
    				AofConfig: &memorystore.InstancePersistenceConfigAofConfigArgs{
    					AppendFsync: pulumi.String("EVERY_SEC"),
    				},
    			},
    			DeletionProtectionEnabled: pulumi.Bool(false),
    		}, 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 = "my-network",
            AutoCreateSubnetworks = false,
        });
    
        var producerSubnet = new Gcp.Compute.Subnetwork("producer_subnet", new()
        {
            Name = "my-subnet",
            IpCidrRange = "10.0.0.248/29",
            Region = "us-central1",
            Network = producerNet.Id,
        });
    
        var @default = new Gcp.NetworkConnectivity.ServiceConnectionPolicy("default", new()
        {
            Name = "my-policy",
            Location = "us-central1",
            ServiceClass = "gcp-memorystore",
            Description = "my basic service connection policy",
            Network = producerNet.Id,
            PscConfig = new Gcp.NetworkConnectivity.Inputs.ServiceConnectionPolicyPscConfigArgs
            {
                Subnetworks = new[]
                {
                    producerSubnet.Id,
                },
            },
        });
    
        var project = Gcp.Organizations.GetProject.Invoke();
    
        var instance_persistence_aof = new Gcp.MemoryStore.Instance("instance-persistence-aof", new()
        {
            InstanceId = "aof-instance",
            ShardCount = 3,
            DesiredPscAutoConnections = new[]
            {
                new Gcp.MemoryStore.Inputs.InstanceDesiredPscAutoConnectionArgs
                {
                    Network = producerNet.Id,
                    ProjectId = project.Apply(getProjectResult => getProjectResult.ProjectId),
                },
            },
            Location = "us-central1",
            PersistenceConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigArgs
            {
                Mode = "AOF",
                AofConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigAofConfigArgs
                {
                    AppendFsync = "EVERY_SEC",
                },
            },
            DeletionProtectionEnabled = false,
        }, 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.organizations.OrganizationsFunctions;
    import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
    import com.pulumi.gcp.memorystore.Instance;
    import com.pulumi.gcp.memorystore.InstanceArgs;
    import com.pulumi.gcp.memorystore.inputs.InstanceDesiredPscAutoConnectionArgs;
    import com.pulumi.gcp.memorystore.inputs.InstancePersistenceConfigArgs;
    import com.pulumi.gcp.memorystore.inputs.InstancePersistenceConfigAofConfigArgs;
    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("my-network")
                .autoCreateSubnetworks(false)
                .build());
    
            var producerSubnet = new Subnetwork("producerSubnet", SubnetworkArgs.builder()
                .name("my-subnet")
                .ipCidrRange("10.0.0.248/29")
                .region("us-central1")
                .network(producerNet.id())
                .build());
    
            var default_ = new ServiceConnectionPolicy("default", ServiceConnectionPolicyArgs.builder()
                .name("my-policy")
                .location("us-central1")
                .serviceClass("gcp-memorystore")
                .description("my basic service connection policy")
                .network(producerNet.id())
                .pscConfig(ServiceConnectionPolicyPscConfigArgs.builder()
                    .subnetworks(producerSubnet.id())
                    .build())
                .build());
    
            final var project = OrganizationsFunctions.getProject();
    
            var instance_persistence_aof = new Instance("instance-persistence-aof", InstanceArgs.builder()
                .instanceId("aof-instance")
                .shardCount(3)
                .desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
                    .network(producerNet.id())
                    .projectId(project.applyValue(getProjectResult -> getProjectResult.projectId()))
                    .build())
                .location("us-central1")
                .persistenceConfig(InstancePersistenceConfigArgs.builder()
                    .mode("AOF")
                    .aofConfig(InstancePersistenceConfigAofConfigArgs.builder()
                        .appendFsync("EVERY_SEC")
                        .build())
                    .build())
                .deletionProtectionEnabled(false)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(default_)
                    .build());
    
        }
    }
    
    resources:
      instance-persistence-aof:
        type: gcp:memorystore:Instance
        properties:
          instanceId: aof-instance
          shardCount: 3
          desiredPscAutoConnections:
            - network: ${producerNet.id}
              projectId: ${project.projectId}
          location: us-central1
          persistenceConfig:
            mode: AOF
            aofConfig:
              appendFsync: EVERY_SEC
          deletionProtectionEnabled: false
        options:
          dependson:
            - ${default}
      default:
        type: gcp:networkconnectivity:ServiceConnectionPolicy
        properties:
          name: my-policy
          location: us-central1
          serviceClass: gcp-memorystore
          description: my basic service connection policy
          network: ${producerNet.id}
          pscConfig:
            subnetworks:
              - ${producerSubnet.id}
      producerSubnet:
        type: gcp:compute:Subnetwork
        name: producer_subnet
        properties:
          name: my-subnet
          ipCidrRange: 10.0.0.248/29
          region: us-central1
          network: ${producerNet.id}
      producerNet:
        type: gcp:compute:Network
        name: producer_net
        properties:
          name: my-network
          autoCreateSubnetworks: false
    variables:
      project:
        fn::invoke:
          Function: gcp:organizations:getProject
          Arguments: {}
    

    Create Instance Resource

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

    Constructor syntax

    new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
    @overload
    def Instance(resource_name: str,
                 args: InstanceArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Instance(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 instance_id: Optional[str] = None,
                 shard_count: Optional[int] = None,
                 desired_psc_auto_connections: Optional[Sequence[InstanceDesiredPscAutoConnectionArgs]] = None,
                 location: Optional[str] = None,
                 mode: Optional[str] = None,
                 engine_version: Optional[str] = None,
                 labels: Optional[Mapping[str, str]] = None,
                 engine_configs: Optional[Mapping[str, str]] = None,
                 authorization_mode: Optional[str] = None,
                 node_type: Optional[str] = None,
                 persistence_config: Optional[InstancePersistenceConfigArgs] = None,
                 project: Optional[str] = None,
                 replica_count: Optional[int] = None,
                 deletion_protection_enabled: Optional[bool] = None,
                 transit_encryption_mode: Optional[str] = None,
                 zone_distribution_config: Optional[InstanceZoneDistributionConfigArgs] = None)
    func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
    public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
    public Instance(String name, InstanceArgs args)
    public Instance(String name, InstanceArgs args, CustomResourceOptions options)
    
    type: gcp:memorystore:Instance
    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 InstanceArgs
    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 InstanceArgs
    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 InstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceArgs
    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 exampleinstanceResourceResourceFromMemorystoreinstance = new Gcp.MemoryStore.Instance("exampleinstanceResourceResourceFromMemorystoreinstance", new()
    {
        InstanceId = "string",
        ShardCount = 0,
        DesiredPscAutoConnections = new[]
        {
            new Gcp.MemoryStore.Inputs.InstanceDesiredPscAutoConnectionArgs
            {
                Network = "string",
                ProjectId = "string",
            },
        },
        Location = "string",
        Mode = "string",
        EngineVersion = "string",
        Labels = 
        {
            { "string", "string" },
        },
        EngineConfigs = 
        {
            { "string", "string" },
        },
        AuthorizationMode = "string",
        NodeType = "string",
        PersistenceConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigArgs
        {
            AofConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigAofConfigArgs
            {
                AppendFsync = "string",
            },
            Mode = "string",
            RdbConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigRdbConfigArgs
            {
                RdbSnapshotPeriod = "string",
                RdbSnapshotStartTime = "string",
            },
        },
        Project = "string",
        ReplicaCount = 0,
        DeletionProtectionEnabled = false,
        TransitEncryptionMode = "string",
        ZoneDistributionConfig = new Gcp.MemoryStore.Inputs.InstanceZoneDistributionConfigArgs
        {
            Mode = "string",
            Zone = "string",
        },
    });
    
    example, err := memorystore.NewInstance(ctx, "exampleinstanceResourceResourceFromMemorystoreinstance", &memorystore.InstanceArgs{
    	InstanceId: pulumi.String("string"),
    	ShardCount: pulumi.Int(0),
    	DesiredPscAutoConnections: memorystore.InstanceDesiredPscAutoConnectionArray{
    		&memorystore.InstanceDesiredPscAutoConnectionArgs{
    			Network:   pulumi.String("string"),
    			ProjectId: pulumi.String("string"),
    		},
    	},
    	Location:      pulumi.String("string"),
    	Mode:          pulumi.String("string"),
    	EngineVersion: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	EngineConfigs: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	AuthorizationMode: pulumi.String("string"),
    	NodeType:          pulumi.String("string"),
    	PersistenceConfig: &memorystore.InstancePersistenceConfigArgs{
    		AofConfig: &memorystore.InstancePersistenceConfigAofConfigArgs{
    			AppendFsync: pulumi.String("string"),
    		},
    		Mode: pulumi.String("string"),
    		RdbConfig: &memorystore.InstancePersistenceConfigRdbConfigArgs{
    			RdbSnapshotPeriod:    pulumi.String("string"),
    			RdbSnapshotStartTime: pulumi.String("string"),
    		},
    	},
    	Project:                   pulumi.String("string"),
    	ReplicaCount:              pulumi.Int(0),
    	DeletionProtectionEnabled: pulumi.Bool(false),
    	TransitEncryptionMode:     pulumi.String("string"),
    	ZoneDistributionConfig: &memorystore.InstanceZoneDistributionConfigArgs{
    		Mode: pulumi.String("string"),
    		Zone: pulumi.String("string"),
    	},
    })
    
    var exampleinstanceResourceResourceFromMemorystoreinstance = new Instance("exampleinstanceResourceResourceFromMemorystoreinstance", InstanceArgs.builder()
        .instanceId("string")
        .shardCount(0)
        .desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
            .network("string")
            .projectId("string")
            .build())
        .location("string")
        .mode("string")
        .engineVersion("string")
        .labels(Map.of("string", "string"))
        .engineConfigs(Map.of("string", "string"))
        .authorizationMode("string")
        .nodeType("string")
        .persistenceConfig(InstancePersistenceConfigArgs.builder()
            .aofConfig(InstancePersistenceConfigAofConfigArgs.builder()
                .appendFsync("string")
                .build())
            .mode("string")
            .rdbConfig(InstancePersistenceConfigRdbConfigArgs.builder()
                .rdbSnapshotPeriod("string")
                .rdbSnapshotStartTime("string")
                .build())
            .build())
        .project("string")
        .replicaCount(0)
        .deletionProtectionEnabled(false)
        .transitEncryptionMode("string")
        .zoneDistributionConfig(InstanceZoneDistributionConfigArgs.builder()
            .mode("string")
            .zone("string")
            .build())
        .build());
    
    exampleinstance_resource_resource_from_memorystoreinstance = gcp.memorystore.Instance("exampleinstanceResourceResourceFromMemorystoreinstance",
        instance_id="string",
        shard_count=0,
        desired_psc_auto_connections=[{
            "network": "string",
            "project_id": "string",
        }],
        location="string",
        mode="string",
        engine_version="string",
        labels={
            "string": "string",
        },
        engine_configs={
            "string": "string",
        },
        authorization_mode="string",
        node_type="string",
        persistence_config={
            "aof_config": {
                "append_fsync": "string",
            },
            "mode": "string",
            "rdb_config": {
                "rdb_snapshot_period": "string",
                "rdb_snapshot_start_time": "string",
            },
        },
        project="string",
        replica_count=0,
        deletion_protection_enabled=False,
        transit_encryption_mode="string",
        zone_distribution_config={
            "mode": "string",
            "zone": "string",
        })
    
    const exampleinstanceResourceResourceFromMemorystoreinstance = new gcp.memorystore.Instance("exampleinstanceResourceResourceFromMemorystoreinstance", {
        instanceId: "string",
        shardCount: 0,
        desiredPscAutoConnections: [{
            network: "string",
            projectId: "string",
        }],
        location: "string",
        mode: "string",
        engineVersion: "string",
        labels: {
            string: "string",
        },
        engineConfigs: {
            string: "string",
        },
        authorizationMode: "string",
        nodeType: "string",
        persistenceConfig: {
            aofConfig: {
                appendFsync: "string",
            },
            mode: "string",
            rdbConfig: {
                rdbSnapshotPeriod: "string",
                rdbSnapshotStartTime: "string",
            },
        },
        project: "string",
        replicaCount: 0,
        deletionProtectionEnabled: false,
        transitEncryptionMode: "string",
        zoneDistributionConfig: {
            mode: "string",
            zone: "string",
        },
    });
    
    type: gcp:memorystore:Instance
    properties:
        authorizationMode: string
        deletionProtectionEnabled: false
        desiredPscAutoConnections:
            - network: string
              projectId: string
        engineConfigs:
            string: string
        engineVersion: string
        instanceId: string
        labels:
            string: string
        location: string
        mode: string
        nodeType: string
        persistenceConfig:
            aofConfig:
                appendFsync: string
            mode: string
            rdbConfig:
                rdbSnapshotPeriod: string
                rdbSnapshotStartTime: string
        project: string
        replicaCount: 0
        shardCount: 0
        transitEncryptionMode: string
        zoneDistributionConfig:
            mode: string
            zone: string
    

    Instance Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Instance resource accepts the following input properties:

    DesiredPscAutoConnections List<InstanceDesiredPscAutoConnection>
    Required. Immutable. User inputs for the auto-created PSC connections.
    InstanceId string
    Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

    • Must be 4-63 characters in length
    • Must begin with a letter or digit
    • Must contain only lowercase letters, digits, and hyphens
    • Must not end with a hyphen
    • Must be unique within a location

    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
    ShardCount int
    Required. Number of shards for the instance.
    AuthorizationMode string
    Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
    DeletionProtectionEnabled bool
    Optional. If set to true deletion of the instance will fail.
    EngineConfigs Dictionary<string, string>
    Optional. User-provided engine configurations for the instance.
    EngineVersion string
    Optional. Immutable. Engine version of the instance.
    Labels Dictionary<string, string>
    Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Mode string
    Optional. Standalone or cluster. Possible values: CLUSTER STANDALONE Possible values are: CLUSTER, STANDALONE.
    NodeType string
    Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
    PersistenceConfig InstancePersistenceConfig
    Represents persistence configuration for a instance. Structure is documented below.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ReplicaCount int
    Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
    TransitEncryptionMode string
    Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
    ZoneDistributionConfig InstanceZoneDistributionConfig
    Zone distribution configuration for allocation of instance resources. Structure is documented below.
    DesiredPscAutoConnections []InstanceDesiredPscAutoConnectionArgs
    Required. Immutable. User inputs for the auto-created PSC connections.
    InstanceId string
    Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

    • Must be 4-63 characters in length
    • Must begin with a letter or digit
    • Must contain only lowercase letters, digits, and hyphens
    • Must not end with a hyphen
    • Must be unique within a location

    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
    ShardCount int
    Required. Number of shards for the instance.
    AuthorizationMode string
    Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
    DeletionProtectionEnabled bool
    Optional. If set to true deletion of the instance will fail.
    EngineConfigs map[string]string
    Optional. User-provided engine configurations for the instance.
    EngineVersion string
    Optional. Immutable. Engine version of the instance.
    Labels map[string]string
    Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Mode string
    Optional. Standalone or cluster. Possible values: CLUSTER STANDALONE Possible values are: CLUSTER, STANDALONE.
    NodeType string
    Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
    PersistenceConfig InstancePersistenceConfigArgs
    Represents persistence configuration for a instance. Structure is documented below.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ReplicaCount int
    Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
    TransitEncryptionMode string
    Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
    ZoneDistributionConfig InstanceZoneDistributionConfigArgs
    Zone distribution configuration for allocation of instance resources. Structure is documented below.
    desiredPscAutoConnections List<InstanceDesiredPscAutoConnection>
    Required. Immutable. User inputs for the auto-created PSC connections.
    instanceId String
    Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

    • Must be 4-63 characters in length
    • Must begin with a letter or digit
    • Must contain only lowercase letters, digits, and hyphens
    • Must not end with a hyphen
    • Must be unique within a location

    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
    shardCount Integer
    Required. Number of shards for the instance.
    authorizationMode String
    Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
    deletionProtectionEnabled Boolean
    Optional. If set to true deletion of the instance will fail.
    engineConfigs Map<String,String>
    Optional. User-provided engine configurations for the instance.
    engineVersion String
    Optional. Immutable. Engine version of the instance.
    labels Map<String,String>
    Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    mode String
    Optional. Standalone or cluster. Possible values: CLUSTER STANDALONE Possible values are: CLUSTER, STANDALONE.
    nodeType String
    Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
    persistenceConfig InstancePersistenceConfig
    Represents persistence configuration for a instance. Structure is documented below.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    replicaCount Integer
    Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
    transitEncryptionMode String
    Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
    zoneDistributionConfig InstanceZoneDistributionConfig
    Zone distribution configuration for allocation of instance resources. Structure is documented below.
    desiredPscAutoConnections InstanceDesiredPscAutoConnection[]
    Required. Immutable. User inputs for the auto-created PSC connections.
    instanceId string
    Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

    • Must be 4-63 characters in length
    • Must begin with a letter or digit
    • Must contain only lowercase letters, digits, and hyphens
    • Must not end with a hyphen
    • Must be unique within a location

    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
    shardCount number
    Required. Number of shards for the instance.
    authorizationMode string
    Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
    deletionProtectionEnabled boolean
    Optional. If set to true deletion of the instance will fail.
    engineConfigs {[key: string]: string}
    Optional. User-provided engine configurations for the instance.
    engineVersion string
    Optional. Immutable. Engine version of the instance.
    labels {[key: string]: string}
    Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    mode string
    Optional. Standalone or cluster. Possible values: CLUSTER STANDALONE Possible values are: CLUSTER, STANDALONE.
    nodeType string
    Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
    persistenceConfig InstancePersistenceConfig
    Represents persistence configuration for a instance. Structure is documented below.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    replicaCount number
    Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
    transitEncryptionMode string
    Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
    zoneDistributionConfig InstanceZoneDistributionConfig
    Zone distribution configuration for allocation of instance resources. Structure is documented below.
    desired_psc_auto_connections Sequence[InstanceDesiredPscAutoConnectionArgs]
    Required. Immutable. User inputs for the auto-created PSC connections.
    instance_id str
    Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

    • Must be 4-63 characters in length
    • Must begin with a letter or digit
    • Must contain only lowercase letters, digits, and hyphens
    • Must not end with a hyphen
    • Must be unique within a location

    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
    shard_count int
    Required. Number of shards for the instance.
    authorization_mode str
    Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
    deletion_protection_enabled bool
    Optional. If set to true deletion of the instance will fail.
    engine_configs Mapping[str, str]
    Optional. User-provided engine configurations for the instance.
    engine_version str
    Optional. Immutable. Engine version of the instance.
    labels Mapping[str, str]
    Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    mode str
    Optional. Standalone or cluster. Possible values: CLUSTER STANDALONE Possible values are: CLUSTER, STANDALONE.
    node_type str
    Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
    persistence_config InstancePersistenceConfigArgs
    Represents persistence configuration for a instance. Structure is documented below.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    replica_count int
    Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
    transit_encryption_mode str
    Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
    zone_distribution_config InstanceZoneDistributionConfigArgs
    Zone distribution configuration for allocation of instance resources. Structure is documented below.
    desiredPscAutoConnections List<Property Map>
    Required. Immutable. User inputs for the auto-created PSC connections.
    instanceId String
    Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

    • Must be 4-63 characters in length
    • Must begin with a letter or digit
    • Must contain only lowercase letters, digits, and hyphens
    • Must not end with a hyphen
    • Must be unique within a location

    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
    shardCount Number
    Required. Number of shards for the instance.
    authorizationMode String
    Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
    deletionProtectionEnabled Boolean
    Optional. If set to true deletion of the instance will fail.
    engineConfigs Map<String>
    Optional. User-provided engine configurations for the instance.
    engineVersion String
    Optional. Immutable. Engine version of the instance.
    labels Map<String>
    Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    mode String
    Optional. Standalone or cluster. Possible values: CLUSTER STANDALONE Possible values are: CLUSTER, STANDALONE.
    nodeType String
    Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
    persistenceConfig Property Map
    Represents persistence configuration for a instance. Structure is documented below.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    replicaCount Number
    Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
    transitEncryptionMode String
    Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
    zoneDistributionConfig Property Map
    Zone distribution configuration for allocation of instance resources. Structure is documented below.

    Outputs

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

    CreateTime string
    Output only. Creation timestamp of the instance.
    DiscoveryEndpoints List<InstanceDiscoveryEndpoint>
    Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Endpoints List<ImmutableArray<object>>
    Endpoints for the instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
    NodeConfigs List<InstanceNodeConfig>
    Represents configuration for nodes of the instance. Structure is documented below.
    PscAutoConnections List<InstancePscAutoConnection>
    Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    State string
    Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
    StateInfos List<InstanceStateInfo>
    Additional information about the state of the instance. Structure is documented below.
    Uid string
    Output only. System assigned, unique identifier for the instance.
    UpdateTime string
    Output only. Latest update timestamp of the instance.
    CreateTime string
    Output only. Creation timestamp of the instance.
    DiscoveryEndpoints []InstanceDiscoveryEndpoint
    Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Endpoints [][]interface{}
    Endpoints for the instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
    NodeConfigs []InstanceNodeConfig
    Represents configuration for nodes of the instance. Structure is documented below.
    PscAutoConnections []InstancePscAutoConnection
    Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    State string
    Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
    StateInfos []InstanceStateInfo
    Additional information about the state of the instance. Structure is documented below.
    Uid string
    Output only. System assigned, unique identifier for the instance.
    UpdateTime string
    Output only. Latest update timestamp of the instance.
    createTime String
    Output only. Creation timestamp of the instance.
    discoveryEndpoints List<InstanceDiscoveryEndpoint>
    Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    endpoints List<List<Object>>
    Endpoints for the instance.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
    nodeConfigs List<InstanceNodeConfig>
    Represents configuration for nodes of the instance. Structure is documented below.
    pscAutoConnections List<InstancePscAutoConnection>
    Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state String
    Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
    stateInfos List<InstanceStateInfo>
    Additional information about the state of the instance. Structure is documented below.
    uid String
    Output only. System assigned, unique identifier for the instance.
    updateTime String
    Output only. Latest update timestamp of the instance.
    createTime string
    Output only. Creation timestamp of the instance.
    discoveryEndpoints InstanceDiscoveryEndpoint[]
    Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    endpoints any[][]
    Endpoints for the instance.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
    nodeConfigs InstanceNodeConfig[]
    Represents configuration for nodes of the instance. Structure is documented below.
    pscAutoConnections InstancePscAutoConnection[]
    Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state string
    Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
    stateInfos InstanceStateInfo[]
    Additional information about the state of the instance. Structure is documented below.
    uid string
    Output only. System assigned, unique identifier for the instance.
    updateTime string
    Output only. Latest update timestamp of the instance.
    create_time str
    Output only. Creation timestamp of the instance.
    discovery_endpoints Sequence[InstanceDiscoveryEndpoint]
    Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    endpoints Sequence[Sequence[Any]]
    Endpoints for the instance.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
    node_configs Sequence[InstanceNodeConfig]
    Represents configuration for nodes of the instance. Structure is documented below.
    psc_auto_connections Sequence[InstancePscAutoConnection]
    Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state str
    Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
    state_infos Sequence[InstanceStateInfo]
    Additional information about the state of the instance. Structure is documented below.
    uid str
    Output only. System assigned, unique identifier for the instance.
    update_time str
    Output only. Latest update timestamp of the instance.
    createTime String
    Output only. Creation timestamp of the instance.
    discoveryEndpoints List<Property Map>
    Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    endpoints List<List<Any>>
    Endpoints for the instance.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
    nodeConfigs List<Property Map>
    Represents configuration for nodes of the instance. Structure is documented below.
    pscAutoConnections List<Property Map>
    Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    state String
    Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
    stateInfos List<Property Map>
    Additional information about the state of the instance. Structure is documented below.
    uid String
    Output only. System assigned, unique identifier for the instance.
    updateTime String
    Output only. Latest update timestamp of the instance.

    Look up Existing Instance Resource

    Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
    @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,
            desired_psc_auto_connections: Optional[Sequence[InstanceDesiredPscAutoConnectionArgs]] = None,
            discovery_endpoints: Optional[Sequence[InstanceDiscoveryEndpointArgs]] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            endpoints: Optional[Sequence[Sequence[Any]]] = None,
            engine_configs: Optional[Mapping[str, str]] = None,
            engine_version: Optional[str] = None,
            instance_id: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            mode: Optional[str] = None,
            name: Optional[str] = None,
            node_configs: Optional[Sequence[InstanceNodeConfigArgs]] = None,
            node_type: Optional[str] = None,
            persistence_config: Optional[InstancePersistenceConfigArgs] = None,
            project: Optional[str] = None,
            psc_auto_connections: Optional[Sequence[InstancePscAutoConnectionArgs]] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            replica_count: Optional[int] = None,
            shard_count: Optional[int] = None,
            state: Optional[str] = None,
            state_infos: Optional[Sequence[InstanceStateInfoArgs]] = None,
            transit_encryption_mode: Optional[str] = None,
            uid: Optional[str] = None,
            update_time: Optional[str] = None,
            zone_distribution_config: Optional[InstanceZoneDistributionConfigArgs] = None) -> Instance
    func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
    public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
    public static Instance get(String name, Output<String> id, InstanceState 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. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
    CreateTime string
    Output only. Creation timestamp of the instance.
    DeletionProtectionEnabled bool
    Optional. If set to true deletion of the instance will fail.
    DesiredPscAutoConnections List<InstanceDesiredPscAutoConnection>
    Required. Immutable. User inputs for the auto-created PSC connections.
    DiscoveryEndpoints List<InstanceDiscoveryEndpoint>
    Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Endpoints List<ImmutableArray<object>>
    Endpoints for the instance.
    EngineConfigs Dictionary<string, string>
    Optional. User-provided engine configurations for the instance.
    EngineVersion string
    Optional. Immutable. Engine version of the instance.
    InstanceId string
    Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

    • Must be 4-63 characters in length
    • Must begin with a letter or digit
    • Must contain only lowercase letters, digits, and hyphens
    • Must not end with a hyphen
    • Must be unique within a location

    Labels Dictionary<string, string>
    Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
    Mode string
    Optional. Standalone or cluster. Possible values: CLUSTER STANDALONE Possible values are: CLUSTER, STANDALONE.
    Name string
    Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
    NodeConfigs List<InstanceNodeConfig>
    Represents configuration for nodes of the instance. Structure is documented below.
    NodeType string
    Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
    PersistenceConfig InstancePersistenceConfig
    Represents persistence configuration for a instance. Structure is documented below.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PscAutoConnections List<InstancePscAutoConnection>
    Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    ReplicaCount int
    Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
    ShardCount int
    Required. Number of shards for the instance.
    State string
    Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
    StateInfos List<InstanceStateInfo>
    Additional information about the state of the instance. Structure is documented below.
    TransitEncryptionMode string
    Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
    Uid string
    Output only. System assigned, unique identifier for the instance.
    UpdateTime string
    Output only. Latest update timestamp of the instance.
    ZoneDistributionConfig InstanceZoneDistributionConfig
    Zone distribution configuration for allocation of instance resources. Structure is documented below.
    AuthorizationMode string
    Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
    CreateTime string
    Output only. Creation timestamp of the instance.
    DeletionProtectionEnabled bool
    Optional. If set to true deletion of the instance will fail.
    DesiredPscAutoConnections []InstanceDesiredPscAutoConnectionArgs
    Required. Immutable. User inputs for the auto-created PSC connections.
    DiscoveryEndpoints []InstanceDiscoveryEndpointArgs
    Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Endpoints [][]interface{}
    Endpoints for the instance.
    EngineConfigs map[string]string
    Optional. User-provided engine configurations for the instance.
    EngineVersion string
    Optional. Immutable. Engine version of the instance.
    InstanceId string
    Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

    • Must be 4-63 characters in length
    • Must begin with a letter or digit
    • Must contain only lowercase letters, digits, and hyphens
    • Must not end with a hyphen
    • Must be unique within a location

    Labels map[string]string
    Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
    Mode string
    Optional. Standalone or cluster. Possible values: CLUSTER STANDALONE Possible values are: CLUSTER, STANDALONE.
    Name string
    Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
    NodeConfigs []InstanceNodeConfigArgs
    Represents configuration for nodes of the instance. Structure is documented below.
    NodeType string
    Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
    PersistenceConfig InstancePersistenceConfigArgs
    Represents persistence configuration for a instance. Structure is documented below.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PscAutoConnections []InstancePscAutoConnectionArgs
    Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    ReplicaCount int
    Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
    ShardCount int
    Required. Number of shards for the instance.
    State string
    Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
    StateInfos []InstanceStateInfoArgs
    Additional information about the state of the instance. Structure is documented below.
    TransitEncryptionMode string
    Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
    Uid string
    Output only. System assigned, unique identifier for the instance.
    UpdateTime string
    Output only. Latest update timestamp of the instance.
    ZoneDistributionConfig InstanceZoneDistributionConfigArgs
    Zone distribution configuration for allocation of instance resources. Structure is documented below.
    authorizationMode String
    Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
    createTime String
    Output only. Creation timestamp of the instance.
    deletionProtectionEnabled Boolean
    Optional. If set to true deletion of the instance will fail.
    desiredPscAutoConnections List<InstanceDesiredPscAutoConnection>
    Required. Immutable. User inputs for the auto-created PSC connections.
    discoveryEndpoints List<InstanceDiscoveryEndpoint>
    Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    endpoints List<List<Object>>
    Endpoints for the instance.
    engineConfigs Map<String,String>
    Optional. User-provided engine configurations for the instance.
    engineVersion String
    Optional. Immutable. Engine version of the instance.
    instanceId String
    Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

    • Must be 4-63 characters in length
    • Must begin with a letter or digit
    • Must contain only lowercase letters, digits, and hyphens
    • Must not end with a hyphen
    • Must be unique within a location

    labels Map<String,String>
    Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
    mode String
    Optional. Standalone or cluster. Possible values: CLUSTER STANDALONE Possible values are: CLUSTER, STANDALONE.
    name String
    Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
    nodeConfigs List<InstanceNodeConfig>
    Represents configuration for nodes of the instance. Structure is documented below.
    nodeType String
    Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
    persistenceConfig InstancePersistenceConfig
    Represents persistence configuration for a instance. Structure is documented below.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pscAutoConnections List<InstancePscAutoConnection>
    Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    replicaCount Integer
    Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
    shardCount Integer
    Required. Number of shards for the instance.
    state String
    Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
    stateInfos List<InstanceStateInfo>
    Additional information about the state of the instance. Structure is documented below.
    transitEncryptionMode String
    Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
    uid String
    Output only. System assigned, unique identifier for the instance.
    updateTime String
    Output only. Latest update timestamp of the instance.
    zoneDistributionConfig InstanceZoneDistributionConfig
    Zone distribution configuration for allocation of instance resources. Structure is documented below.
    authorizationMode string
    Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
    createTime string
    Output only. Creation timestamp of the instance.
    deletionProtectionEnabled boolean
    Optional. If set to true deletion of the instance will fail.
    desiredPscAutoConnections InstanceDesiredPscAutoConnection[]
    Required. Immutable. User inputs for the auto-created PSC connections.
    discoveryEndpoints InstanceDiscoveryEndpoint[]
    Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    endpoints any[][]
    Endpoints for the instance.
    engineConfigs {[key: string]: string}
    Optional. User-provided engine configurations for the instance.
    engineVersion string
    Optional. Immutable. Engine version of the instance.
    instanceId string
    Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

    • Must be 4-63 characters in length
    • Must begin with a letter or digit
    • Must contain only lowercase letters, digits, and hyphens
    • Must not end with a hyphen
    • Must be unique within a location

    labels {[key: string]: string}
    Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
    mode string
    Optional. Standalone or cluster. Possible values: CLUSTER STANDALONE Possible values are: CLUSTER, STANDALONE.
    name string
    Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
    nodeConfigs InstanceNodeConfig[]
    Represents configuration for nodes of the instance. Structure is documented below.
    nodeType string
    Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
    persistenceConfig InstancePersistenceConfig
    Represents persistence configuration for a instance. Structure is documented below.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pscAutoConnections InstancePscAutoConnection[]
    Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    replicaCount number
    Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
    shardCount number
    Required. Number of shards for the instance.
    state string
    Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
    stateInfos InstanceStateInfo[]
    Additional information about the state of the instance. Structure is documented below.
    transitEncryptionMode string
    Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
    uid string
    Output only. System assigned, unique identifier for the instance.
    updateTime string
    Output only. Latest update timestamp of the instance.
    zoneDistributionConfig InstanceZoneDistributionConfig
    Zone distribution configuration for allocation of instance resources. Structure is documented below.
    authorization_mode str
    Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
    create_time str
    Output only. Creation timestamp of the instance.
    deletion_protection_enabled bool
    Optional. If set to true deletion of the instance will fail.
    desired_psc_auto_connections Sequence[InstanceDesiredPscAutoConnectionArgs]
    Required. Immutable. User inputs for the auto-created PSC connections.
    discovery_endpoints Sequence[InstanceDiscoveryEndpointArgs]
    Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    endpoints Sequence[Sequence[Any]]
    Endpoints for the instance.
    engine_configs Mapping[str, str]
    Optional. User-provided engine configurations for the instance.
    engine_version str
    Optional. Immutable. Engine version of the instance.
    instance_id str
    Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

    • Must be 4-63 characters in length
    • Must begin with a letter or digit
    • Must contain only lowercase letters, digits, and hyphens
    • Must not end with a hyphen
    • Must be unique within a location

    labels Mapping[str, str]
    Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
    mode str
    Optional. Standalone or cluster. Possible values: CLUSTER STANDALONE Possible values are: CLUSTER, STANDALONE.
    name str
    Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
    node_configs Sequence[InstanceNodeConfigArgs]
    Represents configuration for nodes of the instance. Structure is documented below.
    node_type str
    Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
    persistence_config InstancePersistenceConfigArgs
    Represents persistence configuration for a instance. Structure is documented below.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    psc_auto_connections Sequence[InstancePscAutoConnectionArgs]
    Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    replica_count int
    Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
    shard_count int
    Required. Number of shards for the instance.
    state str
    Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
    state_infos Sequence[InstanceStateInfoArgs]
    Additional information about the state of the instance. Structure is documented below.
    transit_encryption_mode str
    Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
    uid str
    Output only. System assigned, unique identifier for the instance.
    update_time str
    Output only. Latest update timestamp of the instance.
    zone_distribution_config InstanceZoneDistributionConfigArgs
    Zone distribution configuration for allocation of instance resources. Structure is documented below.
    authorizationMode String
    Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
    createTime String
    Output only. Creation timestamp of the instance.
    deletionProtectionEnabled Boolean
    Optional. If set to true deletion of the instance will fail.
    desiredPscAutoConnections List<Property Map>
    Required. Immutable. User inputs for the auto-created PSC connections.
    discoveryEndpoints List<Property Map>
    Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    endpoints List<List<Any>>
    Endpoints for the instance.
    engineConfigs Map<String>
    Optional. User-provided engine configurations for the instance.
    engineVersion String
    Optional. Immutable. Engine version of the instance.
    instanceId String
    Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

    • Must be 4-63 characters in length
    • Must begin with a letter or digit
    • Must contain only lowercase letters, digits, and hyphens
    • Must not end with a hyphen
    • Must be unique within a location

    labels Map<String>
    Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
    mode String
    Optional. Standalone or cluster. Possible values: CLUSTER STANDALONE Possible values are: CLUSTER, STANDALONE.
    name String
    Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
    nodeConfigs List<Property Map>
    Represents configuration for nodes of the instance. Structure is documented below.
    nodeType String
    Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
    persistenceConfig Property Map
    Represents persistence configuration for a instance. Structure is documented below.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pscAutoConnections List<Property Map>
    Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    replicaCount Number
    Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
    shardCount Number
    Required. Number of shards for the instance.
    state String
    Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
    stateInfos List<Property Map>
    Additional information about the state of the instance. Structure is documented below.
    transitEncryptionMode String
    Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
    uid String
    Output only. System assigned, unique identifier for the instance.
    updateTime String
    Output only. Latest update timestamp of the instance.
    zoneDistributionConfig Property Map
    Zone distribution configuration for allocation of instance resources. Structure is documented below.

    Supporting Types

    InstanceDesiredPscAutoConnection, InstanceDesiredPscAutoConnectionArgs

    Network string
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    ProjectId string
    (Output) Output only. The consumer project_id where the forwarding rule is created from.
    Network string
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    ProjectId string
    (Output) Output only. The consumer project_id where the forwarding rule is created from.
    network String
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    projectId String
    (Output) Output only. The consumer project_id where the forwarding rule is created from.
    network string
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    projectId string
    (Output) Output only. The consumer project_id where the forwarding rule is created from.
    network str
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    project_id str
    (Output) Output only. The consumer project_id where the forwarding rule is created from.
    network String
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    projectId String
    (Output) Output only. The consumer project_id where the forwarding rule is created from.

    InstanceDiscoveryEndpoint, InstanceDiscoveryEndpointArgs

    Address string
    (Output) Output only. IP address of the exposed endpoint clients connect to.
    Network string
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    Port int
    (Output) Output only. Ports of the exposed endpoint.
    Address string
    (Output) Output only. IP address of the exposed endpoint clients connect to.
    Network string
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    Port int
    (Output) Output only. Ports of the exposed endpoint.
    address String
    (Output) Output only. IP address of the exposed endpoint clients connect to.
    network String
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    port Integer
    (Output) Output only. Ports of the exposed endpoint.
    address string
    (Output) Output only. IP address of the exposed endpoint clients connect to.
    network string
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    port number
    (Output) Output only. Ports of the exposed endpoint.
    address str
    (Output) Output only. IP address of the exposed endpoint clients connect to.
    network str
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    port int
    (Output) Output only. Ports of the exposed endpoint.
    address String
    (Output) Output only. IP address of the exposed endpoint clients connect to.
    network String
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    port Number
    (Output) Output only. Ports of the exposed endpoint.

    InstanceNodeConfig, InstanceNodeConfigArgs

    SizeGb double
    (Output) Output only. Memory size in GB of the node.
    SizeGb float64
    (Output) Output only. Memory size in GB of the node.
    sizeGb Double
    (Output) Output only. Memory size in GB of the node.
    sizeGb number
    (Output) Output only. Memory size in GB of the node.
    size_gb float
    (Output) Output only. Memory size in GB of the node.
    sizeGb Number
    (Output) Output only. Memory size in GB of the node.

    InstancePersistenceConfig, InstancePersistenceConfigArgs

    AofConfig InstancePersistenceConfigAofConfig
    Configuration for AOF based persistence. Structure is documented below.
    Mode string
    Optional. Current persistence mode. Possible values: DISABLED RDB AOF Possible values are: DISABLED, RDB, AOF.
    RdbConfig InstancePersistenceConfigRdbConfig
    Configuration for RDB based persistence. Structure is documented below.
    AofConfig InstancePersistenceConfigAofConfig
    Configuration for AOF based persistence. Structure is documented below.
    Mode string
    Optional. Current persistence mode. Possible values: DISABLED RDB AOF Possible values are: DISABLED, RDB, AOF.
    RdbConfig InstancePersistenceConfigRdbConfig
    Configuration for RDB based persistence. Structure is documented below.
    aofConfig InstancePersistenceConfigAofConfig
    Configuration for AOF based persistence. Structure is documented below.
    mode String
    Optional. Current persistence mode. Possible values: DISABLED RDB AOF Possible values are: DISABLED, RDB, AOF.
    rdbConfig InstancePersistenceConfigRdbConfig
    Configuration for RDB based persistence. Structure is documented below.
    aofConfig InstancePersistenceConfigAofConfig
    Configuration for AOF based persistence. Structure is documented below.
    mode string
    Optional. Current persistence mode. Possible values: DISABLED RDB AOF Possible values are: DISABLED, RDB, AOF.
    rdbConfig InstancePersistenceConfigRdbConfig
    Configuration for RDB based persistence. Structure is documented below.
    aof_config InstancePersistenceConfigAofConfig
    Configuration for AOF based persistence. Structure is documented below.
    mode str
    Optional. Current persistence mode. Possible values: DISABLED RDB AOF Possible values are: DISABLED, RDB, AOF.
    rdb_config InstancePersistenceConfigRdbConfig
    Configuration for RDB based persistence. Structure is documented below.
    aofConfig Property Map
    Configuration for AOF based persistence. Structure is documented below.
    mode String
    Optional. Current persistence mode. Possible values: DISABLED RDB AOF Possible values are: DISABLED, RDB, AOF.
    rdbConfig Property Map
    Configuration for RDB based persistence. Structure is documented below.

    InstancePersistenceConfigAofConfig, InstancePersistenceConfigAofConfigArgs

    AppendFsync string
    Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
    AppendFsync string
    Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
    appendFsync String
    Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
    appendFsync string
    Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
    append_fsync str
    Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
    appendFsync String
    Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS

    InstancePersistenceConfigRdbConfig, InstancePersistenceConfigRdbConfigArgs

    RdbSnapshotPeriod string
    Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
    RdbSnapshotStartTime string
    Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
    RdbSnapshotPeriod string
    Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
    RdbSnapshotStartTime string
    Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
    rdbSnapshotPeriod String
    Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
    rdbSnapshotStartTime String
    Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
    rdbSnapshotPeriod string
    Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
    rdbSnapshotStartTime string
    Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
    rdb_snapshot_period str
    Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
    rdb_snapshot_start_time str
    Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
    rdbSnapshotPeriod String
    Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
    rdbSnapshotStartTime String
    Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.

    InstancePscAutoConnection, InstancePscAutoConnectionArgs

    ConnectionType string
    (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
    ForwardingRule string
    (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
    IpAddress string
    (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    Network string
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    Port int
    (Output) Output only. Ports of the exposed endpoint.
    ProjectId string
    (Output) Output only. The consumer project_id where the forwarding rule is created from.
    PscConnectionId string
    (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
    PscConnectionStatus string
    (Output) Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Possible values: ACTIVE NOT_FOUND
    ServiceAttachment string
    (Output) Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    ConnectionType string
    (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
    ForwardingRule string
    (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
    IpAddress string
    (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    Network string
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    Port int
    (Output) Output only. Ports of the exposed endpoint.
    ProjectId string
    (Output) Output only. The consumer project_id where the forwarding rule is created from.
    PscConnectionId string
    (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
    PscConnectionStatus string
    (Output) Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Possible values: ACTIVE NOT_FOUND
    ServiceAttachment string
    (Output) Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    connectionType String
    (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
    forwardingRule String
    (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
    ipAddress String
    (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    network String
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    port Integer
    (Output) Output only. Ports of the exposed endpoint.
    projectId String
    (Output) Output only. The consumer project_id where the forwarding rule is created from.
    pscConnectionId String
    (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
    pscConnectionStatus String
    (Output) Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Possible values: ACTIVE NOT_FOUND
    serviceAttachment String
    (Output) Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    connectionType string
    (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
    forwardingRule string
    (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
    ipAddress string
    (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    network string
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    port number
    (Output) Output only. Ports of the exposed endpoint.
    projectId string
    (Output) Output only. The consumer project_id where the forwarding rule is created from.
    pscConnectionId string
    (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
    pscConnectionStatus string
    (Output) Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Possible values: ACTIVE NOT_FOUND
    serviceAttachment string
    (Output) Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    connection_type str
    (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
    forwarding_rule str
    (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
    ip_address str
    (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    network str
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    port int
    (Output) Output only. Ports of the exposed endpoint.
    project_id str
    (Output) Output only. The consumer project_id where the forwarding rule is created from.
    psc_connection_id str
    (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
    psc_connection_status str
    (Output) Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Possible values: ACTIVE NOT_FOUND
    service_attachment str
    (Output) Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
    connectionType String
    (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
    forwardingRule String
    (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
    ipAddress String
    (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
    network String
    (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
    port Number
    (Output) Output only. Ports of the exposed endpoint.
    projectId String
    (Output) Output only. The consumer project_id where the forwarding rule is created from.
    pscConnectionId String
    (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
    pscConnectionStatus String
    (Output) Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Possible values: ACTIVE NOT_FOUND
    serviceAttachment String
    (Output) Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.

    InstanceStateInfo, InstanceStateInfoArgs

    UpdateInfos List<InstanceStateInfoUpdateInfo>
    (Output) Represents information about instance with state UPDATING. Structure is documented below.
    UpdateInfos []InstanceStateInfoUpdateInfo
    (Output) Represents information about instance with state UPDATING. Structure is documented below.
    updateInfos List<InstanceStateInfoUpdateInfo>
    (Output) Represents information about instance with state UPDATING. Structure is documented below.
    updateInfos InstanceStateInfoUpdateInfo[]
    (Output) Represents information about instance with state UPDATING. Structure is documented below.
    update_infos Sequence[InstanceStateInfoUpdateInfo]
    (Output) Represents information about instance with state UPDATING. Structure is documented below.
    updateInfos List<Property Map>
    (Output) Represents information about instance with state UPDATING. Structure is documented below.

    InstanceStateInfoUpdateInfo, InstanceStateInfoUpdateInfoArgs

    TargetReplicaCount int
    (Output) Output only. Target number of replica nodes per shard for the instance.
    TargetShardCount int
    (Output) Output only. Target number of shards for the instance.
    TargetReplicaCount int
    (Output) Output only. Target number of replica nodes per shard for the instance.
    TargetShardCount int
    (Output) Output only. Target number of shards for the instance.
    targetReplicaCount Integer
    (Output) Output only. Target number of replica nodes per shard for the instance.
    targetShardCount Integer
    (Output) Output only. Target number of shards for the instance.
    targetReplicaCount number
    (Output) Output only. Target number of replica nodes per shard for the instance.
    targetShardCount number
    (Output) Output only. Target number of shards for the instance.
    target_replica_count int
    (Output) Output only. Target number of replica nodes per shard for the instance.
    target_shard_count int
    (Output) Output only. Target number of shards for the instance.
    targetReplicaCount Number
    (Output) Output only. Target number of replica nodes per shard for the instance.
    targetShardCount Number
    (Output) Output only. Target number of shards for the instance.

    InstanceZoneDistributionConfig, InstanceZoneDistributionConfigArgs

    Mode string
    Optional. Current zone distribution mode. Defaults to MULTI_ZONE. Possible values: MULTI_ZONE SINGLE_ZONE Possible values are: MULTI_ZONE, SINGLE_ZONE.
    Zone string
    Optional. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.
    Mode string
    Optional. Current zone distribution mode. Defaults to MULTI_ZONE. Possible values: MULTI_ZONE SINGLE_ZONE Possible values are: MULTI_ZONE, SINGLE_ZONE.
    Zone string
    Optional. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.
    mode String
    Optional. Current zone distribution mode. Defaults to MULTI_ZONE. Possible values: MULTI_ZONE SINGLE_ZONE Possible values are: MULTI_ZONE, SINGLE_ZONE.
    zone String
    Optional. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.
    mode string
    Optional. Current zone distribution mode. Defaults to MULTI_ZONE. Possible values: MULTI_ZONE SINGLE_ZONE Possible values are: MULTI_ZONE, SINGLE_ZONE.
    zone string
    Optional. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.
    mode str
    Optional. Current zone distribution mode. Defaults to MULTI_ZONE. Possible values: MULTI_ZONE SINGLE_ZONE Possible values are: MULTI_ZONE, SINGLE_ZONE.
    zone str
    Optional. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.
    mode String
    Optional. Current zone distribution mode. Defaults to MULTI_ZONE. Possible values: MULTI_ZONE SINGLE_ZONE Possible values are: MULTI_ZONE, SINGLE_ZONE.
    zone String
    Optional. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.

    Import

    Instance can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/instances/{{instance_id}}

    • {{project}}/{{location}}/{{instance_id}}

    • {{location}}/{{instance_id}}

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

    $ pulumi import gcp:memorystore/instance:Instance default projects/{{project}}/locations/{{location}}/instances/{{instance_id}}
    
    $ pulumi import gcp:memorystore/instance:Instance default {{project}}/{{location}}/{{instance_id}}
    
    $ pulumi import gcp:memorystore/instance:Instance default {{location}}/{{instance_id}}
    

    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.9.3 published on Monday, Nov 18, 2024 by Pulumi