1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. memorystore
  5. Instance
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.memorystore.Instance

Explore with Pulumi AI

A Google Cloud Memorystore instance.

To get more information about Instance, see:

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,
    maintenancePolicy: {
        weeklyMaintenanceWindows: [{
            day: "MONDAY",
            startTime: {
                hours: 1,
                minutes: 0,
                seconds: 0,
                nanos: 0,
            },
        }],
    },
}, {
    dependsOn: [_default],
});
Copy
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,
    maintenance_policy={
        "weekly_maintenance_windows": [{
            "day": "MONDAY",
            "start_time": {
                "hours": 1,
                "minutes": 0,
                "seconds": 0,
                "nanos": 0,
            },
        }],
    },
    opts = pulumi.ResourceOptions(depends_on=[default]))
Copy
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),
			MaintenancePolicy: &memorystore.InstanceMaintenancePolicyArgs{
				WeeklyMaintenanceWindows: memorystore.InstanceMaintenancePolicyWeeklyMaintenanceWindowArray{
					&memorystore.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs{
						Day: pulumi.String("MONDAY"),
						StartTime: &memorystore.InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs{
							Hours:   pulumi.Int(1),
							Minutes: pulumi.Int(0),
							Seconds: pulumi.Int(0),
							Nanos:   pulumi.Int(0),
						},
					},
				},
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			_default,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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,
        MaintenancePolicy = new Gcp.MemoryStore.Inputs.InstanceMaintenancePolicyArgs
        {
            WeeklyMaintenanceWindows = new[]
            {
                new Gcp.MemoryStore.Inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs
                {
                    Day = "MONDAY",
                    StartTime = new Gcp.MemoryStore.Inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs
                    {
                        Hours = 1,
                        Minutes = 0,
                        Seconds = 0,
                        Nanos = 0,
                    },
                },
            },
        },
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            @default,
        },
    });

});
Copy
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.InstanceMaintenancePolicyArgs;
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(GetProjectArgs.builder()
            .build());

        var instance_basic = new Instance("instance-basic", InstanceArgs.builder()
            .instanceId("basic-instance")
            .shardCount(3)
            .desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
                .network(producerNet.id())
                .projectId(project.projectId())
                .build())
            .location("us-central1")
            .deletionProtectionEnabled(false)
            .maintenancePolicy(InstanceMaintenancePolicyArgs.builder()
                .weeklyMaintenanceWindows(InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs.builder()
                    .day("MONDAY")
                    .startTime(InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs.builder()
                        .hours(1)
                        .minutes(0)
                        .seconds(0)
                        .nanos(0)
                        .build())
                    .build())
                .build())
            .build(), CustomResourceOptions.builder()
                .dependsOn(default_)
                .build());

    }
}
Copy
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
      maintenancePolicy:
        weeklyMaintenanceWindows:
          - day: MONDAY
            startTime:
              hours: 1
              minutes: 0
              seconds: 0
              nanos: 0
    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: {}
Copy

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",
    },
    maintenancePolicy: {
        weeklyMaintenanceWindows: [{
            day: "MONDAY",
            startTime: {
                hours: 1,
                minutes: 0,
                seconds: 0,
                nanos: 0,
            },
        }],
    },
    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],
});
Copy
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",
    },
    maintenance_policy={
        "weekly_maintenance_windows": [{
            "day": "MONDAY",
            "start_time": {
                "hours": 1,
                "minutes": 0,
                "seconds": 0,
                "nanos": 0,
            },
        }],
    },
    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]))
Copy
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"),
			},
			MaintenancePolicy: &memorystore.InstanceMaintenancePolicyArgs{
				WeeklyMaintenanceWindows: memorystore.InstanceMaintenancePolicyWeeklyMaintenanceWindowArray{
					&memorystore.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs{
						Day: pulumi.String("MONDAY"),
						StartTime: &memorystore.InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs{
							Hours:   pulumi.Int(1),
							Minutes: pulumi.Int(0),
							Seconds: pulumi.Int(0),
							Nanos:   pulumi.Int(0),
						},
					},
				},
			},
			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
	})
}
Copy
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",
        },
        MaintenancePolicy = new Gcp.MemoryStore.Inputs.InstanceMaintenancePolicyArgs
        {
            WeeklyMaintenanceWindows = new[]
            {
                new Gcp.MemoryStore.Inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs
                {
                    Day = "MONDAY",
                    StartTime = new Gcp.MemoryStore.Inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs
                    {
                        Hours = 1,
                        Minutes = 0,
                        Seconds = 0,
                        Nanos = 0,
                    },
                },
            },
        },
        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,
        },
    });

});
Copy
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.InstanceMaintenancePolicyArgs;
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(GetProjectArgs.builder()
            .build());

        var instance_full = new Instance("instance-full", InstanceArgs.builder()
            .instanceId("full-instance")
            .shardCount(3)
            .desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
                .network(producerNet.id())
                .projectId(project.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())
            .maintenancePolicy(InstanceMaintenancePolicyArgs.builder()
                .weeklyMaintenanceWindows(InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs.builder()
                    .day("MONDAY")
                    .startTime(InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs.builder()
                        .hours(1)
                        .minutes(0)
                        .seconds(0)
                        .nanos(0)
                        .build())
                    .build())
                .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());

    }
}
Copy
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
      maintenancePolicy:
        weeklyMaintenanceWindows:
          - day: MONDAY
            startTime:
              hours: 1
              minutes: 0
              seconds: 0
              nanos: 0
      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: {}
Copy

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],
});
Copy
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]))
Copy
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
	})
}
Copy
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,
        },
    });

});
Copy
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(GetProjectArgs.builder()
            .build());

        var instance_persistence_aof = new Instance("instance-persistence-aof", InstanceArgs.builder()
            .instanceId("aof-instance")
            .shardCount(3)
            .desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
                .network(producerNet.id())
                .projectId(project.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());

    }
}
Copy
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: {}
Copy

Memorystore Instance Secondary Instance

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const primaryProducerNet = new gcp.compute.Network("primary_producer_net", {
    name: "my-network-primary-instance",
    autoCreateSubnetworks: false,
});
const primaryProducerSubnet = new gcp.compute.Subnetwork("primary_producer_subnet", {
    name: "my-subnet-primary-instance",
    ipCidrRange: "10.0.1.0/29",
    region: "asia-east1",
    network: primaryProducerNet.id,
});
const primaryPolicy = new gcp.networkconnectivity.ServiceConnectionPolicy("primary_policy", {
    name: "my-policy-primary-instance",
    location: "asia-east1",
    serviceClass: "gcp-memorystore",
    description: "my basic service connection policy",
    network: primaryProducerNet.id,
    pscConfig: {
        subnetworks: [primaryProducerSubnet.id],
    },
});
const project = gcp.organizations.getProject({});
// Primary instance
const primaryInstance = new gcp.memorystore.Instance("primary_instance", {
    instanceId: "primary-instance",
    shardCount: 1,
    desiredPscAutoConnections: [{
        network: primaryProducerNet.id,
        projectId: project.then(project => project.projectId),
    }],
    location: "asia-east1",
    replicaCount: 1,
    nodeType: "SHARED_CORE_NANO",
    transitEncryptionMode: "TRANSIT_ENCRYPTION_DISABLED",
    authorizationMode: "AUTH_DISABLED",
    engineConfigs: {
        "maxmemory-policy": "volatile-ttl",
    },
    zoneDistributionConfig: {
        mode: "SINGLE_ZONE",
        zone: "asia-east1-c",
    },
    deletionProtectionEnabled: true,
    persistenceConfig: {
        mode: "RDB",
        rdbConfig: {
            rdbSnapshotPeriod: "ONE_HOUR",
            rdbSnapshotStartTime: "2024-10-02T15:01:23Z",
        },
    },
    labels: {
        abc: "xyz",
    },
}, {
    dependsOn: [primaryPolicy],
});
const secondaryProducerNet = new gcp.compute.Network("secondary_producer_net", {
    name: "my-network-secondary-instance",
    autoCreateSubnetworks: false,
});
const secondaryProducerSubnet = new gcp.compute.Subnetwork("secondary_producer_subnet", {
    name: "my-subnet-secondary-instance",
    ipCidrRange: "10.0.2.0/29",
    region: "europe-north1",
    network: secondaryProducerNet.id,
});
const secondaryPolicy = new gcp.networkconnectivity.ServiceConnectionPolicy("secondary_policy", {
    name: "my-policy-secondary-instance",
    location: "europe-north1",
    serviceClass: "gcp-memorystore",
    description: "my basic service connection policy",
    network: secondaryProducerNet.id,
    pscConfig: {
        subnetworks: [secondaryProducerSubnet.id],
    },
});
// Secondary instance
const secondaryInstance = new gcp.memorystore.Instance("secondary_instance", {
    instanceId: "secondary-instance",
    shardCount: 1,
    desiredPscAutoConnections: [{
        network: secondaryProducerNet.id,
        projectId: project.then(project => project.projectId),
    }],
    location: "europe-north1",
    replicaCount: 1,
    nodeType: "SHARED_CORE_NANO",
    transitEncryptionMode: "TRANSIT_ENCRYPTION_DISABLED",
    authorizationMode: "AUTH_DISABLED",
    engineConfigs: {
        "maxmemory-policy": "volatile-ttl",
    },
    zoneDistributionConfig: {
        mode: "SINGLE_ZONE",
        zone: "europe-north1-c",
    },
    deletionProtectionEnabled: true,
    crossInstanceReplicationConfig: {
        instanceRole: "SECONDARY",
        primaryInstance: {
            instance: primaryInstance.id,
        },
    },
    persistenceConfig: {
        mode: "RDB",
        rdbConfig: {
            rdbSnapshotPeriod: "ONE_HOUR",
            rdbSnapshotStartTime: "2024-10-02T15:01:23Z",
        },
    },
    labels: {
        abc: "xyz",
    },
}, {
    dependsOn: [secondaryPolicy],
});
Copy
import pulumi
import pulumi_gcp as gcp

primary_producer_net = gcp.compute.Network("primary_producer_net",
    name="my-network-primary-instance",
    auto_create_subnetworks=False)
primary_producer_subnet = gcp.compute.Subnetwork("primary_producer_subnet",
    name="my-subnet-primary-instance",
    ip_cidr_range="10.0.1.0/29",
    region="asia-east1",
    network=primary_producer_net.id)
primary_policy = gcp.networkconnectivity.ServiceConnectionPolicy("primary_policy",
    name="my-policy-primary-instance",
    location="asia-east1",
    service_class="gcp-memorystore",
    description="my basic service connection policy",
    network=primary_producer_net.id,
    psc_config={
        "subnetworks": [primary_producer_subnet.id],
    })
project = gcp.organizations.get_project()
# Primary instance
primary_instance = gcp.memorystore.Instance("primary_instance",
    instance_id="primary-instance",
    shard_count=1,
    desired_psc_auto_connections=[{
        "network": primary_producer_net.id,
        "project_id": project.project_id,
    }],
    location="asia-east1",
    replica_count=1,
    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": "asia-east1-c",
    },
    deletion_protection_enabled=True,
    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=[primary_policy]))
secondary_producer_net = gcp.compute.Network("secondary_producer_net",
    name="my-network-secondary-instance",
    auto_create_subnetworks=False)
secondary_producer_subnet = gcp.compute.Subnetwork("secondary_producer_subnet",
    name="my-subnet-secondary-instance",
    ip_cidr_range="10.0.2.0/29",
    region="europe-north1",
    network=secondary_producer_net.id)
secondary_policy = gcp.networkconnectivity.ServiceConnectionPolicy("secondary_policy",
    name="my-policy-secondary-instance",
    location="europe-north1",
    service_class="gcp-memorystore",
    description="my basic service connection policy",
    network=secondary_producer_net.id,
    psc_config={
        "subnetworks": [secondary_producer_subnet.id],
    })
# Secondary instance
secondary_instance = gcp.memorystore.Instance("secondary_instance",
    instance_id="secondary-instance",
    shard_count=1,
    desired_psc_auto_connections=[{
        "network": secondary_producer_net.id,
        "project_id": project.project_id,
    }],
    location="europe-north1",
    replica_count=1,
    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": "europe-north1-c",
    },
    deletion_protection_enabled=True,
    cross_instance_replication_config={
        "instance_role": "SECONDARY",
        "primary_instance": {
            "instance": primary_instance.id,
        },
    },
    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=[secondary_policy]))
Copy
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 {
		primaryProducerNet, err := compute.NewNetwork(ctx, "primary_producer_net", &compute.NetworkArgs{
			Name:                  pulumi.String("my-network-primary-instance"),
			AutoCreateSubnetworks: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		primaryProducerSubnet, err := compute.NewSubnetwork(ctx, "primary_producer_subnet", &compute.SubnetworkArgs{
			Name:        pulumi.String("my-subnet-primary-instance"),
			IpCidrRange: pulumi.String("10.0.1.0/29"),
			Region:      pulumi.String("asia-east1"),
			Network:     primaryProducerNet.ID(),
		})
		if err != nil {
			return err
		}
		primaryPolicy, err := networkconnectivity.NewServiceConnectionPolicy(ctx, "primary_policy", &networkconnectivity.ServiceConnectionPolicyArgs{
			Name:         pulumi.String("my-policy-primary-instance"),
			Location:     pulumi.String("asia-east1"),
			ServiceClass: pulumi.String("gcp-memorystore"),
			Description:  pulumi.String("my basic service connection policy"),
			Network:      primaryProducerNet.ID(),
			PscConfig: &networkconnectivity.ServiceConnectionPolicyPscConfigArgs{
				Subnetworks: pulumi.StringArray{
					primaryProducerSubnet.ID(),
				},
			},
		})
		if err != nil {
			return err
		}
		project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{}, nil)
		if err != nil {
			return err
		}
		// Primary instance
		primaryInstance, err := memorystore.NewInstance(ctx, "primary_instance", &memorystore.InstanceArgs{
			InstanceId: pulumi.String("primary-instance"),
			ShardCount: pulumi.Int(1),
			DesiredPscAutoConnections: memorystore.InstanceDesiredPscAutoConnectionArray{
				&memorystore.InstanceDesiredPscAutoConnectionArgs{
					Network:   primaryProducerNet.ID(),
					ProjectId: pulumi.String(project.ProjectId),
				},
			},
			Location:              pulumi.String("asia-east1"),
			ReplicaCount:          pulumi.Int(1),
			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("asia-east1-c"),
			},
			DeletionProtectionEnabled: pulumi.Bool(true),
			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{
			primaryPolicy,
		}))
		if err != nil {
			return err
		}
		secondaryProducerNet, err := compute.NewNetwork(ctx, "secondary_producer_net", &compute.NetworkArgs{
			Name:                  pulumi.String("my-network-secondary-instance"),
			AutoCreateSubnetworks: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		secondaryProducerSubnet, err := compute.NewSubnetwork(ctx, "secondary_producer_subnet", &compute.SubnetworkArgs{
			Name:        pulumi.String("my-subnet-secondary-instance"),
			IpCidrRange: pulumi.String("10.0.2.0/29"),
			Region:      pulumi.String("europe-north1"),
			Network:     secondaryProducerNet.ID(),
		})
		if err != nil {
			return err
		}
		secondaryPolicy, err := networkconnectivity.NewServiceConnectionPolicy(ctx, "secondary_policy", &networkconnectivity.ServiceConnectionPolicyArgs{
			Name:         pulumi.String("my-policy-secondary-instance"),
			Location:     pulumi.String("europe-north1"),
			ServiceClass: pulumi.String("gcp-memorystore"),
			Description:  pulumi.String("my basic service connection policy"),
			Network:      secondaryProducerNet.ID(),
			PscConfig: &networkconnectivity.ServiceConnectionPolicyPscConfigArgs{
				Subnetworks: pulumi.StringArray{
					secondaryProducerSubnet.ID(),
				},
			},
		})
		if err != nil {
			return err
		}
		// Secondary instance
		_, err = memorystore.NewInstance(ctx, "secondary_instance", &memorystore.InstanceArgs{
			InstanceId: pulumi.String("secondary-instance"),
			ShardCount: pulumi.Int(1),
			DesiredPscAutoConnections: memorystore.InstanceDesiredPscAutoConnectionArray{
				&memorystore.InstanceDesiredPscAutoConnectionArgs{
					Network:   secondaryProducerNet.ID(),
					ProjectId: pulumi.String(project.ProjectId),
				},
			},
			Location:              pulumi.String("europe-north1"),
			ReplicaCount:          pulumi.Int(1),
			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("europe-north1-c"),
			},
			DeletionProtectionEnabled: pulumi.Bool(true),
			CrossInstanceReplicationConfig: &memorystore.InstanceCrossInstanceReplicationConfigArgs{
				InstanceRole: pulumi.String("SECONDARY"),
				PrimaryInstance: &memorystore.InstanceCrossInstanceReplicationConfigPrimaryInstanceArgs{
					Instance: primaryInstance.ID(),
				},
			},
			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{
			secondaryPolicy,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var primaryProducerNet = new Gcp.Compute.Network("primary_producer_net", new()
    {
        Name = "my-network-primary-instance",
        AutoCreateSubnetworks = false,
    });

    var primaryProducerSubnet = new Gcp.Compute.Subnetwork("primary_producer_subnet", new()
    {
        Name = "my-subnet-primary-instance",
        IpCidrRange = "10.0.1.0/29",
        Region = "asia-east1",
        Network = primaryProducerNet.Id,
    });

    var primaryPolicy = new Gcp.NetworkConnectivity.ServiceConnectionPolicy("primary_policy", new()
    {
        Name = "my-policy-primary-instance",
        Location = "asia-east1",
        ServiceClass = "gcp-memorystore",
        Description = "my basic service connection policy",
        Network = primaryProducerNet.Id,
        PscConfig = new Gcp.NetworkConnectivity.Inputs.ServiceConnectionPolicyPscConfigArgs
        {
            Subnetworks = new[]
            {
                primaryProducerSubnet.Id,
            },
        },
    });

    var project = Gcp.Organizations.GetProject.Invoke();

    // Primary instance
    var primaryInstance = new Gcp.MemoryStore.Instance("primary_instance", new()
    {
        InstanceId = "primary-instance",
        ShardCount = 1,
        DesiredPscAutoConnections = new[]
        {
            new Gcp.MemoryStore.Inputs.InstanceDesiredPscAutoConnectionArgs
            {
                Network = primaryProducerNet.Id,
                ProjectId = project.Apply(getProjectResult => getProjectResult.ProjectId),
            },
        },
        Location = "asia-east1",
        ReplicaCount = 1,
        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 = "asia-east1-c",
        },
        DeletionProtectionEnabled = true,
        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 =
        {
            primaryPolicy,
        },
    });

    var secondaryProducerNet = new Gcp.Compute.Network("secondary_producer_net", new()
    {
        Name = "my-network-secondary-instance",
        AutoCreateSubnetworks = false,
    });

    var secondaryProducerSubnet = new Gcp.Compute.Subnetwork("secondary_producer_subnet", new()
    {
        Name = "my-subnet-secondary-instance",
        IpCidrRange = "10.0.2.0/29",
        Region = "europe-north1",
        Network = secondaryProducerNet.Id,
    });

    var secondaryPolicy = new Gcp.NetworkConnectivity.ServiceConnectionPolicy("secondary_policy", new()
    {
        Name = "my-policy-secondary-instance",
        Location = "europe-north1",
        ServiceClass = "gcp-memorystore",
        Description = "my basic service connection policy",
        Network = secondaryProducerNet.Id,
        PscConfig = new Gcp.NetworkConnectivity.Inputs.ServiceConnectionPolicyPscConfigArgs
        {
            Subnetworks = new[]
            {
                secondaryProducerSubnet.Id,
            },
        },
    });

    // Secondary instance
    var secondaryInstance = new Gcp.MemoryStore.Instance("secondary_instance", new()
    {
        InstanceId = "secondary-instance",
        ShardCount = 1,
        DesiredPscAutoConnections = new[]
        {
            new Gcp.MemoryStore.Inputs.InstanceDesiredPscAutoConnectionArgs
            {
                Network = secondaryProducerNet.Id,
                ProjectId = project.Apply(getProjectResult => getProjectResult.ProjectId),
            },
        },
        Location = "europe-north1",
        ReplicaCount = 1,
        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 = "europe-north1-c",
        },
        DeletionProtectionEnabled = true,
        CrossInstanceReplicationConfig = new Gcp.MemoryStore.Inputs.InstanceCrossInstanceReplicationConfigArgs
        {
            InstanceRole = "SECONDARY",
            PrimaryInstance = new Gcp.MemoryStore.Inputs.InstanceCrossInstanceReplicationConfigPrimaryInstanceArgs
            {
                Instance = primaryInstance.Id,
            },
        },
        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 =
        {
            secondaryPolicy,
        },
    });

});
Copy
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.gcp.memorystore.inputs.InstanceCrossInstanceReplicationConfigArgs;
import com.pulumi.gcp.memorystore.inputs.InstanceCrossInstanceReplicationConfigPrimaryInstanceArgs;
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 primaryProducerNet = new Network("primaryProducerNet", NetworkArgs.builder()
            .name("my-network-primary-instance")
            .autoCreateSubnetworks(false)
            .build());

        var primaryProducerSubnet = new Subnetwork("primaryProducerSubnet", SubnetworkArgs.builder()
            .name("my-subnet-primary-instance")
            .ipCidrRange("10.0.1.0/29")
            .region("asia-east1")
            .network(primaryProducerNet.id())
            .build());

        var primaryPolicy = new ServiceConnectionPolicy("primaryPolicy", ServiceConnectionPolicyArgs.builder()
            .name("my-policy-primary-instance")
            .location("asia-east1")
            .serviceClass("gcp-memorystore")
            .description("my basic service connection policy")
            .network(primaryProducerNet.id())
            .pscConfig(ServiceConnectionPolicyPscConfigArgs.builder()
                .subnetworks(primaryProducerSubnet.id())
                .build())
            .build());

        final var project = OrganizationsFunctions.getProject(GetProjectArgs.builder()
            .build());

        // Primary instance
        var primaryInstance = new Instance("primaryInstance", InstanceArgs.builder()
            .instanceId("primary-instance")
            .shardCount(1)
            .desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
                .network(primaryProducerNet.id())
                .projectId(project.projectId())
                .build())
            .location("asia-east1")
            .replicaCount(1)
            .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("asia-east1-c")
                .build())
            .deletionProtectionEnabled(true)
            .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(primaryPolicy)
                .build());

        var secondaryProducerNet = new Network("secondaryProducerNet", NetworkArgs.builder()
            .name("my-network-secondary-instance")
            .autoCreateSubnetworks(false)
            .build());

        var secondaryProducerSubnet = new Subnetwork("secondaryProducerSubnet", SubnetworkArgs.builder()
            .name("my-subnet-secondary-instance")
            .ipCidrRange("10.0.2.0/29")
            .region("europe-north1")
            .network(secondaryProducerNet.id())
            .build());

        var secondaryPolicy = new ServiceConnectionPolicy("secondaryPolicy", ServiceConnectionPolicyArgs.builder()
            .name("my-policy-secondary-instance")
            .location("europe-north1")
            .serviceClass("gcp-memorystore")
            .description("my basic service connection policy")
            .network(secondaryProducerNet.id())
            .pscConfig(ServiceConnectionPolicyPscConfigArgs.builder()
                .subnetworks(secondaryProducerSubnet.id())
                .build())
            .build());

        // Secondary instance
        var secondaryInstance = new Instance("secondaryInstance", InstanceArgs.builder()
            .instanceId("secondary-instance")
            .shardCount(1)
            .desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
                .network(secondaryProducerNet.id())
                .projectId(project.projectId())
                .build())
            .location("europe-north1")
            .replicaCount(1)
            .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("europe-north1-c")
                .build())
            .deletionProtectionEnabled(true)
            .crossInstanceReplicationConfig(InstanceCrossInstanceReplicationConfigArgs.builder()
                .instanceRole("SECONDARY")
                .primaryInstance(InstanceCrossInstanceReplicationConfigPrimaryInstanceArgs.builder()
                    .instance(primaryInstance.id())
                    .build())
                .build())
            .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(secondaryPolicy)
                .build());

    }
}
Copy
resources:
  # Primary instance
  primaryInstance:
    type: gcp:memorystore:Instance
    name: primary_instance
    properties:
      instanceId: primary-instance
      shardCount: 1
      desiredPscAutoConnections:
        - network: ${primaryProducerNet.id}
          projectId: ${project.projectId}
      location: asia-east1
      replicaCount: 1
      nodeType: SHARED_CORE_NANO
      transitEncryptionMode: TRANSIT_ENCRYPTION_DISABLED
      authorizationMode: AUTH_DISABLED
      engineConfigs:
        maxmemory-policy: volatile-ttl
      zoneDistributionConfig:
        mode: SINGLE_ZONE
        zone: asia-east1-c
      deletionProtectionEnabled: true
      persistenceConfig:
        mode: RDB
        rdbConfig:
          rdbSnapshotPeriod: ONE_HOUR
          rdbSnapshotStartTime: 2024-10-02T15:01:23Z
      labels:
        abc: xyz
    options:
      dependsOn:
        - ${primaryPolicy}
  primaryPolicy:
    type: gcp:networkconnectivity:ServiceConnectionPolicy
    name: primary_policy
    properties:
      name: my-policy-primary-instance
      location: asia-east1
      serviceClass: gcp-memorystore
      description: my basic service connection policy
      network: ${primaryProducerNet.id}
      pscConfig:
        subnetworks:
          - ${primaryProducerSubnet.id}
  primaryProducerSubnet:
    type: gcp:compute:Subnetwork
    name: primary_producer_subnet
    properties:
      name: my-subnet-primary-instance
      ipCidrRange: 10.0.1.0/29
      region: asia-east1
      network: ${primaryProducerNet.id}
  primaryProducerNet:
    type: gcp:compute:Network
    name: primary_producer_net
    properties:
      name: my-network-primary-instance
      autoCreateSubnetworks: false
  # Secondary instance
  secondaryInstance:
    type: gcp:memorystore:Instance
    name: secondary_instance
    properties:
      instanceId: secondary-instance
      shardCount: 1
      desiredPscAutoConnections:
        - network: ${secondaryProducerNet.id}
          projectId: ${project.projectId}
      location: europe-north1
      replicaCount: 1
      nodeType: SHARED_CORE_NANO
      transitEncryptionMode: TRANSIT_ENCRYPTION_DISABLED
      authorizationMode: AUTH_DISABLED
      engineConfigs:
        maxmemory-policy: volatile-ttl
      zoneDistributionConfig:
        mode: SINGLE_ZONE
        zone: europe-north1-c
      deletionProtectionEnabled: true # Cross instance replication config
      crossInstanceReplicationConfig:
        instanceRole: SECONDARY
        primaryInstance:
          instance: ${primaryInstance.id}
      persistenceConfig:
        mode: RDB
        rdbConfig:
          rdbSnapshotPeriod: ONE_HOUR
          rdbSnapshotStartTime: 2024-10-02T15:01:23Z
      labels:
        abc: xyz
    options:
      dependsOn:
        - ${secondaryPolicy}
  secondaryPolicy:
    type: gcp:networkconnectivity:ServiceConnectionPolicy
    name: secondary_policy
    properties:
      name: my-policy-secondary-instance
      location: europe-north1
      serviceClass: gcp-memorystore
      description: my basic service connection policy
      network: ${secondaryProducerNet.id}
      pscConfig:
        subnetworks:
          - ${secondaryProducerSubnet.id}
  secondaryProducerSubnet:
    type: gcp:compute:Subnetwork
    name: secondary_producer_subnet
    properties:
      name: my-subnet-secondary-instance
      ipCidrRange: 10.0.2.0/29
      region: europe-north1
      network: ${secondaryProducerNet.id}
  secondaryProducerNet:
    type: gcp:compute:Network
    name: secondary_producer_net
    properties:
      name: my-network-secondary-instance
      autoCreateSubnetworks: false
variables:
  project:
    fn::invoke:
      function: gcp:organizations:getProject
      arguments: {}
Copy

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,
             location: Optional[str] = None,
             labels: Optional[Mapping[str, str]] = None,
             maintenance_policy: Optional[InstanceMaintenancePolicyArgs] = None,
             engine_configs: Optional[Mapping[str, str]] = None,
             engine_version: Optional[str] = None,
             deletion_protection_enabled: Optional[bool] = None,
             authorization_mode: Optional[str] = None,
             cross_instance_replication_config: Optional[InstanceCrossInstanceReplicationConfigArgs] = None,
             desired_psc_auto_connections: Optional[Sequence[InstanceDesiredPscAutoConnectionArgs]] = None,
             mode: Optional[str] = None,
             node_type: Optional[str] = None,
             persistence_config: Optional[InstancePersistenceConfigArgs] = None,
             project: Optional[str] = None,
             replica_count: Optional[int] = None,
             automated_backup_config: Optional[InstanceAutomatedBackupConfigArgs] = 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 This property is required. string
The unique name of the resource.
args This property is required. InstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. InstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. InstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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,
    Location = "string",
    Labels = 
    {
        { "string", "string" },
    },
    MaintenancePolicy = new Gcp.MemoryStore.Inputs.InstanceMaintenancePolicyArgs
    {
        CreateTime = "string",
        UpdateTime = "string",
        WeeklyMaintenanceWindows = new[]
        {
            new Gcp.MemoryStore.Inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs
            {
                Day = "string",
                StartTime = new Gcp.MemoryStore.Inputs.InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs
                {
                    Hours = 0,
                    Minutes = 0,
                    Nanos = 0,
                    Seconds = 0,
                },
                Duration = "string",
            },
        },
    },
    EngineConfigs = 
    {
        { "string", "string" },
    },
    EngineVersion = "string",
    DeletionProtectionEnabled = false,
    AuthorizationMode = "string",
    CrossInstanceReplicationConfig = new Gcp.MemoryStore.Inputs.InstanceCrossInstanceReplicationConfigArgs
    {
        InstanceRole = "string",
        Memberships = new[]
        {
            new Gcp.MemoryStore.Inputs.InstanceCrossInstanceReplicationConfigMembershipArgs
            {
                PrimaryInstances = new[]
                {
                    new Gcp.MemoryStore.Inputs.InstanceCrossInstanceReplicationConfigMembershipPrimaryInstanceArgs
                    {
                        Instance = "string",
                        Uid = "string",
                    },
                },
                SecondaryInstances = new[]
                {
                    new Gcp.MemoryStore.Inputs.InstanceCrossInstanceReplicationConfigMembershipSecondaryInstanceArgs
                    {
                        Instance = "string",
                        Uid = "string",
                    },
                },
            },
        },
        PrimaryInstance = new Gcp.MemoryStore.Inputs.InstanceCrossInstanceReplicationConfigPrimaryInstanceArgs
        {
            Instance = "string",
            Uid = "string",
        },
        SecondaryInstances = new[]
        {
            new Gcp.MemoryStore.Inputs.InstanceCrossInstanceReplicationConfigSecondaryInstanceArgs
            {
                Instance = "string",
                Uid = "string",
            },
        },
        UpdateTime = "string",
    },
    DesiredPscAutoConnections = new[]
    {
        new Gcp.MemoryStore.Inputs.InstanceDesiredPscAutoConnectionArgs
        {
            Network = "string",
            ProjectId = "string",
        },
    },
    Mode = "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,
    AutomatedBackupConfig = new Gcp.MemoryStore.Inputs.InstanceAutomatedBackupConfigArgs
    {
        FixedFrequencySchedule = new Gcp.MemoryStore.Inputs.InstanceAutomatedBackupConfigFixedFrequencyScheduleArgs
        {
            StartTime = new Gcp.MemoryStore.Inputs.InstanceAutomatedBackupConfigFixedFrequencyScheduleStartTimeArgs
            {
                Hours = 0,
            },
        },
        Retention = "string",
    },
    TransitEncryptionMode = "string",
    ZoneDistributionConfig = new Gcp.MemoryStore.Inputs.InstanceZoneDistributionConfigArgs
    {
        Mode = "string",
        Zone = "string",
    },
});
Copy
example, err := memorystore.NewInstance(ctx, "exampleinstanceResourceResourceFromMemorystoreinstance", &memorystore.InstanceArgs{
	InstanceId: pulumi.String("string"),
	ShardCount: pulumi.Int(0),
	Location:   pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	MaintenancePolicy: &memorystore.InstanceMaintenancePolicyArgs{
		CreateTime: pulumi.String("string"),
		UpdateTime: pulumi.String("string"),
		WeeklyMaintenanceWindows: memorystore.InstanceMaintenancePolicyWeeklyMaintenanceWindowArray{
			&memorystore.InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs{
				Day: pulumi.String("string"),
				StartTime: &memorystore.InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs{
					Hours:   pulumi.Int(0),
					Minutes: pulumi.Int(0),
					Nanos:   pulumi.Int(0),
					Seconds: pulumi.Int(0),
				},
				Duration: pulumi.String("string"),
			},
		},
	},
	EngineConfigs: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	EngineVersion:             pulumi.String("string"),
	DeletionProtectionEnabled: pulumi.Bool(false),
	AuthorizationMode:         pulumi.String("string"),
	CrossInstanceReplicationConfig: &memorystore.InstanceCrossInstanceReplicationConfigArgs{
		InstanceRole: pulumi.String("string"),
		Memberships: memorystore.InstanceCrossInstanceReplicationConfigMembershipArray{
			&memorystore.InstanceCrossInstanceReplicationConfigMembershipArgs{
				PrimaryInstances: memorystore.InstanceCrossInstanceReplicationConfigMembershipPrimaryInstanceArray{
					&memorystore.InstanceCrossInstanceReplicationConfigMembershipPrimaryInstanceArgs{
						Instance: pulumi.String("string"),
						Uid:      pulumi.String("string"),
					},
				},
				SecondaryInstances: memorystore.InstanceCrossInstanceReplicationConfigMembershipSecondaryInstanceArray{
					&memorystore.InstanceCrossInstanceReplicationConfigMembershipSecondaryInstanceArgs{
						Instance: pulumi.String("string"),
						Uid:      pulumi.String("string"),
					},
				},
			},
		},
		PrimaryInstance: &memorystore.InstanceCrossInstanceReplicationConfigPrimaryInstanceArgs{
			Instance: pulumi.String("string"),
			Uid:      pulumi.String("string"),
		},
		SecondaryInstances: memorystore.InstanceCrossInstanceReplicationConfigSecondaryInstanceArray{
			&memorystore.InstanceCrossInstanceReplicationConfigSecondaryInstanceArgs{
				Instance: pulumi.String("string"),
				Uid:      pulumi.String("string"),
			},
		},
		UpdateTime: pulumi.String("string"),
	},
	DesiredPscAutoConnections: memorystore.InstanceDesiredPscAutoConnectionArray{
		&memorystore.InstanceDesiredPscAutoConnectionArgs{
			Network:   pulumi.String("string"),
			ProjectId: pulumi.String("string"),
		},
	},
	Mode:     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),
	AutomatedBackupConfig: &memorystore.InstanceAutomatedBackupConfigArgs{
		FixedFrequencySchedule: &memorystore.InstanceAutomatedBackupConfigFixedFrequencyScheduleArgs{
			StartTime: &memorystore.InstanceAutomatedBackupConfigFixedFrequencyScheduleStartTimeArgs{
				Hours: pulumi.Int(0),
			},
		},
		Retention: pulumi.String("string"),
	},
	TransitEncryptionMode: pulumi.String("string"),
	ZoneDistributionConfig: &memorystore.InstanceZoneDistributionConfigArgs{
		Mode: pulumi.String("string"),
		Zone: pulumi.String("string"),
	},
})
Copy
var exampleinstanceResourceResourceFromMemorystoreinstance = new Instance("exampleinstanceResourceResourceFromMemorystoreinstance", InstanceArgs.builder()
    .instanceId("string")
    .shardCount(0)
    .location("string")
    .labels(Map.of("string", "string"))
    .maintenancePolicy(InstanceMaintenancePolicyArgs.builder()
        .createTime("string")
        .updateTime("string")
        .weeklyMaintenanceWindows(InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs.builder()
            .day("string")
            .startTime(InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs.builder()
                .hours(0)
                .minutes(0)
                .nanos(0)
                .seconds(0)
                .build())
            .duration("string")
            .build())
        .build())
    .engineConfigs(Map.of("string", "string"))
    .engineVersion("string")
    .deletionProtectionEnabled(false)
    .authorizationMode("string")
    .crossInstanceReplicationConfig(InstanceCrossInstanceReplicationConfigArgs.builder()
        .instanceRole("string")
        .memberships(InstanceCrossInstanceReplicationConfigMembershipArgs.builder()
            .primaryInstances(InstanceCrossInstanceReplicationConfigMembershipPrimaryInstanceArgs.builder()
                .instance("string")
                .uid("string")
                .build())
            .secondaryInstances(InstanceCrossInstanceReplicationConfigMembershipSecondaryInstanceArgs.builder()
                .instance("string")
                .uid("string")
                .build())
            .build())
        .primaryInstance(InstanceCrossInstanceReplicationConfigPrimaryInstanceArgs.builder()
            .instance("string")
            .uid("string")
            .build())
        .secondaryInstances(InstanceCrossInstanceReplicationConfigSecondaryInstanceArgs.builder()
            .instance("string")
            .uid("string")
            .build())
        .updateTime("string")
        .build())
    .desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
        .network("string")
        .projectId("string")
        .build())
    .mode("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)
    .automatedBackupConfig(InstanceAutomatedBackupConfigArgs.builder()
        .fixedFrequencySchedule(InstanceAutomatedBackupConfigFixedFrequencyScheduleArgs.builder()
            .startTime(InstanceAutomatedBackupConfigFixedFrequencyScheduleStartTimeArgs.builder()
                .hours(0)
                .build())
            .build())
        .retention("string")
        .build())
    .transitEncryptionMode("string")
    .zoneDistributionConfig(InstanceZoneDistributionConfigArgs.builder()
        .mode("string")
        .zone("string")
        .build())
    .build());
Copy
exampleinstance_resource_resource_from_memorystoreinstance = gcp.memorystore.Instance("exampleinstanceResourceResourceFromMemorystoreinstance",
    instance_id="string",
    shard_count=0,
    location="string",
    labels={
        "string": "string",
    },
    maintenance_policy={
        "create_time": "string",
        "update_time": "string",
        "weekly_maintenance_windows": [{
            "day": "string",
            "start_time": {
                "hours": 0,
                "minutes": 0,
                "nanos": 0,
                "seconds": 0,
            },
            "duration": "string",
        }],
    },
    engine_configs={
        "string": "string",
    },
    engine_version="string",
    deletion_protection_enabled=False,
    authorization_mode="string",
    cross_instance_replication_config={
        "instance_role": "string",
        "memberships": [{
            "primary_instances": [{
                "instance": "string",
                "uid": "string",
            }],
            "secondary_instances": [{
                "instance": "string",
                "uid": "string",
            }],
        }],
        "primary_instance": {
            "instance": "string",
            "uid": "string",
        },
        "secondary_instances": [{
            "instance": "string",
            "uid": "string",
        }],
        "update_time": "string",
    },
    desired_psc_auto_connections=[{
        "network": "string",
        "project_id": "string",
    }],
    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,
    automated_backup_config={
        "fixed_frequency_schedule": {
            "start_time": {
                "hours": 0,
            },
        },
        "retention": "string",
    },
    transit_encryption_mode="string",
    zone_distribution_config={
        "mode": "string",
        "zone": "string",
    })
Copy
const exampleinstanceResourceResourceFromMemorystoreinstance = new gcp.memorystore.Instance("exampleinstanceResourceResourceFromMemorystoreinstance", {
    instanceId: "string",
    shardCount: 0,
    location: "string",
    labels: {
        string: "string",
    },
    maintenancePolicy: {
        createTime: "string",
        updateTime: "string",
        weeklyMaintenanceWindows: [{
            day: "string",
            startTime: {
                hours: 0,
                minutes: 0,
                nanos: 0,
                seconds: 0,
            },
            duration: "string",
        }],
    },
    engineConfigs: {
        string: "string",
    },
    engineVersion: "string",
    deletionProtectionEnabled: false,
    authorizationMode: "string",
    crossInstanceReplicationConfig: {
        instanceRole: "string",
        memberships: [{
            primaryInstances: [{
                instance: "string",
                uid: "string",
            }],
            secondaryInstances: [{
                instance: "string",
                uid: "string",
            }],
        }],
        primaryInstance: {
            instance: "string",
            uid: "string",
        },
        secondaryInstances: [{
            instance: "string",
            uid: "string",
        }],
        updateTime: "string",
    },
    desiredPscAutoConnections: [{
        network: "string",
        projectId: "string",
    }],
    mode: "string",
    nodeType: "string",
    persistenceConfig: {
        aofConfig: {
            appendFsync: "string",
        },
        mode: "string",
        rdbConfig: {
            rdbSnapshotPeriod: "string",
            rdbSnapshotStartTime: "string",
        },
    },
    project: "string",
    replicaCount: 0,
    automatedBackupConfig: {
        fixedFrequencySchedule: {
            startTime: {
                hours: 0,
            },
        },
        retention: "string",
    },
    transitEncryptionMode: "string",
    zoneDistributionConfig: {
        mode: "string",
        zone: "string",
    },
});
Copy
type: gcp:memorystore:Instance
properties:
    authorizationMode: string
    automatedBackupConfig:
        fixedFrequencySchedule:
            startTime:
                hours: 0
        retention: string
    crossInstanceReplicationConfig:
        instanceRole: string
        memberships:
            - primaryInstances:
                - instance: string
                  uid: string
              secondaryInstances:
                - instance: string
                  uid: string
        primaryInstance:
            instance: string
            uid: string
        secondaryInstances:
            - instance: string
              uid: string
        updateTime: string
    deletionProtectionEnabled: false
    desiredPscAutoConnections:
        - network: string
          projectId: string
    engineConfigs:
        string: string
    engineVersion: string
    instanceId: string
    labels:
        string: string
    location: string
    maintenancePolicy:
        createTime: string
        updateTime: string
        weeklyMaintenanceWindows:
            - day: string
              duration: string
              startTime:
                hours: 0
                minutes: 0
                nanos: 0
                seconds: 0
    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
Copy

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:

InstanceId
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
ShardCount This property is required. int
Required. Number of shards for the instance.
AuthorizationMode Changes to this property will trigger replacement. string
Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
AutomatedBackupConfig InstanceAutomatedBackupConfig
The automated backup config for a instance. Structure is documented below.
CrossInstanceReplicationConfig InstanceCrossInstanceReplicationConfig
Cross instance replication config Structure is documented below.
DeletionProtectionEnabled bool
Optional. If set to true deletion of the instance will fail.
DesiredPscAutoConnections Changes to this property will trigger replacement. List<InstanceDesiredPscAutoConnection>
Immutable. User inputs for the auto-created PSC connections.
EngineConfigs Dictionary<string, string>
Optional. User-provided engine configurations for the instance.
EngineVersion string
Optional. Engine version of the instance.
Labels Dictionary<string, string>
Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
MaintenancePolicy InstanceMaintenancePolicy
Maintenance policy for a cluster Structure is documented below.
Mode Changes to this property will trigger replacement. string
Optional. cluster or cluster-disabled. Possible values: CLUSTER CLUSTER_DISABLED Possible values are: CLUSTER, CLUSTER_DISABLED.
NodeType string
Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
PersistenceConfig InstancePersistenceConfig
Represents persistence configuration for a instance. Structure is documented below.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
ReplicaCount int
Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
TransitEncryptionMode Changes to this property will trigger replacement. string
Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
ZoneDistributionConfig Changes to this property will trigger replacement. InstanceZoneDistributionConfig
Zone distribution configuration for allocation of instance resources. Structure is documented below.
InstanceId
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
ShardCount This property is required. int
Required. Number of shards for the instance.
AuthorizationMode Changes to this property will trigger replacement. string
Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
AutomatedBackupConfig InstanceAutomatedBackupConfigArgs
The automated backup config for a instance. Structure is documented below.
CrossInstanceReplicationConfig InstanceCrossInstanceReplicationConfigArgs
Cross instance replication config Structure is documented below.
DeletionProtectionEnabled bool
Optional. If set to true deletion of the instance will fail.
DesiredPscAutoConnections Changes to this property will trigger replacement. []InstanceDesiredPscAutoConnectionArgs
Immutable. User inputs for the auto-created PSC connections.
EngineConfigs map[string]string
Optional. User-provided engine configurations for the instance.
EngineVersion string
Optional. Engine version of the instance.
Labels map[string]string
Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
MaintenancePolicy InstanceMaintenancePolicyArgs
Maintenance policy for a cluster Structure is documented below.
Mode Changes to this property will trigger replacement. string
Optional. cluster or cluster-disabled. Possible values: CLUSTER CLUSTER_DISABLED Possible values are: CLUSTER, CLUSTER_DISABLED.
NodeType string
Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
PersistenceConfig InstancePersistenceConfigArgs
Represents persistence configuration for a instance. Structure is documented below.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
ReplicaCount int
Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
TransitEncryptionMode Changes to this property will trigger replacement. string
Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
ZoneDistributionConfig Changes to this property will trigger replacement. InstanceZoneDistributionConfigArgs
Zone distribution configuration for allocation of instance resources. Structure is documented below.
instanceId
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
String
Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
shardCount This property is required. Integer
Required. Number of shards for the instance.
authorizationMode Changes to this property will trigger replacement. String
Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
automatedBackupConfig InstanceAutomatedBackupConfig
The automated backup config for a instance. Structure is documented below.
crossInstanceReplicationConfig InstanceCrossInstanceReplicationConfig
Cross instance replication config Structure is documented below.
deletionProtectionEnabled Boolean
Optional. If set to true deletion of the instance will fail.
desiredPscAutoConnections Changes to this property will trigger replacement. List<InstanceDesiredPscAutoConnection>
Immutable. User inputs for the auto-created PSC connections.
engineConfigs Map<String,String>
Optional. User-provided engine configurations for the instance.
engineVersion String
Optional. Engine version of the instance.
labels Map<String,String>
Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
maintenancePolicy InstanceMaintenancePolicy
Maintenance policy for a cluster Structure is documented below.
mode Changes to this property will trigger replacement. String
Optional. cluster or cluster-disabled. Possible values: CLUSTER CLUSTER_DISABLED Possible values are: CLUSTER, CLUSTER_DISABLED.
nodeType String
Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
persistenceConfig InstancePersistenceConfig
Represents persistence configuration for a instance. Structure is documented below.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
replicaCount Integer
Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
transitEncryptionMode Changes to this property will trigger replacement. String
Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
zoneDistributionConfig Changes to this property will trigger replacement. InstanceZoneDistributionConfig
Zone distribution configuration for allocation of instance resources. Structure is documented below.
instanceId
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
shardCount This property is required. number
Required. Number of shards for the instance.
authorizationMode Changes to this property will trigger replacement. string
Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
automatedBackupConfig InstanceAutomatedBackupConfig
The automated backup config for a instance. Structure is documented below.
crossInstanceReplicationConfig InstanceCrossInstanceReplicationConfig
Cross instance replication config Structure is documented below.
deletionProtectionEnabled boolean
Optional. If set to true deletion of the instance will fail.
desiredPscAutoConnections Changes to this property will trigger replacement. InstanceDesiredPscAutoConnection[]
Immutable. User inputs for the auto-created PSC connections.
engineConfigs {[key: string]: string}
Optional. User-provided engine configurations for the instance.
engineVersion string
Optional. Engine version of the instance.
labels {[key: string]: string}
Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
maintenancePolicy InstanceMaintenancePolicy
Maintenance policy for a cluster Structure is documented below.
mode Changes to this property will trigger replacement. string
Optional. cluster or cluster-disabled. Possible values: CLUSTER CLUSTER_DISABLED Possible values are: CLUSTER, CLUSTER_DISABLED.
nodeType string
Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
persistenceConfig InstancePersistenceConfig
Represents persistence configuration for a instance. Structure is documented below.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
replicaCount number
Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
transitEncryptionMode Changes to this property will trigger replacement. string
Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
zoneDistributionConfig Changes to this property will trigger replacement. InstanceZoneDistributionConfig
Zone distribution configuration for allocation of instance resources. Structure is documented below.
instance_id
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
str
Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
shard_count This property is required. int
Required. Number of shards for the instance.
authorization_mode Changes to this property will trigger replacement. str
Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
automated_backup_config InstanceAutomatedBackupConfigArgs
The automated backup config for a instance. Structure is documented below.
cross_instance_replication_config InstanceCrossInstanceReplicationConfigArgs
Cross instance replication config Structure is documented below.
deletion_protection_enabled bool
Optional. If set to true deletion of the instance will fail.
desired_psc_auto_connections Changes to this property will trigger replacement. Sequence[InstanceDesiredPscAutoConnectionArgs]
Immutable. User inputs for the auto-created PSC connections.
engine_configs Mapping[str, str]
Optional. User-provided engine configurations for the instance.
engine_version str
Optional. Engine version of the instance.
labels Mapping[str, str]
Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
maintenance_policy InstanceMaintenancePolicyArgs
Maintenance policy for a cluster Structure is documented below.
mode Changes to this property will trigger replacement. str
Optional. cluster or cluster-disabled. Possible values: CLUSTER CLUSTER_DISABLED Possible values are: CLUSTER, CLUSTER_DISABLED.
node_type str
Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
persistence_config InstancePersistenceConfigArgs
Represents persistence configuration for a instance. Structure is documented below.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
replica_count int
Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
transit_encryption_mode Changes to this property will trigger replacement. str
Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
zone_distribution_config Changes to this property will trigger replacement. InstanceZoneDistributionConfigArgs
Zone distribution configuration for allocation of instance resources. Structure is documented below.
instanceId
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
String
Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
shardCount This property is required. Number
Required. Number of shards for the instance.
authorizationMode Changes to this property will trigger replacement. String
Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
automatedBackupConfig Property Map
The automated backup config for a instance. Structure is documented below.
crossInstanceReplicationConfig Property Map
Cross instance replication config Structure is documented below.
deletionProtectionEnabled Boolean
Optional. If set to true deletion of the instance will fail.
desiredPscAutoConnections Changes to this property will trigger replacement. List<Property Map>
Immutable. User inputs for the auto-created PSC connections.
engineConfigs Map<String>
Optional. User-provided engine configurations for the instance.
engineVersion String
Optional. Engine version of the instance.
labels Map<String>
Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
maintenancePolicy Property Map
Maintenance policy for a cluster Structure is documented below.
mode Changes to this property will trigger replacement. String
Optional. cluster or cluster-disabled. Possible values: CLUSTER CLUSTER_DISABLED Possible values are: CLUSTER, CLUSTER_DISABLED.
nodeType String
Optional. 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 Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
replicaCount Number
Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
transitEncryptionMode Changes to this property will trigger replacement. String
Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
zoneDistributionConfig Changes to this property will trigger replacement. Property Map
Zone distribution configuration for allocation of instance resources. Structure is documented below.

Outputs

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

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

Look up Existing Instance Resource

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

public static get(name: string, id: Input<ID>, state?: InstanceState, opts?: CustomResourceOptions): Instance
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        authorization_mode: Optional[str] = None,
        automated_backup_config: Optional[InstanceAutomatedBackupConfigArgs] = None,
        create_time: Optional[str] = None,
        cross_instance_replication_config: Optional[InstanceCrossInstanceReplicationConfigArgs] = 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,
        maintenance_policy: Optional[InstanceMaintenancePolicyArgs] = None,
        maintenance_schedules: Optional[Sequence[InstanceMaintenanceScheduleArgs]] = 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_attachment_details: Optional[Sequence[InstancePscAttachmentDetailArgs]] = None,
        psc_auto_connections: Optional[Sequence[InstancePscAutoConnectionArgs]] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        replica_count: Optional[int] = None,
        shard_count: Optional[int] = None,
        state: Optional[str] = None,
        state_infos: Optional[Sequence[InstanceStateInfoArgs]] = None,
        transit_encryption_mode: Optional[str] = None,
        uid: Optional[str] = None,
        update_time: Optional[str] = None,
        zone_distribution_config: Optional[InstanceZoneDistributionConfigArgs] = None) -> Instance
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)
resources:  _:    type: gcp:memorystore:Instance    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AuthorizationMode Changes to this property will trigger replacement. string
Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
AutomatedBackupConfig InstanceAutomatedBackupConfig
The automated backup config for a instance. Structure is documented below.
CreateTime string
Output only. Creation timestamp of the instance.
CrossInstanceReplicationConfig InstanceCrossInstanceReplicationConfig
Cross instance replication config Structure is documented below.
DeletionProtectionEnabled bool
Optional. If set to true deletion of the instance will fail.
DesiredPscAutoConnections Changes to this property will trigger replacement. List<InstanceDesiredPscAutoConnection>
Immutable. User inputs for the auto-created PSC connections.
DiscoveryEndpoints List<InstanceDiscoveryEndpoint>
Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Endpoints List<InstanceEndpoint>
Endpoints for the instance. Structure is documented below.
EngineConfigs Dictionary<string, string>
Optional. User-provided engine configurations for the instance.
EngineVersion string
Optional. Engine version of the instance.
InstanceId Changes to this property will trigger replacement. string
Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

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

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

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

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

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

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

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

labels {[key: string]: string}
Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
location Changes to this property will trigger replacement. string
Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
maintenancePolicy InstanceMaintenancePolicy
Maintenance policy for a cluster Structure is documented below.
maintenanceSchedules InstanceMaintenanceSchedule[]
Upcoming maintenance schedule. Structure is documented below.
mode Changes to this property will trigger replacement. 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 InstanceNodeConfig[]
Represents configuration for nodes of the instance. Structure is documented below.
nodeType string
Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
persistenceConfig InstancePersistenceConfig
Represents persistence configuration for a instance. Structure is documented below.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pscAttachmentDetails InstancePscAttachmentDetail[]
Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
pscAutoConnections InstancePscAutoConnection[]
Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
replicaCount number
Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
shardCount number
Required. Number of shards for the instance.
state string
Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
stateInfos InstanceStateInfo[]
Additional information about the state of the instance. Structure is documented below.
transitEncryptionMode Changes to this property will trigger replacement. string
Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
uid string
Output only. System assigned, unique identifier for the instance.
updateTime string
Output only. Latest update timestamp of the instance.
zoneDistributionConfig Changes to this property will trigger replacement. InstanceZoneDistributionConfig
Zone distribution configuration for allocation of instance resources. Structure is documented below.
authorization_mode Changes to this property will trigger replacement. str
Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
automated_backup_config InstanceAutomatedBackupConfigArgs
The automated backup config for a instance. Structure is documented below.
create_time str
Output only. Creation timestamp of the instance.
cross_instance_replication_config InstanceCrossInstanceReplicationConfigArgs
Cross instance replication config Structure is documented below.
deletion_protection_enabled bool
Optional. If set to true deletion of the instance will fail.
desired_psc_auto_connections Changes to this property will trigger replacement. Sequence[InstanceDesiredPscAutoConnectionArgs]
Immutable. User inputs for the auto-created PSC connections.
discovery_endpoints Sequence[InstanceDiscoveryEndpointArgs]
Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
endpoints Sequence[InstanceEndpointArgs]
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. Engine version of the instance.
instance_id Changes to this property will trigger replacement. str
Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

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

labels Mapping[str, str]
Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
location Changes to this property will trigger replacement. str
Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
maintenance_policy InstanceMaintenancePolicyArgs
Maintenance policy for a cluster Structure is documented below.
maintenance_schedules Sequence[InstanceMaintenanceScheduleArgs]
Upcoming maintenance schedule. Structure is documented below.
mode Changes to this property will trigger replacement. 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[InstanceNodeConfigArgs]
Represents configuration for nodes of the instance. Structure is documented below.
node_type str
Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
persistence_config InstancePersistenceConfigArgs
Represents persistence configuration for a instance. Structure is documented below.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
psc_attachment_details Sequence[InstancePscAttachmentDetailArgs]
Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
psc_auto_connections Sequence[InstancePscAutoConnectionArgs]
Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
replica_count int
Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
shard_count int
Required. Number of shards for the instance.
state str
Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
state_infos Sequence[InstanceStateInfoArgs]
Additional information about the state of the instance. Structure is documented below.
transit_encryption_mode Changes to this property will trigger replacement. str
Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
uid str
Output only. System assigned, unique identifier for the instance.
update_time str
Output only. Latest update timestamp of the instance.
zone_distribution_config Changes to this property will trigger replacement. InstanceZoneDistributionConfigArgs
Zone distribution configuration for allocation of instance resources. Structure is documented below.
authorizationMode Changes to this property will trigger replacement. String
Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
automatedBackupConfig Property Map
The automated backup config for a instance. Structure is documented below.
createTime String
Output only. Creation timestamp of the instance.
crossInstanceReplicationConfig Property Map
Cross instance replication config Structure is documented below.
deletionProtectionEnabled Boolean
Optional. If set to true deletion of the instance will fail.
desiredPscAutoConnections Changes to this property will trigger replacement. List<Property Map>
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. Engine version of the instance.
instanceId Changes to this property will trigger replacement. String
Required. The ID to use for the instance, which will become the final component of the instance's resource name. This value is subject to the following restrictions:

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

labels Map<String>
Optional. Labels to represent user-provided metadata. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
location Changes to this property will trigger replacement. String
Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type memorystore.googleapis.com/CertificateAuthority.
maintenancePolicy Property Map
Maintenance policy for a cluster Structure is documented below.
maintenanceSchedules List<Property Map>
Upcoming maintenance schedule. Structure is documented below.
mode Changes to this property will trigger replacement. 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. 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 Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
pscAttachmentDetails List<Property Map>
Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
pscAutoConnections List<Property Map>
Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
replicaCount Number
Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
shardCount Number
Required. Number of shards for the instance.
state String
Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
stateInfos List<Property Map>
Additional information about the state of the instance. Structure is documented below.
transitEncryptionMode Changes to this property will trigger replacement. String
Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
uid String
Output only. System assigned, unique identifier for the instance.
updateTime String
Output only. Latest update timestamp of the instance.
zoneDistributionConfig Changes to this property will trigger replacement. Property Map
Zone distribution configuration for allocation of instance resources. Structure is documented below.

Supporting Types

InstanceAutomatedBackupConfig
, InstanceAutomatedBackupConfigArgs

FixedFrequencySchedule This property is required. InstanceAutomatedBackupConfigFixedFrequencySchedule
Trigger automated backups at a fixed frequency. Structure is documented below.
Retention This property is required. string
How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s". The default_value is "3024000s"
FixedFrequencySchedule This property is required. InstanceAutomatedBackupConfigFixedFrequencySchedule
Trigger automated backups at a fixed frequency. Structure is documented below.
Retention This property is required. string
How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s". The default_value is "3024000s"
fixedFrequencySchedule This property is required. InstanceAutomatedBackupConfigFixedFrequencySchedule
Trigger automated backups at a fixed frequency. Structure is documented below.
retention This property is required. String
How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s". The default_value is "3024000s"
fixedFrequencySchedule This property is required. InstanceAutomatedBackupConfigFixedFrequencySchedule
Trigger automated backups at a fixed frequency. Structure is documented below.
retention This property is required. string
How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s". The default_value is "3024000s"
fixed_frequency_schedule This property is required. InstanceAutomatedBackupConfigFixedFrequencySchedule
Trigger automated backups at a fixed frequency. Structure is documented below.
retention This property is required. str
How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s". The default_value is "3024000s"
fixedFrequencySchedule This property is required. Property Map
Trigger automated backups at a fixed frequency. Structure is documented below.
retention This property is required. String
How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s". The default_value is "3024000s"

InstanceAutomatedBackupConfigFixedFrequencySchedule
, InstanceAutomatedBackupConfigFixedFrequencyScheduleArgs

StartTime This property is required. InstanceAutomatedBackupConfigFixedFrequencyScheduleStartTime
The start time of every automated backup in UTC. It must be set to the start of an hour. This field is required. Structure is documented below.
StartTime This property is required. InstanceAutomatedBackupConfigFixedFrequencyScheduleStartTime
The start time of every automated backup in UTC. It must be set to the start of an hour. This field is required. Structure is documented below.
startTime This property is required. InstanceAutomatedBackupConfigFixedFrequencyScheduleStartTime
The start time of every automated backup in UTC. It must be set to the start of an hour. This field is required. Structure is documented below.
startTime This property is required. InstanceAutomatedBackupConfigFixedFrequencyScheduleStartTime
The start time of every automated backup in UTC. It must be set to the start of an hour. This field is required. Structure is documented below.
start_time This property is required. InstanceAutomatedBackupConfigFixedFrequencyScheduleStartTime
The start time of every automated backup in UTC. It must be set to the start of an hour. This field is required. Structure is documented below.
startTime This property is required. Property Map
The start time of every automated backup in UTC. It must be set to the start of an hour. This field is required. Structure is documented below.

InstanceAutomatedBackupConfigFixedFrequencyScheduleStartTime
, InstanceAutomatedBackupConfigFixedFrequencyScheduleStartTimeArgs

Hours This property is required. int
Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
Hours This property is required. int
Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
hours This property is required. Integer
Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
hours This property is required. number
Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
hours This property is required. int
Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
hours This property is required. Number
Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.

InstanceCrossInstanceReplicationConfig
, InstanceCrossInstanceReplicationConfigArgs

InstanceRole string
The instance role supports the following values:

  1. INSTANCE_ROLE_UNSPECIFIED: This is an independent instance that has never participated in cross instance replication. It allows both reads and writes.
  2. NONE: This is an independent instance that previously participated in cross instance replication(either as a PRIMARY or SECONDARY cluster). It allows both reads and writes.
  3. PRIMARY: This instance serves as the replication source for secondary instance that are replicating from it. Any data written to it is automatically replicated to its secondary clusters. It allows both reads and writes.
  4. SECONDARY: This instance replicates data from the primary instance. It allows only reads. Possible values are: INSTANCE_ROLE_UNSPECIFIED, NONE, PRIMARY, SECONDARY.
Memberships List<InstanceCrossInstanceReplicationConfigMembership>
(Output) An output only view of all the member instance participating in cross instance replication. This field is populated for all the member clusters irrespective of their cluster role. Structure is documented below.
PrimaryInstance InstanceCrossInstanceReplicationConfigPrimaryInstance
This field is only set for a secondary instance. Details of the primary instance that is used as the replication source for this secondary instance. This is allowed to be set only for clusters whose cluster role is of type SECONDARY. Structure is documented below.
SecondaryInstances List<InstanceCrossInstanceReplicationConfigSecondaryInstance>
List of secondary instances that are replicating from this primary cluster. This is allowed to be set only for instances whose cluster role is of type PRIMARY. Structure is documented below.
UpdateTime string
(Output) The last time cross instance replication config was updated.
InstanceRole string
The instance role supports the following values:

  1. INSTANCE_ROLE_UNSPECIFIED: This is an independent instance that has never participated in cross instance replication. It allows both reads and writes.
  2. NONE: This is an independent instance that previously participated in cross instance replication(either as a PRIMARY or SECONDARY cluster). It allows both reads and writes.
  3. PRIMARY: This instance serves as the replication source for secondary instance that are replicating from it. Any data written to it is automatically replicated to its secondary clusters. It allows both reads and writes.
  4. SECONDARY: This instance replicates data from the primary instance. It allows only reads. Possible values are: INSTANCE_ROLE_UNSPECIFIED, NONE, PRIMARY, SECONDARY.
Memberships []InstanceCrossInstanceReplicationConfigMembership
(Output) An output only view of all the member instance participating in cross instance replication. This field is populated for all the member clusters irrespective of their cluster role. Structure is documented below.
PrimaryInstance InstanceCrossInstanceReplicationConfigPrimaryInstance
This field is only set for a secondary instance. Details of the primary instance that is used as the replication source for this secondary instance. This is allowed to be set only for clusters whose cluster role is of type SECONDARY. Structure is documented below.
SecondaryInstances []InstanceCrossInstanceReplicationConfigSecondaryInstance
List of secondary instances that are replicating from this primary cluster. This is allowed to be set only for instances whose cluster role is of type PRIMARY. Structure is documented below.
UpdateTime string
(Output) The last time cross instance replication config was updated.
instanceRole String
The instance role supports the following values:

  1. INSTANCE_ROLE_UNSPECIFIED: This is an independent instance that has never participated in cross instance replication. It allows both reads and writes.
  2. NONE: This is an independent instance that previously participated in cross instance replication(either as a PRIMARY or SECONDARY cluster). It allows both reads and writes.
  3. PRIMARY: This instance serves as the replication source for secondary instance that are replicating from it. Any data written to it is automatically replicated to its secondary clusters. It allows both reads and writes.
  4. SECONDARY: This instance replicates data from the primary instance. It allows only reads. Possible values are: INSTANCE_ROLE_UNSPECIFIED, NONE, PRIMARY, SECONDARY.
memberships List<InstanceCrossInstanceReplicationConfigMembership>
(Output) An output only view of all the member instance participating in cross instance replication. This field is populated for all the member clusters irrespective of their cluster role. Structure is documented below.
primaryInstance InstanceCrossInstanceReplicationConfigPrimaryInstance
This field is only set for a secondary instance. Details of the primary instance that is used as the replication source for this secondary instance. This is allowed to be set only for clusters whose cluster role is of type SECONDARY. Structure is documented below.
secondaryInstances List<InstanceCrossInstanceReplicationConfigSecondaryInstance>
List of secondary instances that are replicating from this primary cluster. This is allowed to be set only for instances whose cluster role is of type PRIMARY. Structure is documented below.
updateTime String
(Output) The last time cross instance replication config was updated.
instanceRole string
The instance role supports the following values:

  1. INSTANCE_ROLE_UNSPECIFIED: This is an independent instance that has never participated in cross instance replication. It allows both reads and writes.
  2. NONE: This is an independent instance that previously participated in cross instance replication(either as a PRIMARY or SECONDARY cluster). It allows both reads and writes.
  3. PRIMARY: This instance serves as the replication source for secondary instance that are replicating from it. Any data written to it is automatically replicated to its secondary clusters. It allows both reads and writes.
  4. SECONDARY: This instance replicates data from the primary instance. It allows only reads. Possible values are: INSTANCE_ROLE_UNSPECIFIED, NONE, PRIMARY, SECONDARY.
memberships InstanceCrossInstanceReplicationConfigMembership[]
(Output) An output only view of all the member instance participating in cross instance replication. This field is populated for all the member clusters irrespective of their cluster role. Structure is documented below.
primaryInstance InstanceCrossInstanceReplicationConfigPrimaryInstance
This field is only set for a secondary instance. Details of the primary instance that is used as the replication source for this secondary instance. This is allowed to be set only for clusters whose cluster role is of type SECONDARY. Structure is documented below.
secondaryInstances InstanceCrossInstanceReplicationConfigSecondaryInstance[]
List of secondary instances that are replicating from this primary cluster. This is allowed to be set only for instances whose cluster role is of type PRIMARY. Structure is documented below.
updateTime string
(Output) The last time cross instance replication config was updated.
instance_role str
The instance role supports the following values:

  1. INSTANCE_ROLE_UNSPECIFIED: This is an independent instance that has never participated in cross instance replication. It allows both reads and writes.
  2. NONE: This is an independent instance that previously participated in cross instance replication(either as a PRIMARY or SECONDARY cluster). It allows both reads and writes.
  3. PRIMARY: This instance serves as the replication source for secondary instance that are replicating from it. Any data written to it is automatically replicated to its secondary clusters. It allows both reads and writes.
  4. SECONDARY: This instance replicates data from the primary instance. It allows only reads. Possible values are: INSTANCE_ROLE_UNSPECIFIED, NONE, PRIMARY, SECONDARY.
memberships Sequence[InstanceCrossInstanceReplicationConfigMembership]
(Output) An output only view of all the member instance participating in cross instance replication. This field is populated for all the member clusters irrespective of their cluster role. Structure is documented below.
primary_instance InstanceCrossInstanceReplicationConfigPrimaryInstance
This field is only set for a secondary instance. Details of the primary instance that is used as the replication source for this secondary instance. This is allowed to be set only for clusters whose cluster role is of type SECONDARY. Structure is documented below.
secondary_instances Sequence[InstanceCrossInstanceReplicationConfigSecondaryInstance]
List of secondary instances that are replicating from this primary cluster. This is allowed to be set only for instances whose cluster role is of type PRIMARY. Structure is documented below.
update_time str
(Output) The last time cross instance replication config was updated.
instanceRole String
The instance role supports the following values:

  1. INSTANCE_ROLE_UNSPECIFIED: This is an independent instance that has never participated in cross instance replication. It allows both reads and writes.
  2. NONE: This is an independent instance that previously participated in cross instance replication(either as a PRIMARY or SECONDARY cluster). It allows both reads and writes.
  3. PRIMARY: This instance serves as the replication source for secondary instance that are replicating from it. Any data written to it is automatically replicated to its secondary clusters. It allows both reads and writes.
  4. SECONDARY: This instance replicates data from the primary instance. It allows only reads. Possible values are: INSTANCE_ROLE_UNSPECIFIED, NONE, PRIMARY, SECONDARY.
memberships List<Property Map>
(Output) An output only view of all the member instance participating in cross instance replication. This field is populated for all the member clusters irrespective of their cluster role. Structure is documented below.
primaryInstance Property Map
This field is only set for a secondary instance. Details of the primary instance that is used as the replication source for this secondary instance. This is allowed to be set only for clusters whose cluster role is of type SECONDARY. Structure is documented below.
secondaryInstances List<Property Map>
List of secondary instances that are replicating from this primary cluster. This is allowed to be set only for instances whose cluster role is of type PRIMARY. Structure is documented below.
updateTime String
(Output) The last time cross instance replication config was updated.

InstanceCrossInstanceReplicationConfigMembership
, InstanceCrossInstanceReplicationConfigMembershipArgs

PrimaryInstances List<InstanceCrossInstanceReplicationConfigMembershipPrimaryInstance>
Details of the primary instance that is used as the replication source for all the secondary instances.
SecondaryInstances List<InstanceCrossInstanceReplicationConfigMembershipSecondaryInstance>
List of secondary instances that are replicating from the primary instance.
PrimaryInstances []InstanceCrossInstanceReplicationConfigMembershipPrimaryInstance
Details of the primary instance that is used as the replication source for all the secondary instances.
SecondaryInstances []InstanceCrossInstanceReplicationConfigMembershipSecondaryInstance
List of secondary instances that are replicating from the primary instance.
primaryInstances List<InstanceCrossInstanceReplicationConfigMembershipPrimaryInstance>
Details of the primary instance that is used as the replication source for all the secondary instances.
secondaryInstances List<InstanceCrossInstanceReplicationConfigMembershipSecondaryInstance>
List of secondary instances that are replicating from the primary instance.
primaryInstances InstanceCrossInstanceReplicationConfigMembershipPrimaryInstance[]
Details of the primary instance that is used as the replication source for all the secondary instances.
secondaryInstances InstanceCrossInstanceReplicationConfigMembershipSecondaryInstance[]
List of secondary instances that are replicating from the primary instance.
primary_instances Sequence[InstanceCrossInstanceReplicationConfigMembershipPrimaryInstance]
Details of the primary instance that is used as the replication source for all the secondary instances.
secondary_instances Sequence[InstanceCrossInstanceReplicationConfigMembershipSecondaryInstance]
List of secondary instances that are replicating from the primary instance.
primaryInstances List<Property Map>
Details of the primary instance that is used as the replication source for all the secondary instances.
secondaryInstances List<Property Map>
List of secondary instances that are replicating from the primary instance.

InstanceCrossInstanceReplicationConfigMembershipPrimaryInstance
, InstanceCrossInstanceReplicationConfigMembershipPrimaryInstanceArgs

Instance string
The full resource path of the primary instance in the format: projects/{project}/locations/{region}/instances/{instance-id}
Uid string
(Output) The unique id of the primary instance.
Instance string
The full resource path of the primary instance in the format: projects/{project}/locations/{region}/instances/{instance-id}
Uid string
(Output) The unique id of the primary instance.
instance String
The full resource path of the primary instance in the format: projects/{project}/locations/{region}/instances/{instance-id}
uid String
(Output) The unique id of the primary instance.
instance string
The full resource path of the primary instance in the format: projects/{project}/locations/{region}/instances/{instance-id}
uid string
(Output) The unique id of the primary instance.
instance str
The full resource path of the primary instance in the format: projects/{project}/locations/{region}/instances/{instance-id}
uid str
(Output) The unique id of the primary instance.
instance String
The full resource path of the primary instance in the format: projects/{project}/locations/{region}/instances/{instance-id}
uid String
(Output) The unique id of the primary instance.

InstanceCrossInstanceReplicationConfigMembershipSecondaryInstance
, InstanceCrossInstanceReplicationConfigMembershipSecondaryInstanceArgs

Instance string
The full resource path of the secondary instance in the format: projects/{project}/locations/{region}/instance/{instance-id}
Uid string
Output only. System assigned, unique identifier for the instance.
Instance string
The full resource path of the secondary instance in the format: projects/{project}/locations/{region}/instance/{instance-id}
Uid string
Output only. System assigned, unique identifier for the instance.
instance String
The full resource path of the secondary instance in the format: projects/{project}/locations/{region}/instance/{instance-id}
uid String
Output only. System assigned, unique identifier for the instance.
instance string
The full resource path of the secondary instance in the format: projects/{project}/locations/{region}/instance/{instance-id}
uid string
Output only. System assigned, unique identifier for the instance.
instance str
The full resource path of the secondary instance in the format: projects/{project}/locations/{region}/instance/{instance-id}
uid str
Output only. System assigned, unique identifier for the instance.
instance String
The full resource path of the secondary instance in the format: projects/{project}/locations/{region}/instance/{instance-id}
uid String
Output only. System assigned, unique identifier for the instance.

InstanceCrossInstanceReplicationConfigPrimaryInstance
, InstanceCrossInstanceReplicationConfigPrimaryInstanceArgs

Instance string
The full resource path of the primary instance in the format: projects/{project}/locations/{region}/instances/{instance-id}
Uid string
(Output) The unique id of the primary instance.
Instance string
The full resource path of the primary instance in the format: projects/{project}/locations/{region}/instances/{instance-id}
Uid string
(Output) The unique id of the primary instance.
instance String
The full resource path of the primary instance in the format: projects/{project}/locations/{region}/instances/{instance-id}
uid String
(Output) The unique id of the primary instance.
instance string
The full resource path of the primary instance in the format: projects/{project}/locations/{region}/instances/{instance-id}
uid string
(Output) The unique id of the primary instance.
instance str
The full resource path of the primary instance in the format: projects/{project}/locations/{region}/instances/{instance-id}
uid str
(Output) The unique id of the primary instance.
instance String
The full resource path of the primary instance in the format: projects/{project}/locations/{region}/instances/{instance-id}
uid String
(Output) The unique id of the primary instance.

InstanceCrossInstanceReplicationConfigSecondaryInstance
, InstanceCrossInstanceReplicationConfigSecondaryInstanceArgs

Instance string
(Output) The full resource path of the secondary instance in the format: projects/{project}/locations/{region}/instance/{instance-id}
Uid string
(Output) The unique id of the secondary instance.
Instance string
(Output) The full resource path of the secondary instance in the format: projects/{project}/locations/{region}/instance/{instance-id}
Uid string
(Output) The unique id of the secondary instance.
instance String
(Output) The full resource path of the secondary instance in the format: projects/{project}/locations/{region}/instance/{instance-id}
uid String
(Output) The unique id of the secondary instance.
instance string
(Output) The full resource path of the secondary instance in the format: projects/{project}/locations/{region}/instance/{instance-id}
uid string
(Output) The unique id of the secondary instance.
instance str
(Output) The full resource path of the secondary instance in the format: projects/{project}/locations/{region}/instance/{instance-id}
uid str
(Output) The unique id of the secondary instance.
instance String
(Output) The full resource path of the secondary instance in the format: projects/{project}/locations/{region}/instance/{instance-id}
uid String
(Output) The unique id of the secondary instance.

InstanceDesiredPscAutoConnection
, InstanceDesiredPscAutoConnectionArgs

Network This property is required. string
(Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
ProjectId This property is required. string
(Output) Output only. The consumer project_id where the forwarding rule is created from.
Network This property is required. string
(Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
ProjectId This property is required. string
(Output) Output only. The consumer project_id where the forwarding rule is created from.
network This property is required. String
(Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
projectId This property is required. String
(Output) Output only. The consumer project_id where the forwarding rule is created from.
network This property is required. string
(Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
projectId This property is required. string
(Output) Output only. The consumer project_id where the forwarding rule is created from.
network This property is required. 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 This property is required. str
(Output) Output only. The consumer project_id where the forwarding rule is created from.
network This property is required. String
(Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
projectId This property is required. String
(Output) Output only. The consumer project_id where the forwarding rule is created from.

InstanceDiscoveryEndpoint
, InstanceDiscoveryEndpointArgs

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

InstanceEndpoint
, InstanceEndpointArgs

Connections List<InstanceEndpointConnection>
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 []InstanceEndpointConnection
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<InstanceEndpointConnection>
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 InstanceEndpointConnection[]
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[InstanceEndpointConnection]
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

PscAutoConnection InstanceEndpointConnectionPscAutoConnection
Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
PscAutoConnection InstanceEndpointConnectionPscAutoConnection
Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
pscAutoConnection InstanceEndpointConnectionPscAutoConnection
Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
pscAutoConnection InstanceEndpointConnectionPscAutoConnection
Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
psc_auto_connection InstanceEndpointConnectionPscAutoConnection
Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
pscAutoConnection Property Map
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.
PscConnectionId string
(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.
PscConnectionId string
(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.
pscConnectionId String
(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.
pscConnectionId string
(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_id str
(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.
pscConnectionId String
(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}.

InstanceMaintenancePolicy
, InstanceMaintenancePolicyArgs

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

InstanceMaintenancePolicyWeeklyMaintenanceWindow
, InstanceMaintenancePolicyWeeklyMaintenanceWindowArgs

Day This property is required. string
The day of week that maintenance updates occur.

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

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

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

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

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

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

InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTime
, InstanceMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs

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

InstanceMaintenanceSchedule
, InstanceMaintenanceScheduleArgs

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

InstanceNodeConfig
, InstanceNodeConfigArgs

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

InstancePersistenceConfig
, InstancePersistenceConfigArgs

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

InstancePersistenceConfigAofConfig
, InstancePersistenceConfigAofConfigArgs

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

InstancePersistenceConfigRdbConfig
, InstancePersistenceConfigRdbConfigArgs

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

InstancePscAttachmentDetail
, InstancePscAttachmentDetailArgs

ConnectionType string
(Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
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
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
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
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
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
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}.

InstancePscAutoConnection
, InstancePscAutoConnectionArgs

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

InstanceStateInfo
, InstanceStateInfoArgs

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

InstanceStateInfoUpdateInfo
, InstanceStateInfoUpdateInfoArgs

TargetEngineVersion string
(Output) Output only. Target engine version for the instance.
TargetNodeType string
(Output) Output only. Target node type for the instance.
TargetReplicaCount int
(Output) Output only. Target number of replica nodes per shard for the instance.
TargetShardCount int
(Output) Output only. Target number of shards for the instance.
TargetEngineVersion string
(Output) Output only. Target engine version for the instance.
TargetNodeType string
(Output) Output only. Target node type for the instance.
TargetReplicaCount int
(Output) Output only. Target number of replica nodes per shard for the instance.
TargetShardCount int
(Output) Output only. Target number of shards for the instance.
targetEngineVersion String
(Output) Output only. Target engine version for the instance.
targetNodeType String
(Output) Output only. Target node type for the instance.
targetReplicaCount Integer
(Output) Output only. Target number of replica nodes per shard for the instance.
targetShardCount Integer
(Output) Output only. Target number of shards for the instance.
targetEngineVersion string
(Output) Output only. Target engine version for the instance.
targetNodeType string
(Output) Output only. Target node type for the instance.
targetReplicaCount number
(Output) Output only. Target number of replica nodes per shard for the instance.
targetShardCount number
(Output) Output only. Target number of shards for the instance.
target_engine_version str
(Output) Output only. Target engine version for the instance.
target_node_type str
(Output) Output only. Target node type for the instance.
target_replica_count int
(Output) Output only. Target number of replica nodes per shard for the instance.
target_shard_count int
(Output) Output only. Target number of shards for the instance.
targetEngineVersion String
(Output) Output only. Target engine version for the instance.
targetNodeType String
(Output) Output only. Target node type for the instance.
targetReplicaCount Number
(Output) Output only. Target number of replica nodes per shard for the instance.
targetShardCount Number
(Output) Output only. Target number of shards for the instance.

InstanceZoneDistributionConfig
, InstanceZoneDistributionConfigArgs

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

Import

Instance can be imported using any of these accepted formats:

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

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

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

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

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

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

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.