gcp.redis.Cluster
Explore with Pulumi AI
A Google Cloud Redis Cluster instance.
To get more information about Cluster, see:
- API documentation
- How-to Guides
Example Usage
Redis Cluster Ha
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const producerNet = new gcp.compute.Network("producer_net", {
name: "mynetwork",
autoCreateSubnetworks: false,
});
const producerSubnet = new gcp.compute.Subnetwork("producer_subnet", {
name: "mysubnet",
ipCidrRange: "10.0.0.248/29",
region: "us-central1",
network: producerNet.id,
});
const _default = new gcp.networkconnectivity.ServiceConnectionPolicy("default", {
name: "mypolicy",
location: "us-central1",
serviceClass: "gcp-memorystore-redis",
description: "my basic service connection policy",
network: producerNet.id,
pscConfig: {
subnetworks: [producerSubnet.id],
},
});
const cluster_ha = new gcp.redis.Cluster("cluster-ha", {
name: "ha-cluster",
shardCount: 3,
pscConfigs: [{
network: producerNet.id,
}],
region: "us-central1",
replicaCount: 1,
nodeType: "REDIS_SHARED_CORE_NANO",
transitEncryptionMode: "TRANSIT_ENCRYPTION_MODE_DISABLED",
authorizationMode: "AUTH_MODE_DISABLED",
redisConfigs: {
"maxmemory-policy": "volatile-ttl",
},
deletionProtectionEnabled: true,
zoneDistributionConfig: {
mode: "MULTI_ZONE",
},
maintenancePolicy: {
weeklyMaintenanceWindows: [{
day: "MONDAY",
startTime: {
hours: 1,
minutes: 0,
seconds: 0,
nanos: 0,
},
}],
},
}, {
dependsOn: [_default],
});
import pulumi
import pulumi_gcp as gcp
producer_net = gcp.compute.Network("producer_net",
name="mynetwork",
auto_create_subnetworks=False)
producer_subnet = gcp.compute.Subnetwork("producer_subnet",
name="mysubnet",
ip_cidr_range="10.0.0.248/29",
region="us-central1",
network=producer_net.id)
default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
name="mypolicy",
location="us-central1",
service_class="gcp-memorystore-redis",
description="my basic service connection policy",
network=producer_net.id,
psc_config={
"subnetworks": [producer_subnet.id],
})
cluster_ha = gcp.redis.Cluster("cluster-ha",
name="ha-cluster",
shard_count=3,
psc_configs=[{
"network": producer_net.id,
}],
region="us-central1",
replica_count=1,
node_type="REDIS_SHARED_CORE_NANO",
transit_encryption_mode="TRANSIT_ENCRYPTION_MODE_DISABLED",
authorization_mode="AUTH_MODE_DISABLED",
redis_configs={
"maxmemory-policy": "volatile-ttl",
},
deletion_protection_enabled=True,
zone_distribution_config={
"mode": "MULTI_ZONE",
},
maintenance_policy={
"weekly_maintenance_windows": [{
"day": "MONDAY",
"start_time": {
"hours": 1,
"minutes": 0,
"seconds": 0,
"nanos": 0,
},
}],
},
opts = pulumi.ResourceOptions(depends_on=[default]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networkconnectivity"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/redis"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
producerNet, err := compute.NewNetwork(ctx, "producer_net", &compute.NetworkArgs{
Name: pulumi.String("mynetwork"),
AutoCreateSubnetworks: pulumi.Bool(false),
})
if err != nil {
return err
}
producerSubnet, err := compute.NewSubnetwork(ctx, "producer_subnet", &compute.SubnetworkArgs{
Name: pulumi.String("mysubnet"),
IpCidrRange: pulumi.String("10.0.0.248/29"),
Region: pulumi.String("us-central1"),
Network: producerNet.ID(),
})
if err != nil {
return err
}
_, err = networkconnectivity.NewServiceConnectionPolicy(ctx, "default", &networkconnectivity.ServiceConnectionPolicyArgs{
Name: pulumi.String("mypolicy"),
Location: pulumi.String("us-central1"),
ServiceClass: pulumi.String("gcp-memorystore-redis"),
Description: pulumi.String("my basic service connection policy"),
Network: producerNet.ID(),
PscConfig: &networkconnectivity.ServiceConnectionPolicyPscConfigArgs{
Subnetworks: pulumi.StringArray{
producerSubnet.ID(),
},
},
})
if err != nil {
return err
}
_, err = redis.NewCluster(ctx, "cluster-ha", &redis.ClusterArgs{
Name: pulumi.String("ha-cluster"),
ShardCount: pulumi.Int(3),
PscConfigs: redis.ClusterPscConfigArray{
&redis.ClusterPscConfigArgs{
Network: producerNet.ID(),
},
},
Region: pulumi.String("us-central1"),
ReplicaCount: pulumi.Int(1),
NodeType: pulumi.String("REDIS_SHARED_CORE_NANO"),
TransitEncryptionMode: pulumi.String("TRANSIT_ENCRYPTION_MODE_DISABLED"),
AuthorizationMode: pulumi.String("AUTH_MODE_DISABLED"),
RedisConfigs: pulumi.StringMap{
"maxmemory-policy": pulumi.String("volatile-ttl"),
},
DeletionProtectionEnabled: pulumi.Bool(true),
ZoneDistributionConfig: &redis.ClusterZoneDistributionConfigArgs{
Mode: pulumi.String("MULTI_ZONE"),
},
MaintenancePolicy: &redis.ClusterMaintenancePolicyArgs{
WeeklyMaintenanceWindows: redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowArray{
&redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs{
Day: pulumi.String("MONDAY"),
StartTime: &redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs{
Hours: pulumi.Int(1),
Minutes: pulumi.Int(0),
Seconds: pulumi.Int(0),
Nanos: pulumi.Int(0),
},
},
},
},
}, pulumi.DependsOn([]pulumi.Resource{
_default,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var producerNet = new Gcp.Compute.Network("producer_net", new()
{
Name = "mynetwork",
AutoCreateSubnetworks = false,
});
var producerSubnet = new Gcp.Compute.Subnetwork("producer_subnet", new()
{
Name = "mysubnet",
IpCidrRange = "10.0.0.248/29",
Region = "us-central1",
Network = producerNet.Id,
});
var @default = new Gcp.NetworkConnectivity.ServiceConnectionPolicy("default", new()
{
Name = "mypolicy",
Location = "us-central1",
ServiceClass = "gcp-memorystore-redis",
Description = "my basic service connection policy",
Network = producerNet.Id,
PscConfig = new Gcp.NetworkConnectivity.Inputs.ServiceConnectionPolicyPscConfigArgs
{
Subnetworks = new[]
{
producerSubnet.Id,
},
},
});
var cluster_ha = new Gcp.Redis.Cluster("cluster-ha", new()
{
Name = "ha-cluster",
ShardCount = 3,
PscConfigs = new[]
{
new Gcp.Redis.Inputs.ClusterPscConfigArgs
{
Network = producerNet.Id,
},
},
Region = "us-central1",
ReplicaCount = 1,
NodeType = "REDIS_SHARED_CORE_NANO",
TransitEncryptionMode = "TRANSIT_ENCRYPTION_MODE_DISABLED",
AuthorizationMode = "AUTH_MODE_DISABLED",
RedisConfigs =
{
{ "maxmemory-policy", "volatile-ttl" },
},
DeletionProtectionEnabled = true,
ZoneDistributionConfig = new Gcp.Redis.Inputs.ClusterZoneDistributionConfigArgs
{
Mode = "MULTI_ZONE",
},
MaintenancePolicy = new Gcp.Redis.Inputs.ClusterMaintenancePolicyArgs
{
WeeklyMaintenanceWindows = new[]
{
new Gcp.Redis.Inputs.ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs
{
Day = "MONDAY",
StartTime = new Gcp.Redis.Inputs.ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs
{
Hours = 1,
Minutes = 0,
Seconds = 0,
Nanos = 0,
},
},
},
},
}, new CustomResourceOptions
{
DependsOn =
{
@default,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.Subnetwork;
import com.pulumi.gcp.compute.SubnetworkArgs;
import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicy;
import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicyArgs;
import com.pulumi.gcp.networkconnectivity.inputs.ServiceConnectionPolicyPscConfigArgs;
import com.pulumi.gcp.redis.Cluster;
import com.pulumi.gcp.redis.ClusterArgs;
import com.pulumi.gcp.redis.inputs.ClusterPscConfigArgs;
import com.pulumi.gcp.redis.inputs.ClusterZoneDistributionConfigArgs;
import com.pulumi.gcp.redis.inputs.ClusterMaintenancePolicyArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var producerNet = new Network("producerNet", NetworkArgs.builder()
.name("mynetwork")
.autoCreateSubnetworks(false)
.build());
var producerSubnet = new Subnetwork("producerSubnet", SubnetworkArgs.builder()
.name("mysubnet")
.ipCidrRange("10.0.0.248/29")
.region("us-central1")
.network(producerNet.id())
.build());
var default_ = new ServiceConnectionPolicy("default", ServiceConnectionPolicyArgs.builder()
.name("mypolicy")
.location("us-central1")
.serviceClass("gcp-memorystore-redis")
.description("my basic service connection policy")
.network(producerNet.id())
.pscConfig(ServiceConnectionPolicyPscConfigArgs.builder()
.subnetworks(producerSubnet.id())
.build())
.build());
var cluster_ha = new Cluster("cluster-ha", ClusterArgs.builder()
.name("ha-cluster")
.shardCount(3)
.pscConfigs(ClusterPscConfigArgs.builder()
.network(producerNet.id())
.build())
.region("us-central1")
.replicaCount(1)
.nodeType("REDIS_SHARED_CORE_NANO")
.transitEncryptionMode("TRANSIT_ENCRYPTION_MODE_DISABLED")
.authorizationMode("AUTH_MODE_DISABLED")
.redisConfigs(Map.of("maxmemory-policy", "volatile-ttl"))
.deletionProtectionEnabled(true)
.zoneDistributionConfig(ClusterZoneDistributionConfigArgs.builder()
.mode("MULTI_ZONE")
.build())
.maintenancePolicy(ClusterMaintenancePolicyArgs.builder()
.weeklyMaintenanceWindows(ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs.builder()
.day("MONDAY")
.startTime(ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs.builder()
.hours(1)
.minutes(0)
.seconds(0)
.nanos(0)
.build())
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(default_)
.build());
}
}
resources:
cluster-ha:
type: gcp:redis:Cluster
properties:
name: ha-cluster
shardCount: 3
pscConfigs:
- network: ${producerNet.id}
region: us-central1
replicaCount: 1
nodeType: REDIS_SHARED_CORE_NANO
transitEncryptionMode: TRANSIT_ENCRYPTION_MODE_DISABLED
authorizationMode: AUTH_MODE_DISABLED
redisConfigs:
maxmemory-policy: volatile-ttl
deletionProtectionEnabled: true
zoneDistributionConfig:
mode: MULTI_ZONE
maintenancePolicy:
weeklyMaintenanceWindows:
- day: MONDAY
startTime:
hours: 1
minutes: 0
seconds: 0
nanos: 0
options:
dependson:
- ${default}
default:
type: gcp:networkconnectivity:ServiceConnectionPolicy
properties:
name: mypolicy
location: us-central1
serviceClass: gcp-memorystore-redis
description: my basic service connection policy
network: ${producerNet.id}
pscConfig:
subnetworks:
- ${producerSubnet.id}
producerSubnet:
type: gcp:compute:Subnetwork
name: producer_subnet
properties:
name: mysubnet
ipCidrRange: 10.0.0.248/29
region: us-central1
network: ${producerNet.id}
producerNet:
type: gcp:compute:Network
name: producer_net
properties:
name: mynetwork
autoCreateSubnetworks: false
Redis Cluster Ha Single Zone
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const producerNet = new gcp.compute.Network("producer_net", {
name: "mynetwork",
autoCreateSubnetworks: false,
});
const producerSubnet = new gcp.compute.Subnetwork("producer_subnet", {
name: "mysubnet",
ipCidrRange: "10.0.0.248/29",
region: "us-central1",
network: producerNet.id,
});
const _default = new gcp.networkconnectivity.ServiceConnectionPolicy("default", {
name: "mypolicy",
location: "us-central1",
serviceClass: "gcp-memorystore-redis",
description: "my basic service connection policy",
network: producerNet.id,
pscConfig: {
subnetworks: [producerSubnet.id],
},
});
const cluster_ha_single_zone = new gcp.redis.Cluster("cluster-ha-single-zone", {
name: "ha-cluster-single-zone",
shardCount: 3,
pscConfigs: [{
network: producerNet.id,
}],
region: "us-central1",
zoneDistributionConfig: {
mode: "SINGLE_ZONE",
zone: "us-central1-f",
},
maintenancePolicy: {
weeklyMaintenanceWindows: [{
day: "MONDAY",
startTime: {
hours: 1,
minutes: 0,
seconds: 0,
nanos: 0,
},
}],
},
deletionProtectionEnabled: true,
}, {
dependsOn: [_default],
});
import pulumi
import pulumi_gcp as gcp
producer_net = gcp.compute.Network("producer_net",
name="mynetwork",
auto_create_subnetworks=False)
producer_subnet = gcp.compute.Subnetwork("producer_subnet",
name="mysubnet",
ip_cidr_range="10.0.0.248/29",
region="us-central1",
network=producer_net.id)
default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
name="mypolicy",
location="us-central1",
service_class="gcp-memorystore-redis",
description="my basic service connection policy",
network=producer_net.id,
psc_config={
"subnetworks": [producer_subnet.id],
})
cluster_ha_single_zone = gcp.redis.Cluster("cluster-ha-single-zone",
name="ha-cluster-single-zone",
shard_count=3,
psc_configs=[{
"network": producer_net.id,
}],
region="us-central1",
zone_distribution_config={
"mode": "SINGLE_ZONE",
"zone": "us-central1-f",
},
maintenance_policy={
"weekly_maintenance_windows": [{
"day": "MONDAY",
"start_time": {
"hours": 1,
"minutes": 0,
"seconds": 0,
"nanos": 0,
},
}],
},
deletion_protection_enabled=True,
opts = pulumi.ResourceOptions(depends_on=[default]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networkconnectivity"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/redis"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
producerNet, err := compute.NewNetwork(ctx, "producer_net", &compute.NetworkArgs{
Name: pulumi.String("mynetwork"),
AutoCreateSubnetworks: pulumi.Bool(false),
})
if err != nil {
return err
}
producerSubnet, err := compute.NewSubnetwork(ctx, "producer_subnet", &compute.SubnetworkArgs{
Name: pulumi.String("mysubnet"),
IpCidrRange: pulumi.String("10.0.0.248/29"),
Region: pulumi.String("us-central1"),
Network: producerNet.ID(),
})
if err != nil {
return err
}
_, err = networkconnectivity.NewServiceConnectionPolicy(ctx, "default", &networkconnectivity.ServiceConnectionPolicyArgs{
Name: pulumi.String("mypolicy"),
Location: pulumi.String("us-central1"),
ServiceClass: pulumi.String("gcp-memorystore-redis"),
Description: pulumi.String("my basic service connection policy"),
Network: producerNet.ID(),
PscConfig: &networkconnectivity.ServiceConnectionPolicyPscConfigArgs{
Subnetworks: pulumi.StringArray{
producerSubnet.ID(),
},
},
})
if err != nil {
return err
}
_, err = redis.NewCluster(ctx, "cluster-ha-single-zone", &redis.ClusterArgs{
Name: pulumi.String("ha-cluster-single-zone"),
ShardCount: pulumi.Int(3),
PscConfigs: redis.ClusterPscConfigArray{
&redis.ClusterPscConfigArgs{
Network: producerNet.ID(),
},
},
Region: pulumi.String("us-central1"),
ZoneDistributionConfig: &redis.ClusterZoneDistributionConfigArgs{
Mode: pulumi.String("SINGLE_ZONE"),
Zone: pulumi.String("us-central1-f"),
},
MaintenancePolicy: &redis.ClusterMaintenancePolicyArgs{
WeeklyMaintenanceWindows: redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowArray{
&redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs{
Day: pulumi.String("MONDAY"),
StartTime: &redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs{
Hours: pulumi.Int(1),
Minutes: pulumi.Int(0),
Seconds: pulumi.Int(0),
Nanos: pulumi.Int(0),
},
},
},
},
DeletionProtectionEnabled: pulumi.Bool(true),
}, pulumi.DependsOn([]pulumi.Resource{
_default,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var producerNet = new Gcp.Compute.Network("producer_net", new()
{
Name = "mynetwork",
AutoCreateSubnetworks = false,
});
var producerSubnet = new Gcp.Compute.Subnetwork("producer_subnet", new()
{
Name = "mysubnet",
IpCidrRange = "10.0.0.248/29",
Region = "us-central1",
Network = producerNet.Id,
});
var @default = new Gcp.NetworkConnectivity.ServiceConnectionPolicy("default", new()
{
Name = "mypolicy",
Location = "us-central1",
ServiceClass = "gcp-memorystore-redis",
Description = "my basic service connection policy",
Network = producerNet.Id,
PscConfig = new Gcp.NetworkConnectivity.Inputs.ServiceConnectionPolicyPscConfigArgs
{
Subnetworks = new[]
{
producerSubnet.Id,
},
},
});
var cluster_ha_single_zone = new Gcp.Redis.Cluster("cluster-ha-single-zone", new()
{
Name = "ha-cluster-single-zone",
ShardCount = 3,
PscConfigs = new[]
{
new Gcp.Redis.Inputs.ClusterPscConfigArgs
{
Network = producerNet.Id,
},
},
Region = "us-central1",
ZoneDistributionConfig = new Gcp.Redis.Inputs.ClusterZoneDistributionConfigArgs
{
Mode = "SINGLE_ZONE",
Zone = "us-central1-f",
},
MaintenancePolicy = new Gcp.Redis.Inputs.ClusterMaintenancePolicyArgs
{
WeeklyMaintenanceWindows = new[]
{
new Gcp.Redis.Inputs.ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs
{
Day = "MONDAY",
StartTime = new Gcp.Redis.Inputs.ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs
{
Hours = 1,
Minutes = 0,
Seconds = 0,
Nanos = 0,
},
},
},
},
DeletionProtectionEnabled = true,
}, new CustomResourceOptions
{
DependsOn =
{
@default,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.Subnetwork;
import com.pulumi.gcp.compute.SubnetworkArgs;
import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicy;
import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicyArgs;
import com.pulumi.gcp.networkconnectivity.inputs.ServiceConnectionPolicyPscConfigArgs;
import com.pulumi.gcp.redis.Cluster;
import com.pulumi.gcp.redis.ClusterArgs;
import com.pulumi.gcp.redis.inputs.ClusterPscConfigArgs;
import com.pulumi.gcp.redis.inputs.ClusterZoneDistributionConfigArgs;
import com.pulumi.gcp.redis.inputs.ClusterMaintenancePolicyArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var producerNet = new Network("producerNet", NetworkArgs.builder()
.name("mynetwork")
.autoCreateSubnetworks(false)
.build());
var producerSubnet = new Subnetwork("producerSubnet", SubnetworkArgs.builder()
.name("mysubnet")
.ipCidrRange("10.0.0.248/29")
.region("us-central1")
.network(producerNet.id())
.build());
var default_ = new ServiceConnectionPolicy("default", ServiceConnectionPolicyArgs.builder()
.name("mypolicy")
.location("us-central1")
.serviceClass("gcp-memorystore-redis")
.description("my basic service connection policy")
.network(producerNet.id())
.pscConfig(ServiceConnectionPolicyPscConfigArgs.builder()
.subnetworks(producerSubnet.id())
.build())
.build());
var cluster_ha_single_zone = new Cluster("cluster-ha-single-zone", ClusterArgs.builder()
.name("ha-cluster-single-zone")
.shardCount(3)
.pscConfigs(ClusterPscConfigArgs.builder()
.network(producerNet.id())
.build())
.region("us-central1")
.zoneDistributionConfig(ClusterZoneDistributionConfigArgs.builder()
.mode("SINGLE_ZONE")
.zone("us-central1-f")
.build())
.maintenancePolicy(ClusterMaintenancePolicyArgs.builder()
.weeklyMaintenanceWindows(ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs.builder()
.day("MONDAY")
.startTime(ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs.builder()
.hours(1)
.minutes(0)
.seconds(0)
.nanos(0)
.build())
.build())
.build())
.deletionProtectionEnabled(true)
.build(), CustomResourceOptions.builder()
.dependsOn(default_)
.build());
}
}
resources:
cluster-ha-single-zone:
type: gcp:redis:Cluster
properties:
name: ha-cluster-single-zone
shardCount: 3
pscConfigs:
- network: ${producerNet.id}
region: us-central1
zoneDistributionConfig:
mode: SINGLE_ZONE
zone: us-central1-f
maintenancePolicy:
weeklyMaintenanceWindows:
- day: MONDAY
startTime:
hours: 1
minutes: 0
seconds: 0
nanos: 0
deletionProtectionEnabled: true
options:
dependson:
- ${default}
default:
type: gcp:networkconnectivity:ServiceConnectionPolicy
properties:
name: mypolicy
location: us-central1
serviceClass: gcp-memorystore-redis
description: my basic service connection policy
network: ${producerNet.id}
pscConfig:
subnetworks:
- ${producerSubnet.id}
producerSubnet:
type: gcp:compute:Subnetwork
name: producer_subnet
properties:
name: mysubnet
ipCidrRange: 10.0.0.248/29
region: us-central1
network: ${producerNet.id}
producerNet:
type: gcp:compute:Network
name: producer_net
properties:
name: mynetwork
autoCreateSubnetworks: false
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
args: ClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
psc_configs: Optional[Sequence[ClusterPscConfigArgs]] = None,
shard_count: Optional[int] = None,
name: Optional[str] = None,
authorization_mode: Optional[str] = None,
node_type: Optional[str] = None,
project: Optional[str] = None,
maintenance_policy: Optional[ClusterMaintenancePolicyArgs] = None,
redis_configs: Optional[Mapping[str, str]] = None,
region: Optional[str] = None,
replica_count: Optional[int] = None,
deletion_protection_enabled: Optional[bool] = None,
transit_encryption_mode: Optional[str] = None,
zone_distribution_config: Optional[ClusterZoneDistributionConfigArgs] = None)
func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: gcp:redis:Cluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleclusterResourceResourceFromRediscluster = new Gcp.Redis.Cluster("exampleclusterResourceResourceFromRediscluster", new()
{
PscConfigs = new[]
{
new Gcp.Redis.Inputs.ClusterPscConfigArgs
{
Network = "string",
},
},
ShardCount = 0,
Name = "string",
AuthorizationMode = "string",
NodeType = "string",
Project = "string",
MaintenancePolicy = new Gcp.Redis.Inputs.ClusterMaintenancePolicyArgs
{
CreateTime = "string",
UpdateTime = "string",
WeeklyMaintenanceWindows = new[]
{
new Gcp.Redis.Inputs.ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs
{
Day = "string",
StartTime = new Gcp.Redis.Inputs.ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs
{
Hours = 0,
Minutes = 0,
Nanos = 0,
Seconds = 0,
},
Duration = "string",
},
},
},
RedisConfigs =
{
{ "string", "string" },
},
Region = "string",
ReplicaCount = 0,
DeletionProtectionEnabled = false,
TransitEncryptionMode = "string",
ZoneDistributionConfig = new Gcp.Redis.Inputs.ClusterZoneDistributionConfigArgs
{
Mode = "string",
Zone = "string",
},
});
example, err := redis.NewCluster(ctx, "exampleclusterResourceResourceFromRediscluster", &redis.ClusterArgs{
PscConfigs: redis.ClusterPscConfigArray{
&redis.ClusterPscConfigArgs{
Network: pulumi.String("string"),
},
},
ShardCount: pulumi.Int(0),
Name: pulumi.String("string"),
AuthorizationMode: pulumi.String("string"),
NodeType: pulumi.String("string"),
Project: pulumi.String("string"),
MaintenancePolicy: &redis.ClusterMaintenancePolicyArgs{
CreateTime: pulumi.String("string"),
UpdateTime: pulumi.String("string"),
WeeklyMaintenanceWindows: redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowArray{
&redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs{
Day: pulumi.String("string"),
StartTime: &redis.ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs{
Hours: pulumi.Int(0),
Minutes: pulumi.Int(0),
Nanos: pulumi.Int(0),
Seconds: pulumi.Int(0),
},
Duration: pulumi.String("string"),
},
},
},
RedisConfigs: pulumi.StringMap{
"string": pulumi.String("string"),
},
Region: pulumi.String("string"),
ReplicaCount: pulumi.Int(0),
DeletionProtectionEnabled: pulumi.Bool(false),
TransitEncryptionMode: pulumi.String("string"),
ZoneDistributionConfig: &redis.ClusterZoneDistributionConfigArgs{
Mode: pulumi.String("string"),
Zone: pulumi.String("string"),
},
})
var exampleclusterResourceResourceFromRediscluster = new Cluster("exampleclusterResourceResourceFromRediscluster", ClusterArgs.builder()
.pscConfigs(ClusterPscConfigArgs.builder()
.network("string")
.build())
.shardCount(0)
.name("string")
.authorizationMode("string")
.nodeType("string")
.project("string")
.maintenancePolicy(ClusterMaintenancePolicyArgs.builder()
.createTime("string")
.updateTime("string")
.weeklyMaintenanceWindows(ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs.builder()
.day("string")
.startTime(ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs.builder()
.hours(0)
.minutes(0)
.nanos(0)
.seconds(0)
.build())
.duration("string")
.build())
.build())
.redisConfigs(Map.of("string", "string"))
.region("string")
.replicaCount(0)
.deletionProtectionEnabled(false)
.transitEncryptionMode("string")
.zoneDistributionConfig(ClusterZoneDistributionConfigArgs.builder()
.mode("string")
.zone("string")
.build())
.build());
examplecluster_resource_resource_from_rediscluster = gcp.redis.Cluster("exampleclusterResourceResourceFromRediscluster",
psc_configs=[{
"network": "string",
}],
shard_count=0,
name="string",
authorization_mode="string",
node_type="string",
project="string",
maintenance_policy={
"createTime": "string",
"updateTime": "string",
"weeklyMaintenanceWindows": [{
"day": "string",
"startTime": {
"hours": 0,
"minutes": 0,
"nanos": 0,
"seconds": 0,
},
"duration": "string",
}],
},
redis_configs={
"string": "string",
},
region="string",
replica_count=0,
deletion_protection_enabled=False,
transit_encryption_mode="string",
zone_distribution_config={
"mode": "string",
"zone": "string",
})
const exampleclusterResourceResourceFromRediscluster = new gcp.redis.Cluster("exampleclusterResourceResourceFromRediscluster", {
pscConfigs: [{
network: "string",
}],
shardCount: 0,
name: "string",
authorizationMode: "string",
nodeType: "string",
project: "string",
maintenancePolicy: {
createTime: "string",
updateTime: "string",
weeklyMaintenanceWindows: [{
day: "string",
startTime: {
hours: 0,
minutes: 0,
nanos: 0,
seconds: 0,
},
duration: "string",
}],
},
redisConfigs: {
string: "string",
},
region: "string",
replicaCount: 0,
deletionProtectionEnabled: false,
transitEncryptionMode: "string",
zoneDistributionConfig: {
mode: "string",
zone: "string",
},
});
type: gcp:redis:Cluster
properties:
authorizationMode: string
deletionProtectionEnabled: false
maintenancePolicy:
createTime: string
updateTime: string
weeklyMaintenanceWindows:
- day: string
duration: string
startTime:
hours: 0
minutes: 0
nanos: 0
seconds: 0
name: string
nodeType: string
project: string
pscConfigs:
- network: string
redisConfigs:
string: string
region: string
replicaCount: 0
shardCount: 0
transitEncryptionMode: string
zoneDistributionConfig:
mode: string
zone: string
Cluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Cluster resource accepts the following input properties:
- Psc
Configs List<ClusterPsc Config> - Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
- int
- Required. Number of shards for the Redis cluster.
- string
- Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"]
- Deletion
Protection boolEnabled - Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
- Maintenance
Policy ClusterMaintenance Policy - Maintenance policy for a cluster
- Name string
- Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
- Node
Type string - The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
- Project string
- Redis
Configs Dictionary<string, string> - Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
- Region string
- The name of the region of the Redis cluster.
- Replica
Count int - Optional. The number of replica nodes per shard.
- Transit
Encryption stringMode - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"]
- Zone
Distribution ClusterConfig Zone Distribution Config - Immutable. Zone distribution config for Memorystore Redis cluster.
- Psc
Configs []ClusterPsc Config Args - Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
- int
- Required. Number of shards for the Redis cluster.
- string
- Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"]
- Deletion
Protection boolEnabled - Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
- Maintenance
Policy ClusterMaintenance Policy Args - Maintenance policy for a cluster
- Name string
- Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
- Node
Type string - The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
- Project string
- Redis
Configs map[string]string - Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
- Region string
- The name of the region of the Redis cluster.
- Replica
Count int - Optional. The number of replica nodes per shard.
- Transit
Encryption stringMode - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"]
- Zone
Distribution ClusterConfig Zone Distribution Config Args - Immutable. Zone distribution config for Memorystore Redis cluster.
- psc
Configs List<ClusterPsc Config> - Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
- Integer
- Required. Number of shards for the Redis cluster.
- String
- Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"]
- deletion
Protection BooleanEnabled - Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
- maintenance
Policy ClusterMaintenance Policy - Maintenance policy for a cluster
- name String
- Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
- node
Type String - The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
- project String
- redis
Configs Map<String,String> - Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
- region String
- The name of the region of the Redis cluster.
- replica
Count Integer - Optional. The number of replica nodes per shard.
- transit
Encryption StringMode - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"]
- zone
Distribution ClusterConfig Zone Distribution Config - Immutable. Zone distribution config for Memorystore Redis cluster.
- psc
Configs ClusterPsc Config[] - Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
- number
- Required. Number of shards for the Redis cluster.
- string
- Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"]
- deletion
Protection booleanEnabled - Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
- maintenance
Policy ClusterMaintenance Policy - Maintenance policy for a cluster
- name string
- Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
- node
Type string - The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
- project string
- redis
Configs {[key: string]: string} - Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
- region string
- The name of the region of the Redis cluster.
- replica
Count number - Optional. The number of replica nodes per shard.
- transit
Encryption stringMode - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"]
- zone
Distribution ClusterConfig Zone Distribution Config - Immutable. Zone distribution config for Memorystore Redis cluster.
- psc_
configs Sequence[ClusterPsc Config Args] - Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
- int
- Required. Number of shards for the Redis cluster.
- str
- Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"]
- deletion_
protection_ boolenabled - Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
- maintenance_
policy ClusterMaintenance Policy Args - Maintenance policy for a cluster
- name str
- Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
- node_
type str - The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
- project str
- redis_
configs Mapping[str, str] - Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
- region str
- The name of the region of the Redis cluster.
- replica_
count int - Optional. The number of replica nodes per shard.
- transit_
encryption_ strmode - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"]
- zone_
distribution_ Clusterconfig Zone Distribution Config Args - Immutable. Zone distribution config for Memorystore Redis cluster.
- psc
Configs List<Property Map> - Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
- Number
- Required. Number of shards for the Redis cluster.
- String
- Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"]
- deletion
Protection BooleanEnabled - Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
- maintenance
Policy Property Map - Maintenance policy for a cluster
- name String
- Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
- node
Type String - The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
- project String
- redis
Configs Map<String> - Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
- region String
- The name of the region of the Redis cluster.
- replica
Count Number - Optional. The number of replica nodes per shard.
- transit
Encryption StringMode - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"]
- zone
Distribution Property MapConfig - Immutable. Zone distribution config for Memorystore Redis cluster.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Create
Time string - The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Discovery
Endpoints List<ClusterDiscovery Endpoint> - Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Maintenance
Schedules List<ClusterMaintenance Schedule> - Upcoming maintenance schedule. Structure is documented below.
- Precise
Size doubleGb - Output only. Redis memory precise size in GB for the entire cluster.
- Psc
Connections List<ClusterPsc Connection> - Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
- Size
Gb int - Output only. Redis memory size in GB for the entire cluster.
- State string
- The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
- State
Infos List<ClusterState Info> - Output only. Additional information about the current state of the cluster. Structure is documented below.
- Uid string
- System assigned, unique identifier for the cluster.
- Create
Time string - The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Discovery
Endpoints []ClusterDiscovery Endpoint - Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Maintenance
Schedules []ClusterMaintenance Schedule - Upcoming maintenance schedule. Structure is documented below.
- Precise
Size float64Gb - Output only. Redis memory precise size in GB for the entire cluster.
- Psc
Connections []ClusterPsc Connection - Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
- Size
Gb int - Output only. Redis memory size in GB for the entire cluster.
- State string
- The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
- State
Infos []ClusterState Info - Output only. Additional information about the current state of the cluster. Structure is documented below.
- Uid string
- System assigned, unique identifier for the cluster.
- create
Time String - The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- discovery
Endpoints List<ClusterDiscovery Endpoint> - Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- maintenance
Schedules List<ClusterMaintenance Schedule> - Upcoming maintenance schedule. Structure is documented below.
- precise
Size DoubleGb - Output only. Redis memory precise size in GB for the entire cluster.
- psc
Connections List<ClusterPsc Connection> - Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
- size
Gb Integer - Output only. Redis memory size in GB for the entire cluster.
- state String
- The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
- state
Infos List<ClusterState Info> - Output only. Additional information about the current state of the cluster. Structure is documented below.
- uid String
- System assigned, unique identifier for the cluster.
- create
Time string - The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- discovery
Endpoints ClusterDiscovery Endpoint[] - Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- maintenance
Schedules ClusterMaintenance Schedule[] - Upcoming maintenance schedule. Structure is documented below.
- precise
Size numberGb - Output only. Redis memory precise size in GB for the entire cluster.
- psc
Connections ClusterPsc Connection[] - Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
- size
Gb number - Output only. Redis memory size in GB for the entire cluster.
- state string
- The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
- state
Infos ClusterState Info[] - Output only. Additional information about the current state of the cluster. Structure is documented below.
- uid string
- System assigned, unique identifier for the cluster.
- create_
time str - The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- discovery_
endpoints Sequence[ClusterDiscovery Endpoint] - Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- maintenance_
schedules Sequence[ClusterMaintenance Schedule] - Upcoming maintenance schedule. Structure is documented below.
- precise_
size_ floatgb - Output only. Redis memory precise size in GB for the entire cluster.
- psc_
connections Sequence[ClusterPsc Connection] - Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
- size_
gb int - Output only. Redis memory size in GB for the entire cluster.
- state str
- The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
- state_
infos Sequence[ClusterState Info] - Output only. Additional information about the current state of the cluster. Structure is documented below.
- uid str
- System assigned, unique identifier for the cluster.
- create
Time String - The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- discovery
Endpoints List<Property Map> - Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- maintenance
Schedules List<Property Map> - Upcoming maintenance schedule. Structure is documented below.
- precise
Size NumberGb - Output only. Redis memory precise size in GB for the entire cluster.
- psc
Connections List<Property Map> - Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
- size
Gb Number - Output only. Redis memory size in GB for the entire cluster.
- state String
- The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
- state
Infos List<Property Map> - Output only. Additional information about the current state of the cluster. Structure is documented below.
- uid String
- System assigned, unique identifier for the cluster.
Look up Existing Cluster Resource
Get an existing Cluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClusterState, opts?: CustomResourceOptions): Cluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authorization_mode: Optional[str] = None,
create_time: Optional[str] = None,
deletion_protection_enabled: Optional[bool] = None,
discovery_endpoints: Optional[Sequence[ClusterDiscoveryEndpointArgs]] = None,
maintenance_policy: Optional[ClusterMaintenancePolicyArgs] = None,
maintenance_schedules: Optional[Sequence[ClusterMaintenanceScheduleArgs]] = None,
name: Optional[str] = None,
node_type: Optional[str] = None,
precise_size_gb: Optional[float] = None,
project: Optional[str] = None,
psc_configs: Optional[Sequence[ClusterPscConfigArgs]] = None,
psc_connections: Optional[Sequence[ClusterPscConnectionArgs]] = None,
redis_configs: Optional[Mapping[str, str]] = None,
region: Optional[str] = None,
replica_count: Optional[int] = None,
shard_count: Optional[int] = None,
size_gb: Optional[int] = None,
state: Optional[str] = None,
state_infos: Optional[Sequence[ClusterStateInfoArgs]] = None,
transit_encryption_mode: Optional[str] = None,
uid: Optional[str] = None,
zone_distribution_config: Optional[ClusterZoneDistributionConfigArgs] = None) -> Cluster
func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)
public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)
public static Cluster get(String name, Output<String> id, ClusterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- string
- Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"]
- Create
Time string - The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Deletion
Protection boolEnabled - Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
- Discovery
Endpoints List<ClusterDiscovery Endpoint> - Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
- Maintenance
Policy ClusterMaintenance Policy - Maintenance policy for a cluster
- Maintenance
Schedules List<ClusterMaintenance Schedule> - Upcoming maintenance schedule. Structure is documented below.
- Name string
- Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
- Node
Type string - The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
- Precise
Size doubleGb - Output only. Redis memory precise size in GB for the entire cluster.
- Project string
- Psc
Configs List<ClusterPsc Config> - Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
- Psc
Connections List<ClusterPsc Connection> - Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
- Redis
Configs Dictionary<string, string> - Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
- Region string
- The name of the region of the Redis cluster.
- Replica
Count int - Optional. The number of replica nodes per shard.
- Shard
Count int - Required. Number of shards for the Redis cluster.
- Size
Gb int - Output only. Redis memory size in GB for the entire cluster.
- State string
- The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
- State
Infos List<ClusterState Info> - Output only. Additional information about the current state of the cluster. Structure is documented below.
- Transit
Encryption stringMode - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"]
- Uid string
- System assigned, unique identifier for the cluster.
- Zone
Distribution ClusterConfig Zone Distribution Config - Immutable. Zone distribution config for Memorystore Redis cluster.
- string
- Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"]
- Create
Time string - The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Deletion
Protection boolEnabled - Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
- Discovery
Endpoints []ClusterDiscovery Endpoint Args - Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
- Maintenance
Policy ClusterMaintenance Policy Args - Maintenance policy for a cluster
- Maintenance
Schedules []ClusterMaintenance Schedule Args - Upcoming maintenance schedule. Structure is documented below.
- Name string
- Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
- Node
Type string - The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
- Precise
Size float64Gb - Output only. Redis memory precise size in GB for the entire cluster.
- Project string
- Psc
Configs []ClusterPsc Config Args - Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
- Psc
Connections []ClusterPsc Connection Args - Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
- Redis
Configs map[string]string - Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
- Region string
- The name of the region of the Redis cluster.
- Replica
Count int - Optional. The number of replica nodes per shard.
- Shard
Count int - Required. Number of shards for the Redis cluster.
- Size
Gb int - Output only. Redis memory size in GB for the entire cluster.
- State string
- The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
- State
Infos []ClusterState Info Args - Output only. Additional information about the current state of the cluster. Structure is documented below.
- Transit
Encryption stringMode - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"]
- Uid string
- System assigned, unique identifier for the cluster.
- Zone
Distribution ClusterConfig Zone Distribution Config Args - Immutable. Zone distribution config for Memorystore Redis cluster.
- String
- Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"]
- create
Time String - The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- deletion
Protection BooleanEnabled - Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
- discovery
Endpoints List<ClusterDiscovery Endpoint> - Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
- maintenance
Policy ClusterMaintenance Policy - Maintenance policy for a cluster
- maintenance
Schedules List<ClusterMaintenance Schedule> - Upcoming maintenance schedule. Structure is documented below.
- name String
- Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
- node
Type String - The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
- precise
Size DoubleGb - Output only. Redis memory precise size in GB for the entire cluster.
- project String
- psc
Configs List<ClusterPsc Config> - Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
- psc
Connections List<ClusterPsc Connection> - Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
- redis
Configs Map<String,String> - Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
- region String
- The name of the region of the Redis cluster.
- replica
Count Integer - Optional. The number of replica nodes per shard.
- shard
Count Integer - Required. Number of shards for the Redis cluster.
- size
Gb Integer - Output only. Redis memory size in GB for the entire cluster.
- state String
- The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
- state
Infos List<ClusterState Info> - Output only. Additional information about the current state of the cluster. Structure is documented below.
- transit
Encryption StringMode - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"]
- uid String
- System assigned, unique identifier for the cluster.
- zone
Distribution ClusterConfig Zone Distribution Config - Immutable. Zone distribution config for Memorystore Redis cluster.
- string
- Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"]
- create
Time string - The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- deletion
Protection booleanEnabled - Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
- discovery
Endpoints ClusterDiscovery Endpoint[] - Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
- maintenance
Policy ClusterMaintenance Policy - Maintenance policy for a cluster
- maintenance
Schedules ClusterMaintenance Schedule[] - Upcoming maintenance schedule. Structure is documented below.
- name string
- Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
- node
Type string - The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
- precise
Size numberGb - Output only. Redis memory precise size in GB for the entire cluster.
- project string
- psc
Configs ClusterPsc Config[] - Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
- psc
Connections ClusterPsc Connection[] - Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
- redis
Configs {[key: string]: string} - Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
- region string
- The name of the region of the Redis cluster.
- replica
Count number - Optional. The number of replica nodes per shard.
- shard
Count number - Required. Number of shards for the Redis cluster.
- size
Gb number - Output only. Redis memory size in GB for the entire cluster.
- state string
- The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
- state
Infos ClusterState Info[] - Output only. Additional information about the current state of the cluster. Structure is documented below.
- transit
Encryption stringMode - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"]
- uid string
- System assigned, unique identifier for the cluster.
- zone
Distribution ClusterConfig Zone Distribution Config - Immutable. Zone distribution config for Memorystore Redis cluster.
- str
- Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"]
- create_
time str - The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- deletion_
protection_ boolenabled - Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
- discovery_
endpoints Sequence[ClusterDiscovery Endpoint Args] - Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
- maintenance_
policy ClusterMaintenance Policy Args - Maintenance policy for a cluster
- maintenance_
schedules Sequence[ClusterMaintenance Schedule Args] - Upcoming maintenance schedule. Structure is documented below.
- name str
- Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
- node_
type str - The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
- precise_
size_ floatgb - Output only. Redis memory precise size in GB for the entire cluster.
- project str
- psc_
configs Sequence[ClusterPsc Config Args] - Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
- psc_
connections Sequence[ClusterPsc Connection Args] - Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
- redis_
configs Mapping[str, str] - Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
- region str
- The name of the region of the Redis cluster.
- replica_
count int - Optional. The number of replica nodes per shard.
- shard_
count int - Required. Number of shards for the Redis cluster.
- size_
gb int - Output only. Redis memory size in GB for the entire cluster.
- state str
- The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
- state_
infos Sequence[ClusterState Info Args] - Output only. Additional information about the current state of the cluster. Structure is documented below.
- transit_
encryption_ strmode - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"]
- uid str
- System assigned, unique identifier for the cluster.
- zone_
distribution_ Clusterconfig Zone Distribution Config Args - Immutable. Zone distribution config for Memorystore Redis cluster.
- String
- Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. Default value: "AUTH_MODE_DISABLED" Possible values: ["AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED"]
- create
Time String - The timestamp associated with the cluster creation request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- deletion
Protection BooleanEnabled - Optional. Indicates if the cluster is deletion protected or not. If the value if set to true, any delete cluster operation will fail. Default value is true.
- discovery
Endpoints List<Property Map> - Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported. Structure is documented below.
- maintenance
Policy Property Map - Maintenance policy for a cluster
- maintenance
Schedules List<Property Map> - Upcoming maintenance schedule. Structure is documented below.
- name String
- Unique name of the resource in this scope including project and location using the form: projects/{projectId}/locations/{locationId}/clusters/{clusterId}
- node
Type String - The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values: ["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
- precise
Size NumberGb - Output only. Redis memory precise size in GB for the entire cluster.
- project String
- psc
Configs List<Property Map> - Required. Each PscConfig configures the consumer network where two network addresses will be designated to the cluster for client access. Currently, only one PscConfig is supported. Structure is documented below.
- psc
Connections List<Property Map> - Output only. PSC connections for discovery of the cluster topology and accessing the cluster. Structure is documented below.
- redis
Configs Map<String> - Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore documentation for the list of supported parameters: https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
- region String
- The name of the region of the Redis cluster.
- replica
Count Number - Optional. The number of replica nodes per shard.
- shard
Count Number - Required. Number of shards for the Redis cluster.
- size
Gb Number - Output only. Redis memory size in GB for the entire cluster.
- state String
- The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED
- state
Infos List<Property Map> - Output only. Additional information about the current state of the cluster. Structure is documented below.
- transit
Encryption StringMode - Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. Default value: "TRANSIT_ENCRYPTION_MODE_DISABLED" Possible values: ["TRANSIT_ENCRYPTION_MODE_UNSPECIFIED", "TRANSIT_ENCRYPTION_MODE_DISABLED", "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION"]
- uid String
- System assigned, unique identifier for the cluster.
- zone
Distribution Property MapConfig - Immutable. Zone distribution config for Memorystore Redis cluster.
Supporting Types
ClusterDiscoveryEndpoint, ClusterDiscoveryEndpointArgs
- Address string
- Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- Port int
- Output only. The port number of the exposed Redis endpoint.
- Psc
Config ClusterDiscovery Endpoint Psc Config - Output only. Customer configuration for where the endpoint is created and accessed from. Structure is documented below.
- Address string
- Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- Port int
- Output only. The port number of the exposed Redis endpoint.
- Psc
Config ClusterDiscovery Endpoint Psc Config - Output only. Customer configuration for where the endpoint is created and accessed from. Structure is documented below.
- address String
- Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- port Integer
- Output only. The port number of the exposed Redis endpoint.
- psc
Config ClusterDiscovery Endpoint Psc Config - Output only. Customer configuration for where the endpoint is created and accessed from. Structure is documented below.
- address string
- Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- port number
- Output only. The port number of the exposed Redis endpoint.
- psc
Config ClusterDiscovery Endpoint Psc Config - Output only. Customer configuration for where the endpoint is created and accessed from. Structure is documented below.
- address str
- Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- port int
- Output only. The port number of the exposed Redis endpoint.
- psc_
config ClusterDiscovery Endpoint Psc Config - Output only. Customer configuration for where the endpoint is created and accessed from. Structure is documented below.
- address String
- Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- port Number
- Output only. The port number of the exposed Redis endpoint.
- psc
Config Property Map - Output only. Customer configuration for where the endpoint is created and accessed from. Structure is documented below.
ClusterDiscoveryEndpointPscConfig, ClusterDiscoveryEndpointPscConfigArgs
- Network string
- The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
- Network string
- The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
- network String
- The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
- network string
- The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
- network str
- The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
- network String
- The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
ClusterMaintenancePolicy, ClusterMaintenancePolicyArgs
- Create
Time string - (Output) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- Update
Time string - (Output) Output only. The time when the policy was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- Weekly
Maintenance List<ClusterWindows 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) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- Update
Time string - (Output) Output only. The time when the policy was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- Weekly
Maintenance []ClusterWindows 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) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- update
Time String - (Output) Output only. The time when the policy was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- weekly
Maintenance List<ClusterWindows 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) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- update
Time string - (Output) Output only. The time when the policy was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- weekly
Maintenance ClusterWindows 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) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- update_
time str - (Output) Output only. The time when the policy was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- weekly_
maintenance_ Sequence[Clusterwindows 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) Output only. The time when the policy was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- update
Time String - (Output) Output only. The time when the policy was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- 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.
ClusterMaintenancePolicyWeeklyMaintenanceWindow, ClusterMaintenancePolicyWeeklyMaintenanceWindowArgs
- Day string
- Required. The day of week that maintenance updates occur.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Possible values are:
DAY_OF_WEEK_UNSPECIFIED
,MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- Start
Time ClusterMaintenance Policy Weekly Maintenance Window Start Time - Required. Start time of the window in UTC time. Structure is documented below.
- Duration string
- (Output) Output only. Duration of the maintenance window. The current window is fixed at 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- Day string
- Required. The day of week that maintenance updates occur.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Possible values are:
DAY_OF_WEEK_UNSPECIFIED
,MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- Start
Time ClusterMaintenance Policy Weekly Maintenance Window Start Time - Required. Start time of the window in UTC time. Structure is documented below.
- Duration string
- (Output) Output only. Duration of the maintenance window. The current window is fixed at 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- day String
- Required. The day of week that maintenance updates occur.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Possible values are:
DAY_OF_WEEK_UNSPECIFIED
,MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- start
Time ClusterMaintenance Policy Weekly Maintenance Window Start Time - Required. Start time of the window in UTC time. Structure is documented below.
- duration String
- (Output) Output only. Duration of the maintenance window. The current window is fixed at 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- day string
- Required. The day of week that maintenance updates occur.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Possible values are:
DAY_OF_WEEK_UNSPECIFIED
,MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- start
Time ClusterMaintenance Policy Weekly Maintenance Window Start Time - Required. Start time of the window in UTC time. Structure is documented below.
- duration string
- (Output) Output only. Duration of the maintenance window. The current window is fixed at 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- day str
- Required. The day of week that maintenance updates occur.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Possible values are:
DAY_OF_WEEK_UNSPECIFIED
,MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- start_
time ClusterMaintenance Policy Weekly Maintenance Window Start Time - Required. Start time of the window in UTC time. Structure is documented below.
- duration str
- (Output) Output only. Duration of the maintenance window. The current window is fixed at 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- day String
- Required. The day of week that maintenance updates occur.
- DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
- MONDAY: Monday
- TUESDAY: Tuesday
- WEDNESDAY: Wednesday
- THURSDAY: Thursday
- FRIDAY: Friday
- SATURDAY: Saturday
- SUNDAY: Sunday
Possible values are:
DAY_OF_WEEK_UNSPECIFIED
,MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FRIDAY
,SATURDAY
,SUNDAY
.
- start
Time Property Map - Required. Start time of the window in UTC time. Structure is documented below.
- duration String
- (Output) Output only. Duration of the maintenance window. The current window is fixed at 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTime, ClusterMaintenancePolicyWeeklyMaintenanceWindowStartTimeArgs
- Hours int
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- Minutes int
- Minutes of hour of day. Must be from 0 to 59.
- Nanos int
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- Seconds int
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- Hours int
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- Minutes int
- Minutes of hour of day. Must be from 0 to 59.
- Nanos int
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- Seconds int
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- hours Integer
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- minutes Integer
- Minutes of hour of day. Must be from 0 to 59.
- nanos Integer
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- seconds Integer
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- hours number
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- minutes number
- Minutes of hour of day. Must be from 0 to 59.
- nanos number
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- seconds number
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- hours int
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- minutes int
- Minutes of hour of day. Must be from 0 to 59.
- nanos int
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- seconds int
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
- hours Number
- Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
- minutes Number
- Minutes of hour of day. Must be from 0 to 59.
- nanos Number
- Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
- seconds Number
- Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
ClusterMaintenanceSchedule, ClusterMaintenanceScheduleArgs
- End
Time string - (Output) Output only. The end time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- Schedule
Deadline stringTime - (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- Start
Time string - (Output) Output only. The start time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- End
Time string - (Output) Output only. The end time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- Schedule
Deadline stringTime - (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- Start
Time string - (Output) Output only. The start time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- end
Time String - (Output) Output only. The end time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- schedule
Deadline StringTime - (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- start
Time String - (Output) Output only. The start time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- end
Time string - (Output) Output only. The end time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- schedule
Deadline stringTime - (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- start
Time string - (Output) Output only. The start time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- end_
time str - (Output) Output only. The end time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- schedule_
deadline_ strtime - (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- start_
time str - (Output) Output only. The start time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- end
Time String - (Output) Output only. The end time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- schedule
Deadline StringTime - (Output) Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
- start
Time String - (Output) Output only. The start time of any upcoming scheduled maintenance for this cluster. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.
ClusterPscConfig, ClusterPscConfigArgs
- Network string
- Required. The consumer network where the network address of
the discovery endpoint will be reserved, in the form of
projects/{network_project_id_or_number}/global/networks/{network_id}.
- Network string
- Required. The consumer network where the network address of
the discovery endpoint will be reserved, in the form of
projects/{network_project_id_or_number}/global/networks/{network_id}.
- network String
- Required. The consumer network where the network address of
the discovery endpoint will be reserved, in the form of
projects/{network_project_id_or_number}/global/networks/{network_id}.
- network string
- Required. The consumer network where the network address of
the discovery endpoint will be reserved, in the form of
projects/{network_project_id_or_number}/global/networks/{network_id}.
- network str
- Required. The consumer network where the network address of
the discovery endpoint will be reserved, in the form of
projects/{network_project_id_or_number}/global/networks/{network_id}.
- network String
- Required. The consumer network where the network address of
the discovery endpoint will be reserved, in the form of
projects/{network_project_id_or_number}/global/networks/{network_id}.
ClusterPscConnection, ClusterPscConnectionArgs
- Address string
- Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- Forwarding
Rule string - Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
- Network string
- The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
- Project
Id string - Output only. The consumer projectId where the forwarding rule is created from.
- Psc
Connection stringId - Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- Address string
- Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- Forwarding
Rule string - Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
- Network string
- The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
- Project
Id string - Output only. The consumer projectId where the forwarding rule is created from.
- Psc
Connection stringId - Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- address String
- Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- forwarding
Rule String - Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
- network String
- The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
- project
Id String - Output only. The consumer projectId where the forwarding rule is created from.
- psc
Connection StringId - Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- address string
- Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- forwarding
Rule string - Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
- network string
- The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
- project
Id string - Output only. The consumer projectId where the forwarding rule is created from.
- psc
Connection stringId - Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- address str
- Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- forwarding_
rule str - Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
- network str
- The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
- project_
id str - Output only. The consumer projectId where the forwarding rule is created from.
- psc_
connection_ strid - Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- address String
- Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- forwarding
Rule String - Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
- network String
- The consumer network where the IP address resides, in the form of projects/{projectId}/global/networks/{network_id}.
- project
Id String - Output only. The consumer projectId where the forwarding rule is created from.
- psc
Connection StringId - Output only. The PSC connection id of the forwarding rule connected to the service attachment.
ClusterStateInfo, ClusterStateInfoArgs
- Update
Info ClusterState Info Update Info - A nested object resource Structure is documented below.
- Update
Info ClusterState Info Update Info - A nested object resource Structure is documented below.
- update
Info ClusterState Info Update Info - A nested object resource Structure is documented below.
- update
Info ClusterState Info Update Info - A nested object resource Structure is documented below.
- update_
info ClusterState Info Update Info - A nested object resource Structure is documented below.
- update
Info Property Map - A nested object resource Structure is documented below.
ClusterStateInfoUpdateInfo, ClusterStateInfoUpdateInfoArgs
- Target
Replica intCount - Target number of replica nodes per shard.
- Target
Shard intCount - Target number of shards for redis cluster.
- Target
Replica intCount - Target number of replica nodes per shard.
- Target
Shard intCount - Target number of shards for redis cluster.
- target
Replica IntegerCount - Target number of replica nodes per shard.
- target
Shard IntegerCount - Target number of shards for redis cluster.
- target
Replica numberCount - Target number of replica nodes per shard.
- target
Shard numberCount - Target number of shards for redis cluster.
- target_
replica_ intcount - Target number of replica nodes per shard.
- target_
shard_ intcount - Target number of shards for redis cluster.
- target
Replica NumberCount - Target number of replica nodes per shard.
- target
Shard NumberCount - Target number of shards for redis cluster.
ClusterZoneDistributionConfig, ClusterZoneDistributionConfigArgs
Import
Cluster can be imported using any of these accepted formats:
projects/{{project}}/locations/{{region}}/clusters/{{name}}
{{project}}/{{region}}/{{name}}
{{region}}/{{name}}
{{name}}
When using the pulumi import
command, Cluster can be imported using one of the formats above. For example:
$ pulumi import gcp:redis/cluster:Cluster default projects/{{project}}/locations/{{region}}/clusters/{{name}}
$ pulumi import gcp:redis/cluster:Cluster default {{project}}/{{region}}/{{name}}
$ pulumi import gcp:redis/cluster:Cluster default {{region}}/{{name}}
$ pulumi import gcp:redis/cluster:Cluster default {{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.