gcp.memorystore.Instance
Explore with Pulumi AI
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
		}
		_default, 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
		}
		_default, 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
		}
		_default, 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:
- DesiredPsc List<InstanceAuto Connections Desired Psc Auto Connection> 
- 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 typememorystore.googleapis.com/CertificateAuthority.
- int
- Required. Number of shards for the instance.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- DeletionProtection boolEnabled 
- 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_labelsfor all of the labels present on the resource.
- Mode string
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are: CLUSTER,CLUSTER_DISABLED.
- NodeType string
- Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- PersistenceConfig InstancePersistence Config 
- 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.
- TransitEncryption stringMode 
- Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- ZoneDistribution InstanceConfig Zone Distribution Config 
- Zone distribution configuration for allocation of instance resources. Structure is documented below.
- DesiredPsc []InstanceAuto Connections Desired Psc Auto Connection Args 
- 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 typememorystore.googleapis.com/CertificateAuthority.
- int
- Required. Number of shards for the instance.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- DeletionProtection boolEnabled 
- 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_labelsfor all of the labels present on the resource.
- Mode string
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are: CLUSTER,CLUSTER_DISABLED.
- NodeType string
- Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- PersistenceConfig InstancePersistence Config Args 
- 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.
- TransitEncryption stringMode 
- Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- ZoneDistribution InstanceConfig Zone Distribution Config Args 
- Zone distribution configuration for allocation of instance resources. Structure is documented below.
- desiredPsc List<InstanceAuto Connections Desired Psc Auto Connection> 
- 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 typememorystore.googleapis.com/CertificateAuthority.
- Integer
- Required. Number of shards for the instance.
- String
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- deletionProtection BooleanEnabled 
- 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_labelsfor all of the labels present on the resource.
- mode String
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are: CLUSTER,CLUSTER_DISABLED.
- nodeType String
- Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistenceConfig InstancePersistence Config 
- 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.
- transitEncryption StringMode 
- Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- zoneDistribution InstanceConfig Zone Distribution Config 
- Zone distribution configuration for allocation of instance resources. Structure is documented below.
- desiredPsc InstanceAuto Connections Desired Psc Auto Connection[] 
- 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 typememorystore.googleapis.com/CertificateAuthority.
- number
- Required. Number of shards for the instance.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- deletionProtection booleanEnabled 
- 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_labelsfor all of the labels present on the resource.
- mode string
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are: CLUSTER,CLUSTER_DISABLED.
- nodeType string
- Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistenceConfig InstancePersistence Config 
- 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.
- transitEncryption stringMode 
- Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- zoneDistribution InstanceConfig Zone Distribution Config 
- Zone distribution configuration for allocation of instance resources. Structure is documented below.
- desired_psc_ Sequence[Instanceauto_ connections Desired Psc Auto Connection Args] 
- 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 typememorystore.googleapis.com/CertificateAuthority.
- int
- Required. Number of shards for the instance.
- str
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- deletion_protection_ boolenabled 
- 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_labelsfor all of the labels present on the resource.
- mode str
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are: CLUSTER,CLUSTER_DISABLED.
- 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 InstancePersistence Config Args 
- 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_ strmode 
- Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- zone_distribution_ Instanceconfig Zone Distribution Config Args 
- Zone distribution configuration for allocation of instance resources. Structure is documented below.
- desiredPsc List<Property Map>Auto Connections 
- 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 typememorystore.googleapis.com/CertificateAuthority.
- Number
- Required. Number of shards for the instance.
- String
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- deletionProtection BooleanEnabled 
- 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_labelsfor all of the labels present on the resource.
- mode String
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are: CLUSTER,CLUSTER_DISABLED.
- 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.
- transitEncryption StringMode 
- Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- zoneDistribution Property MapConfig 
- 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<InstanceDiscovery Endpoint> 
- 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<InstanceEndpoint> 
- Endpoints for the instance. Structure is documented below.
- 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<InstanceNode Config> 
- Represents configuration for nodes of the instance. Structure is documented below.
- PscAuto List<InstanceConnections Psc Auto Connection> 
- 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<InstanceState Info> 
- 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 []InstanceDiscovery Endpoint 
- 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
[]InstanceEndpoint 
- Endpoints for the instance. Structure is documented below.
- 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 []InstanceNode Config 
- Represents configuration for nodes of the instance. Structure is documented below.
- PscAuto []InstanceConnections Psc Auto Connection 
- 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 []InstanceState Info 
- 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<InstanceDiscovery Endpoint> 
- 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<InstanceEndpoint> 
- Endpoints for the instance. Structure is documented below.
- 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<InstanceNode Config> 
- Represents configuration for nodes of the instance. Structure is documented below.
- pscAuto List<InstanceConnections Psc Auto Connection> 
- 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<InstanceState Info> 
- 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 InstanceDiscovery Endpoint[] 
- 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
InstanceEndpoint[] 
- Endpoints for the instance. Structure is documented below.
- 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 InstanceNode Config[] 
- Represents configuration for nodes of the instance. Structure is documented below.
- pscAuto InstanceConnections Psc Auto Connection[] 
- 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 InstanceState Info[] 
- 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[InstanceDiscovery Endpoint] 
- 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[InstanceEndpoint] 
- Endpoints for the instance. Structure is documented below.
- 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[InstanceNode Config] 
- Represents configuration for nodes of the instance. Structure is documented below.
- psc_auto_ Sequence[Instanceconnections Psc Auto Connection] 
- 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[InstanceState Info] 
- 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<Property Map>
- Endpoints for the instance. Structure is documented below.
- 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.
- pscAuto List<Property Map>Connections 
- 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[InstanceEndpointArgs]] = 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) -> Instancefunc 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)resources:  _:    type: gcp:memorystore:Instance    get:      id: ${id}- 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.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- CreateTime string
- Output only. Creation timestamp of the instance.
- DeletionProtection boolEnabled 
- Optional. If set to true deletion of the instance will fail.
- DesiredPsc List<InstanceAuto Connections Desired Psc Auto Connection> 
- Required. Immutable. User inputs for the auto-created PSC connections.
- DiscoveryEndpoints List<InstanceDiscovery Endpoint> 
- 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<InstanceEndpoint> 
- Endpoints for the instance. Structure is documented below.
- 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_labelsfor 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 typememorystore.googleapis.com/CertificateAuthority.
- Mode string
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are: CLUSTER,CLUSTER_DISABLED.
- Name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- NodeConfigs List<InstanceNode Config> 
- 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 InstancePersistence Config 
- 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.
- PscAuto List<InstanceConnections Psc Auto Connection> 
- 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<InstanceState Info> 
- Additional information about the state of the instance. Structure is documented below.
- TransitEncryption stringMode 
- 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.
- ZoneDistribution InstanceConfig Zone Distribution Config 
- Zone distribution configuration for allocation of instance resources. Structure is documented below.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- CreateTime string
- Output only. Creation timestamp of the instance.
- DeletionProtection boolEnabled 
- Optional. If set to true deletion of the instance will fail.
- DesiredPsc []InstanceAuto Connections Desired Psc Auto Connection Args 
- Required. Immutable. User inputs for the auto-created PSC connections.
- DiscoveryEndpoints []InstanceDiscovery Endpoint Args 
- 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
[]InstanceEndpoint Args 
- Endpoints for the instance. Structure is documented below.
- 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_labelsfor 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 typememorystore.googleapis.com/CertificateAuthority.
- Mode string
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are: CLUSTER,CLUSTER_DISABLED.
- Name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- NodeConfigs []InstanceNode Config Args 
- 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 InstancePersistence Config Args 
- 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.
- PscAuto []InstanceConnections Psc Auto Connection Args 
- 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 []InstanceState Info Args 
- Additional information about the state of the instance. Structure is documented below.
- TransitEncryption stringMode 
- 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.
- ZoneDistribution InstanceConfig Zone Distribution Config Args 
- Zone distribution configuration for allocation of instance resources. Structure is documented below.
- String
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- createTime String
- Output only. Creation timestamp of the instance.
- deletionProtection BooleanEnabled 
- Optional. If set to true deletion of the instance will fail.
- desiredPsc List<InstanceAuto Connections Desired Psc Auto Connection> 
- Required. Immutable. User inputs for the auto-created PSC connections.
- discoveryEndpoints List<InstanceDiscovery Endpoint> 
- 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<InstanceEndpoint> 
- Endpoints for the instance. Structure is documented below.
- 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_labelsfor 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 typememorystore.googleapis.com/CertificateAuthority.
- mode String
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are: CLUSTER,CLUSTER_DISABLED.
- name String
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- nodeConfigs List<InstanceNode Config> 
- 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 InstancePersistence Config 
- 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.
- pscAuto List<InstanceConnections Psc Auto Connection> 
- 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<InstanceState Info> 
- Additional information about the state of the instance. Structure is documented below.
- transitEncryption StringMode 
- 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.
- zoneDistribution InstanceConfig Zone Distribution Config 
- Zone distribution configuration for allocation of instance resources. Structure is documented below.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- createTime string
- Output only. Creation timestamp of the instance.
- deletionProtection booleanEnabled 
- Optional. If set to true deletion of the instance will fail.
- desiredPsc InstanceAuto Connections Desired Psc Auto Connection[] 
- Required. Immutable. User inputs for the auto-created PSC connections.
- discoveryEndpoints InstanceDiscovery Endpoint[] 
- 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
InstanceEndpoint[] 
- Endpoints for the instance. Structure is documented below.
- 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_labelsfor 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 typememorystore.googleapis.com/CertificateAuthority.
- mode string
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are: CLUSTER,CLUSTER_DISABLED.
- name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- nodeConfigs InstanceNode Config[] 
- 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 InstancePersistence Config 
- 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.
- pscAuto InstanceConnections Psc Auto Connection[] 
- 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 InstanceState Info[] 
- Additional information about the state of the instance. Structure is documented below.
- transitEncryption stringMode 
- 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.
- zoneDistribution InstanceConfig Zone Distribution Config 
- Zone distribution configuration for allocation of instance resources. Structure is documented below.
- 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_ boolenabled 
- Optional. If set to true deletion of the instance will fail.
- desired_psc_ Sequence[Instanceauto_ connections Desired Psc Auto Connection Args] 
- Required. Immutable. User inputs for the auto-created PSC connections.
- discovery_endpoints Sequence[InstanceDiscovery Endpoint Args] 
- 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[InstanceEndpoint Args] 
- Endpoints for the instance. Structure is documented below.
- 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_labelsfor 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 typememorystore.googleapis.com/CertificateAuthority.
- mode str
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are: CLUSTER,CLUSTER_DISABLED.
- name str
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node_configs Sequence[InstanceNode Config Args] 
- 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 InstancePersistence Config Args 
- 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_ Sequence[Instanceconnections Psc Auto Connection Args] 
- 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[InstanceState Info Args] 
- Additional information about the state of the instance. Structure is documented below.
- transit_encryption_ strmode 
- 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_ Instanceconfig Zone Distribution Config Args 
- Zone distribution configuration for allocation of instance resources. Structure is documented below.
- String
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- createTime String
- Output only. Creation timestamp of the instance.
- deletionProtection BooleanEnabled 
- Optional. If set to true deletion of the instance will fail.
- desiredPsc List<Property Map>Auto Connections 
- 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<Property Map>
- Endpoints for the instance. Structure is documented below.
- 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_labelsfor 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 typememorystore.googleapis.com/CertificateAuthority.
- mode String
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are: CLUSTER,CLUSTER_DISABLED.
- 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.
- pscAuto List<Property Map>Connections 
- 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.
- transitEncryption StringMode 
- 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.
- zoneDistribution Property MapConfig 
- Zone distribution configuration for allocation of instance resources. Structure is documented below.
Supporting Types
InstanceDesiredPscAutoConnection, InstanceDesiredPscAutoConnectionArgs          
- 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.
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 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.
InstanceEndpoint, InstanceEndpointArgs    
- Connections
List<InstanceEndpoint Connection> 
- A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster. Structure is documented below.
- Connections
[]InstanceEndpoint Connection 
- A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster. Structure is documented below.
- connections
List<InstanceEndpoint Connection> 
- A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster. Structure is documented below.
- connections
InstanceEndpoint Connection[] 
- A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster. Structure is documented below.
- connections
Sequence[InstanceEndpoint Connection] 
- A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster. Structure is documented below.
- connections List<Property Map>
- A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster. Structure is documented below.
InstanceEndpointConnection, InstanceEndpointConnectionArgs      
- PscAuto InstanceConnection Endpoint Connection Psc Auto Connection 
- Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
- PscAuto InstanceConnection Endpoint Connection Psc Auto Connection 
- Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
- pscAuto InstanceConnection Endpoint Connection Psc Auto Connection 
- Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
- pscAuto InstanceConnection Endpoint Connection Psc Auto Connection 
- Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
- psc_auto_ Instanceconnection Endpoint Connection Psc Auto Connection 
- Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
- pscAuto Property MapConnection 
- Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
InstanceEndpointConnectionPscAutoConnection, InstanceEndpointConnectionPscAutoConnectionArgs            
- 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.
- PscConnection stringId 
- (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- 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.
- PscConnection stringId 
- (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- 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.
- pscConnection StringId 
- (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- 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.
- pscConnection stringId 
- (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- 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_ strid 
- (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- 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.
- pscConnection StringId 
- (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- 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}.
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 InstancePersistence Config Aof Config 
- 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 InstancePersistence Config Rdb Config 
- Configuration for RDB based persistence. Structure is documented below.
- AofConfig InstancePersistence Config Aof Config 
- 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 InstancePersistence Config Rdb Config 
- Configuration for RDB based persistence. Structure is documented below.
- aofConfig InstancePersistence Config Aof Config 
- 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 InstancePersistence Config Rdb Config 
- Configuration for RDB based persistence. Structure is documented below.
- aofConfig InstancePersistence Config Aof Config 
- 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 InstancePersistence Config Rdb Config 
- Configuration for RDB based persistence. Structure is documented below.
- aof_config InstancePersistence Config Aof Config 
- 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 InstancePersistence Config Rdb Config 
- 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          
- RdbSnapshot stringPeriod 
- Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- RdbSnapshot stringStart Time 
- 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.
- RdbSnapshot stringPeriod 
- Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- RdbSnapshot stringStart Time 
- 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.
- rdbSnapshot StringPeriod 
- Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- rdbSnapshot StringStart Time 
- 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.
- rdbSnapshot stringPeriod 
- Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- rdbSnapshot stringStart Time 
- 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_ strperiod 
- Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- rdb_snapshot_ strstart_ time 
- 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.
- rdbSnapshot StringPeriod 
- Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- rdbSnapshot StringStart Time 
- 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.
- PscConnection stringId 
- (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- PscConnection stringStatus 
- (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.
- PscConnection stringId 
- (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- PscConnection stringStatus 
- (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.
- pscConnection StringId 
- (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- pscConnection StringStatus 
- (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.
- pscConnection stringId 
- (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- pscConnection stringStatus 
- (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_ strid 
- (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- psc_connection_ strstatus 
- (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.
- pscConnection StringId 
- (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- pscConnection StringStatus 
- (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<InstanceState Info Update Info> 
- (Output) Represents information about instance with state UPDATING. Structure is documented below.
- UpdateInfos []InstanceState Info Update Info 
- (Output) Represents information about instance with state UPDATING. Structure is documented below.
- updateInfos List<InstanceState Info Update Info> 
- (Output) Represents information about instance with state UPDATING. Structure is documented below.
- updateInfos InstanceState Info Update Info[] 
- (Output) Represents information about instance with state UPDATING. Structure is documented below.
- update_infos Sequence[InstanceState Info Update Info] 
- (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          
- TargetReplica intCount 
- (Output) Output only. Target number of replica nodes per shard for the instance.
- TargetShard intCount 
- (Output) Output only. Target number of shards for the instance.
- TargetReplica intCount 
- (Output) Output only. Target number of replica nodes per shard for the instance.
- TargetShard intCount 
- (Output) Output only. Target number of shards for the instance.
- targetReplica IntegerCount 
- (Output) Output only. Target number of replica nodes per shard for the instance.
- targetShard IntegerCount 
- (Output) Output only. Target number of shards for the instance.
- targetReplica numberCount 
- (Output) Output only. Target number of replica nodes per shard for the instance.
- targetShard numberCount 
- (Output) Output only. Target number of shards for the instance.
- target_replica_ intcount 
- (Output) Output only. Target number of replica nodes per shard for the instance.
- target_shard_ intcount 
- (Output) Output only. Target number of shards for the instance.
- targetReplica NumberCount 
- (Output) Output only. Target number of replica nodes per shard for the instance.
- targetShard NumberCount 
- (Output) Output only. Target number of shards for the instance.
InstanceZoneDistributionConfig, InstanceZoneDistributionConfigArgs        
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-betaTerraform Provider.