yandex.MdbRedisCluster
Explore with Pulumi AI
Manages a Redis cluster within the Yandex.Cloud. For more information, see the official documentation.
Example Usage
Example of creating a Standalone Redis.
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var fooVpcNetwork = new Yandex.VpcNetwork("fooVpcNetwork", new Yandex.VpcNetworkArgs
{
});
var fooVpcSubnet = new Yandex.VpcSubnet("fooVpcSubnet", new Yandex.VpcSubnetArgs
{
NetworkId = fooVpcNetwork.Id,
V4CidrBlocks =
{
"10.5.0.0/24",
},
Zone = "ru-central1-a",
});
var fooMdbRedisCluster = new Yandex.MdbRedisCluster("fooMdbRedisCluster", new Yandex.MdbRedisClusterArgs
{
Config = new Yandex.Inputs.MdbRedisClusterConfigArgs
{
Password = "your_password",
Version = "6.0",
},
Environment = "PRESTABLE",
Hosts =
{
new Yandex.Inputs.MdbRedisClusterHostArgs
{
SubnetId = fooVpcSubnet.Id,
Zone = "ru-central1-a",
},
},
MaintenanceWindow = new Yandex.Inputs.MdbRedisClusterMaintenanceWindowArgs
{
Type = "ANYTIME",
},
NetworkId = fooVpcNetwork.Id,
Resources = new Yandex.Inputs.MdbRedisClusterResourcesArgs
{
DiskSize = 16,
ResourcePresetId = "hm1.nano",
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooVpcNetwork, err := yandex.NewVpcNetwork(ctx, "fooVpcNetwork", nil)
if err != nil {
return err
}
fooVpcSubnet, err := yandex.NewVpcSubnet(ctx, "fooVpcSubnet", &yandex.VpcSubnetArgs{
NetworkId: fooVpcNetwork.ID(),
V4CidrBlocks: pulumi.StringArray{
pulumi.String("10.5.0.0/24"),
},
Zone: pulumi.String("ru-central1-a"),
})
if err != nil {
return err
}
_, err = yandex.NewMdbRedisCluster(ctx, "fooMdbRedisCluster", &yandex.MdbRedisClusterArgs{
Config: &MdbRedisClusterConfigArgs{
Password: pulumi.String("your_password"),
Version: pulumi.String("6.0"),
},
Environment: pulumi.String("PRESTABLE"),
Hosts: MdbRedisClusterHostArray{
&MdbRedisClusterHostArgs{
SubnetId: fooVpcSubnet.ID(),
Zone: pulumi.String("ru-central1-a"),
},
},
MaintenanceWindow: &MdbRedisClusterMaintenanceWindowArgs{
Type: pulumi.String("ANYTIME"),
},
NetworkId: fooVpcNetwork.ID(),
Resources: &MdbRedisClusterResourcesArgs{
DiskSize: pulumi.Int(16),
ResourcePresetId: pulumi.String("hm1.nano"),
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
foo_vpc_network = yandex.VpcNetwork("fooVpcNetwork")
foo_vpc_subnet = yandex.VpcSubnet("fooVpcSubnet",
network_id=foo_vpc_network.id,
v4_cidr_blocks=["10.5.0.0/24"],
zone="ru-central1-a")
foo_mdb_redis_cluster = yandex.MdbRedisCluster("fooMdbRedisCluster",
config=yandex.MdbRedisClusterConfigArgs(
password="your_password",
version="6.0",
),
environment="PRESTABLE",
hosts=[yandex.MdbRedisClusterHostArgs(
subnet_id=foo_vpc_subnet.id,
zone="ru-central1-a",
)],
maintenance_window=yandex.MdbRedisClusterMaintenanceWindowArgs(
type="ANYTIME",
),
network_id=foo_vpc_network.id,
resources=yandex.MdbRedisClusterResourcesArgs(
disk_size=16,
resource_preset_id="hm1.nano",
))
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const fooVpcNetwork = new yandex.VpcNetwork("foo", {});
const fooVpcSubnet = new yandex.VpcSubnet("foo", {
networkId: fooVpcNetwork.id,
v4CidrBlocks: ["10.5.0.0/24"],
zone: "ru-central1-a",
});
const fooMdbRedisCluster = new yandex.MdbRedisCluster("foo", {
config: {
password: "your_password",
version: "6.0",
},
environment: "PRESTABLE",
hosts: [{
subnetId: fooVpcSubnet.id,
zone: "ru-central1-a",
}],
maintenanceWindow: {
type: "ANYTIME",
},
networkId: fooVpcNetwork.id,
resources: {
diskSize: 16,
resourcePresetId: "hm1.nano",
},
});
Coming soon!
Example of creating a sharded Redis Cluster.
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var fooVpcNetwork = new Yandex.VpcNetwork("fooVpcNetwork", new Yandex.VpcNetworkArgs
{
});
var fooVpcSubnet = new Yandex.VpcSubnet("fooVpcSubnet", new Yandex.VpcSubnetArgs
{
NetworkId = fooVpcNetwork.Id,
V4CidrBlocks =
{
"10.1.0.0/24",
},
Zone = "ru-central1-a",
});
var bar = new Yandex.VpcSubnet("bar", new Yandex.VpcSubnetArgs
{
NetworkId = fooVpcNetwork.Id,
V4CidrBlocks =
{
"10.2.0.0/24",
},
Zone = "ru-central1-b",
});
var baz = new Yandex.VpcSubnet("baz", new Yandex.VpcSubnetArgs
{
NetworkId = fooVpcNetwork.Id,
V4CidrBlocks =
{
"10.3.0.0/24",
},
Zone = "ru-central1-c",
});
var fooMdbRedisCluster = new Yandex.MdbRedisCluster("fooMdbRedisCluster", new Yandex.MdbRedisClusterArgs
{
Config = new Yandex.Inputs.MdbRedisClusterConfigArgs
{
Password = "your_password",
Version = "6.0",
},
Environment = "PRESTABLE",
Hosts =
{
new Yandex.Inputs.MdbRedisClusterHostArgs
{
ShardName = "first",
SubnetId = fooVpcSubnet.Id,
Zone = "ru-central1-a",
},
new Yandex.Inputs.MdbRedisClusterHostArgs
{
ShardName = "second",
SubnetId = bar.Id,
Zone = "ru-central1-b",
},
new Yandex.Inputs.MdbRedisClusterHostArgs
{
ShardName = "third",
SubnetId = baz.Id,
Zone = "ru-central1-c",
},
},
NetworkId = fooVpcNetwork.Id,
Resources = new Yandex.Inputs.MdbRedisClusterResourcesArgs
{
DiskSize = 16,
ResourcePresetId = "hm1.nano",
},
Sharded = true,
});
}
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooVpcNetwork, err := yandex.NewVpcNetwork(ctx, "fooVpcNetwork", nil)
if err != nil {
return err
}
fooVpcSubnet, err := yandex.NewVpcSubnet(ctx, "fooVpcSubnet", &yandex.VpcSubnetArgs{
NetworkId: fooVpcNetwork.ID(),
V4CidrBlocks: pulumi.StringArray{
pulumi.String("10.1.0.0/24"),
},
Zone: pulumi.String("ru-central1-a"),
})
if err != nil {
return err
}
bar, err := yandex.NewVpcSubnet(ctx, "bar", &yandex.VpcSubnetArgs{
NetworkId: fooVpcNetwork.ID(),
V4CidrBlocks: pulumi.StringArray{
pulumi.String("10.2.0.0/24"),
},
Zone: pulumi.String("ru-central1-b"),
})
if err != nil {
return err
}
baz, err := yandex.NewVpcSubnet(ctx, "baz", &yandex.VpcSubnetArgs{
NetworkId: fooVpcNetwork.ID(),
V4CidrBlocks: pulumi.StringArray{
pulumi.String("10.3.0.0/24"),
},
Zone: pulumi.String("ru-central1-c"),
})
if err != nil {
return err
}
_, err = yandex.NewMdbRedisCluster(ctx, "fooMdbRedisCluster", &yandex.MdbRedisClusterArgs{
Config: &MdbRedisClusterConfigArgs{
Password: pulumi.String("your_password"),
Version: pulumi.String("6.0"),
},
Environment: pulumi.String("PRESTABLE"),
Hosts: MdbRedisClusterHostArray{
&MdbRedisClusterHostArgs{
ShardName: pulumi.String("first"),
SubnetId: fooVpcSubnet.ID(),
Zone: pulumi.String("ru-central1-a"),
},
&MdbRedisClusterHostArgs{
ShardName: pulumi.String("second"),
SubnetId: bar.ID(),
Zone: pulumi.String("ru-central1-b"),
},
&MdbRedisClusterHostArgs{
ShardName: pulumi.String("third"),
SubnetId: baz.ID(),
Zone: pulumi.String("ru-central1-c"),
},
},
NetworkId: fooVpcNetwork.ID(),
Resources: &MdbRedisClusterResourcesArgs{
DiskSize: pulumi.Int(16),
ResourcePresetId: pulumi.String("hm1.nano"),
},
Sharded: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
foo_vpc_network = yandex.VpcNetwork("fooVpcNetwork")
foo_vpc_subnet = yandex.VpcSubnet("fooVpcSubnet",
network_id=foo_vpc_network.id,
v4_cidr_blocks=["10.1.0.0/24"],
zone="ru-central1-a")
bar = yandex.VpcSubnet("bar",
network_id=foo_vpc_network.id,
v4_cidr_blocks=["10.2.0.0/24"],
zone="ru-central1-b")
baz = yandex.VpcSubnet("baz",
network_id=foo_vpc_network.id,
v4_cidr_blocks=["10.3.0.0/24"],
zone="ru-central1-c")
foo_mdb_redis_cluster = yandex.MdbRedisCluster("fooMdbRedisCluster",
config=yandex.MdbRedisClusterConfigArgs(
password="your_password",
version="6.0",
),
environment="PRESTABLE",
hosts=[
yandex.MdbRedisClusterHostArgs(
shard_name="first",
subnet_id=foo_vpc_subnet.id,
zone="ru-central1-a",
),
yandex.MdbRedisClusterHostArgs(
shard_name="second",
subnet_id=bar.id,
zone="ru-central1-b",
),
yandex.MdbRedisClusterHostArgs(
shard_name="third",
subnet_id=baz.id,
zone="ru-central1-c",
),
],
network_id=foo_vpc_network.id,
resources=yandex.MdbRedisClusterResourcesArgs(
disk_size=16,
resource_preset_id="hm1.nano",
),
sharded=True)
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const fooVpcNetwork = new yandex.VpcNetwork("foo", {});
const fooVpcSubnet = new yandex.VpcSubnet("foo", {
networkId: fooVpcNetwork.id,
v4CidrBlocks: ["10.1.0.0/24"],
zone: "ru-central1-a",
});
const bar = new yandex.VpcSubnet("bar", {
networkId: fooVpcNetwork.id,
v4CidrBlocks: ["10.2.0.0/24"],
zone: "ru-central1-b",
});
const baz = new yandex.VpcSubnet("baz", {
networkId: fooVpcNetwork.id,
v4CidrBlocks: ["10.3.0.0/24"],
zone: "ru-central1-c",
});
const fooMdbRedisCluster = new yandex.MdbRedisCluster("foo", {
config: {
password: "your_password",
version: "6.0",
},
environment: "PRESTABLE",
hosts: [
{
shardName: "first",
subnetId: fooVpcSubnet.id,
zone: "ru-central1-a",
},
{
shardName: "second",
subnetId: bar.id,
zone: "ru-central1-b",
},
{
shardName: "third",
subnetId: baz.id,
zone: "ru-central1-c",
},
],
networkId: fooVpcNetwork.id,
resources: {
diskSize: 16,
resourcePresetId: "hm1.nano",
},
sharded: true,
});
Coming soon!
Create MdbRedisCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MdbRedisCluster(name: string, args: MdbRedisClusterArgs, opts?: CustomResourceOptions);
@overload
def MdbRedisCluster(resource_name: str,
args: MdbRedisClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MdbRedisCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
hosts: Optional[Sequence[MdbRedisClusterHostArgs]] = None,
config: Optional[MdbRedisClusterConfigArgs] = None,
environment: Optional[str] = None,
resources: Optional[MdbRedisClusterResourcesArgs] = None,
labels: Optional[Mapping[str, str]] = None,
deletion_protection: Optional[bool] = None,
maintenance_window: Optional[MdbRedisClusterMaintenanceWindowArgs] = None,
folder_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
sharded: Optional[bool] = None,
tls_enabled: Optional[bool] = None)
func NewMdbRedisCluster(ctx *Context, name string, args MdbRedisClusterArgs, opts ...ResourceOption) (*MdbRedisCluster, error)
public MdbRedisCluster(string name, MdbRedisClusterArgs args, CustomResourceOptions? opts = null)
public MdbRedisCluster(String name, MdbRedisClusterArgs args)
public MdbRedisCluster(String name, MdbRedisClusterArgs args, CustomResourceOptions options)
type: yandex:MdbRedisCluster
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 MdbRedisClusterArgs
- 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 MdbRedisClusterArgs
- 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 MdbRedisClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MdbRedisClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MdbRedisClusterArgs
- 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 mdbRedisClusterResource = new Yandex.MdbRedisCluster("mdbRedisClusterResource", new()
{
NetworkId = "string",
Hosts = new[]
{
new Yandex.Inputs.MdbRedisClusterHostArgs
{
Zone = "string",
Fqdn = "string",
ShardName = "string",
SubnetId = "string",
},
},
Config = new Yandex.Inputs.MdbRedisClusterConfigArgs
{
Password = "string",
Version = "string",
Databases = 0,
MaxmemoryPolicy = "string",
NotifyKeyspaceEvents = "string",
SlowlogLogSlowerThan = 0,
SlowlogMaxLen = 0,
Timeout = 0,
},
Environment = "string",
Resources = new Yandex.Inputs.MdbRedisClusterResourcesArgs
{
DiskSize = 0,
ResourcePresetId = "string",
DiskTypeId = "string",
},
Labels =
{
{ "string", "string" },
},
DeletionProtection = false,
MaintenanceWindow = new Yandex.Inputs.MdbRedisClusterMaintenanceWindowArgs
{
Type = "string",
Day = "string",
Hour = 0,
},
FolderId = "string",
Description = "string",
Name = "string",
SecurityGroupIds = new[]
{
"string",
},
Sharded = false,
TlsEnabled = false,
});
example, err := yandex.NewMdbRedisCluster(ctx, "mdbRedisClusterResource", &yandex.MdbRedisClusterArgs{
NetworkId: pulumi.String("string"),
Hosts: yandex.MdbRedisClusterHostArray{
&yandex.MdbRedisClusterHostArgs{
Zone: pulumi.String("string"),
Fqdn: pulumi.String("string"),
ShardName: pulumi.String("string"),
SubnetId: pulumi.String("string"),
},
},
Config: &yandex.MdbRedisClusterConfigArgs{
Password: pulumi.String("string"),
Version: pulumi.String("string"),
Databases: pulumi.Int(0),
MaxmemoryPolicy: pulumi.String("string"),
NotifyKeyspaceEvents: pulumi.String("string"),
SlowlogLogSlowerThan: pulumi.Int(0),
SlowlogMaxLen: pulumi.Int(0),
Timeout: pulumi.Int(0),
},
Environment: pulumi.String("string"),
Resources: &yandex.MdbRedisClusterResourcesArgs{
DiskSize: pulumi.Int(0),
ResourcePresetId: pulumi.String("string"),
DiskTypeId: pulumi.String("string"),
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
DeletionProtection: pulumi.Bool(false),
MaintenanceWindow: &yandex.MdbRedisClusterMaintenanceWindowArgs{
Type: pulumi.String("string"),
Day: pulumi.String("string"),
Hour: pulumi.Int(0),
},
FolderId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
Sharded: pulumi.Bool(false),
TlsEnabled: pulumi.Bool(false),
})
var mdbRedisClusterResource = new MdbRedisCluster("mdbRedisClusterResource", MdbRedisClusterArgs.builder()
.networkId("string")
.hosts(MdbRedisClusterHostArgs.builder()
.zone("string")
.fqdn("string")
.shardName("string")
.subnetId("string")
.build())
.config(MdbRedisClusterConfigArgs.builder()
.password("string")
.version("string")
.databases(0)
.maxmemoryPolicy("string")
.notifyKeyspaceEvents("string")
.slowlogLogSlowerThan(0)
.slowlogMaxLen(0)
.timeout(0)
.build())
.environment("string")
.resources(MdbRedisClusterResourcesArgs.builder()
.diskSize(0)
.resourcePresetId("string")
.diskTypeId("string")
.build())
.labels(Map.of("string", "string"))
.deletionProtection(false)
.maintenanceWindow(MdbRedisClusterMaintenanceWindowArgs.builder()
.type("string")
.day("string")
.hour(0)
.build())
.folderId("string")
.description("string")
.name("string")
.securityGroupIds("string")
.sharded(false)
.tlsEnabled(false)
.build());
mdb_redis_cluster_resource = yandex.MdbRedisCluster("mdbRedisClusterResource",
network_id="string",
hosts=[yandex.MdbRedisClusterHostArgs(
zone="string",
fqdn="string",
shard_name="string",
subnet_id="string",
)],
config=yandex.MdbRedisClusterConfigArgs(
password="string",
version="string",
databases=0,
maxmemory_policy="string",
notify_keyspace_events="string",
slowlog_log_slower_than=0,
slowlog_max_len=0,
timeout=0,
),
environment="string",
resources=yandex.MdbRedisClusterResourcesArgs(
disk_size=0,
resource_preset_id="string",
disk_type_id="string",
),
labels={
"string": "string",
},
deletion_protection=False,
maintenance_window=yandex.MdbRedisClusterMaintenanceWindowArgs(
type="string",
day="string",
hour=0,
),
folder_id="string",
description="string",
name="string",
security_group_ids=["string"],
sharded=False,
tls_enabled=False)
const mdbRedisClusterResource = new yandex.MdbRedisCluster("mdbRedisClusterResource", {
networkId: "string",
hosts: [{
zone: "string",
fqdn: "string",
shardName: "string",
subnetId: "string",
}],
config: {
password: "string",
version: "string",
databases: 0,
maxmemoryPolicy: "string",
notifyKeyspaceEvents: "string",
slowlogLogSlowerThan: 0,
slowlogMaxLen: 0,
timeout: 0,
},
environment: "string",
resources: {
diskSize: 0,
resourcePresetId: "string",
diskTypeId: "string",
},
labels: {
string: "string",
},
deletionProtection: false,
maintenanceWindow: {
type: "string",
day: "string",
hour: 0,
},
folderId: "string",
description: "string",
name: "string",
securityGroupIds: ["string"],
sharded: false,
tlsEnabled: false,
});
type: yandex:MdbRedisCluster
properties:
config:
databases: 0
maxmemoryPolicy: string
notifyKeyspaceEvents: string
password: string
slowlogLogSlowerThan: 0
slowlogMaxLen: 0
timeout: 0
version: string
deletionProtection: false
description: string
environment: string
folderId: string
hosts:
- fqdn: string
shardName: string
subnetId: string
zone: string
labels:
string: string
maintenanceWindow:
day: string
hour: 0
type: string
name: string
networkId: string
resources:
diskSize: 0
diskTypeId: string
resourcePresetId: string
securityGroupIds:
- string
sharded: false
tlsEnabled: false
MdbRedisCluster 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 MdbRedisCluster resource accepts the following input properties:
- Config
Mdb
Redis Cluster Config - Configuration of the Redis cluster. The structure is documented below.
- Environment string
- Deployment environment of the Redis cluster. Can be either
PRESTABLE
orPRODUCTION
. - Hosts
List<Mdb
Redis Cluster Host> - A host of the Redis cluster. The structure is documented below.
- Network
Id string - ID of the network, to which the Redis cluster belongs.
- Resources
Mdb
Redis Cluster Resources - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- Deletion
Protection bool - Inhibits deletion of the cluster. Can be either
true
orfalse
. - Description string
- Description of the Redis cluster.
- Folder
Id string - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- Labels Dictionary<string, string>
- A set of key/value label pairs to assign to the Redis cluster.
- Maintenance
Window MdbRedis Cluster Maintenance Window - Name string
- Name of the Redis cluster. Provided by the client when the cluster is created.
- Security
Group List<string>Ids - A set of ids of security groups assigned to hosts of the cluster.
- bool
- Redis Cluster mode enabled/disabled.
- Tls
Enabled bool - tls support mode enabled/disabled.
- Config
Mdb
Redis Cluster Config Args - Configuration of the Redis cluster. The structure is documented below.
- Environment string
- Deployment environment of the Redis cluster. Can be either
PRESTABLE
orPRODUCTION
. - Hosts
[]Mdb
Redis Cluster Host Args - A host of the Redis cluster. The structure is documented below.
- Network
Id string - ID of the network, to which the Redis cluster belongs.
- Resources
Mdb
Redis Cluster Resources Args - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- Deletion
Protection bool - Inhibits deletion of the cluster. Can be either
true
orfalse
. - Description string
- Description of the Redis cluster.
- Folder
Id string - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- Labels map[string]string
- A set of key/value label pairs to assign to the Redis cluster.
- Maintenance
Window MdbRedis Cluster Maintenance Window Args - Name string
- Name of the Redis cluster. Provided by the client when the cluster is created.
- Security
Group []stringIds - A set of ids of security groups assigned to hosts of the cluster.
- bool
- Redis Cluster mode enabled/disabled.
- Tls
Enabled bool - tls support mode enabled/disabled.
- config
Mdb
Redis Cluster Config - Configuration of the Redis cluster. The structure is documented below.
- environment String
- Deployment environment of the Redis cluster. Can be either
PRESTABLE
orPRODUCTION
. - hosts
List<Mdb
Redis Cluster Host> - A host of the Redis cluster. The structure is documented below.
- network
Id String - ID of the network, to which the Redis cluster belongs.
- resources
Mdb
Redis Cluster Resources - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- deletion
Protection Boolean - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description String
- Description of the Redis cluster.
- folder
Id String - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- labels Map<String,String>
- A set of key/value label pairs to assign to the Redis cluster.
- maintenance
Window MdbRedis Cluster Maintenance Window - name String
- Name of the Redis cluster. Provided by the client when the cluster is created.
- security
Group List<String>Ids - A set of ids of security groups assigned to hosts of the cluster.
- Boolean
- Redis Cluster mode enabled/disabled.
- tls
Enabled Boolean - tls support mode enabled/disabled.
- config
Mdb
Redis Cluster Config - Configuration of the Redis cluster. The structure is documented below.
- environment string
- Deployment environment of the Redis cluster. Can be either
PRESTABLE
orPRODUCTION
. - hosts
Mdb
Redis Cluster Host[] - A host of the Redis cluster. The structure is documented below.
- network
Id string - ID of the network, to which the Redis cluster belongs.
- resources
Mdb
Redis Cluster Resources - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- deletion
Protection boolean - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description string
- Description of the Redis cluster.
- folder
Id string - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- labels {[key: string]: string}
- A set of key/value label pairs to assign to the Redis cluster.
- maintenance
Window MdbRedis Cluster Maintenance Window - name string
- Name of the Redis cluster. Provided by the client when the cluster is created.
- security
Group string[]Ids - A set of ids of security groups assigned to hosts of the cluster.
- boolean
- Redis Cluster mode enabled/disabled.
- tls
Enabled boolean - tls support mode enabled/disabled.
- config
Mdb
Redis Cluster Config Args - Configuration of the Redis cluster. The structure is documented below.
- environment str
- Deployment environment of the Redis cluster. Can be either
PRESTABLE
orPRODUCTION
. - hosts
Sequence[Mdb
Redis Cluster Host Args] - A host of the Redis cluster. The structure is documented below.
- network_
id str - ID of the network, to which the Redis cluster belongs.
- resources
Mdb
Redis Cluster Resources Args - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- deletion_
protection bool - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description str
- Description of the Redis cluster.
- folder_
id str - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- labels Mapping[str, str]
- A set of key/value label pairs to assign to the Redis cluster.
- maintenance_
window MdbRedis Cluster Maintenance Window Args - name str
- Name of the Redis cluster. Provided by the client when the cluster is created.
- security_
group_ Sequence[str]ids - A set of ids of security groups assigned to hosts of the cluster.
- bool
- Redis Cluster mode enabled/disabled.
- tls_
enabled bool - tls support mode enabled/disabled.
- config Property Map
- Configuration of the Redis cluster. The structure is documented below.
- environment String
- Deployment environment of the Redis cluster. Can be either
PRESTABLE
orPRODUCTION
. - hosts List<Property Map>
- A host of the Redis cluster. The structure is documented below.
- network
Id String - ID of the network, to which the Redis cluster belongs.
- resources Property Map
- Resources allocated to hosts of the Redis cluster. The structure is documented below.
- deletion
Protection Boolean - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description String
- Description of the Redis cluster.
- folder
Id String - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- labels Map<String>
- A set of key/value label pairs to assign to the Redis cluster.
- maintenance
Window Property Map - name String
- Name of the Redis cluster. Provided by the client when the cluster is created.
- security
Group List<String>Ids - A set of ids of security groups assigned to hosts of the cluster.
- Boolean
- Redis Cluster mode enabled/disabled.
- tls
Enabled Boolean - tls support mode enabled/disabled.
Outputs
All input properties are implicitly available as output properties. Additionally, the MdbRedisCluster resource produces the following output properties:
- Created
At string - Creation timestamp of the key.
- Health string
- Aggregated health of the cluster. Can be either
ALIVE
,DEGRADED
,DEAD
orHEALTH_UNKNOWN
. For more information seehealth
field of JSON representation in the official documentation. - Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Status of the cluster. Can be either
CREATING
,STARTING
,RUNNING
,UPDATING
,STOPPING
,STOPPED
,ERROR
orSTATUS_UNKNOWN
. For more information seestatus
field of JSON representation in the official documentation.
- Created
At string - Creation timestamp of the key.
- Health string
- Aggregated health of the cluster. Can be either
ALIVE
,DEGRADED
,DEAD
orHEALTH_UNKNOWN
. For more information seehealth
field of JSON representation in the official documentation. - Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Status of the cluster. Can be either
CREATING
,STARTING
,RUNNING
,UPDATING
,STOPPING
,STOPPED
,ERROR
orSTATUS_UNKNOWN
. For more information seestatus
field of JSON representation in the official documentation.
- created
At String - Creation timestamp of the key.
- health String
- Aggregated health of the cluster. Can be either
ALIVE
,DEGRADED
,DEAD
orHEALTH_UNKNOWN
. For more information seehealth
field of JSON representation in the official documentation. - id String
- The provider-assigned unique ID for this managed resource.
- status String
- Status of the cluster. Can be either
CREATING
,STARTING
,RUNNING
,UPDATING
,STOPPING
,STOPPED
,ERROR
orSTATUS_UNKNOWN
. For more information seestatus
field of JSON representation in the official documentation.
- created
At string - Creation timestamp of the key.
- health string
- Aggregated health of the cluster. Can be either
ALIVE
,DEGRADED
,DEAD
orHEALTH_UNKNOWN
. For more information seehealth
field of JSON representation in the official documentation. - id string
- The provider-assigned unique ID for this managed resource.
- status string
- Status of the cluster. Can be either
CREATING
,STARTING
,RUNNING
,UPDATING
,STOPPING
,STOPPED
,ERROR
orSTATUS_UNKNOWN
. For more information seestatus
field of JSON representation in the official documentation.
- created_
at str - Creation timestamp of the key.
- health str
- Aggregated health of the cluster. Can be either
ALIVE
,DEGRADED
,DEAD
orHEALTH_UNKNOWN
. For more information seehealth
field of JSON representation in the official documentation. - id str
- The provider-assigned unique ID for this managed resource.
- status str
- Status of the cluster. Can be either
CREATING
,STARTING
,RUNNING
,UPDATING
,STOPPING
,STOPPED
,ERROR
orSTATUS_UNKNOWN
. For more information seestatus
field of JSON representation in the official documentation.
- created
At String - Creation timestamp of the key.
- health String
- Aggregated health of the cluster. Can be either
ALIVE
,DEGRADED
,DEAD
orHEALTH_UNKNOWN
. For more information seehealth
field of JSON representation in the official documentation. - id String
- The provider-assigned unique ID for this managed resource.
- status String
- Status of the cluster. Can be either
CREATING
,STARTING
,RUNNING
,UPDATING
,STOPPING
,STOPPED
,ERROR
orSTATUS_UNKNOWN
. For more information seestatus
field of JSON representation in the official documentation.
Look up Existing MdbRedisCluster Resource
Get an existing MdbRedisCluster 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?: MdbRedisClusterState, opts?: CustomResourceOptions): MdbRedisCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
config: Optional[MdbRedisClusterConfigArgs] = None,
created_at: Optional[str] = None,
deletion_protection: Optional[bool] = None,
description: Optional[str] = None,
environment: Optional[str] = None,
folder_id: Optional[str] = None,
health: Optional[str] = None,
hosts: Optional[Sequence[MdbRedisClusterHostArgs]] = None,
labels: Optional[Mapping[str, str]] = None,
maintenance_window: Optional[MdbRedisClusterMaintenanceWindowArgs] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
resources: Optional[MdbRedisClusterResourcesArgs] = None,
security_group_ids: Optional[Sequence[str]] = None,
sharded: Optional[bool] = None,
status: Optional[str] = None,
tls_enabled: Optional[bool] = None) -> MdbRedisCluster
func GetMdbRedisCluster(ctx *Context, name string, id IDInput, state *MdbRedisClusterState, opts ...ResourceOption) (*MdbRedisCluster, error)
public static MdbRedisCluster Get(string name, Input<string> id, MdbRedisClusterState? state, CustomResourceOptions? opts = null)
public static MdbRedisCluster get(String name, Output<String> id, MdbRedisClusterState 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.
- Config
Mdb
Redis Cluster Config - Configuration of the Redis cluster. The structure is documented below.
- Created
At string - Creation timestamp of the key.
- Deletion
Protection bool - Inhibits deletion of the cluster. Can be either
true
orfalse
. - Description string
- Description of the Redis cluster.
- Environment string
- Deployment environment of the Redis cluster. Can be either
PRESTABLE
orPRODUCTION
. - Folder
Id string - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- Health string
- Aggregated health of the cluster. Can be either
ALIVE
,DEGRADED
,DEAD
orHEALTH_UNKNOWN
. For more information seehealth
field of JSON representation in the official documentation. - Hosts
List<Mdb
Redis Cluster Host> - A host of the Redis cluster. The structure is documented below.
- Labels Dictionary<string, string>
- A set of key/value label pairs to assign to the Redis cluster.
- Maintenance
Window MdbRedis Cluster Maintenance Window - Name string
- Name of the Redis cluster. Provided by the client when the cluster is created.
- Network
Id string - ID of the network, to which the Redis cluster belongs.
- Resources
Mdb
Redis Cluster Resources - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- Security
Group List<string>Ids - A set of ids of security groups assigned to hosts of the cluster.
- Sharded bool
- Redis Cluster mode enabled/disabled.
- Status string
- Status of the cluster. Can be either
CREATING
,STARTING
,RUNNING
,UPDATING
,STOPPING
,STOPPED
,ERROR
orSTATUS_UNKNOWN
. For more information seestatus
field of JSON representation in the official documentation. - Tls
Enabled bool - tls support mode enabled/disabled.
- Config
Mdb
Redis Cluster Config Args - Configuration of the Redis cluster. The structure is documented below.
- Created
At string - Creation timestamp of the key.
- Deletion
Protection bool - Inhibits deletion of the cluster. Can be either
true
orfalse
. - Description string
- Description of the Redis cluster.
- Environment string
- Deployment environment of the Redis cluster. Can be either
PRESTABLE
orPRODUCTION
. - Folder
Id string - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- Health string
- Aggregated health of the cluster. Can be either
ALIVE
,DEGRADED
,DEAD
orHEALTH_UNKNOWN
. For more information seehealth
field of JSON representation in the official documentation. - Hosts
[]Mdb
Redis Cluster Host Args - A host of the Redis cluster. The structure is documented below.
- Labels map[string]string
- A set of key/value label pairs to assign to the Redis cluster.
- Maintenance
Window MdbRedis Cluster Maintenance Window Args - Name string
- Name of the Redis cluster. Provided by the client when the cluster is created.
- Network
Id string - ID of the network, to which the Redis cluster belongs.
- Resources
Mdb
Redis Cluster Resources Args - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- Security
Group []stringIds - A set of ids of security groups assigned to hosts of the cluster.
- Sharded bool
- Redis Cluster mode enabled/disabled.
- Status string
- Status of the cluster. Can be either
CREATING
,STARTING
,RUNNING
,UPDATING
,STOPPING
,STOPPED
,ERROR
orSTATUS_UNKNOWN
. For more information seestatus
field of JSON representation in the official documentation. - Tls
Enabled bool - tls support mode enabled/disabled.
- config
Mdb
Redis Cluster Config - Configuration of the Redis cluster. The structure is documented below.
- created
At String - Creation timestamp of the key.
- deletion
Protection Boolean - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description String
- Description of the Redis cluster.
- environment String
- Deployment environment of the Redis cluster. Can be either
PRESTABLE
orPRODUCTION
. - folder
Id String - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- health String
- Aggregated health of the cluster. Can be either
ALIVE
,DEGRADED
,DEAD
orHEALTH_UNKNOWN
. For more information seehealth
field of JSON representation in the official documentation. - hosts
List<Mdb
Redis Cluster Host> - A host of the Redis cluster. The structure is documented below.
- labels Map<String,String>
- A set of key/value label pairs to assign to the Redis cluster.
- maintenance
Window MdbRedis Cluster Maintenance Window - name String
- Name of the Redis cluster. Provided by the client when the cluster is created.
- network
Id String - ID of the network, to which the Redis cluster belongs.
- resources
Mdb
Redis Cluster Resources - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- security
Group List<String>Ids - A set of ids of security groups assigned to hosts of the cluster.
- sharded Boolean
- Redis Cluster mode enabled/disabled.
- status String
- Status of the cluster. Can be either
CREATING
,STARTING
,RUNNING
,UPDATING
,STOPPING
,STOPPED
,ERROR
orSTATUS_UNKNOWN
. For more information seestatus
field of JSON representation in the official documentation. - tls
Enabled Boolean - tls support mode enabled/disabled.
- config
Mdb
Redis Cluster Config - Configuration of the Redis cluster. The structure is documented below.
- created
At string - Creation timestamp of the key.
- deletion
Protection boolean - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description string
- Description of the Redis cluster.
- environment string
- Deployment environment of the Redis cluster. Can be either
PRESTABLE
orPRODUCTION
. - folder
Id string - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- health string
- Aggregated health of the cluster. Can be either
ALIVE
,DEGRADED
,DEAD
orHEALTH_UNKNOWN
. For more information seehealth
field of JSON representation in the official documentation. - hosts
Mdb
Redis Cluster Host[] - A host of the Redis cluster. The structure is documented below.
- labels {[key: string]: string}
- A set of key/value label pairs to assign to the Redis cluster.
- maintenance
Window MdbRedis Cluster Maintenance Window - name string
- Name of the Redis cluster. Provided by the client when the cluster is created.
- network
Id string - ID of the network, to which the Redis cluster belongs.
- resources
Mdb
Redis Cluster Resources - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- security
Group string[]Ids - A set of ids of security groups assigned to hosts of the cluster.
- sharded boolean
- Redis Cluster mode enabled/disabled.
- status string
- Status of the cluster. Can be either
CREATING
,STARTING
,RUNNING
,UPDATING
,STOPPING
,STOPPED
,ERROR
orSTATUS_UNKNOWN
. For more information seestatus
field of JSON representation in the official documentation. - tls
Enabled boolean - tls support mode enabled/disabled.
- config
Mdb
Redis Cluster Config Args - Configuration of the Redis cluster. The structure is documented below.
- created_
at str - Creation timestamp of the key.
- deletion_
protection bool - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description str
- Description of the Redis cluster.
- environment str
- Deployment environment of the Redis cluster. Can be either
PRESTABLE
orPRODUCTION
. - folder_
id str - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- health str
- Aggregated health of the cluster. Can be either
ALIVE
,DEGRADED
,DEAD
orHEALTH_UNKNOWN
. For more information seehealth
field of JSON representation in the official documentation. - hosts
Sequence[Mdb
Redis Cluster Host Args] - A host of the Redis cluster. The structure is documented below.
- labels Mapping[str, str]
- A set of key/value label pairs to assign to the Redis cluster.
- maintenance_
window MdbRedis Cluster Maintenance Window Args - name str
- Name of the Redis cluster. Provided by the client when the cluster is created.
- network_
id str - ID of the network, to which the Redis cluster belongs.
- resources
Mdb
Redis Cluster Resources Args - Resources allocated to hosts of the Redis cluster. The structure is documented below.
- security_
group_ Sequence[str]ids - A set of ids of security groups assigned to hosts of the cluster.
- sharded bool
- Redis Cluster mode enabled/disabled.
- status str
- Status of the cluster. Can be either
CREATING
,STARTING
,RUNNING
,UPDATING
,STOPPING
,STOPPED
,ERROR
orSTATUS_UNKNOWN
. For more information seestatus
field of JSON representation in the official documentation. - tls_
enabled bool - tls support mode enabled/disabled.
- config Property Map
- Configuration of the Redis cluster. The structure is documented below.
- created
At String - Creation timestamp of the key.
- deletion
Protection Boolean - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description String
- Description of the Redis cluster.
- environment String
- Deployment environment of the Redis cluster. Can be either
PRESTABLE
orPRODUCTION
. - folder
Id String - The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used.
- health String
- Aggregated health of the cluster. Can be either
ALIVE
,DEGRADED
,DEAD
orHEALTH_UNKNOWN
. For more information seehealth
field of JSON representation in the official documentation. - hosts List<Property Map>
- A host of the Redis cluster. The structure is documented below.
- labels Map<String>
- A set of key/value label pairs to assign to the Redis cluster.
- maintenance
Window Property Map - name String
- Name of the Redis cluster. Provided by the client when the cluster is created.
- network
Id String - ID of the network, to which the Redis cluster belongs.
- resources Property Map
- Resources allocated to hosts of the Redis cluster. The structure is documented below.
- security
Group List<String>Ids - A set of ids of security groups assigned to hosts of the cluster.
- sharded Boolean
- Redis Cluster mode enabled/disabled.
- status String
- Status of the cluster. Can be either
CREATING
,STARTING
,RUNNING
,UPDATING
,STOPPING
,STOPPED
,ERROR
orSTATUS_UNKNOWN
. For more information seestatus
field of JSON representation in the official documentation. - tls
Enabled Boolean - tls support mode enabled/disabled.
Supporting Types
MdbRedisClusterConfig, MdbRedisClusterConfigArgs
- Password string
- Password for the Redis cluster.
- Version string
- Version of Redis (5.0, 6.0 or 6.2).
- Databases int
- Number of databases (changing requires redis-server restart).
- Maxmemory
Policy string - Redis key eviction policy for a dataset that reaches maximum memory. Can be any of the listed in the official RedisDB documentation.
- Notify
Keyspace stringEvents - Select the events that Redis will notify among a set of classes.
- Slowlog
Log intSlower Than - Log slow queries below this number in microseconds.
- Slowlog
Max intLen - Slow queries log length.
- Timeout int
- Close the connection after a client is idle for N seconds.
- Password string
- Password for the Redis cluster.
- Version string
- Version of Redis (5.0, 6.0 or 6.2).
- Databases int
- Number of databases (changing requires redis-server restart).
- Maxmemory
Policy string - Redis key eviction policy for a dataset that reaches maximum memory. Can be any of the listed in the official RedisDB documentation.
- Notify
Keyspace stringEvents - Select the events that Redis will notify among a set of classes.
- Slowlog
Log intSlower Than - Log slow queries below this number in microseconds.
- Slowlog
Max intLen - Slow queries log length.
- Timeout int
- Close the connection after a client is idle for N seconds.
- password String
- Password for the Redis cluster.
- version String
- Version of Redis (5.0, 6.0 or 6.2).
- databases Integer
- Number of databases (changing requires redis-server restart).
- maxmemory
Policy String - Redis key eviction policy for a dataset that reaches maximum memory. Can be any of the listed in the official RedisDB documentation.
- notify
Keyspace StringEvents - Select the events that Redis will notify among a set of classes.
- slowlog
Log IntegerSlower Than - Log slow queries below this number in microseconds.
- slowlog
Max IntegerLen - Slow queries log length.
- timeout Integer
- Close the connection after a client is idle for N seconds.
- password string
- Password for the Redis cluster.
- version string
- Version of Redis (5.0, 6.0 or 6.2).
- databases number
- Number of databases (changing requires redis-server restart).
- maxmemory
Policy string - Redis key eviction policy for a dataset that reaches maximum memory. Can be any of the listed in the official RedisDB documentation.
- notify
Keyspace stringEvents - Select the events that Redis will notify among a set of classes.
- slowlog
Log numberSlower Than - Log slow queries below this number in microseconds.
- slowlog
Max numberLen - Slow queries log length.
- timeout number
- Close the connection after a client is idle for N seconds.
- password str
- Password for the Redis cluster.
- version str
- Version of Redis (5.0, 6.0 or 6.2).
- databases int
- Number of databases (changing requires redis-server restart).
- maxmemory_
policy str - Redis key eviction policy for a dataset that reaches maximum memory. Can be any of the listed in the official RedisDB documentation.
- notify_
keyspace_ strevents - Select the events that Redis will notify among a set of classes.
- slowlog_
log_ intslower_ than - Log slow queries below this number in microseconds.
- slowlog_
max_ intlen - Slow queries log length.
- timeout int
- Close the connection after a client is idle for N seconds.
- password String
- Password for the Redis cluster.
- version String
- Version of Redis (5.0, 6.0 or 6.2).
- databases Number
- Number of databases (changing requires redis-server restart).
- maxmemory
Policy String - Redis key eviction policy for a dataset that reaches maximum memory. Can be any of the listed in the official RedisDB documentation.
- notify
Keyspace StringEvents - Select the events that Redis will notify among a set of classes.
- slowlog
Log NumberSlower Than - Log slow queries below this number in microseconds.
- slowlog
Max NumberLen - Slow queries log length.
- timeout Number
- Close the connection after a client is idle for N seconds.
MdbRedisClusterHost, MdbRedisClusterHostArgs
- Zone string
- The availability zone where the Redis host will be created. For more information see the official documentation.
- Fqdn string
- The fully qualified domain name of the host.
- string
- The name of the shard to which the host belongs.
- Subnet
Id string - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- Zone string
- The availability zone where the Redis host will be created. For more information see the official documentation.
- Fqdn string
- The fully qualified domain name of the host.
- string
- The name of the shard to which the host belongs.
- Subnet
Id string - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- zone String
- The availability zone where the Redis host will be created. For more information see the official documentation.
- fqdn String
- The fully qualified domain name of the host.
- String
- The name of the shard to which the host belongs.
- subnet
Id String - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- zone string
- The availability zone where the Redis host will be created. For more information see the official documentation.
- fqdn string
- The fully qualified domain name of the host.
- string
- The name of the shard to which the host belongs.
- subnet
Id string - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- zone str
- The availability zone where the Redis host will be created. For more information see the official documentation.
- fqdn str
- The fully qualified domain name of the host.
- str
- The name of the shard to which the host belongs.
- subnet_
id str - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
- zone String
- The availability zone where the Redis host will be created. For more information see the official documentation.
- fqdn String
- The fully qualified domain name of the host.
- String
- The name of the shard to which the host belongs.
- subnet
Id String - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
MdbRedisClusterMaintenanceWindow, MdbRedisClusterMaintenanceWindowArgs
- Type string
- Type of maintenance window. Can be either
ANYTIME
orWEEKLY
. A day and hour of window need to be specified with weekly window. - Day string
- Day of week for maintenance window if window type is weekly. Possible values:
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
. - Hour int
- Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
- Type string
- Type of maintenance window. Can be either
ANYTIME
orWEEKLY
. A day and hour of window need to be specified with weekly window. - Day string
- Day of week for maintenance window if window type is weekly. Possible values:
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
. - Hour int
- Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
- type String
- Type of maintenance window. Can be either
ANYTIME
orWEEKLY
. A day and hour of window need to be specified with weekly window. - day String
- Day of week for maintenance window if window type is weekly. Possible values:
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
. - hour Integer
- Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
- type string
- Type of maintenance window. Can be either
ANYTIME
orWEEKLY
. A day and hour of window need to be specified with weekly window. - day string
- Day of week for maintenance window if window type is weekly. Possible values:
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
. - hour number
- Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
- type str
- Type of maintenance window. Can be either
ANYTIME
orWEEKLY
. A day and hour of window need to be specified with weekly window. - day str
- Day of week for maintenance window if window type is weekly. Possible values:
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
. - hour int
- Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
- type String
- Type of maintenance window. Can be either
ANYTIME
orWEEKLY
. A day and hour of window need to be specified with weekly window. - day String
- Day of week for maintenance window if window type is weekly. Possible values:
MON
,TUE
,WED
,THU
,FRI
,SAT
,SUN
. - hour Number
- Hour of day in UTC time zone (1-24) for maintenance window if window type is weekly.
MdbRedisClusterResources, MdbRedisClusterResourcesArgs
- Disk
Size int - Volume of the storage available to a host, in gigabytes.
- Resource
Preset stringId - Disk
Type stringId - Type of the storage of Redis hosts - environment default is used if missing.
- Disk
Size int - Volume of the storage available to a host, in gigabytes.
- Resource
Preset stringId - Disk
Type stringId - Type of the storage of Redis hosts - environment default is used if missing.
- disk
Size Integer - Volume of the storage available to a host, in gigabytes.
- resource
Preset StringId - disk
Type StringId - Type of the storage of Redis hosts - environment default is used if missing.
- disk
Size number - Volume of the storage available to a host, in gigabytes.
- resource
Preset stringId - disk
Type stringId - Type of the storage of Redis hosts - environment default is used if missing.
- disk_
size int - Volume of the storage available to a host, in gigabytes.
- resource_
preset_ strid - disk_
type_ strid - Type of the storage of Redis hosts - environment default is used if missing.
- disk
Size Number - Volume of the storage available to a host, in gigabytes.
- resource
Preset StringId - disk
Type StringId - Type of the storage of Redis hosts - environment default is used if missing.
Import
A cluster can be imported using the id
of the resource, e.g.
$ pulumi import yandex:index/mdbRedisCluster:MdbRedisCluster foo cluster_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.