gcp.memorystore.Instance
Explore with Pulumi AI
A Google Cloud Memorystore instance.
To get more information about Instance, see:
- API documentation
- How-to Guides
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],
});
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]))
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
})
}
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,
},
});
});
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());
}
}
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: {}
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],
});
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]))
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
})
}
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,
},
});
});
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());
}
}
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: {}
Memorystore Instance Persistence Aof
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const producerNet = new gcp.compute.Network("producer_net", {
name: "my-network",
autoCreateSubnetworks: false,
});
const producerSubnet = new gcp.compute.Subnetwork("producer_subnet", {
name: "my-subnet",
ipCidrRange: "10.0.0.248/29",
region: "us-central1",
network: producerNet.id,
});
const _default = new gcp.networkconnectivity.ServiceConnectionPolicy("default", {
name: "my-policy",
location: "us-central1",
serviceClass: "gcp-memorystore",
description: "my basic service connection policy",
network: producerNet.id,
pscConfig: {
subnetworks: [producerSubnet.id],
},
});
const project = gcp.organizations.getProject({});
const instance_persistence_aof = new gcp.memorystore.Instance("instance-persistence-aof", {
instanceId: "aof-instance",
shardCount: 3,
desiredPscAutoConnections: [{
network: producerNet.id,
projectId: project.then(project => project.projectId),
}],
location: "us-central1",
persistenceConfig: {
mode: "AOF",
aofConfig: {
appendFsync: "EVERY_SEC",
},
},
deletionProtectionEnabled: false,
}, {
dependsOn: [_default],
});
import pulumi
import pulumi_gcp as gcp
producer_net = gcp.compute.Network("producer_net",
name="my-network",
auto_create_subnetworks=False)
producer_subnet = gcp.compute.Subnetwork("producer_subnet",
name="my-subnet",
ip_cidr_range="10.0.0.248/29",
region="us-central1",
network=producer_net.id)
default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
name="my-policy",
location="us-central1",
service_class="gcp-memorystore",
description="my basic service connection policy",
network=producer_net.id,
psc_config={
"subnetworks": [producer_subnet.id],
})
project = gcp.organizations.get_project()
instance_persistence_aof = gcp.memorystore.Instance("instance-persistence-aof",
instance_id="aof-instance",
shard_count=3,
desired_psc_auto_connections=[{
"network": producer_net.id,
"project_id": project.project_id,
}],
location="us-central1",
persistence_config={
"mode": "AOF",
"aof_config": {
"append_fsync": "EVERY_SEC",
},
},
deletion_protection_enabled=False,
opts = pulumi.ResourceOptions(depends_on=[default]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/memorystore"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networkconnectivity"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
producerNet, err := compute.NewNetwork(ctx, "producer_net", &compute.NetworkArgs{
Name: pulumi.String("my-network"),
AutoCreateSubnetworks: pulumi.Bool(false),
})
if err != nil {
return err
}
producerSubnet, err := compute.NewSubnetwork(ctx, "producer_subnet", &compute.SubnetworkArgs{
Name: pulumi.String("my-subnet"),
IpCidrRange: pulumi.String("10.0.0.248/29"),
Region: pulumi.String("us-central1"),
Network: producerNet.ID(),
})
if err != nil {
return err
}
_default, err := networkconnectivity.NewServiceConnectionPolicy(ctx, "default", &networkconnectivity.ServiceConnectionPolicyArgs{
Name: pulumi.String("my-policy"),
Location: pulumi.String("us-central1"),
ServiceClass: pulumi.String("gcp-memorystore"),
Description: pulumi.String("my basic service connection policy"),
Network: producerNet.ID(),
PscConfig: &networkconnectivity.ServiceConnectionPolicyPscConfigArgs{
Subnetworks: pulumi.StringArray{
producerSubnet.ID(),
},
},
})
if err != nil {
return err
}
project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{}, nil)
if err != nil {
return err
}
_, err = memorystore.NewInstance(ctx, "instance-persistence-aof", &memorystore.InstanceArgs{
InstanceId: pulumi.String("aof-instance"),
ShardCount: pulumi.Int(3),
DesiredPscAutoConnections: memorystore.InstanceDesiredPscAutoConnectionArray{
&memorystore.InstanceDesiredPscAutoConnectionArgs{
Network: producerNet.ID(),
ProjectId: pulumi.String(project.ProjectId),
},
},
Location: pulumi.String("us-central1"),
PersistenceConfig: &memorystore.InstancePersistenceConfigArgs{
Mode: pulumi.String("AOF"),
AofConfig: &memorystore.InstancePersistenceConfigAofConfigArgs{
AppendFsync: pulumi.String("EVERY_SEC"),
},
},
DeletionProtectionEnabled: pulumi.Bool(false),
}, pulumi.DependsOn([]pulumi.Resource{
_default,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var producerNet = new Gcp.Compute.Network("producer_net", new()
{
Name = "my-network",
AutoCreateSubnetworks = false,
});
var producerSubnet = new Gcp.Compute.Subnetwork("producer_subnet", new()
{
Name = "my-subnet",
IpCidrRange = "10.0.0.248/29",
Region = "us-central1",
Network = producerNet.Id,
});
var @default = new Gcp.NetworkConnectivity.ServiceConnectionPolicy("default", new()
{
Name = "my-policy",
Location = "us-central1",
ServiceClass = "gcp-memorystore",
Description = "my basic service connection policy",
Network = producerNet.Id,
PscConfig = new Gcp.NetworkConnectivity.Inputs.ServiceConnectionPolicyPscConfigArgs
{
Subnetworks = new[]
{
producerSubnet.Id,
},
},
});
var project = Gcp.Organizations.GetProject.Invoke();
var instance_persistence_aof = new Gcp.MemoryStore.Instance("instance-persistence-aof", new()
{
InstanceId = "aof-instance",
ShardCount = 3,
DesiredPscAutoConnections = new[]
{
new Gcp.MemoryStore.Inputs.InstanceDesiredPscAutoConnectionArgs
{
Network = producerNet.Id,
ProjectId = project.Apply(getProjectResult => getProjectResult.ProjectId),
},
},
Location = "us-central1",
PersistenceConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigArgs
{
Mode = "AOF",
AofConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigAofConfigArgs
{
AppendFsync = "EVERY_SEC",
},
},
DeletionProtectionEnabled = false,
}, new CustomResourceOptions
{
DependsOn =
{
@default,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.Subnetwork;
import com.pulumi.gcp.compute.SubnetworkArgs;
import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicy;
import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicyArgs;
import com.pulumi.gcp.networkconnectivity.inputs.ServiceConnectionPolicyPscConfigArgs;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.memorystore.Instance;
import com.pulumi.gcp.memorystore.InstanceArgs;
import com.pulumi.gcp.memorystore.inputs.InstanceDesiredPscAutoConnectionArgs;
import com.pulumi.gcp.memorystore.inputs.InstancePersistenceConfigArgs;
import com.pulumi.gcp.memorystore.inputs.InstancePersistenceConfigAofConfigArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var producerNet = new Network("producerNet", NetworkArgs.builder()
.name("my-network")
.autoCreateSubnetworks(false)
.build());
var producerSubnet = new Subnetwork("producerSubnet", SubnetworkArgs.builder()
.name("my-subnet")
.ipCidrRange("10.0.0.248/29")
.region("us-central1")
.network(producerNet.id())
.build());
var default_ = new ServiceConnectionPolicy("default", ServiceConnectionPolicyArgs.builder()
.name("my-policy")
.location("us-central1")
.serviceClass("gcp-memorystore")
.description("my basic service connection policy")
.network(producerNet.id())
.pscConfig(ServiceConnectionPolicyPscConfigArgs.builder()
.subnetworks(producerSubnet.id())
.build())
.build());
final var project = OrganizationsFunctions.getProject(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());
}
}
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: {}
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],
});
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]))
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
})
}
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,
},
});
});
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());
}
}
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: {}
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,
engine_configs: Optional[Mapping[str, str]] = None,
managed_backup_source: Optional[InstanceManagedBackupSourceArgs] = None,
authorization_mode: Optional[str] = None,
engine_version: Optional[str] = None,
gcs_source: Optional[InstanceGcsSourceArgs] = None,
deletion_protection_enabled: Optional[bool] = None,
labels: Optional[Mapping[str, str]] = None,
cross_instance_replication_config: Optional[InstanceCrossInstanceReplicationConfigArgs] = None,
maintenance_policy: Optional[InstanceMaintenancePolicyArgs] = 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 string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleinstanceResourceResourceFromMemorystoreinstance = new Gcp.MemoryStore.Instance("exampleinstanceResourceResourceFromMemorystoreinstance", new()
{
InstanceId = "string",
ShardCount = 0,
Location = "string",
EngineConfigs =
{
{ "string", "string" },
},
ManagedBackupSource = new Gcp.MemoryStore.Inputs.InstanceManagedBackupSourceArgs
{
Backup = "string",
},
AuthorizationMode = "string",
EngineVersion = "string",
GcsSource = new Gcp.MemoryStore.Inputs.InstanceGcsSourceArgs
{
Uris = new[]
{
"string",
},
},
DeletionProtectionEnabled = false,
Labels =
{
{ "string", "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",
},
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",
},
},
},
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",
},
});
example, err := memorystore.NewInstance(ctx, "exampleinstanceResourceResourceFromMemorystoreinstance", &memorystore.InstanceArgs{
InstanceId: pulumi.String("string"),
ShardCount: pulumi.Int(0),
Location: pulumi.String("string"),
EngineConfigs: pulumi.StringMap{
"string": pulumi.String("string"),
},
ManagedBackupSource: &memorystore.InstanceManagedBackupSourceArgs{
Backup: pulumi.String("string"),
},
AuthorizationMode: pulumi.String("string"),
EngineVersion: pulumi.String("string"),
GcsSource: &memorystore.InstanceGcsSourceArgs{
Uris: pulumi.StringArray{
pulumi.String("string"),
},
},
DeletionProtectionEnabled: pulumi.Bool(false),
Labels: pulumi.StringMap{
"string": 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"),
},
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"),
},
},
},
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"),
},
})
var exampleinstanceResourceResourceFromMemorystoreinstance = new com.pulumi.gcp.memorystore.Instance("exampleinstanceResourceResourceFromMemorystoreinstance", com.pulumi.gcp.memorystore.InstanceArgs.builder()
.instanceId("string")
.shardCount(0)
.location("string")
.engineConfigs(Map.of("string", "string"))
.managedBackupSource(InstanceManagedBackupSourceArgs.builder()
.backup("string")
.build())
.authorizationMode("string")
.engineVersion("string")
.gcsSource(InstanceGcsSourceArgs.builder()
.uris("string")
.build())
.deletionProtectionEnabled(false)
.labels(Map.of("string", "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())
.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())
.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());
exampleinstance_resource_resource_from_memorystoreinstance = gcp.memorystore.Instance("exampleinstanceResourceResourceFromMemorystoreinstance",
instance_id="string",
shard_count=0,
location="string",
engine_configs={
"string": "string",
},
managed_backup_source={
"backup": "string",
},
authorization_mode="string",
engine_version="string",
gcs_source={
"uris": ["string"],
},
deletion_protection_enabled=False,
labels={
"string": "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",
},
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",
}],
},
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",
})
const exampleinstanceResourceResourceFromMemorystoreinstance = new gcp.memorystore.Instance("exampleinstanceResourceResourceFromMemorystoreinstance", {
instanceId: "string",
shardCount: 0,
location: "string",
engineConfigs: {
string: "string",
},
managedBackupSource: {
backup: "string",
},
authorizationMode: "string",
engineVersion: "string",
gcsSource: {
uris: ["string"],
},
deletionProtectionEnabled: false,
labels: {
string: "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",
},
maintenancePolicy: {
createTime: "string",
updateTime: "string",
weeklyMaintenanceWindows: [{
day: "string",
startTime: {
hours: 0,
minutes: 0,
nanos: 0,
seconds: 0,
},
duration: "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",
},
});
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
gcsSource:
uris:
- 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
managedBackupSource:
backup: string
mode: string
nodeType: string
persistenceConfig:
aofConfig:
appendFsync: string
mode: string
rdbConfig:
rdbSnapshotPeriod: string
rdbSnapshotStartTime: string
project: string
replicaCount: 0
shardCount: 0
transitEncryptionMode: string
zoneDistributionConfig:
mode: string
zone: string
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Instance resource accepts the following input properties:
- Instance
Id string - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- Location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - int
- Required. Number of shards for the instance.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- Automated
Backup InstanceConfig Automated Backup Config - The automated backup config for a instance. Structure is documented below.
- Cross
Instance InstanceReplication Config Cross Instance Replication Config - Cross instance replication config Structure is documented below.
- Deletion
Protection boolEnabled - Optional. If set to true deletion of the instance will fail.
- Desired
Psc List<InstanceAuto Connections Desired Psc Auto Connection> - Immutable. User inputs for the auto-created PSC connections.
- Engine
Configs Dictionary<string, string> - Optional. User-provided engine configurations for the instance.
- Engine
Version string - Optional. Engine version of the instance.
- Gcs
Source InstanceGcs Source - GCS source for the instance. Structure is documented below.
- 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. - Maintenance
Policy InstanceMaintenance Policy - Maintenance policy for a cluster Structure is documented below.
- Managed
Backup InstanceSource Managed Backup Source - Managed backup source for the instance. Structure is documented below.
- Mode string
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are:
CLUSTER
,CLUSTER_DISABLED
. - Node
Type string - Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- Persistence
Config InstancePersistence Config - Represents persistence configuration for a instance. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Replica
Count int - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- Transit
Encryption stringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- Zone
Distribution InstanceConfig Zone Distribution Config - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- Instance
Id string - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- Location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - int
- Required. Number of shards for the instance.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- Automated
Backup InstanceConfig Automated Backup Config Args - The automated backup config for a instance. Structure is documented below.
- Cross
Instance InstanceReplication Config Cross Instance Replication Config Args - Cross instance replication config Structure is documented below.
- Deletion
Protection boolEnabled - Optional. If set to true deletion of the instance will fail.
- Desired
Psc []InstanceAuto Connections Desired Psc Auto Connection Args - Immutable. User inputs for the auto-created PSC connections.
- Engine
Configs map[string]string - Optional. User-provided engine configurations for the instance.
- Engine
Version string - Optional. Engine version of the instance.
- Gcs
Source InstanceGcs Source Args - GCS source for the instance. Structure is documented below.
- 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. - Maintenance
Policy InstanceMaintenance Policy Args - Maintenance policy for a cluster Structure is documented below.
- Managed
Backup InstanceSource Managed Backup Source Args - Managed backup source for the instance. Structure is documented below.
- Mode string
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are:
CLUSTER
,CLUSTER_DISABLED
. - Node
Type string - Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- Persistence
Config InstancePersistence Config Args - Represents persistence configuration for a instance. Structure is documented below.
- Project string
- 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 stringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- Zone
Distribution InstanceConfig Zone Distribution Config Args - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- instance
Id String - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- location String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - Integer
- Required. Number of shards for the instance.
- String
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- automated
Backup InstanceConfig Automated Backup Config - The automated backup config for a instance. Structure is documented below.
- cross
Instance InstanceReplication Config Cross Instance Replication Config - Cross instance replication config Structure is documented below.
- deletion
Protection BooleanEnabled - Optional. If set to true deletion of the instance will fail.
- desired
Psc List<InstanceAuto Connections Desired Psc Auto Connection> - Immutable. User inputs for the auto-created PSC connections.
- engine
Configs Map<String,String> - Optional. User-provided engine configurations for the instance.
- engine
Version String - Optional. Engine version of the instance.
- gcs
Source InstanceGcs Source - GCS source for the instance. Structure is documented below.
- 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. - maintenance
Policy InstanceMaintenance Policy - Maintenance policy for a cluster Structure is documented below.
- managed
Backup InstanceSource Managed Backup Source - Managed backup source for the instance. Structure is documented below.
- mode String
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are:
CLUSTER
,CLUSTER_DISABLED
. - node
Type String - Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence
Config InstancePersistence Config - Represents persistence configuration for a instance. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- replica
Count Integer - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- transit
Encryption StringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- zone
Distribution InstanceConfig Zone Distribution Config - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- instance
Id string - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - number
- Required. Number of shards for the instance.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- automated
Backup InstanceConfig Automated Backup Config - The automated backup config for a instance. Structure is documented below.
- cross
Instance InstanceReplication Config Cross Instance Replication Config - Cross instance replication config Structure is documented below.
- deletion
Protection booleanEnabled - Optional. If set to true deletion of the instance will fail.
- desired
Psc InstanceAuto Connections Desired Psc Auto Connection[] - Immutable. User inputs for the auto-created PSC connections.
- engine
Configs {[key: string]: string} - Optional. User-provided engine configurations for the instance.
- engine
Version string - Optional. Engine version of the instance.
- gcs
Source InstanceGcs Source - GCS source for the instance. Structure is documented below.
- 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. - maintenance
Policy InstanceMaintenance Policy - Maintenance policy for a cluster Structure is documented below.
- managed
Backup InstanceSource Managed Backup Source - Managed backup source for the instance. Structure is documented below.
- mode string
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are:
CLUSTER
,CLUSTER_DISABLED
. - node
Type string - Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence
Config InstancePersistence Config - Represents persistence configuration for a instance. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- replica
Count number - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- transit
Encryption stringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- zone
Distribution InstanceConfig Zone Distribution Config - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- instance_
id str - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- location str
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - int
- Required. Number of shards for the instance.
- str
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- automated_
backup_ Instanceconfig Automated Backup Config Args - The automated backup config for a instance. Structure is documented below.
- cross_
instance_ Instancereplication_ config Cross Instance Replication Config Args - Cross instance replication config Structure is documented below.
- deletion_
protection_ boolenabled - Optional. If set to true deletion of the instance will fail.
- desired_
psc_ Sequence[Instanceauto_ connections Desired Psc Auto Connection Args] - 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.
- gcs_
source InstanceGcs Source Args - GCS source for the instance. Structure is documented below.
- 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 InstanceMaintenance Policy Args - Maintenance policy for a cluster Structure is documented below.
- managed_
backup_ Instancesource Managed Backup Source Args - Managed backup source for the instance. Structure is documented below.
- mode 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 InstancePersistence Config Args - Represents persistence configuration for a instance. Structure is documented below.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- replica_
count int - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- transit_
encryption_ strmode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- zone_
distribution_ Instanceconfig Zone Distribution Config Args - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- instance
Id String - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- location String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - Number
- Required. Number of shards for the instance.
- String
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- automated
Backup Property MapConfig - The automated backup config for a instance. Structure is documented below.
- cross
Instance Property MapReplication Config - Cross instance replication config Structure is documented below.
- deletion
Protection BooleanEnabled - Optional. If set to true deletion of the instance will fail.
- desired
Psc List<Property Map>Auto Connections - Immutable. User inputs for the auto-created PSC connections.
- engine
Configs Map<String> - Optional. User-provided engine configurations for the instance.
- engine
Version String - Optional. Engine version of the instance.
- gcs
Source Property Map - GCS source for the instance. Structure is documented below.
- 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. - maintenance
Policy Property Map - Maintenance policy for a cluster Structure is documented below.
- managed
Backup Property MapSource - Managed backup source for the instance. Structure is documented below.
- mode String
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are:
CLUSTER
,CLUSTER_DISABLED
. - node
Type String - Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence
Config Property Map - Represents persistence configuration for a instance. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- replica
Count Number - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- transit
Encryption StringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- zone
Distribution Property MapConfig - Zone distribution configuration for allocation of instance resources. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Backup
Collection string - The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
- Create
Time string - Output only. Creation timestamp of the instance.
- Discovery
Endpoints List<InstanceDiscovery Endpoint> - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- Effective
Labels 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<Instance
Endpoint> - Endpoints for the instance. Structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Maintenance
Schedules List<InstanceMaintenance Schedule> - Upcoming maintenance schedule. Structure is documented below.
- Name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- Node
Configs List<InstanceNode Config> - Represents configuration for nodes of the instance. Structure is documented below.
- Psc
Attachment List<InstanceDetails Psc Attachment Detail> - Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
- Psc
Auto List<InstanceConnections Psc Auto Connection> - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- Pulumi
Labels 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
- State
Infos List<InstanceState Info> - Additional information about the state of the instance. Structure is documented below.
- Uid string
- Output only. System assigned, unique identifier for the instance.
- Update
Time string - Output only. Latest update timestamp of the instance.
- Backup
Collection string - The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
- Create
Time string - Output only. Creation timestamp of the instance.
- Discovery
Endpoints []InstanceDiscovery Endpoint - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- Effective
Labels 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
[]Instance
Endpoint - Endpoints for the instance. Structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Maintenance
Schedules []InstanceMaintenance Schedule - Upcoming maintenance schedule. Structure is documented below.
- Name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- Node
Configs []InstanceNode Config - Represents configuration for nodes of the instance. Structure is documented below.
- Psc
Attachment []InstanceDetails Psc Attachment Detail - Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
- Psc
Auto []InstanceConnections Psc Auto Connection - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- Pulumi
Labels 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
- State
Infos []InstanceState Info - Additional information about the state of the instance. Structure is documented below.
- Uid string
- Output only. System assigned, unique identifier for the instance.
- Update
Time string - Output only. Latest update timestamp of the instance.
- backup
Collection String - The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
- create
Time String - Output only. Creation timestamp of the instance.
- discovery
Endpoints List<InstanceDiscovery Endpoint> - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective
Labels 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<Instance
Endpoint> - Endpoints for the instance. Structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- maintenance
Schedules List<InstanceMaintenance Schedule> - Upcoming maintenance schedule. Structure is documented below.
- name String
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node
Configs List<InstanceNode Config> - Represents configuration for nodes of the instance. Structure is documented below.
- psc
Attachment List<InstanceDetails Psc Attachment Detail> - Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
- psc
Auto List<InstanceConnections Psc Auto Connection> - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi
Labels 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
- state
Infos List<InstanceState Info> - Additional information about the state of the instance. Structure is documented below.
- uid String
- Output only. System assigned, unique identifier for the instance.
- update
Time String - Output only. Latest update timestamp of the instance.
- backup
Collection string - The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
- create
Time string - Output only. Creation timestamp of the instance.
- discovery
Endpoints InstanceDiscovery Endpoint[] - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective
Labels {[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
Instance
Endpoint[] - Endpoints for the instance. Structure is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- maintenance
Schedules InstanceMaintenance Schedule[] - Upcoming maintenance schedule. Structure is documented below.
- name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node
Configs InstanceNode Config[] - Represents configuration for nodes of the instance. Structure is documented below.
- psc
Attachment InstanceDetails Psc Attachment Detail[] - Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
- psc
Auto InstanceConnections Psc Auto Connection[] - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi
Labels {[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
- state
Infos InstanceState Info[] - Additional information about the state of the instance. Structure is documented below.
- uid string
- Output only. System assigned, unique identifier for the instance.
- update
Time string - Output only. Latest update timestamp of the instance.
- backup_
collection str - The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
- create_
time str - Output only. Creation timestamp of the instance.
- discovery_
endpoints Sequence[InstanceDiscovery Endpoint] - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpoints
Sequence[Instance
Endpoint] - Endpoints for the instance. Structure is documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- maintenance_
schedules Sequence[InstanceMaintenance Schedule] - 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[InstanceNode Config] - Represents configuration for nodes of the instance. Structure is documented below.
- psc_
attachment_ Sequence[Instancedetails Psc Attachment Detail] - Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
- psc_
auto_ Sequence[Instanceconnections Psc Auto Connection] - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- state str
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- state_
infos Sequence[InstanceState Info] - Additional information about the state of the instance. Structure is documented below.
- uid str
- Output only. System assigned, unique identifier for the instance.
- update_
time str - Output only. Latest update timestamp of the instance.
- backup
Collection String - The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
- create
Time String - Output only. Creation timestamp of the instance.
- discovery
Endpoints List<Property Map> - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective
Labels 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.
- maintenance
Schedules 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}
- node
Configs List<Property Map> - Represents configuration for nodes of the instance. Structure is documented below.
- psc
Attachment List<Property Map>Details - Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
- psc
Auto List<Property Map>Connections - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi
Labels 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
- state
Infos 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.
- update
Time 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,
backup_collection: Optional[str] = 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,
gcs_source: Optional[InstanceGcsSourceArgs] = 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,
managed_backup_source: Optional[InstanceManagedBackupSourceArgs] = 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- Automated
Backup InstanceConfig Automated Backup Config - The automated backup config for a instance. Structure is documented below.
- Backup
Collection string - The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
- Create
Time string - Output only. Creation timestamp of the instance.
- Cross
Instance InstanceReplication Config Cross Instance Replication Config - Cross instance replication config Structure is documented below.
- Deletion
Protection boolEnabled - Optional. If set to true deletion of the instance will fail.
- Desired
Psc List<InstanceAuto Connections Desired Psc Auto Connection> - Immutable. User inputs for the auto-created PSC connections.
- Discovery
Endpoints List<InstanceDiscovery Endpoint> - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- Effective
Labels 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<Instance
Endpoint> - Endpoints for the instance. Structure is documented below.
- Engine
Configs Dictionary<string, string> - Optional. User-provided engine configurations for the instance.
- Engine
Version string - Optional. Engine version of the instance.
- Gcs
Source InstanceGcs Source - GCS source for the instance. Structure is documented below.
- Instance
Id string - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- Labels Dictionary<string, string>
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - Maintenance
Policy InstanceMaintenance Policy - Maintenance policy for a cluster Structure is documented below.
- Maintenance
Schedules List<InstanceMaintenance Schedule> - Upcoming maintenance schedule. Structure is documented below.
- Managed
Backup InstanceSource Managed Backup Source - Managed backup source for the instance. Structure is documented below.
- Mode string
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are:
CLUSTER
,CLUSTER_DISABLED
. - Name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- Node
Configs List<InstanceNode Config> - Represents configuration for nodes of the instance. Structure is documented below.
- Node
Type string - Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- Persistence
Config InstancePersistence Config - Represents persistence configuration for a instance. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Psc
Attachment List<InstanceDetails Psc Attachment Detail> - Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
- Psc
Auto List<InstanceConnections Psc Auto Connection> - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- Pulumi
Labels Dictionary<string, string> - 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 string
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- State
Infos List<InstanceState Info> - Additional information about the state of the instance. Structure is documented below.
- Transit
Encryption stringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- Uid string
- Output only. System assigned, unique identifier for the instance.
- Update
Time string - Output only. Latest update timestamp of the instance.
- Zone
Distribution InstanceConfig Zone Distribution Config - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- Automated
Backup InstanceConfig Automated Backup Config Args - The automated backup config for a instance. Structure is documented below.
- Backup
Collection string - The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
- Create
Time string - Output only. Creation timestamp of the instance.
- Cross
Instance InstanceReplication Config Cross Instance Replication Config Args - Cross instance replication config Structure is documented below.
- Deletion
Protection boolEnabled - Optional. If set to true deletion of the instance will fail.
- Desired
Psc []InstanceAuto Connections Desired Psc Auto Connection Args - Immutable. User inputs for the auto-created PSC connections.
- Discovery
Endpoints []InstanceDiscovery Endpoint Args - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- Effective
Labels 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
[]Instance
Endpoint Args - Endpoints for the instance. Structure is documented below.
- Engine
Configs map[string]string - Optional. User-provided engine configurations for the instance.
- Engine
Version string - Optional. Engine version of the instance.
- Gcs
Source InstanceGcs Source Args - GCS source for the instance. Structure is documented below.
- Instance
Id string - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- Labels map[string]string
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - Maintenance
Policy InstanceMaintenance Policy Args - Maintenance policy for a cluster Structure is documented below.
- Maintenance
Schedules []InstanceMaintenance Schedule Args - Upcoming maintenance schedule. Structure is documented below.
- Managed
Backup InstanceSource Managed Backup Source Args - Managed backup source for the instance. Structure is documented below.
- Mode string
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are:
CLUSTER
,CLUSTER_DISABLED
. - Name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- Node
Configs []InstanceNode Config Args - Represents configuration for nodes of the instance. Structure is documented below.
- Node
Type string - Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- Persistence
Config InstancePersistence Config Args - Represents persistence configuration for a instance. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Psc
Attachment []InstanceDetails Psc Attachment Detail Args - Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
- Psc
Auto []InstanceConnections Psc Auto Connection Args - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- Pulumi
Labels map[string]string - 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 string
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- State
Infos []InstanceState Info Args - Additional information about the state of the instance. Structure is documented below.
- Transit
Encryption stringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- Uid string
- Output only. System assigned, unique identifier for the instance.
- Update
Time string - Output only. Latest update timestamp of the instance.
- Zone
Distribution InstanceConfig Zone Distribution Config Args - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- String
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- automated
Backup InstanceConfig Automated Backup Config - The automated backup config for a instance. Structure is documented below.
- backup
Collection String - The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
- create
Time String - Output only. Creation timestamp of the instance.
- cross
Instance InstanceReplication Config Cross Instance Replication Config - Cross instance replication config Structure is documented below.
- deletion
Protection BooleanEnabled - Optional. If set to true deletion of the instance will fail.
- desired
Psc List<InstanceAuto Connections Desired Psc Auto Connection> - Immutable. User inputs for the auto-created PSC connections.
- discovery
Endpoints List<InstanceDiscovery Endpoint> - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective
Labels 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<Instance
Endpoint> - Endpoints for the instance. Structure is documented below.
- engine
Configs Map<String,String> - Optional. User-provided engine configurations for the instance.
- engine
Version String - Optional. Engine version of the instance.
- gcs
Source InstanceGcs Source - GCS source for the instance. Structure is documented below.
- instance
Id String - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- labels Map<String,String>
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - maintenance
Policy InstanceMaintenance Policy - Maintenance policy for a cluster Structure is documented below.
- maintenance
Schedules List<InstanceMaintenance Schedule> - Upcoming maintenance schedule. Structure is documented below.
- managed
Backup InstanceSource Managed Backup Source - Managed backup source for the instance. Structure is documented below.
- mode String
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are:
CLUSTER
,CLUSTER_DISABLED
. - name String
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node
Configs List<InstanceNode Config> - Represents configuration for nodes of the instance. Structure is documented below.
- node
Type String - Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence
Config InstancePersistence Config - Represents persistence configuration for a instance. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- psc
Attachment List<InstanceDetails Psc Attachment Detail> - Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
- psc
Auto List<InstanceConnections Psc Auto Connection> - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- replica
Count Integer - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- shard
Count Integer - Required. Number of shards for the instance.
- state String
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- state
Infos List<InstanceState Info> - Additional information about the state of the instance. Structure is documented below.
- transit
Encryption StringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- uid String
- Output only. System assigned, unique identifier for the instance.
- update
Time String - Output only. Latest update timestamp of the instance.
- zone
Distribution InstanceConfig Zone Distribution Config - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- automated
Backup InstanceConfig Automated Backup Config - The automated backup config for a instance. Structure is documented below.
- backup
Collection string - The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
- create
Time string - Output only. Creation timestamp of the instance.
- cross
Instance InstanceReplication Config Cross Instance Replication Config - Cross instance replication config Structure is documented below.
- deletion
Protection booleanEnabled - Optional. If set to true deletion of the instance will fail.
- desired
Psc InstanceAuto Connections Desired Psc Auto Connection[] - Immutable. User inputs for the auto-created PSC connections.
- discovery
Endpoints InstanceDiscovery Endpoint[] - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective
Labels {[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
Instance
Endpoint[] - Endpoints for the instance. Structure is documented below.
- engine
Configs {[key: string]: string} - Optional. User-provided engine configurations for the instance.
- engine
Version string - Optional. Engine version of the instance.
- gcs
Source InstanceGcs Source - GCS source for the instance. Structure is documented below.
- instance
Id string - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- labels {[key: string]: string}
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - maintenance
Policy InstanceMaintenance Policy - Maintenance policy for a cluster Structure is documented below.
- maintenance
Schedules InstanceMaintenance Schedule[] - Upcoming maintenance schedule. Structure is documented below.
- managed
Backup InstanceSource Managed Backup Source - Managed backup source for the instance. Structure is documented below.
- mode string
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are:
CLUSTER
,CLUSTER_DISABLED
. - name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node
Configs InstanceNode Config[] - Represents configuration for nodes of the instance. Structure is documented below.
- node
Type string - Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence
Config InstancePersistence Config - Represents persistence configuration for a instance. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- psc
Attachment InstanceDetails Psc Attachment Detail[] - Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
- psc
Auto InstanceConnections Psc Auto Connection[] - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- replica
Count number - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- shard
Count number - Required. Number of shards for the instance.
- state string
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- state
Infos InstanceState Info[] - Additional information about the state of the instance. Structure is documented below.
- transit
Encryption stringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- uid string
- Output only. System assigned, unique identifier for the instance.
- update
Time string - Output only. Latest update timestamp of the instance.
- zone
Distribution InstanceConfig Zone Distribution Config - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- str
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- automated_
backup_ Instanceconfig Automated Backup Config Args - The automated backup config for a instance. Structure is documented below.
- backup_
collection str - The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
- create_
time str - Output only. Creation timestamp of the instance.
- cross_
instance_ Instancereplication_ config Cross Instance Replication Config Args - Cross instance replication config Structure is documented below.
- deletion_
protection_ boolenabled - Optional. If set to true deletion of the instance will fail.
- desired_
psc_ Sequence[Instanceauto_ connections Desired Psc Auto Connection Args] - Immutable. User inputs for the auto-created PSC connections.
- discovery_
endpoints Sequence[InstanceDiscovery Endpoint Args] - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpoints
Sequence[Instance
Endpoint Args] - Endpoints for the instance. Structure is documented below.
- engine_
configs Mapping[str, str] - Optional. User-provided engine configurations for the instance.
- engine_
version str - Optional. Engine version of the instance.
- gcs_
source InstanceGcs Source Args - GCS source for the instance. Structure is documented below.
- instance_
id str - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- labels Mapping[str, str]
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location str
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - maintenance_
policy InstanceMaintenance Policy Args - Maintenance policy for a cluster Structure is documented below.
- maintenance_
schedules Sequence[InstanceMaintenance Schedule Args] - Upcoming maintenance schedule. Structure is documented below.
- managed_
backup_ Instancesource Managed Backup Source Args - Managed backup source for the instance. Structure is documented below.
- mode str
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are:
CLUSTER
,CLUSTER_DISABLED
. - name str
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node_
configs Sequence[InstanceNode Config Args] - Represents configuration for nodes of the instance. Structure is documented below.
- node_
type str - Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence_
config InstancePersistence Config Args - Represents persistence configuration for a instance. Structure is documented below.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- psc_
attachment_ Sequence[Instancedetails Psc Attachment Detail Args] - Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
- psc_
auto_ Sequence[Instanceconnections Psc Auto Connection Args] - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- replica_
count int - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- shard_
count int - Required. Number of shards for the instance.
- state str
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- state_
infos Sequence[InstanceState Info Args] - Additional information about the state of the instance. Structure is documented below.
- transit_
encryption_ strmode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- uid str
- Output only. System assigned, unique identifier for the instance.
- update_
time str - Output only. Latest update timestamp of the instance.
- zone_
distribution_ Instanceconfig Zone Distribution Config Args - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- String
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- automated
Backup Property MapConfig - The automated backup config for a instance. Structure is documented below.
- backup
Collection String - The backup collection full resource name. Example: projects/{project}/locations/{location}/backupCollections/{collection}
- create
Time String - Output only. Creation timestamp of the instance.
- cross
Instance Property MapReplication Config - Cross instance replication config Structure is documented below.
- deletion
Protection BooleanEnabled - Optional. If set to true deletion of the instance will fail.
- desired
Psc List<Property Map>Auto Connections - Immutable. User inputs for the auto-created PSC connections.
- discovery
Endpoints List<Property Map> - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective
Labels 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.
- engine
Configs Map<String> - Optional. User-provided engine configurations for the instance.
- engine
Version String - Optional. Engine version of the instance.
- gcs
Source Property Map - GCS source for the instance. Structure is documented below.
- instance
Id String - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- labels Map<String>
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - maintenance
Policy Property Map - Maintenance policy for a cluster Structure is documented below.
- maintenance
Schedules List<Property Map> - Upcoming maintenance schedule. Structure is documented below.
- managed
Backup Property MapSource - Managed backup source for the instance. Structure is documented below.
- mode String
- Optional. cluster or cluster-disabled.
Possible values:
CLUSTER
CLUSTER_DISABLED
Possible values are:
CLUSTER
,CLUSTER_DISABLED
. - name String
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node
Configs List<Property Map> - Represents configuration for nodes of the instance. Structure is documented below.
- node
Type String - Optional. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence
Config Property Map - Represents persistence configuration for a instance. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- psc
Attachment List<Property Map>Details - Configuration of a service attachment of the cluster, for creating PSC connections. Structure is documented below.
- psc
Auto List<Property Map>Connections - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- replica
Count Number - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- shard
Count Number - Required. Number of shards for the instance.
- state String
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- state
Infos List<Property Map> - Additional information about the state of the instance. Structure is documented below.
- transit
Encryption StringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- uid String
- Output only. System assigned, unique identifier for the instance.
- update
Time String - Output only. Latest update timestamp of the instance.
- zone
Distribution Property MapConfig - Zone distribution configuration for allocation of instance resources. Structure is documented below.
Supporting Types
InstanceAutomatedBackupConfig, InstanceAutomatedBackupConfigArgs
- Fixed
Frequency InstanceSchedule Automated Backup Config Fixed Frequency Schedule - Trigger automated backups at a fixed frequency. Structure is documented below.
- Retention 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 InstanceSchedule Automated Backup Config Fixed Frequency Schedule - Trigger automated backups at a fixed frequency. Structure is documented below.
- Retention 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 InstanceSchedule Automated Backup Config Fixed Frequency Schedule - Trigger automated backups at a fixed frequency. Structure is documented below.
- retention 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 InstanceSchedule Automated Backup Config Fixed Frequency Schedule - Trigger automated backups at a fixed frequency. Structure is documented below.
- retention 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_ Instanceschedule Automated Backup Config Fixed Frequency Schedule - Trigger automated backups at a fixed frequency. Structure is documented below.
- retention 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"
- fixed
Frequency Property MapSchedule - Trigger automated backups at a fixed frequency. Structure is documented below.
- retention 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
- Start
Time InstanceAutomated Backup Config Fixed Frequency Schedule Start Time - 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 InstanceAutomated Backup Config Fixed Frequency Schedule Start Time - 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 InstanceAutomated Backup Config Fixed Frequency Schedule Start Time - 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 InstanceAutomated Backup Config Fixed Frequency Schedule Start Time - 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 InstanceAutomated Backup Config Fixed Frequency Schedule Start Time - 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 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 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 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 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 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 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 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
- Instance
Role string - The instance role supports the following values:
INSTANCE_ROLE_UNSPECIFIED
: This is an independent instance that has never participated in cross instance replication. It allows both reads and writes.NONE
: This is an independent instance that previously participated in cross instance replication(either as aPRIMARY
orSECONDARY
cluster). It allows both reads and writes.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.SECONDARY
: This instance replicates data from the primary instance. It allows only reads. Possible values are:INSTANCE_ROLE_UNSPECIFIED
,NONE
,PRIMARY
,SECONDARY
.
- Memberships
List<Instance
Cross Instance Replication Config Membership> - (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 InstanceCross Instance Replication Config Primary Instance - 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 List<InstanceCross Instance Replication Config Secondary Instance> - 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 string - (Output) The last time cross instance replication config was updated.
- Instance
Role string - The instance role supports the following values:
INSTANCE_ROLE_UNSPECIFIED
: This is an independent instance that has never participated in cross instance replication. It allows both reads and writes.NONE
: This is an independent instance that previously participated in cross instance replication(either as aPRIMARY
orSECONDARY
cluster). It allows both reads and writes.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.SECONDARY
: This instance replicates data from the primary instance. It allows only reads. Possible values are:INSTANCE_ROLE_UNSPECIFIED
,NONE
,PRIMARY
,SECONDARY
.
- Memberships
[]Instance
Cross Instance Replication Config Membership - (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 InstanceCross Instance Replication Config Primary Instance - 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 []InstanceCross Instance Replication Config Secondary Instance - 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 string - (Output) The last time cross instance replication config was updated.
- instance
Role String - The instance role supports the following values:
INSTANCE_ROLE_UNSPECIFIED
: This is an independent instance that has never participated in cross instance replication. It allows both reads and writes.NONE
: This is an independent instance that previously participated in cross instance replication(either as aPRIMARY
orSECONDARY
cluster). It allows both reads and writes.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.SECONDARY
: This instance replicates data from the primary instance. It allows only reads. Possible values are:INSTANCE_ROLE_UNSPECIFIED
,NONE
,PRIMARY
,SECONDARY
.
- memberships
List<Instance
Cross Instance Replication Config Membership> - (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 InstanceCross Instance Replication Config Primary Instance - 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 List<InstanceCross Instance Replication Config Secondary Instance> - 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 String - (Output) The last time cross instance replication config was updated.
- instance
Role string - The instance role supports the following values:
INSTANCE_ROLE_UNSPECIFIED
: This is an independent instance that has never participated in cross instance replication. It allows both reads and writes.NONE
: This is an independent instance that previously participated in cross instance replication(either as aPRIMARY
orSECONDARY
cluster). It allows both reads and writes.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.SECONDARY
: This instance replicates data from the primary instance. It allows only reads. Possible values are:INSTANCE_ROLE_UNSPECIFIED
,NONE
,PRIMARY
,SECONDARY
.
- memberships
Instance
Cross Instance Replication Config Membership[] - (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 InstanceCross Instance Replication Config Primary Instance - 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 InstanceCross Instance Replication Config Secondary Instance[] - 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 string - (Output) The last time cross instance replication config was updated.
- instance_
role str - The instance role supports the following values:
INSTANCE_ROLE_UNSPECIFIED
: This is an independent instance that has never participated in cross instance replication. It allows both reads and writes.NONE
: This is an independent instance that previously participated in cross instance replication(either as aPRIMARY
orSECONDARY
cluster). It allows both reads and writes.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.SECONDARY
: This instance replicates data from the primary instance. It allows only reads. Possible values are:INSTANCE_ROLE_UNSPECIFIED
,NONE
,PRIMARY
,SECONDARY
.
- memberships
Sequence[Instance
Cross Instance Replication Config Membership] - (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 InstanceCross Instance Replication Config Primary Instance - 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[InstanceCross Instance Replication Config Secondary Instance] - 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.
- instance
Role String - The instance role supports the following values:
INSTANCE_ROLE_UNSPECIFIED
: This is an independent instance that has never participated in cross instance replication. It allows both reads and writes.NONE
: This is an independent instance that previously participated in cross instance replication(either as aPRIMARY
orSECONDARY
cluster). It allows both reads and writes.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.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.
- primary
Instance 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. - secondary
Instances 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. - update
Time String - (Output) The last time cross instance replication config was updated.
InstanceCrossInstanceReplicationConfigMembership, InstanceCrossInstanceReplicationConfigMembershipArgs
- Primary
Instances List<InstanceCross Instance Replication Config Membership Primary Instance> - Details of the primary instance that is used as the replication source for all the secondary instances.
- Secondary
Instances List<InstanceCross Instance Replication Config Membership Secondary Instance> - List of secondary instances that are replicating from the primary instance.
- Primary
Instances []InstanceCross Instance Replication Config Membership Primary Instance - Details of the primary instance that is used as the replication source for all the secondary instances.
- Secondary
Instances []InstanceCross Instance Replication Config Membership Secondary Instance - List of secondary instances that are replicating from the primary instance.
- primary
Instances List<InstanceCross Instance Replication Config Membership Primary Instance> - Details of the primary instance that is used as the replication source for all the secondary instances.
- secondary
Instances List<InstanceCross Instance Replication Config Membership Secondary Instance> - List of secondary instances that are replicating from the primary instance.
- primary
Instances InstanceCross Instance Replication Config Membership Primary Instance[] - Details of the primary instance that is used as the replication source for all the secondary instances.
- secondary
Instances InstanceCross Instance Replication Config Membership Secondary Instance[] - List of secondary instances that are replicating from the primary instance.
- primary_
instances Sequence[InstanceCross Instance Replication Config Membership Primary Instance] - Details of the primary instance that is used as the replication source for all the secondary instances.
- secondary_
instances Sequence[InstanceCross Instance Replication Config Membership Secondary Instance] - List of secondary instances that are replicating from the primary instance.
- primary
Instances List<Property Map> - Details of the primary instance that is used as the replication source for all the secondary instances.
- secondary
Instances List<Property Map> - List of secondary instances that are replicating from the primary instance.
InstanceCrossInstanceReplicationConfigMembershipPrimaryInstance, InstanceCrossInstanceReplicationConfigMembershipPrimaryInstanceArgs
InstanceCrossInstanceReplicationConfigMembershipSecondaryInstance, InstanceCrossInstanceReplicationConfigMembershipSecondaryInstanceArgs
InstanceCrossInstanceReplicationConfigPrimaryInstance, InstanceCrossInstanceReplicationConfigPrimaryInstanceArgs
InstanceCrossInstanceReplicationConfigSecondaryInstance, InstanceCrossInstanceReplicationConfigSecondaryInstanceArgs
InstanceDesiredPscAutoConnection, InstanceDesiredPscAutoConnectionArgs
- network str
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- project_
id str - (Output) Output only. The consumer project_id where the forwarding rule is created from.
InstanceDiscoveryEndpoint, InstanceDiscoveryEndpointArgs
- Address string
- (Output) Output only. IP address of the exposed endpoint clients connect to.
- Network string
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- Port int
- (Output) Output only. Ports of the exposed endpoint.
- Address string
- (Output) Output only. IP address of the exposed endpoint clients connect to.
- Network string
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- Port int
- (Output) Output only. Ports of the exposed endpoint.
- address String
- (Output) Output only. IP address of the exposed endpoint clients connect to.
- network String
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- port Integer
- (Output) Output only. Ports of the exposed endpoint.
- address string
- (Output) Output only. IP address of the exposed endpoint clients connect to.
- network string
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- port number
- (Output) Output only. Ports of the exposed endpoint.
- address String
- (Output) Output only. IP address of the exposed endpoint clients connect to.
- network String
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- port Number
- (Output) Output only. Ports of the exposed endpoint.
InstanceEndpoint, InstanceEndpointArgs
- Connections
List<Instance
Endpoint Connection> - A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster. Structure is documented below.
- Connections
[]Instance
Endpoint Connection - A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster. Structure is documented below.
- connections
List<Instance
Endpoint Connection> - A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster. Structure is documented below.
- connections
Instance
Endpoint Connection[] - A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster. Structure is documented below.
- connections
Sequence[Instance
Endpoint Connection] - A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster. Structure is documented below.
- connections List<Property Map>
- A group of PSC connections. They are created in the same VPC network, one for each service attachment in the cluster. Structure is documented below.
InstanceEndpointConnection, InstanceEndpointConnectionArgs
- Psc
Auto InstanceConnection Endpoint Connection Psc Auto Connection - Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
- Psc
Auto InstanceConnection Endpoint Connection Psc Auto Connection - Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
- psc
Auto InstanceConnection Endpoint Connection Psc Auto Connection - Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
- psc
Auto InstanceConnection Endpoint Connection Psc Auto Connection - Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
- psc_
auto_ Instanceconnection Endpoint Connection Psc Auto Connection - Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
- psc
Auto Property MapConnection - Detailed information of a PSC connection that is created through service connectivity automation. Structure is documented below.
InstanceEndpointConnectionPscAutoConnection, InstanceEndpointConnectionPscAutoConnectionArgs
- Connection
Type string - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- Forwarding
Rule string - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- Ip
Address 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.
- Project
Id string - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- Psc
Connection stringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- Service
Attachment 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 string - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- Forwarding
Rule string - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- Ip
Address 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.
- Project
Id string - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- Psc
Connection stringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- Service
Attachment 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 String - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- forwarding
Rule String - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- ip
Address 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.
- project
Id String - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- psc
Connection StringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- service
Attachment 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 string - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- forwarding
Rule string - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- ip
Address 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.
- project
Id string - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- psc
Connection stringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- service
Attachment string - (Output) Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
- connection_
type str - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- forwarding_
rule str - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- ip_
address str - (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- network str
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- port int
- (Output) Output only. Ports of the exposed endpoint.
- project_
id str - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- psc_
connection_ strid - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- service_
attachment str - (Output) Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
- connection
Type String - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- forwarding
Rule String - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- ip
Address 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.
- project
Id String - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- psc
Connection StringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- service
Attachment 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}.
InstanceGcsSource, InstanceGcsSourceArgs
- Uris List<string>
- URIs of the GCS objects to import. Example: gs://bucket1/object1, gs//bucket2/folder2/object2
- Uris []string
- URIs of the GCS objects to import. Example: gs://bucket1/object1, gs//bucket2/folder2/object2
- uris List<String>
- URIs of the GCS objects to import. Example: gs://bucket1/object1, gs//bucket2/folder2/object2
- uris string[]
- URIs of the GCS objects to import. Example: gs://bucket1/object1, gs//bucket2/folder2/object2
- uris Sequence[str]
- URIs of the GCS objects to import. Example: gs://bucket1/object1, gs//bucket2/folder2/object2
- uris List<String>
- URIs of the GCS objects to import. Example: gs://bucket1/object1, gs//bucket2/folder2/object2
InstanceMaintenancePolicy, InstanceMaintenancePolicyArgs
- Create
Time 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.
- Update
Time 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.
- Weekly
Maintenance List<InstanceWindows Maintenance Policy Weekly Maintenance Window> - 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 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.
- Update
Time 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.
- Weekly
Maintenance []InstanceWindows Maintenance Policy Weekly Maintenance Window - 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 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.
- update
Time 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.
- weekly
Maintenance List<InstanceWindows Maintenance Policy Weekly Maintenance Window> - 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 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.
- update
Time 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.
- weekly
Maintenance InstanceWindows Maintenance Policy Weekly Maintenance Window[] - 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_ Sequence[Instancewindows Maintenance Policy Weekly Maintenance Window] - 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 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.
- update
Time 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.
- weekly
Maintenance List<Property Map>Windows - 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 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
.
- Start
Time InstanceMaintenance Policy Weekly Maintenance Window Start Time - 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 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
.
- Start
Time InstanceMaintenance Policy Weekly Maintenance Window Start Time - 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 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
.
- start
Time InstanceMaintenance Policy Weekly Maintenance Window Start Time - 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 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
.
- start
Time InstanceMaintenance Policy Weekly Maintenance Window Start Time - 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 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 InstanceMaintenance Policy Weekly Maintenance Window Start Time - 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 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
.
- start
Time 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
- End
Time 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.
- Schedule
Deadline stringTime - (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 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 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.
- Schedule
Deadline stringTime - (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 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 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.
- schedule
Deadline StringTime - (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 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 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.
- schedule
Deadline stringTime - (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 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_ strtime - (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.
- end
Time 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.
- schedule
Deadline StringTime - (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 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.
InstanceManagedBackupSource, InstanceManagedBackupSourceArgs
- Backup string
- Example: //memorystore.googleapis.com/projects/{project}/locations/{location}/backups/{backupId}. In this case, it assumes the backup is under memorystore.googleapis.com.
- Backup string
- Example: //memorystore.googleapis.com/projects/{project}/locations/{location}/backups/{backupId}. In this case, it assumes the backup is under memorystore.googleapis.com.
- backup String
- Example: //memorystore.googleapis.com/projects/{project}/locations/{location}/backups/{backupId}. In this case, it assumes the backup is under memorystore.googleapis.com.
- backup string
- Example: //memorystore.googleapis.com/projects/{project}/locations/{location}/backups/{backupId}. In this case, it assumes the backup is under memorystore.googleapis.com.
- backup str
- Example: //memorystore.googleapis.com/projects/{project}/locations/{location}/backups/{backupId}. In this case, it assumes the backup is under memorystore.googleapis.com.
- backup String
- Example: //memorystore.googleapis.com/projects/{project}/locations/{location}/backups/{backupId}. In this case, it assumes the backup is under memorystore.googleapis.com.
InstanceNodeConfig, InstanceNodeConfigArgs
- Size
Gb double - (Output) Output only. Memory size in GB of the node.
- Size
Gb float64 - (Output) Output only. Memory size in GB of the node.
- size
Gb Double - (Output) Output only. Memory size in GB of the node.
- size
Gb number - (Output) Output only. Memory size in GB of the node.
- size_
gb float - (Output) Output only. Memory size in GB of the node.
- size
Gb Number - (Output) Output only. Memory size in GB of the node.
InstancePersistenceConfig, InstancePersistenceConfigArgs
- Aof
Config InstancePersistence Config Aof Config - Configuration for AOF based persistence. Structure is documented below.
- Mode string
- Optional. Current persistence mode.
Possible values:
DISABLED
RDB
AOF
Possible values are:
DISABLED
,RDB
,AOF
. - Rdb
Config InstancePersistence Config Rdb Config - Configuration for RDB based persistence. Structure is documented below.
- Aof
Config InstancePersistence Config Aof Config - Configuration for AOF based persistence. Structure is documented below.
- Mode string
- Optional. Current persistence mode.
Possible values:
DISABLED
RDB
AOF
Possible values are:
DISABLED
,RDB
,AOF
. - Rdb
Config InstancePersistence Config Rdb Config - Configuration for RDB based persistence. Structure is documented below.
- aof
Config InstancePersistence Config Aof Config - Configuration for AOF based persistence. Structure is documented below.
- mode String
- Optional. Current persistence mode.
Possible values:
DISABLED
RDB
AOF
Possible values are:
DISABLED
,RDB
,AOF
. - rdb
Config InstancePersistence Config Rdb Config - Configuration for RDB based persistence. Structure is documented below.
- aof
Config InstancePersistence Config Aof Config - Configuration for AOF based persistence. Structure is documented below.
- mode string
- Optional. Current persistence mode.
Possible values:
DISABLED
RDB
AOF
Possible values are:
DISABLED
,RDB
,AOF
. - rdb
Config InstancePersistence Config Rdb Config - Configuration for RDB based persistence. Structure is documented below.
- aof_
config InstancePersistence Config Aof Config - Configuration for AOF based persistence. Structure is documented below.
- mode str
- Optional. Current persistence mode.
Possible values:
DISABLED
RDB
AOF
Possible values are:
DISABLED
,RDB
,AOF
. - rdb_
config InstancePersistence Config Rdb Config - Configuration for RDB based persistence. Structure is documented below.
- aof
Config 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
. - rdb
Config Property Map - Configuration for RDB based persistence. Structure is documented below.
InstancePersistenceConfigAofConfig, InstancePersistenceConfigAofConfigArgs
- Append
Fsync string - Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
- Append
Fsync string - Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
- append
Fsync String - Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
- append
Fsync string - Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
- append_
fsync str - Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
- append
Fsync String - Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
InstancePersistenceConfigRdbConfig, InstancePersistenceConfigRdbConfigArgs
- Rdb
Snapshot stringPeriod - Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- Rdb
Snapshot stringStart Time - Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
- Rdb
Snapshot stringPeriod - Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- Rdb
Snapshot stringStart Time - Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
- rdb
Snapshot StringPeriod - Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- rdb
Snapshot StringStart Time - Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
- rdb
Snapshot stringPeriod - Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- rdb
Snapshot stringStart Time - Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
- rdb_
snapshot_ strperiod - Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- rdb_
snapshot_ strstart_ time - Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
- rdb
Snapshot StringPeriod - Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- rdb
Snapshot StringStart Time - Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
InstancePscAttachmentDetail, InstancePscAttachmentDetailArgs
- Connection
Type string - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- Service
Attachment 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 string - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- Service
Attachment 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 String - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- service
Attachment 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 string - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- service
Attachment 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}.
- connection
Type String - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- service
Attachment 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
- Connection
Type string - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- Forwarding
Rule string - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- Ip
Address 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.
- Project
Id string - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- Psc
Connection stringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- Psc
Connection stringStatus - (Output) Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Possible values: ACTIVE NOT_FOUND
- Service
Attachment 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 string - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- Forwarding
Rule string - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- Ip
Address 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.
- Project
Id string - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- Psc
Connection stringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- Psc
Connection stringStatus - (Output) Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Possible values: ACTIVE NOT_FOUND
- Service
Attachment 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 String - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- forwarding
Rule String - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- ip
Address 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.
- project
Id String - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- psc
Connection StringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- psc
Connection StringStatus - (Output) Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Possible values: ACTIVE NOT_FOUND
- service
Attachment 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 string - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- forwarding
Rule string - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- ip
Address 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.
- project
Id string - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- psc
Connection stringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- psc
Connection stringStatus - (Output) Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Possible values: ACTIVE NOT_FOUND
- service
Attachment string - (Output) Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
- connection_
type str - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- forwarding_
rule str - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- ip_
address str - (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- network str
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- port int
- (Output) Output only. Ports of the exposed endpoint.
- project_
id str - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- psc_
connection_ strid - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- psc_
connection_ strstatus - (Output) Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Possible values: ACTIVE NOT_FOUND
- service_
attachment str - (Output) Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.
- connection
Type String - (Output) Output Only. Type of a PSC Connection. Possible values: CONNECTION_TYPE_DISCOVERY CONNECTION_TYPE_PRIMARY CONNECTION_TYPE_READER
- forwarding
Rule String - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- ip
Address 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.
- project
Id String - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- psc
Connection StringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- psc
Connection StringStatus - (Output) Output Only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Possible values: ACTIVE NOT_FOUND
- service
Attachment 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
- Update
Infos List<InstanceState Info Update Info> - (Output) Represents information about instance with state UPDATING. Structure is documented below.
- Update
Infos []InstanceState Info Update Info - (Output) Represents information about instance with state UPDATING. Structure is documented below.
- update
Infos List<InstanceState Info Update Info> - (Output) Represents information about instance with state UPDATING. Structure is documented below.
- update
Infos InstanceState Info Update Info[] - (Output) Represents information about instance with state UPDATING. Structure is documented below.
- update_
infos Sequence[InstanceState Info Update Info] - (Output) Represents information about instance with state UPDATING. Structure is documented below.
- update
Infos List<Property Map> - (Output) Represents information about instance with state UPDATING. Structure is documented below.
InstanceStateInfoUpdateInfo, InstanceStateInfoUpdateInfoArgs
- Target
Engine stringVersion - (Output) Output only. Target engine version for the instance.
- Target
Node stringType - (Output) Output only. Target node type for the instance.
- Target
Replica intCount - (Output) Output only. Target number of replica nodes per shard for the instance.
- Target
Shard intCount - (Output) Output only. Target number of shards for the instance.
- Target
Engine stringVersion - (Output) Output only. Target engine version for the instance.
- Target
Node stringType - (Output) Output only. Target node type for the instance.
- Target
Replica intCount - (Output) Output only. Target number of replica nodes per shard for the instance.
- Target
Shard intCount - (Output) Output only. Target number of shards for the instance.
- target
Engine StringVersion - (Output) Output only. Target engine version for the instance.
- target
Node StringType - (Output) Output only. Target node type for the instance.
- target
Replica IntegerCount - (Output) Output only. Target number of replica nodes per shard for the instance.
- target
Shard IntegerCount - (Output) Output only. Target number of shards for the instance.
- target
Engine stringVersion - (Output) Output only. Target engine version for the instance.
- target
Node stringType - (Output) Output only. Target node type for the instance.
- target
Replica numberCount - (Output) Output only. Target number of replica nodes per shard for the instance.
- target
Shard numberCount - (Output) Output only. Target number of shards for the instance.
- target_
engine_ strversion - (Output) Output only. Target engine version for the instance.
- target_
node_ strtype - (Output) Output only. Target node type for the instance.
- target_
replica_ intcount - (Output) Output only. Target number of replica nodes per shard for the instance.
- target_
shard_ intcount - (Output) Output only. Target number of shards for the instance.
- target
Engine StringVersion - (Output) Output only. Target engine version for the instance.
- target
Node StringType - (Output) Output only. Target node type for the instance.
- target
Replica NumberCount - (Output) Output only. Target number of replica nodes per shard for the instance.
- target
Shard NumberCount - (Output) Output only. Target number of shards for the instance.
InstanceZoneDistributionConfig, InstanceZoneDistributionConfigArgs
Import
Instance can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/instances/{{instance_id}}
{{project}}/{{location}}/{{instance_id}}
{{location}}/{{instance_id}}
When using the pulumi import
command, Instance can be imported using one of the formats above. For example:
$ pulumi import gcp:memorystore/instance:Instance default projects/{{project}}/locations/{{location}}/instances/{{instance_id}}
$ pulumi import gcp:memorystore/instance:Instance default {{project}}/{{location}}/{{instance_id}}
$ pulumi import gcp:memorystore/instance:Instance default {{location}}/{{instance_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.