yandex.MdbMysqlCluster
Explore with Pulumi AI
Manages a MySQL cluster within the Yandex.Cloud. For more information, see the official documentation.
MySQL config
If not specified mysql_config
then does not make any changes.
sql_mode
default value:ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
some of:
- 1: “ALLOW_INVALID_DATES”
- 2: “ANSI_QUOTES”
- 3: “ERROR_FOR_DIVISION_BY_ZERO”
- 4: “HIGH_NOT_PRECEDENCE”
- 5: “IGNORE_SPACE”
- 6: “NO_AUTO_VALUE_ON_ZERO”
- 7: “NO_BACKSLASH_ESCAPES”
- 8: “NO_ENGINE_SUBSTITUTION”
- 9: “NO_UNSIGNED_SUBTRACTION”
- 10: “NO_ZERO_DATE”
- 11: “NO_ZERO_IN_DATE”
- 15: “ONLY_FULL_GROUP_BY”
- 16: “PAD_CHAR_TO_FULL_LENGTH”
- 17: “PIPES_AS_CONCAT”
- 18: “REAL_AS_FLOAT”
- 19: “STRICT_ALL_TABLES”
- 20: “STRICT_TRANS_TABLES”
- 21: “TIME_TRUNCATE_FRACTIONAL”
- 22: “ANSI”
- 23: “TRADITIONAL”
- 24: “NO_DIR_IN_CREATE”
or:
- 0: “SQLMODE_UNSPECIFIED”
MysqlConfig 8.0
audit_log
booleanauto_increment_increment
integerauto_increment_offset
integerbinlog_cache_size
integerbinlog_group_commit_sync_delay
integerbinlog_row_image
one of:- 0: “BINLOG_ROW_IMAGE_UNSPECIFIED”
- 1: “FULL”
- 2: “MINIMAL”
- 3: “NOBLOB”
binlog_rows_query_log_events
booleancharacter_set_server
textcollation_server
textdefault_authentication_plugin
one of:- 0: “AUTH_PLUGIN_UNSPECIFIED”
- 1: “MYSQL_NATIVE_PASSWORD”
- 2: “CACHING_SHA2_PASSWORD”
- 3: “SHA256_PASSWORD”
default_time_zone
textexplicit_defaults_for_timestamp
booleangeneral_log
booleangroup_concat_max_len
integerinnodb_adaptive_hash_index
booleaninnodb_buffer_pool_size
integerinnodb_flush_log_at_trx_commit
integerinnodb_io_capacity
integerinnodb_io_capacity_max
integerinnodb_lock_wait_timeout
integerinnodb_log_buffer_size
integerinnodb_log_file_size
integerinnodb_numa_interleave
booleaninnodb_print_all_deadlocks
booleaninnodb_purge_threads
integerinnodb_read_io_threads
integerinnodb_temp_data_file_max_size
integerinnodb_thread_concurrency
integerinnodb_write_io_threads
integerjoin_buffer_size
integerlong_query_time
floatmax_allowed_packet
integermax_connections
integermax_heap_table_size
integernet_read_timeout
integernet_write_timeout
integerregexp_time_limit
integerrpl_semi_sync_master_wait_for_slave_count
integerslave_parallel_type
one of:- 0: “SLAVE_PARALLEL_TYPE_UNSPECIFIED”
- 1: “DATABASE”
- 2: “LOGICAL_CLOCK”
slave_parallel_workers
integersort_buffer_size
integersync_binlog
integertable_definition_cache
integertable_open_cache
integertable_open_cache_instances
integerthread_cache_size
integerthread_stack
integertmp_table_size
integertransaction_isolation
one of:- 0: “TRANSACTION_ISOLATION_UNSPECIFIED”
- 1: “READ_COMMITTED”
- 2: “REPEATABLE_READ”
- 3: “SERIALIZABLE”
MysqlConfig 5.7
audit_log
booleanauto_increment_increment
integerauto_increment_offset
integerbinlog_cache_size
integerbinlog_group_commit_sync_delay
integerbinlog_row_image
one of:- 0: “BINLOG_ROW_IMAGE_UNSPECIFIED”
- 1: “FULL”
- 2: “MINIMAL”
- 3: “NOBLOB”
binlog_rows_query_log_events
booleancharacter_set_server
textcollation_server
textdefault_authentication_plugin
one of:- 0: “AUTH_PLUGIN_UNSPECIFIED”
- 1: “MYSQL_NATIVE_PASSWORD”
- 2: “CACHING_SHA2_PASSWORD”
- 3: “SHA256_PASSWORD”
default_time_zone
textexplicit_defaults_for_timestamp
booleangeneral_log
booleangroup_concat_max_len
integerinnodb_adaptive_hash_index
booleaninnodb_buffer_pool_size
integerinnodb_flush_log_at_trx_commit
integerinnodb_io_capacity
integerinnodb_io_capacity_max
integerinnodb_lock_wait_timeout
integerinnodb_log_buffer_size
integerinnodb_log_file_size
integerinnodb_numa_interleave
booleaninnodb_print_all_deadlocks
booleaninnodb_purge_threads
integerinnodb_read_io_threads
integerinnodb_temp_data_file_max_size
integerinnodb_thread_concurrency
integerinnodb_write_io_threads
integerjoin_buffer_size
integerlong_query_time
floatmax_allowed_packet
integermax_connections
integermax_heap_table_size
integernet_read_timeout
integernet_write_timeout
integerrpl_semi_sync_master_wait_for_slave_count
integerslave_parallel_type
one of:- 0: “SLAVE_PARALLEL_TYPE_UNSPECIFIED”
- 1: “DATABASE”
- 2: “LOGICAL_CLOCK”
slave_parallel_workers
integersort_buffer_size
integersync_binlog
integertable_definition_cache
integertable_open_cache
integertable_open_cache_instances
integerthread_cache_size
integerthread_stack
integertmp_table_size
integertransaction_isolation
one of:- 0: “TRANSACTION_ISOLATION_UNSPECIFIED”
- 1: “READ_COMMITTED”
- 2: “REPEATABLE_READ”
- 3: “SERIALIZABLE”
Example Usage
Example of creating a Single Node MySQL.
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
{
Zone = "ru-central1-a",
NetworkId = fooVpcNetwork.Id,
V4CidrBlocks =
{
"10.5.0.0/24",
},
});
var fooMdbMysqlCluster = new Yandex.MdbMysqlCluster("fooMdbMysqlCluster", new Yandex.MdbMysqlClusterArgs
{
Environment = "PRESTABLE",
NetworkId = fooVpcNetwork.Id,
Version = "8.0",
Resources = new Yandex.Inputs.MdbMysqlClusterResourcesArgs
{
ResourcePresetId = "s2.micro",
DiskTypeId = "network-ssd",
DiskSize = 16,
},
MysqlConfig =
{
{ "sql_mode", "ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION" },
{ "max_connections", "100" },
{ "default_authentication_plugin", "MYSQL_NATIVE_PASSWORD" },
{ "innodb_print_all_deadlocks", "true" },
},
Access = new Yandex.Inputs.MdbMysqlClusterAccessArgs
{
WebSql = true,
},
Databases =
{
new Yandex.Inputs.MdbMysqlClusterDatabaseArgs
{
Name = "db_name",
},
},
Users =
{
new Yandex.Inputs.MdbMysqlClusterUserArgs
{
Name = "user_name",
Password = "your_password",
Permissions =
{
new Yandex.Inputs.MdbMysqlClusterUserPermissionArgs
{
DatabaseName = "db_name",
Roles =
{
"ALL",
},
},
},
},
},
Hosts =
{
new Yandex.Inputs.MdbMysqlClusterHostArgs
{
Zone = "ru-central1-a",
SubnetId = fooVpcSubnet.Id,
},
},
});
}
}
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{
Zone: pulumi.String("ru-central1-a"),
NetworkId: fooVpcNetwork.ID(),
V4CidrBlocks: pulumi.StringArray{
pulumi.String("10.5.0.0/24"),
},
})
if err != nil {
return err
}
_, err = yandex.NewMdbMysqlCluster(ctx, "fooMdbMysqlCluster", &yandex.MdbMysqlClusterArgs{
Environment: pulumi.String("PRESTABLE"),
NetworkId: fooVpcNetwork.ID(),
Version: pulumi.String("8.0"),
Resources: &MdbMysqlClusterResourcesArgs{
ResourcePresetId: pulumi.String("s2.micro"),
DiskTypeId: pulumi.String("network-ssd"),
DiskSize: pulumi.Int(16),
},
MysqlConfig: pulumi.StringMap{
"sql_mode": pulumi.String("ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"),
"max_connections": pulumi.String("100"),
"default_authentication_plugin": pulumi.String("MYSQL_NATIVE_PASSWORD"),
"innodb_print_all_deadlocks": pulumi.String("true"),
},
Access: &MdbMysqlClusterAccessArgs{
WebSql: pulumi.Bool(true),
},
Databases: MdbMysqlClusterDatabaseArray{
&MdbMysqlClusterDatabaseArgs{
Name: pulumi.String("db_name"),
},
},
Users: MdbMysqlClusterUserArray{
&MdbMysqlClusterUserArgs{
Name: pulumi.String("user_name"),
Password: pulumi.String("your_password"),
Permissions: MdbMysqlClusterUserPermissionArray{
&MdbMysqlClusterUserPermissionArgs{
DatabaseName: pulumi.String("db_name"),
Roles: pulumi.StringArray{
pulumi.String("ALL"),
},
},
},
},
},
Hosts: MdbMysqlClusterHostArray{
&MdbMysqlClusterHostArgs{
Zone: pulumi.String("ru-central1-a"),
SubnetId: fooVpcSubnet.ID(),
},
},
})
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",
zone="ru-central1-a",
network_id=foo_vpc_network.id,
v4_cidr_blocks=["10.5.0.0/24"])
foo_mdb_mysql_cluster = yandex.MdbMysqlCluster("fooMdbMysqlCluster",
environment="PRESTABLE",
network_id=foo_vpc_network.id,
version="8.0",
resources=yandex.MdbMysqlClusterResourcesArgs(
resource_preset_id="s2.micro",
disk_type_id="network-ssd",
disk_size=16,
),
mysql_config={
"sql_mode": "ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION",
"max_connections": "100",
"default_authentication_plugin": "MYSQL_NATIVE_PASSWORD",
"innodb_print_all_deadlocks": "true",
},
access=yandex.MdbMysqlClusterAccessArgs(
web_sql=True,
),
databases=[yandex.MdbMysqlClusterDatabaseArgs(
name="db_name",
)],
users=[yandex.MdbMysqlClusterUserArgs(
name="user_name",
password="your_password",
permissions=[yandex.MdbMysqlClusterUserPermissionArgs(
database_name="db_name",
roles=["ALL"],
)],
)],
hosts=[yandex.MdbMysqlClusterHostArgs(
zone="ru-central1-a",
subnet_id=foo_vpc_subnet.id,
)])
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const fooVpcNetwork = new yandex.VpcNetwork("fooVpcNetwork", {});
const fooVpcSubnet = new yandex.VpcSubnet("fooVpcSubnet", {
zone: "ru-central1-a",
networkId: fooVpcNetwork.id,
v4CidrBlocks: ["10.5.0.0/24"],
});
const fooMdbMysqlCluster = new yandex.MdbMysqlCluster("fooMdbMysqlCluster", {
environment: "PRESTABLE",
networkId: fooVpcNetwork.id,
version: "8.0",
resources: {
resourcePresetId: "s2.micro",
diskTypeId: "network-ssd",
diskSize: 16,
},
mysqlConfig: {
sql_mode: "ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION",
max_connections: 100,
default_authentication_plugin: "MYSQL_NATIVE_PASSWORD",
innodb_print_all_deadlocks: true,
},
access: {
webSql: true,
},
databases: [{
name: "db_name",
}],
users: [{
name: "user_name",
password: "your_password",
permissions: [{
databaseName: "db_name",
roles: ["ALL"],
}],
}],
hosts: [{
zone: "ru-central1-a",
subnetId: fooVpcSubnet.id,
}],
});
Coming soon!
Example of creating a High-Availability(HA) MySQL 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
{
Zone = "ru-central1-a",
NetworkId = fooVpcNetwork.Id,
V4CidrBlocks =
{
"10.1.0.0/24",
},
});
var bar = new Yandex.VpcSubnet("bar", new Yandex.VpcSubnetArgs
{
Zone = "ru-central1-b",
NetworkId = fooVpcNetwork.Id,
V4CidrBlocks =
{
"10.2.0.0/24",
},
});
var fooMdbMysqlCluster = new Yandex.MdbMysqlCluster("fooMdbMysqlCluster", new Yandex.MdbMysqlClusterArgs
{
Environment = "PRESTABLE",
NetworkId = fooVpcNetwork.Id,
Version = "8.0",
Resources = new Yandex.Inputs.MdbMysqlClusterResourcesArgs
{
ResourcePresetId = "s2.micro",
DiskTypeId = "network-ssd",
DiskSize = 16,
},
Databases =
{
new Yandex.Inputs.MdbMysqlClusterDatabaseArgs
{
Name = "db_name",
},
},
MaintenanceWindow = new Yandex.Inputs.MdbMysqlClusterMaintenanceWindowArgs
{
Type = "WEEKLY",
Day = "SAT",
Hour = 12,
},
Users =
{
new Yandex.Inputs.MdbMysqlClusterUserArgs
{
Name = "user_name",
Password = "your_password",
Permissions =
{
new Yandex.Inputs.MdbMysqlClusterUserPermissionArgs
{
DatabaseName = "db_name",
Roles =
{
"ALL",
},
},
},
},
},
Hosts =
{
new Yandex.Inputs.MdbMysqlClusterHostArgs
{
Zone = "ru-central1-a",
SubnetId = fooVpcSubnet.Id,
},
new Yandex.Inputs.MdbMysqlClusterHostArgs
{
Zone = "ru-central1-b",
SubnetId = bar.Id,
},
},
});
}
}
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{
Zone: pulumi.String("ru-central1-a"),
NetworkId: fooVpcNetwork.ID(),
V4CidrBlocks: pulumi.StringArray{
pulumi.String("10.1.0.0/24"),
},
})
if err != nil {
return err
}
bar, err := yandex.NewVpcSubnet(ctx, "bar", &yandex.VpcSubnetArgs{
Zone: pulumi.String("ru-central1-b"),
NetworkId: fooVpcNetwork.ID(),
V4CidrBlocks: pulumi.StringArray{
pulumi.String("10.2.0.0/24"),
},
})
if err != nil {
return err
}
_, err = yandex.NewMdbMysqlCluster(ctx, "fooMdbMysqlCluster", &yandex.MdbMysqlClusterArgs{
Environment: pulumi.String("PRESTABLE"),
NetworkId: fooVpcNetwork.ID(),
Version: pulumi.String("8.0"),
Resources: &MdbMysqlClusterResourcesArgs{
ResourcePresetId: pulumi.String("s2.micro"),
DiskTypeId: pulumi.String("network-ssd"),
DiskSize: pulumi.Int(16),
},
Databases: MdbMysqlClusterDatabaseArray{
&MdbMysqlClusterDatabaseArgs{
Name: pulumi.String("db_name"),
},
},
MaintenanceWindow: &MdbMysqlClusterMaintenanceWindowArgs{
Type: pulumi.String("WEEKLY"),
Day: pulumi.String("SAT"),
Hour: pulumi.Int(12),
},
Users: MdbMysqlClusterUserArray{
&MdbMysqlClusterUserArgs{
Name: pulumi.String("user_name"),
Password: pulumi.String("your_password"),
Permissions: MdbMysqlClusterUserPermissionArray{
&MdbMysqlClusterUserPermissionArgs{
DatabaseName: pulumi.String("db_name"),
Roles: pulumi.StringArray{
pulumi.String("ALL"),
},
},
},
},
},
Hosts: MdbMysqlClusterHostArray{
&MdbMysqlClusterHostArgs{
Zone: pulumi.String("ru-central1-a"),
SubnetId: fooVpcSubnet.ID(),
},
&MdbMysqlClusterHostArgs{
Zone: pulumi.String("ru-central1-b"),
SubnetId: bar.ID(),
},
},
})
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",
zone="ru-central1-a",
network_id=foo_vpc_network.id,
v4_cidr_blocks=["10.1.0.0/24"])
bar = yandex.VpcSubnet("bar",
zone="ru-central1-b",
network_id=foo_vpc_network.id,
v4_cidr_blocks=["10.2.0.0/24"])
foo_mdb_mysql_cluster = yandex.MdbMysqlCluster("fooMdbMysqlCluster",
environment="PRESTABLE",
network_id=foo_vpc_network.id,
version="8.0",
resources=yandex.MdbMysqlClusterResourcesArgs(
resource_preset_id="s2.micro",
disk_type_id="network-ssd",
disk_size=16,
),
databases=[yandex.MdbMysqlClusterDatabaseArgs(
name="db_name",
)],
maintenance_window=yandex.MdbMysqlClusterMaintenanceWindowArgs(
type="WEEKLY",
day="SAT",
hour=12,
),
users=[yandex.MdbMysqlClusterUserArgs(
name="user_name",
password="your_password",
permissions=[yandex.MdbMysqlClusterUserPermissionArgs(
database_name="db_name",
roles=["ALL"],
)],
)],
hosts=[
yandex.MdbMysqlClusterHostArgs(
zone="ru-central1-a",
subnet_id=foo_vpc_subnet.id,
),
yandex.MdbMysqlClusterHostArgs(
zone="ru-central1-b",
subnet_id=bar.id,
),
])
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const fooVpcNetwork = new yandex.VpcNetwork("fooVpcNetwork", {});
const fooVpcSubnet = new yandex.VpcSubnet("fooVpcSubnet", {
zone: "ru-central1-a",
networkId: fooVpcNetwork.id,
v4CidrBlocks: ["10.1.0.0/24"],
});
const bar = new yandex.VpcSubnet("bar", {
zone: "ru-central1-b",
networkId: fooVpcNetwork.id,
v4CidrBlocks: ["10.2.0.0/24"],
});
const fooMdbMysqlCluster = new yandex.MdbMysqlCluster("fooMdbMysqlCluster", {
environment: "PRESTABLE",
networkId: fooVpcNetwork.id,
version: "8.0",
resources: {
resourcePresetId: "s2.micro",
diskTypeId: "network-ssd",
diskSize: 16,
},
databases: [{
name: "db_name",
}],
maintenanceWindow: {
type: "WEEKLY",
day: "SAT",
hour: 12,
},
users: [{
name: "user_name",
password: "your_password",
permissions: [{
databaseName: "db_name",
roles: ["ALL"],
}],
}],
hosts: [
{
zone: "ru-central1-a",
subnetId: fooVpcSubnet.id,
},
{
zone: "ru-central1-b",
subnetId: bar.id,
},
],
});
Coming soon!
Example of creating a MySQL Cluster with cascade replicas: HA-group consist of 'na-1' and 'na-2', cascade replicas form a chain 'na-1' > 'nb-1' > 'nb-2'
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
{
Zone = "ru-central1-a",
NetworkId = fooVpcNetwork.Id,
V4CidrBlocks =
{
"10.1.0.0/24",
},
});
var bar = new Yandex.VpcSubnet("bar", new Yandex.VpcSubnetArgs
{
Zone = "ru-central1-b",
NetworkId = fooVpcNetwork.Id,
V4CidrBlocks =
{
"10.2.0.0/24",
},
});
var fooMdbMysqlCluster = new Yandex.MdbMysqlCluster("fooMdbMysqlCluster", new Yandex.MdbMysqlClusterArgs
{
Environment = "PRESTABLE",
NetworkId = fooVpcNetwork.Id,
Version = "8.0",
Resources = new Yandex.Inputs.MdbMysqlClusterResourcesArgs
{
ResourcePresetId = "s2.micro",
DiskTypeId = "network-ssd",
DiskSize = 16,
},
Databases =
{
new Yandex.Inputs.MdbMysqlClusterDatabaseArgs
{
Name = "db_name",
},
},
MaintenanceWindow = new Yandex.Inputs.MdbMysqlClusterMaintenanceWindowArgs
{
Type = "WEEKLY",
Day = "SAT",
Hour = 12,
},
Users =
{
new Yandex.Inputs.MdbMysqlClusterUserArgs
{
Name = "user_name",
Password = "your_password",
Permissions =
{
new Yandex.Inputs.MdbMysqlClusterUserPermissionArgs
{
DatabaseName = "db_name",
Roles =
{
"ALL",
},
},
},
},
},
Hosts =
{
new Yandex.Inputs.MdbMysqlClusterHostArgs
{
Zone = "ru-central1-a",
Name = "na-1",
SubnetId = fooVpcSubnet.Id,
},
new Yandex.Inputs.MdbMysqlClusterHostArgs
{
Zone = "ru-central1-a",
Name = "na-2",
SubnetId = fooVpcSubnet.Id,
},
new Yandex.Inputs.MdbMysqlClusterHostArgs
{
Zone = "ru-central1-b",
Name = "nb-1",
ReplicationSourceName = "na-1",
SubnetId = bar.Id,
},
new Yandex.Inputs.MdbMysqlClusterHostArgs
{
Zone = "ru-central1-b",
Name = "nb-2",
ReplicationSourceName = "nb-1",
SubnetId = bar.Id,
},
},
});
}
}
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{
Zone: pulumi.String("ru-central1-a"),
NetworkId: fooVpcNetwork.ID(),
V4CidrBlocks: pulumi.StringArray{
pulumi.String("10.1.0.0/24"),
},
})
if err != nil {
return err
}
bar, err := yandex.NewVpcSubnet(ctx, "bar", &yandex.VpcSubnetArgs{
Zone: pulumi.String("ru-central1-b"),
NetworkId: fooVpcNetwork.ID(),
V4CidrBlocks: pulumi.StringArray{
pulumi.String("10.2.0.0/24"),
},
})
if err != nil {
return err
}
_, err = yandex.NewMdbMysqlCluster(ctx, "fooMdbMysqlCluster", &yandex.MdbMysqlClusterArgs{
Environment: pulumi.String("PRESTABLE"),
NetworkId: fooVpcNetwork.ID(),
Version: pulumi.String("8.0"),
Resources: &MdbMysqlClusterResourcesArgs{
ResourcePresetId: pulumi.String("s2.micro"),
DiskTypeId: pulumi.String("network-ssd"),
DiskSize: pulumi.Int(16),
},
Databases: MdbMysqlClusterDatabaseArray{
&MdbMysqlClusterDatabaseArgs{
Name: pulumi.String("db_name"),
},
},
MaintenanceWindow: &MdbMysqlClusterMaintenanceWindowArgs{
Type: pulumi.String("WEEKLY"),
Day: pulumi.String("SAT"),
Hour: pulumi.Int(12),
},
Users: MdbMysqlClusterUserArray{
&MdbMysqlClusterUserArgs{
Name: pulumi.String("user_name"),
Password: pulumi.String("your_password"),
Permissions: MdbMysqlClusterUserPermissionArray{
&MdbMysqlClusterUserPermissionArgs{
DatabaseName: pulumi.String("db_name"),
Roles: pulumi.StringArray{
pulumi.String("ALL"),
},
},
},
},
},
Hosts: MdbMysqlClusterHostArray{
&MdbMysqlClusterHostArgs{
Zone: pulumi.String("ru-central1-a"),
Name: pulumi.String("na-1"),
SubnetId: fooVpcSubnet.ID(),
},
&MdbMysqlClusterHostArgs{
Zone: pulumi.String("ru-central1-a"),
Name: pulumi.String("na-2"),
SubnetId: fooVpcSubnet.ID(),
},
&MdbMysqlClusterHostArgs{
Zone: pulumi.String("ru-central1-b"),
Name: pulumi.String("nb-1"),
ReplicationSourceName: pulumi.String("na-1"),
SubnetId: bar.ID(),
},
&MdbMysqlClusterHostArgs{
Zone: pulumi.String("ru-central1-b"),
Name: pulumi.String("nb-2"),
ReplicationSourceName: pulumi.String("nb-1"),
SubnetId: bar.ID(),
},
},
})
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",
zone="ru-central1-a",
network_id=foo_vpc_network.id,
v4_cidr_blocks=["10.1.0.0/24"])
bar = yandex.VpcSubnet("bar",
zone="ru-central1-b",
network_id=foo_vpc_network.id,
v4_cidr_blocks=["10.2.0.0/24"])
foo_mdb_mysql_cluster = yandex.MdbMysqlCluster("fooMdbMysqlCluster",
environment="PRESTABLE",
network_id=foo_vpc_network.id,
version="8.0",
resources=yandex.MdbMysqlClusterResourcesArgs(
resource_preset_id="s2.micro",
disk_type_id="network-ssd",
disk_size=16,
),
databases=[yandex.MdbMysqlClusterDatabaseArgs(
name="db_name",
)],
maintenance_window=yandex.MdbMysqlClusterMaintenanceWindowArgs(
type="WEEKLY",
day="SAT",
hour=12,
),
users=[yandex.MdbMysqlClusterUserArgs(
name="user_name",
password="your_password",
permissions=[yandex.MdbMysqlClusterUserPermissionArgs(
database_name="db_name",
roles=["ALL"],
)],
)],
hosts=[
yandex.MdbMysqlClusterHostArgs(
zone="ru-central1-a",
name="na-1",
subnet_id=foo_vpc_subnet.id,
),
yandex.MdbMysqlClusterHostArgs(
zone="ru-central1-a",
name="na-2",
subnet_id=foo_vpc_subnet.id,
),
yandex.MdbMysqlClusterHostArgs(
zone="ru-central1-b",
name="nb-1",
replication_source_name="na-1",
subnet_id=bar.id,
),
yandex.MdbMysqlClusterHostArgs(
zone="ru-central1-b",
name="nb-2",
replication_source_name="nb-1",
subnet_id=bar.id,
),
])
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const fooVpcNetwork = new yandex.VpcNetwork("fooVpcNetwork", {});
const fooVpcSubnet = new yandex.VpcSubnet("fooVpcSubnet", {
zone: "ru-central1-a",
networkId: fooVpcNetwork.id,
v4CidrBlocks: ["10.1.0.0/24"],
});
const bar = new yandex.VpcSubnet("bar", {
zone: "ru-central1-b",
networkId: fooVpcNetwork.id,
v4CidrBlocks: ["10.2.0.0/24"],
});
const fooMdbMysqlCluster = new yandex.MdbMysqlCluster("fooMdbMysqlCluster", {
environment: "PRESTABLE",
networkId: fooVpcNetwork.id,
version: "8.0",
resources: {
resourcePresetId: "s2.micro",
diskTypeId: "network-ssd",
diskSize: 16,
},
databases: [{
name: "db_name",
}],
maintenanceWindow: {
type: "WEEKLY",
day: "SAT",
hour: 12,
},
users: [{
name: "user_name",
password: "your_password",
permissions: [{
databaseName: "db_name",
roles: ["ALL"],
}],
}],
hosts: [
{
zone: "ru-central1-a",
name: "na-1",
subnetId: fooVpcSubnet.id,
},
{
zone: "ru-central1-a",
name: "na-2",
subnetId: fooVpcSubnet.id,
},
{
zone: "ru-central1-b",
name: "nb-1",
replicationSourceName: "na-1",
subnetId: bar.id,
},
{
zone: "ru-central1-b",
name: "nb-2",
replicationSourceName: "nb-1",
subnetId: bar.id,
},
],
});
Coming soon!
Example of creating a Single Node MySQL with user params.
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
{
Zone = "ru-central1-a",
NetworkId = fooVpcNetwork.Id,
V4CidrBlocks =
{
"10.5.0.0/24",
},
});
var fooMdbMysqlCluster = new Yandex.MdbMysqlCluster("fooMdbMysqlCluster", new Yandex.MdbMysqlClusterArgs
{
Environment = "PRESTABLE",
NetworkId = fooVpcNetwork.Id,
Version = "8.0",
Resources = new Yandex.Inputs.MdbMysqlClusterResourcesArgs
{
ResourcePresetId = "s2.micro",
DiskTypeId = "network-ssd",
DiskSize = 16,
},
Databases =
{
new Yandex.Inputs.MdbMysqlClusterDatabaseArgs
{
Name = "db_name",
},
},
MaintenanceWindow = new Yandex.Inputs.MdbMysqlClusterMaintenanceWindowArgs
{
Type = "ANYTIME",
},
Users =
{
new Yandex.Inputs.MdbMysqlClusterUserArgs
{
Name = "user_name",
Password = "your_password",
Permissions =
{
new Yandex.Inputs.MdbMysqlClusterUserPermissionArgs
{
DatabaseName = "db_name",
Roles =
{
"ALL",
},
},
},
ConnectionLimits = new Yandex.Inputs.MdbMysqlClusterUserConnectionLimitsArgs
{
MaxQuestionsPerHour = 10,
},
GlobalPermissions =
{
"REPLICATION_SLAVE",
"PROCESS",
},
AuthenticationPlugin = "CACHING_SHA2_PASSWORD",
},
},
Hosts =
{
new Yandex.Inputs.MdbMysqlClusterHostArgs
{
Zone = "ru-central1-a",
SubnetId = fooVpcSubnet.Id,
},
},
});
}
}
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{
Zone: pulumi.String("ru-central1-a"),
NetworkId: fooVpcNetwork.ID(),
V4CidrBlocks: pulumi.StringArray{
pulumi.String("10.5.0.0/24"),
},
})
if err != nil {
return err
}
_, err = yandex.NewMdbMysqlCluster(ctx, "fooMdbMysqlCluster", &yandex.MdbMysqlClusterArgs{
Environment: pulumi.String("PRESTABLE"),
NetworkId: fooVpcNetwork.ID(),
Version: pulumi.String("8.0"),
Resources: &MdbMysqlClusterResourcesArgs{
ResourcePresetId: pulumi.String("s2.micro"),
DiskTypeId: pulumi.String("network-ssd"),
DiskSize: pulumi.Int(16),
},
Databases: MdbMysqlClusterDatabaseArray{
&MdbMysqlClusterDatabaseArgs{
Name: pulumi.String("db_name"),
},
},
MaintenanceWindow: &MdbMysqlClusterMaintenanceWindowArgs{
Type: pulumi.String("ANYTIME"),
},
Users: MdbMysqlClusterUserArray{
&MdbMysqlClusterUserArgs{
Name: pulumi.String("user_name"),
Password: pulumi.String("your_password"),
Permissions: MdbMysqlClusterUserPermissionArray{
&MdbMysqlClusterUserPermissionArgs{
DatabaseName: pulumi.String("db_name"),
Roles: pulumi.StringArray{
pulumi.String("ALL"),
},
},
},
ConnectionLimits: &MdbMysqlClusterUserConnectionLimitsArgs{
MaxQuestionsPerHour: pulumi.Int(10),
},
GlobalPermissions: pulumi.StringArray{
pulumi.String("REPLICATION_SLAVE"),
pulumi.String("PROCESS"),
},
AuthenticationPlugin: pulumi.String("CACHING_SHA2_PASSWORD"),
},
},
Hosts: MdbMysqlClusterHostArray{
&MdbMysqlClusterHostArgs{
Zone: pulumi.String("ru-central1-a"),
SubnetId: fooVpcSubnet.ID(),
},
},
})
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",
zone="ru-central1-a",
network_id=foo_vpc_network.id,
v4_cidr_blocks=["10.5.0.0/24"])
foo_mdb_mysql_cluster = yandex.MdbMysqlCluster("fooMdbMysqlCluster",
environment="PRESTABLE",
network_id=foo_vpc_network.id,
version="8.0",
resources=yandex.MdbMysqlClusterResourcesArgs(
resource_preset_id="s2.micro",
disk_type_id="network-ssd",
disk_size=16,
),
databases=[yandex.MdbMysqlClusterDatabaseArgs(
name="db_name",
)],
maintenance_window=yandex.MdbMysqlClusterMaintenanceWindowArgs(
type="ANYTIME",
),
users=[yandex.MdbMysqlClusterUserArgs(
name="user_name",
password="your_password",
permissions=[yandex.MdbMysqlClusterUserPermissionArgs(
database_name="db_name",
roles=["ALL"],
)],
connection_limits=yandex.MdbMysqlClusterUserConnectionLimitsArgs(
max_questions_per_hour=10,
),
global_permissions=[
"REPLICATION_SLAVE",
"PROCESS",
],
authentication_plugin="CACHING_SHA2_PASSWORD",
)],
hosts=[yandex.MdbMysqlClusterHostArgs(
zone="ru-central1-a",
subnet_id=foo_vpc_subnet.id,
)])
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const fooVpcNetwork = new yandex.VpcNetwork("fooVpcNetwork", {});
const fooVpcSubnet = new yandex.VpcSubnet("fooVpcSubnet", {
zone: "ru-central1-a",
networkId: fooVpcNetwork.id,
v4CidrBlocks: ["10.5.0.0/24"],
});
const fooMdbMysqlCluster = new yandex.MdbMysqlCluster("fooMdbMysqlCluster", {
environment: "PRESTABLE",
networkId: fooVpcNetwork.id,
version: "8.0",
resources: {
resourcePresetId: "s2.micro",
diskTypeId: "network-ssd",
diskSize: 16,
},
databases: [{
name: "db_name",
}],
maintenanceWindow: {
type: "ANYTIME",
},
users: [{
name: "user_name",
password: "your_password",
permissions: [{
databaseName: "db_name",
roles: ["ALL"],
}],
connectionLimits: {
maxQuestionsPerHour: 10,
},
globalPermissions: [
"REPLICATION_SLAVE",
"PROCESS",
],
authenticationPlugin: "CACHING_SHA2_PASSWORD",
}],
hosts: [{
zone: "ru-central1-a",
subnetId: fooVpcSubnet.id,
}],
});
Coming soon!
Example of restoring MySQL 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
{
Zone = "ru-central1-a",
NetworkId = fooVpcNetwork.Id,
V4CidrBlocks =
{
"10.5.0.0/24",
},
});
var fooMdbMysqlCluster = new Yandex.MdbMysqlCluster("fooMdbMysqlCluster", new Yandex.MdbMysqlClusterArgs
{
Environment = "PRESTABLE",
NetworkId = fooVpcNetwork.Id,
Version = "8.0",
Restore = new Yandex.Inputs.MdbMysqlClusterRestoreArgs
{
BackupId = "c9qj2tns23432471d9qha:stream_20210122T141717Z",
Time = "2021-01-23T15:04:05",
},
Resources = new Yandex.Inputs.MdbMysqlClusterResourcesArgs
{
ResourcePresetId = "s2.micro",
DiskTypeId = "network-ssd",
DiskSize = 16,
},
Databases =
{
new Yandex.Inputs.MdbMysqlClusterDatabaseArgs
{
Name = "db_name",
},
},
Users =
{
new Yandex.Inputs.MdbMysqlClusterUserArgs
{
Name = "user_name",
Password = "your_password",
Permissions =
{
new Yandex.Inputs.MdbMysqlClusterUserPermissionArgs
{
DatabaseName = "db_name",
Roles =
{
"ALL",
},
},
},
},
},
Hosts =
{
new Yandex.Inputs.MdbMysqlClusterHostArgs
{
Zone = "ru-central1-a",
SubnetId = fooVpcSubnet.Id,
},
},
});
}
}
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{
Zone: pulumi.String("ru-central1-a"),
NetworkId: fooVpcNetwork.ID(),
V4CidrBlocks: pulumi.StringArray{
pulumi.String("10.5.0.0/24"),
},
})
if err != nil {
return err
}
_, err = yandex.NewMdbMysqlCluster(ctx, "fooMdbMysqlCluster", &yandex.MdbMysqlClusterArgs{
Environment: pulumi.String("PRESTABLE"),
NetworkId: fooVpcNetwork.ID(),
Version: pulumi.String("8.0"),
Restore: &MdbMysqlClusterRestoreArgs{
BackupId: pulumi.String("c9qj2tns23432471d9qha:stream_20210122T141717Z"),
Time: pulumi.String("2021-01-23T15:04:05"),
},
Resources: &MdbMysqlClusterResourcesArgs{
ResourcePresetId: pulumi.String("s2.micro"),
DiskTypeId: pulumi.String("network-ssd"),
DiskSize: pulumi.Int(16),
},
Databases: MdbMysqlClusterDatabaseArray{
&MdbMysqlClusterDatabaseArgs{
Name: pulumi.String("db_name"),
},
},
Users: MdbMysqlClusterUserArray{
&MdbMysqlClusterUserArgs{
Name: pulumi.String("user_name"),
Password: pulumi.String("your_password"),
Permissions: MdbMysqlClusterUserPermissionArray{
&MdbMysqlClusterUserPermissionArgs{
DatabaseName: pulumi.String("db_name"),
Roles: pulumi.StringArray{
pulumi.String("ALL"),
},
},
},
},
},
Hosts: MdbMysqlClusterHostArray{
&MdbMysqlClusterHostArgs{
Zone: pulumi.String("ru-central1-a"),
SubnetId: fooVpcSubnet.ID(),
},
},
})
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",
zone="ru-central1-a",
network_id=foo_vpc_network.id,
v4_cidr_blocks=["10.5.0.0/24"])
foo_mdb_mysql_cluster = yandex.MdbMysqlCluster("fooMdbMysqlCluster",
environment="PRESTABLE",
network_id=foo_vpc_network.id,
version="8.0",
restore=yandex.MdbMysqlClusterRestoreArgs(
backup_id="c9qj2tns23432471d9qha:stream_20210122T141717Z",
time="2021-01-23T15:04:05",
),
resources=yandex.MdbMysqlClusterResourcesArgs(
resource_preset_id="s2.micro",
disk_type_id="network-ssd",
disk_size=16,
),
databases=[yandex.MdbMysqlClusterDatabaseArgs(
name="db_name",
)],
users=[yandex.MdbMysqlClusterUserArgs(
name="user_name",
password="your_password",
permissions=[yandex.MdbMysqlClusterUserPermissionArgs(
database_name="db_name",
roles=["ALL"],
)],
)],
hosts=[yandex.MdbMysqlClusterHostArgs(
zone="ru-central1-a",
subnet_id=foo_vpc_subnet.id,
)])
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const fooVpcNetwork = new yandex.VpcNetwork("fooVpcNetwork", {});
const fooVpcSubnet = new yandex.VpcSubnet("fooVpcSubnet", {
zone: "ru-central1-a",
networkId: fooVpcNetwork.id,
v4CidrBlocks: ["10.5.0.0/24"],
});
const fooMdbMysqlCluster = new yandex.MdbMysqlCluster("fooMdbMysqlCluster", {
environment: "PRESTABLE",
networkId: fooVpcNetwork.id,
version: "8.0",
restore: {
backupId: "c9qj2tns23432471d9qha:stream_20210122T141717Z",
time: "2021-01-23T15:04:05",
},
resources: {
resourcePresetId: "s2.micro",
diskTypeId: "network-ssd",
diskSize: 16,
},
databases: [{
name: "db_name",
}],
users: [{
name: "user_name",
password: "your_password",
permissions: [{
databaseName: "db_name",
roles: ["ALL"],
}],
}],
hosts: [{
zone: "ru-central1-a",
subnetId: fooVpcSubnet.id,
}],
});
Coming soon!
Create MdbMysqlCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MdbMysqlCluster(name: string, args: MdbMysqlClusterArgs, opts?: CustomResourceOptions);
@overload
def MdbMysqlCluster(resource_name: str,
args: MdbMysqlClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MdbMysqlCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
hosts: Optional[Sequence[MdbMysqlClusterHostArgs]] = None,
version: Optional[str] = None,
users: Optional[Sequence[MdbMysqlClusterUserArgs]] = None,
databases: Optional[Sequence[MdbMysqlClusterDatabaseArgs]] = None,
resources: Optional[MdbMysqlClusterResourcesArgs] = None,
network_id: Optional[str] = None,
environment: Optional[str] = None,
deletion_protection: Optional[bool] = None,
folder_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
maintenance_window: Optional[MdbMysqlClusterMaintenanceWindowArgs] = None,
mysql_config: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
description: Optional[str] = None,
access: Optional[MdbMysqlClusterAccessArgs] = None,
restore: Optional[MdbMysqlClusterRestoreArgs] = None,
security_group_ids: Optional[Sequence[str]] = None,
backup_window_start: Optional[MdbMysqlClusterBackupWindowStartArgs] = None,
allow_regeneration_host: Optional[bool] = None)
func NewMdbMysqlCluster(ctx *Context, name string, args MdbMysqlClusterArgs, opts ...ResourceOption) (*MdbMysqlCluster, error)
public MdbMysqlCluster(string name, MdbMysqlClusterArgs args, CustomResourceOptions? opts = null)
public MdbMysqlCluster(String name, MdbMysqlClusterArgs args)
public MdbMysqlCluster(String name, MdbMysqlClusterArgs args, CustomResourceOptions options)
type: yandex:MdbMysqlCluster
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 MdbMysqlClusterArgs
- 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 MdbMysqlClusterArgs
- 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 MdbMysqlClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MdbMysqlClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MdbMysqlClusterArgs
- 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 mdbMysqlClusterResource = new Yandex.MdbMysqlCluster("mdbMysqlClusterResource", new()
{
Hosts = new[]
{
new Yandex.Inputs.MdbMysqlClusterHostArgs
{
Zone = "string",
AssignPublicIp = false,
Fqdn = "string",
Name = "string",
ReplicationSource = "string",
ReplicationSourceName = "string",
SubnetId = "string",
},
},
Version = "string",
Users = new[]
{
new Yandex.Inputs.MdbMysqlClusterUserArgs
{
Name = "string",
Password = "string",
AuthenticationPlugin = "string",
ConnectionLimits = new Yandex.Inputs.MdbMysqlClusterUserConnectionLimitsArgs
{
MaxConnectionsPerHour = 0,
MaxQuestionsPerHour = 0,
MaxUpdatesPerHour = 0,
MaxUserConnections = 0,
},
GlobalPermissions = new[]
{
"string",
},
Permissions = new[]
{
new Yandex.Inputs.MdbMysqlClusterUserPermissionArgs
{
DatabaseName = "string",
Roles = new[]
{
"string",
},
},
},
},
},
Databases = new[]
{
new Yandex.Inputs.MdbMysqlClusterDatabaseArgs
{
Name = "string",
},
},
Resources = new Yandex.Inputs.MdbMysqlClusterResourcesArgs
{
DiskSize = 0,
DiskTypeId = "string",
ResourcePresetId = "string",
},
NetworkId = "string",
Environment = "string",
DeletionProtection = false,
FolderId = "string",
Labels =
{
{ "string", "string" },
},
MaintenanceWindow = new Yandex.Inputs.MdbMysqlClusterMaintenanceWindowArgs
{
Type = "string",
Day = "string",
Hour = 0,
},
MysqlConfig =
{
{ "string", "string" },
},
Name = "string",
Description = "string",
Access = new Yandex.Inputs.MdbMysqlClusterAccessArgs
{
DataLens = false,
WebSql = false,
},
Restore = new Yandex.Inputs.MdbMysqlClusterRestoreArgs
{
BackupId = "string",
Time = "string",
},
SecurityGroupIds = new[]
{
"string",
},
BackupWindowStart = new Yandex.Inputs.MdbMysqlClusterBackupWindowStartArgs
{
Hours = 0,
Minutes = 0,
},
});
example, err := yandex.NewMdbMysqlCluster(ctx, "mdbMysqlClusterResource", &yandex.MdbMysqlClusterArgs{
Hosts: yandex.MdbMysqlClusterHostArray{
&yandex.MdbMysqlClusterHostArgs{
Zone: pulumi.String("string"),
AssignPublicIp: pulumi.Bool(false),
Fqdn: pulumi.String("string"),
Name: pulumi.String("string"),
ReplicationSource: pulumi.String("string"),
ReplicationSourceName: pulumi.String("string"),
SubnetId: pulumi.String("string"),
},
},
Version: pulumi.String("string"),
Users: yandex.MdbMysqlClusterUserArray{
&yandex.MdbMysqlClusterUserArgs{
Name: pulumi.String("string"),
Password: pulumi.String("string"),
AuthenticationPlugin: pulumi.String("string"),
ConnectionLimits: &yandex.MdbMysqlClusterUserConnectionLimitsArgs{
MaxConnectionsPerHour: pulumi.Int(0),
MaxQuestionsPerHour: pulumi.Int(0),
MaxUpdatesPerHour: pulumi.Int(0),
MaxUserConnections: pulumi.Int(0),
},
GlobalPermissions: pulumi.StringArray{
pulumi.String("string"),
},
Permissions: yandex.MdbMysqlClusterUserPermissionArray{
&yandex.MdbMysqlClusterUserPermissionArgs{
DatabaseName: pulumi.String("string"),
Roles: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
Databases: yandex.MdbMysqlClusterDatabaseArray{
&yandex.MdbMysqlClusterDatabaseArgs{
Name: pulumi.String("string"),
},
},
Resources: &yandex.MdbMysqlClusterResourcesArgs{
DiskSize: pulumi.Int(0),
DiskTypeId: pulumi.String("string"),
ResourcePresetId: pulumi.String("string"),
},
NetworkId: pulumi.String("string"),
Environment: pulumi.String("string"),
DeletionProtection: pulumi.Bool(false),
FolderId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
MaintenanceWindow: &yandex.MdbMysqlClusterMaintenanceWindowArgs{
Type: pulumi.String("string"),
Day: pulumi.String("string"),
Hour: pulumi.Int(0),
},
MysqlConfig: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Description: pulumi.String("string"),
Access: &yandex.MdbMysqlClusterAccessArgs{
DataLens: pulumi.Bool(false),
WebSql: pulumi.Bool(false),
},
Restore: &yandex.MdbMysqlClusterRestoreArgs{
BackupId: pulumi.String("string"),
Time: pulumi.String("string"),
},
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
BackupWindowStart: &yandex.MdbMysqlClusterBackupWindowStartArgs{
Hours: pulumi.Int(0),
Minutes: pulumi.Int(0),
},
})
var mdbMysqlClusterResource = new MdbMysqlCluster("mdbMysqlClusterResource", MdbMysqlClusterArgs.builder()
.hosts(MdbMysqlClusterHostArgs.builder()
.zone("string")
.assignPublicIp(false)
.fqdn("string")
.name("string")
.replicationSource("string")
.replicationSourceName("string")
.subnetId("string")
.build())
.version("string")
.users(MdbMysqlClusterUserArgs.builder()
.name("string")
.password("string")
.authenticationPlugin("string")
.connectionLimits(MdbMysqlClusterUserConnectionLimitsArgs.builder()
.maxConnectionsPerHour(0)
.maxQuestionsPerHour(0)
.maxUpdatesPerHour(0)
.maxUserConnections(0)
.build())
.globalPermissions("string")
.permissions(MdbMysqlClusterUserPermissionArgs.builder()
.databaseName("string")
.roles("string")
.build())
.build())
.databases(MdbMysqlClusterDatabaseArgs.builder()
.name("string")
.build())
.resources(MdbMysqlClusterResourcesArgs.builder()
.diskSize(0)
.diskTypeId("string")
.resourcePresetId("string")
.build())
.networkId("string")
.environment("string")
.deletionProtection(false)
.folderId("string")
.labels(Map.of("string", "string"))
.maintenanceWindow(MdbMysqlClusterMaintenanceWindowArgs.builder()
.type("string")
.day("string")
.hour(0)
.build())
.mysqlConfig(Map.of("string", "string"))
.name("string")
.description("string")
.access(MdbMysqlClusterAccessArgs.builder()
.dataLens(false)
.webSql(false)
.build())
.restore(MdbMysqlClusterRestoreArgs.builder()
.backupId("string")
.time("string")
.build())
.securityGroupIds("string")
.backupWindowStart(MdbMysqlClusterBackupWindowStartArgs.builder()
.hours(0)
.minutes(0)
.build())
.build());
mdb_mysql_cluster_resource = yandex.MdbMysqlCluster("mdbMysqlClusterResource",
hosts=[{
"zone": "string",
"assign_public_ip": False,
"fqdn": "string",
"name": "string",
"replication_source": "string",
"replication_source_name": "string",
"subnet_id": "string",
}],
version="string",
users=[{
"name": "string",
"password": "string",
"authentication_plugin": "string",
"connection_limits": {
"max_connections_per_hour": 0,
"max_questions_per_hour": 0,
"max_updates_per_hour": 0,
"max_user_connections": 0,
},
"global_permissions": ["string"],
"permissions": [{
"database_name": "string",
"roles": ["string"],
}],
}],
databases=[{
"name": "string",
}],
resources={
"disk_size": 0,
"disk_type_id": "string",
"resource_preset_id": "string",
},
network_id="string",
environment="string",
deletion_protection=False,
folder_id="string",
labels={
"string": "string",
},
maintenance_window={
"type": "string",
"day": "string",
"hour": 0,
},
mysql_config={
"string": "string",
},
name="string",
description="string",
access={
"data_lens": False,
"web_sql": False,
},
restore={
"backup_id": "string",
"time": "string",
},
security_group_ids=["string"],
backup_window_start={
"hours": 0,
"minutes": 0,
})
const mdbMysqlClusterResource = new yandex.MdbMysqlCluster("mdbMysqlClusterResource", {
hosts: [{
zone: "string",
assignPublicIp: false,
fqdn: "string",
name: "string",
replicationSource: "string",
replicationSourceName: "string",
subnetId: "string",
}],
version: "string",
users: [{
name: "string",
password: "string",
authenticationPlugin: "string",
connectionLimits: {
maxConnectionsPerHour: 0,
maxQuestionsPerHour: 0,
maxUpdatesPerHour: 0,
maxUserConnections: 0,
},
globalPermissions: ["string"],
permissions: [{
databaseName: "string",
roles: ["string"],
}],
}],
databases: [{
name: "string",
}],
resources: {
diskSize: 0,
diskTypeId: "string",
resourcePresetId: "string",
},
networkId: "string",
environment: "string",
deletionProtection: false,
folderId: "string",
labels: {
string: "string",
},
maintenanceWindow: {
type: "string",
day: "string",
hour: 0,
},
mysqlConfig: {
string: "string",
},
name: "string",
description: "string",
access: {
dataLens: false,
webSql: false,
},
restore: {
backupId: "string",
time: "string",
},
securityGroupIds: ["string"],
backupWindowStart: {
hours: 0,
minutes: 0,
},
});
type: yandex:MdbMysqlCluster
properties:
access:
dataLens: false
webSql: false
backupWindowStart:
hours: 0
minutes: 0
databases:
- name: string
deletionProtection: false
description: string
environment: string
folderId: string
hosts:
- assignPublicIp: false
fqdn: string
name: string
replicationSource: string
replicationSourceName: string
subnetId: string
zone: string
labels:
string: string
maintenanceWindow:
day: string
hour: 0
type: string
mysqlConfig:
string: string
name: string
networkId: string
resources:
diskSize: 0
diskTypeId: string
resourcePresetId: string
restore:
backupId: string
time: string
securityGroupIds:
- string
users:
- authenticationPlugin: string
connectionLimits:
maxConnectionsPerHour: 0
maxQuestionsPerHour: 0
maxUpdatesPerHour: 0
maxUserConnections: 0
globalPermissions:
- string
name: string
password: string
permissions:
- databaseName: string
roles:
- string
version: string
MdbMysqlCluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MdbMysqlCluster resource accepts the following input properties:
- Databases
List<Mdb
Mysql Cluster Database> - A database of the MySQL cluster. The structure is documented below.
- Environment string
- Deployment environment of the MySQL cluster.
- Hosts
List<Mdb
Mysql Cluster Host> - A host of the MySQL cluster. The structure is documented below.
- Network
Id string - ID of the network, to which the MySQL cluster uses.
- Resources
Mdb
Mysql Cluster Resources - Resources allocated to hosts of the MySQL cluster. The structure is documented below.
- Users
List<Mdb
Mysql Cluster User> - A user of the MySQL cluster. The structure is documented below.
- Version string
- Version of the MySQL cluster. (allowed versions are: 5.7, 8.0)
- Access
Mdb
Mysql Cluster Access - Access policy to the MySQL cluster. The structure is documented below.
- Allow
Regeneration boolHost - Backup
Window MdbStart Mysql Cluster Backup Window Start - Time to start the daily backup, in the UTC. The structure is documented below.
- Deletion
Protection bool - Inhibits deletion of the cluster. Can be either
true
orfalse
. - Description string
- Description of the MySQL 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 MySQL cluster.
- Maintenance
Window MdbMysql Cluster Maintenance Window - Maintenance policy of the MySQL cluster. The structure is documented below.
- Mysql
Config Dictionary<string, string> - MySQL cluster config. Detail info in "MySQL config" section (documented below).
- Name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - Restore
Mdb
Mysql Cluster Restore - The cluster will be created from the specified backup. The structure is documented below.
- Security
Group List<string>Ids - A set of ids of security groups assigned to hosts of the cluster.
- Databases
[]Mdb
Mysql Cluster Database Args - A database of the MySQL cluster. The structure is documented below.
- Environment string
- Deployment environment of the MySQL cluster.
- Hosts
[]Mdb
Mysql Cluster Host Args - A host of the MySQL cluster. The structure is documented below.
- Network
Id string - ID of the network, to which the MySQL cluster uses.
- Resources
Mdb
Mysql Cluster Resources Args - Resources allocated to hosts of the MySQL cluster. The structure is documented below.
- Users
[]Mdb
Mysql Cluster User Args - A user of the MySQL cluster. The structure is documented below.
- Version string
- Version of the MySQL cluster. (allowed versions are: 5.7, 8.0)
- Access
Mdb
Mysql Cluster Access Args - Access policy to the MySQL cluster. The structure is documented below.
- Allow
Regeneration boolHost - Backup
Window MdbStart Mysql Cluster Backup Window Start Args - Time to start the daily backup, in the UTC. The structure is documented below.
- Deletion
Protection bool - Inhibits deletion of the cluster. Can be either
true
orfalse
. - Description string
- Description of the MySQL 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 MySQL cluster.
- Maintenance
Window MdbMysql Cluster Maintenance Window Args - Maintenance policy of the MySQL cluster. The structure is documented below.
- Mysql
Config map[string]string - MySQL cluster config. Detail info in "MySQL config" section (documented below).
- Name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - Restore
Mdb
Mysql Cluster Restore Args - The cluster will be created from the specified backup. The structure is documented below.
- Security
Group []stringIds - A set of ids of security groups assigned to hosts of the cluster.
- databases
List<Mdb
Mysql Cluster Database> - A database of the MySQL cluster. The structure is documented below.
- environment String
- Deployment environment of the MySQL cluster.
- hosts
List<Mdb
Mysql Cluster Host> - A host of the MySQL cluster. The structure is documented below.
- network
Id String - ID of the network, to which the MySQL cluster uses.
- resources
Mdb
Mysql Cluster Resources - Resources allocated to hosts of the MySQL cluster. The structure is documented below.
- users
List<Mdb
Mysql Cluster User> - A user of the MySQL cluster. The structure is documented below.
- version String
- Version of the MySQL cluster. (allowed versions are: 5.7, 8.0)
- access
Mdb
Mysql Cluster Access - Access policy to the MySQL cluster. The structure is documented below.
- allow
Regeneration BooleanHost - backup
Window MdbStart Mysql Cluster Backup Window Start - Time to start the daily backup, in the UTC. The structure is documented below.
- deletion
Protection Boolean - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description String
- Description of the MySQL 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 MySQL cluster.
- maintenance
Window MdbMysql Cluster Maintenance Window - Maintenance policy of the MySQL cluster. The structure is documented below.
- mysql
Config Map<String,String> - MySQL cluster config. Detail info in "MySQL config" section (documented below).
- name String
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - restore
Mdb
Mysql Cluster Restore - The cluster will be created from the specified backup. The structure is documented below.
- security
Group List<String>Ids - A set of ids of security groups assigned to hosts of the cluster.
- databases
Mdb
Mysql Cluster Database[] - A database of the MySQL cluster. The structure is documented below.
- environment string
- Deployment environment of the MySQL cluster.
- hosts
Mdb
Mysql Cluster Host[] - A host of the MySQL cluster. The structure is documented below.
- network
Id string - ID of the network, to which the MySQL cluster uses.
- resources
Mdb
Mysql Cluster Resources - Resources allocated to hosts of the MySQL cluster. The structure is documented below.
- users
Mdb
Mysql Cluster User[] - A user of the MySQL cluster. The structure is documented below.
- version string
- Version of the MySQL cluster. (allowed versions are: 5.7, 8.0)
- access
Mdb
Mysql Cluster Access - Access policy to the MySQL cluster. The structure is documented below.
- allow
Regeneration booleanHost - backup
Window MdbStart Mysql Cluster Backup Window Start - Time to start the daily backup, in the UTC. The structure is documented below.
- deletion
Protection boolean - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description string
- Description of the MySQL 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 MySQL cluster.
- maintenance
Window MdbMysql Cluster Maintenance Window - Maintenance policy of the MySQL cluster. The structure is documented below.
- mysql
Config {[key: string]: string} - MySQL cluster config. Detail info in "MySQL config" section (documented below).
- name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - restore
Mdb
Mysql Cluster Restore - The cluster will be created from the specified backup. The structure is documented below.
- security
Group string[]Ids - A set of ids of security groups assigned to hosts of the cluster.
- databases
Sequence[Mdb
Mysql Cluster Database Args] - A database of the MySQL cluster. The structure is documented below.
- environment str
- Deployment environment of the MySQL cluster.
- hosts
Sequence[Mdb
Mysql Cluster Host Args] - A host of the MySQL cluster. The structure is documented below.
- network_
id str - ID of the network, to which the MySQL cluster uses.
- resources
Mdb
Mysql Cluster Resources Args - Resources allocated to hosts of the MySQL cluster. The structure is documented below.
- users
Sequence[Mdb
Mysql Cluster User Args] - A user of the MySQL cluster. The structure is documented below.
- version str
- Version of the MySQL cluster. (allowed versions are: 5.7, 8.0)
- access
Mdb
Mysql Cluster Access Args - Access policy to the MySQL cluster. The structure is documented below.
- allow_
regeneration_ boolhost - backup_
window_ Mdbstart Mysql Cluster Backup Window Start Args - Time to start the daily backup, in the UTC. The structure is documented below.
- deletion_
protection bool - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description str
- Description of the MySQL 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 MySQL cluster.
- maintenance_
window MdbMysql Cluster Maintenance Window Args - Maintenance policy of the MySQL cluster. The structure is documented below.
- mysql_
config Mapping[str, str] - MySQL cluster config. Detail info in "MySQL config" section (documented below).
- name str
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - restore
Mdb
Mysql Cluster Restore Args - The cluster will be created from the specified backup. The structure is documented below.
- security_
group_ Sequence[str]ids - A set of ids of security groups assigned to hosts of the cluster.
- databases List<Property Map>
- A database of the MySQL cluster. The structure is documented below.
- environment String
- Deployment environment of the MySQL cluster.
- hosts List<Property Map>
- A host of the MySQL cluster. The structure is documented below.
- network
Id String - ID of the network, to which the MySQL cluster uses.
- resources Property Map
- Resources allocated to hosts of the MySQL cluster. The structure is documented below.
- users List<Property Map>
- A user of the MySQL cluster. The structure is documented below.
- version String
- Version of the MySQL cluster. (allowed versions are: 5.7, 8.0)
- access Property Map
- Access policy to the MySQL cluster. The structure is documented below.
- allow
Regeneration BooleanHost - backup
Window Property MapStart - Time to start the daily backup, in the UTC. The structure is documented below.
- deletion
Protection Boolean - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description String
- Description of the MySQL 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 MySQL cluster.
- maintenance
Window Property Map - Maintenance policy of the MySQL cluster. The structure is documented below.
- mysql
Config Map<String> - MySQL cluster config. Detail info in "MySQL config" section (documented below).
- name String
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - restore Property Map
- The cluster will be created from the specified backup. The structure is documented below.
- security
Group List<String>Ids - A set of ids of security groups assigned to hosts of the cluster.
Outputs
All input properties are implicitly available as output properties. Additionally, the MdbMysqlCluster resource produces the following output properties:
- created_
at str - Creation timestamp of the cluster.
- health str
- Aggregated health of the cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Status of the cluster.
Look up Existing MdbMysqlCluster Resource
Get an existing MdbMysqlCluster 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?: MdbMysqlClusterState, opts?: CustomResourceOptions): MdbMysqlCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access: Optional[MdbMysqlClusterAccessArgs] = None,
allow_regeneration_host: Optional[bool] = None,
backup_window_start: Optional[MdbMysqlClusterBackupWindowStartArgs] = None,
created_at: Optional[str] = None,
databases: Optional[Sequence[MdbMysqlClusterDatabaseArgs]] = 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[MdbMysqlClusterHostArgs]] = None,
labels: Optional[Mapping[str, str]] = None,
maintenance_window: Optional[MdbMysqlClusterMaintenanceWindowArgs] = None,
mysql_config: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
resources: Optional[MdbMysqlClusterResourcesArgs] = None,
restore: Optional[MdbMysqlClusterRestoreArgs] = None,
security_group_ids: Optional[Sequence[str]] = None,
status: Optional[str] = None,
users: Optional[Sequence[MdbMysqlClusterUserArgs]] = None,
version: Optional[str] = None) -> MdbMysqlCluster
func GetMdbMysqlCluster(ctx *Context, name string, id IDInput, state *MdbMysqlClusterState, opts ...ResourceOption) (*MdbMysqlCluster, error)
public static MdbMysqlCluster Get(string name, Input<string> id, MdbMysqlClusterState? state, CustomResourceOptions? opts = null)
public static MdbMysqlCluster get(String name, Output<String> id, MdbMysqlClusterState 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.
- Access
Mdb
Mysql Cluster Access - Access policy to the MySQL cluster. The structure is documented below.
- Allow
Regeneration boolHost - Backup
Window MdbStart Mysql Cluster Backup Window Start - Time to start the daily backup, in the UTC. The structure is documented below.
- Created
At string - Creation timestamp of the cluster.
- Databases
List<Mdb
Mysql Cluster Database> - A database of the MySQL cluster. The structure is documented below.
- Deletion
Protection bool - Inhibits deletion of the cluster. Can be either
true
orfalse
. - Description string
- Description of the MySQL cluster.
- Environment string
- Deployment environment of the MySQL 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.
- Health string
- Aggregated health of the cluster.
- Hosts
List<Mdb
Mysql Cluster Host> - A host of the MySQL cluster. The structure is documented below.
- Labels Dictionary<string, string>
- A set of key/value label pairs to assign to the MySQL cluster.
- Maintenance
Window MdbMysql Cluster Maintenance Window - Maintenance policy of the MySQL cluster. The structure is documented below.
- Mysql
Config Dictionary<string, string> - MySQL cluster config. Detail info in "MySQL config" section (documented below).
- Name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - Network
Id string - ID of the network, to which the MySQL cluster uses.
- Resources
Mdb
Mysql Cluster Resources - Resources allocated to hosts of the MySQL cluster. The structure is documented below.
- Restore
Mdb
Mysql Cluster Restore - The cluster will be created from the specified backup. The structure is documented below.
- Security
Group List<string>Ids - A set of ids of security groups assigned to hosts of the cluster.
- Status string
- Status of the cluster.
- Users
List<Mdb
Mysql Cluster User> - A user of the MySQL cluster. The structure is documented below.
- Version string
- Version of the MySQL cluster. (allowed versions are: 5.7, 8.0)
- Access
Mdb
Mysql Cluster Access Args - Access policy to the MySQL cluster. The structure is documented below.
- Allow
Regeneration boolHost - Backup
Window MdbStart Mysql Cluster Backup Window Start Args - Time to start the daily backup, in the UTC. The structure is documented below.
- Created
At string - Creation timestamp of the cluster.
- Databases
[]Mdb
Mysql Cluster Database Args - A database of the MySQL cluster. The structure is documented below.
- Deletion
Protection bool - Inhibits deletion of the cluster. Can be either
true
orfalse
. - Description string
- Description of the MySQL cluster.
- Environment string
- Deployment environment of the MySQL 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.
- Health string
- Aggregated health of the cluster.
- Hosts
[]Mdb
Mysql Cluster Host Args - A host of the MySQL cluster. The structure is documented below.
- Labels map[string]string
- A set of key/value label pairs to assign to the MySQL cluster.
- Maintenance
Window MdbMysql Cluster Maintenance Window Args - Maintenance policy of the MySQL cluster. The structure is documented below.
- Mysql
Config map[string]string - MySQL cluster config. Detail info in "MySQL config" section (documented below).
- Name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - Network
Id string - ID of the network, to which the MySQL cluster uses.
- Resources
Mdb
Mysql Cluster Resources Args - Resources allocated to hosts of the MySQL cluster. The structure is documented below.
- Restore
Mdb
Mysql Cluster Restore Args - The cluster will be created from the specified backup. The structure is documented below.
- Security
Group []stringIds - A set of ids of security groups assigned to hosts of the cluster.
- Status string
- Status of the cluster.
- Users
[]Mdb
Mysql Cluster User Args - A user of the MySQL cluster. The structure is documented below.
- Version string
- Version of the MySQL cluster. (allowed versions are: 5.7, 8.0)
- access
Mdb
Mysql Cluster Access - Access policy to the MySQL cluster. The structure is documented below.
- allow
Regeneration BooleanHost - backup
Window MdbStart Mysql Cluster Backup Window Start - Time to start the daily backup, in the UTC. The structure is documented below.
- created
At String - Creation timestamp of the cluster.
- databases
List<Mdb
Mysql Cluster Database> - A database of the MySQL cluster. The structure is documented below.
- deletion
Protection Boolean - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description String
- Description of the MySQL cluster.
- environment String
- Deployment environment of the MySQL 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.
- health String
- Aggregated health of the cluster.
- hosts
List<Mdb
Mysql Cluster Host> - A host of the MySQL cluster. The structure is documented below.
- labels Map<String,String>
- A set of key/value label pairs to assign to the MySQL cluster.
- maintenance
Window MdbMysql Cluster Maintenance Window - Maintenance policy of the MySQL cluster. The structure is documented below.
- mysql
Config Map<String,String> - MySQL cluster config. Detail info in "MySQL config" section (documented below).
- name String
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - network
Id String - ID of the network, to which the MySQL cluster uses.
- resources
Mdb
Mysql Cluster Resources - Resources allocated to hosts of the MySQL cluster. The structure is documented below.
- restore
Mdb
Mysql Cluster Restore - The cluster will be created from the specified backup. The structure is documented below.
- security
Group List<String>Ids - A set of ids of security groups assigned to hosts of the cluster.
- status String
- Status of the cluster.
- users
List<Mdb
Mysql Cluster User> - A user of the MySQL cluster. The structure is documented below.
- version String
- Version of the MySQL cluster. (allowed versions are: 5.7, 8.0)
- access
Mdb
Mysql Cluster Access - Access policy to the MySQL cluster. The structure is documented below.
- allow
Regeneration booleanHost - backup
Window MdbStart Mysql Cluster Backup Window Start - Time to start the daily backup, in the UTC. The structure is documented below.
- created
At string - Creation timestamp of the cluster.
- databases
Mdb
Mysql Cluster Database[] - A database of the MySQL cluster. The structure is documented below.
- deletion
Protection boolean - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description string
- Description of the MySQL cluster.
- environment string
- Deployment environment of the MySQL 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.
- health string
- Aggregated health of the cluster.
- hosts
Mdb
Mysql Cluster Host[] - A host of the MySQL cluster. The structure is documented below.
- labels {[key: string]: string}
- A set of key/value label pairs to assign to the MySQL cluster.
- maintenance
Window MdbMysql Cluster Maintenance Window - Maintenance policy of the MySQL cluster. The structure is documented below.
- mysql
Config {[key: string]: string} - MySQL cluster config. Detail info in "MySQL config" section (documented below).
- name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - network
Id string - ID of the network, to which the MySQL cluster uses.
- resources
Mdb
Mysql Cluster Resources - Resources allocated to hosts of the MySQL cluster. The structure is documented below.
- restore
Mdb
Mysql Cluster Restore - The cluster will be created from the specified backup. The structure is documented below.
- security
Group string[]Ids - A set of ids of security groups assigned to hosts of the cluster.
- status string
- Status of the cluster.
- users
Mdb
Mysql Cluster User[] - A user of the MySQL cluster. The structure is documented below.
- version string
- Version of the MySQL cluster. (allowed versions are: 5.7, 8.0)
- access
Mdb
Mysql Cluster Access Args - Access policy to the MySQL cluster. The structure is documented below.
- allow_
regeneration_ boolhost - backup_
window_ Mdbstart Mysql Cluster Backup Window Start Args - Time to start the daily backup, in the UTC. The structure is documented below.
- created_
at str - Creation timestamp of the cluster.
- databases
Sequence[Mdb
Mysql Cluster Database Args] - A database of the MySQL cluster. The structure is documented below.
- deletion_
protection bool - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description str
- Description of the MySQL cluster.
- environment str
- Deployment environment of the MySQL 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.
- health str
- Aggregated health of the cluster.
- hosts
Sequence[Mdb
Mysql Cluster Host Args] - A host of the MySQL cluster. The structure is documented below.
- labels Mapping[str, str]
- A set of key/value label pairs to assign to the MySQL cluster.
- maintenance_
window MdbMysql Cluster Maintenance Window Args - Maintenance policy of the MySQL cluster. The structure is documented below.
- mysql_
config Mapping[str, str] - MySQL cluster config. Detail info in "MySQL config" section (documented below).
- name str
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - network_
id str - ID of the network, to which the MySQL cluster uses.
- resources
Mdb
Mysql Cluster Resources Args - Resources allocated to hosts of the MySQL cluster. The structure is documented below.
- restore
Mdb
Mysql Cluster Restore Args - The cluster will be created from the specified backup. The structure is documented below.
- security_
group_ Sequence[str]ids - A set of ids of security groups assigned to hosts of the cluster.
- status str
- Status of the cluster.
- users
Sequence[Mdb
Mysql Cluster User Args] - A user of the MySQL cluster. The structure is documented below.
- version str
- Version of the MySQL cluster. (allowed versions are: 5.7, 8.0)
- access Property Map
- Access policy to the MySQL cluster. The structure is documented below.
- allow
Regeneration BooleanHost - backup
Window Property MapStart - Time to start the daily backup, in the UTC. The structure is documented below.
- created
At String - Creation timestamp of the cluster.
- databases List<Property Map>
- A database of the MySQL cluster. The structure is documented below.
- deletion
Protection Boolean - Inhibits deletion of the cluster. Can be either
true
orfalse
. - description String
- Description of the MySQL cluster.
- environment String
- Deployment environment of the MySQL 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.
- health String
- Aggregated health of the cluster.
- hosts List<Property Map>
- A host of the MySQL cluster. The structure is documented below.
- labels Map<String>
- A set of key/value label pairs to assign to the MySQL cluster.
- maintenance
Window Property Map - Maintenance policy of the MySQL cluster. The structure is documented below.
- mysql
Config Map<String> - MySQL cluster config. Detail info in "MySQL config" section (documented below).
- name String
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - network
Id String - ID of the network, to which the MySQL cluster uses.
- resources Property Map
- Resources allocated to hosts of the MySQL cluster. The structure is documented below.
- restore Property Map
- The cluster will be created from the specified backup. The structure is documented below.
- security
Group List<String>Ids - A set of ids of security groups assigned to hosts of the cluster.
- status String
- Status of the cluster.
- users List<Property Map>
- A user of the MySQL cluster. The structure is documented below.
- version String
- Version of the MySQL cluster. (allowed versions are: 5.7, 8.0)
Supporting Types
MdbMysqlClusterAccess, MdbMysqlClusterAccessArgs
- Data
Lens bool - Allow access for Yandex DataLens.
- Web
Sql bool - Allows access for SQL queries in the management console.
- Data
Lens bool - Allow access for Yandex DataLens.
- Web
Sql bool - Allows access for SQL queries in the management console.
- data
Lens Boolean - Allow access for Yandex DataLens.
- web
Sql Boolean - Allows access for SQL queries in the management console.
- data
Lens boolean - Allow access for Yandex DataLens.
- web
Sql boolean - Allows access for SQL queries in the management console.
- data_
lens bool - Allow access for Yandex DataLens.
- web_
sql bool - Allows access for SQL queries in the management console.
- data
Lens Boolean - Allow access for Yandex DataLens.
- web
Sql Boolean - Allows access for SQL queries in the management console.
MdbMysqlClusterBackupWindowStart, MdbMysqlClusterBackupWindowStartArgs
MdbMysqlClusterDatabase, MdbMysqlClusterDatabaseArgs
- Name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter.
- Name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter.
- name String
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter.
- name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter.
- name str
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter.
- name String
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter.
MdbMysqlClusterHost, MdbMysqlClusterHostArgs
- Zone string
- The availability zone where the MySQL host will be created.
- Assign
Public boolIp - Sets whether the host should get a public IP address. It can be changed on the fly only when
name
is set. - Fqdn string
- The fully qualified domain name of the host.
- Name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - Replication
Source string - Host replication source (fqdn), when replication_source is empty then host is in HA group.
- Replication
Source stringName - Host replication source name points to host's
name
from which this host should replicate. When not set then host in HA group. It works only whenname
is set. - 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 MySQL host will be created.
- Assign
Public boolIp - Sets whether the host should get a public IP address. It can be changed on the fly only when
name
is set. - Fqdn string
- The fully qualified domain name of the host.
- Name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - Replication
Source string - Host replication source (fqdn), when replication_source is empty then host is in HA group.
- Replication
Source stringName - Host replication source name points to host's
name
from which this host should replicate. When not set then host in HA group. It works only whenname
is set. - 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 MySQL host will be created.
- assign
Public BooleanIp - Sets whether the host should get a public IP address. It can be changed on the fly only when
name
is set. - fqdn String
- The fully qualified domain name of the host.
- name String
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - replication
Source String - Host replication source (fqdn), when replication_source is empty then host is in HA group.
- replication
Source StringName - Host replication source name points to host's
name
from which this host should replicate. When not set then host in HA group. It works only whenname
is set. - 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 MySQL host will be created.
- assign
Public booleanIp - Sets whether the host should get a public IP address. It can be changed on the fly only when
name
is set. - fqdn string
- The fully qualified domain name of the host.
- name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - replication
Source string - Host replication source (fqdn), when replication_source is empty then host is in HA group.
- replication
Source stringName - Host replication source name points to host's
name
from which this host should replicate. When not set then host in HA group. It works only whenname
is set. - 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 MySQL host will be created.
- assign_
public_ boolip - Sets whether the host should get a public IP address. It can be changed on the fly only when
name
is set. - fqdn str
- The fully qualified domain name of the host.
- name str
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - replication_
source str - Host replication source (fqdn), when replication_source is empty then host is in HA group.
- replication_
source_ strname - Host replication source name points to host's
name
from which this host should replicate. When not set then host in HA group. It works only whenname
is set. - 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 MySQL host will be created.
- assign
Public BooleanIp - Sets whether the host should get a public IP address. It can be changed on the fly only when
name
is set. - fqdn String
- The fully qualified domain name of the host.
- name String
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - replication
Source String - Host replication source (fqdn), when replication_source is empty then host is in HA group.
- replication
Source StringName - Host replication source name points to host's
name
from which this host should replicate. When not set then host in HA group. It works only whenname
is set. - 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.
MdbMysqlClusterMaintenanceWindow, MdbMysqlClusterMaintenanceWindowArgs
- 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 the week (in
DDD
format). Allowed values: "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN" - Hour int
- Hour of the day in UTC (in
HH
format). Allowed value is between 0 and 23.
- 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 the week (in
DDD
format). Allowed values: "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN" - Hour int
- Hour of the day in UTC (in
HH
format). Allowed value is between 0 and 23.
- 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 the week (in
DDD
format). Allowed values: "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN" - hour Integer
- Hour of the day in UTC (in
HH
format). Allowed value is between 0 and 23.
- 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 the week (in
DDD
format). Allowed values: "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN" - hour number
- Hour of the day in UTC (in
HH
format). Allowed value is between 0 and 23.
- 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 the week (in
DDD
format). Allowed values: "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN" - hour int
- Hour of the day in UTC (in
HH
format). Allowed value is between 0 and 23.
- 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 the week (in
DDD
format). Allowed values: "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN" - hour Number
- Hour of the day in UTC (in
HH
format). Allowed value is between 0 and 23.
MdbMysqlClusterResources, MdbMysqlClusterResourcesArgs
- Disk
Size int - Volume of the storage available to a MySQL host, in gigabytes.
- Disk
Type stringId - Type of the storage of MySQL hosts.
- Resource
Preset stringId
- Disk
Size int - Volume of the storage available to a MySQL host, in gigabytes.
- Disk
Type stringId - Type of the storage of MySQL hosts.
- Resource
Preset stringId
- disk
Size Integer - Volume of the storage available to a MySQL host, in gigabytes.
- disk
Type StringId - Type of the storage of MySQL hosts.
- resource
Preset StringId
- disk
Size number - Volume of the storage available to a MySQL host, in gigabytes.
- disk
Type stringId - Type of the storage of MySQL hosts.
- resource
Preset stringId
- disk_
size int - Volume of the storage available to a MySQL host, in gigabytes.
- disk_
type_ strid - Type of the storage of MySQL hosts.
- resource_
preset_ strid
- disk
Size Number - Volume of the storage available to a MySQL host, in gigabytes.
- disk
Type StringId - Type of the storage of MySQL hosts.
- resource
Preset StringId
MdbMysqlClusterRestore, MdbMysqlClusterRestoreArgs
- Backup
Id string - Backup ID. The cluster will be created from the specified backup. How to get a list of MySQL backups.
- Time string
- Timestamp of the moment to which the MySQL cluster should be restored. (Format: "2006-01-02T15:04:05" - UTC). When not set, current time is used.
- Backup
Id string - Backup ID. The cluster will be created from the specified backup. How to get a list of MySQL backups.
- Time string
- Timestamp of the moment to which the MySQL cluster should be restored. (Format: "2006-01-02T15:04:05" - UTC). When not set, current time is used.
- backup
Id String - Backup ID. The cluster will be created from the specified backup. How to get a list of MySQL backups.
- time String
- Timestamp of the moment to which the MySQL cluster should be restored. (Format: "2006-01-02T15:04:05" - UTC). When not set, current time is used.
- backup
Id string - Backup ID. The cluster will be created from the specified backup. How to get a list of MySQL backups.
- time string
- Timestamp of the moment to which the MySQL cluster should be restored. (Format: "2006-01-02T15:04:05" - UTC). When not set, current time is used.
- backup_
id str - Backup ID. The cluster will be created from the specified backup. How to get a list of MySQL backups.
- time str
- Timestamp of the moment to which the MySQL cluster should be restored. (Format: "2006-01-02T15:04:05" - UTC). When not set, current time is used.
- backup
Id String - Backup ID. The cluster will be created from the specified backup. How to get a list of MySQL backups.
- time String
- Timestamp of the moment to which the MySQL cluster should be restored. (Format: "2006-01-02T15:04:05" - UTC). When not set, current time is used.
MdbMysqlClusterUser, MdbMysqlClusterUserArgs
- Name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - Password string
- The password of the user.
- Authentication
Plugin string - Authentication plugin. Allowed values:
MYSQL_NATIVE_PASSWORD
,CACHING_SHA2_PASSWORD
,SHA256_PASSWORD
(for version 5.7MYSQL_NATIVE_PASSWORD
,SHA256_PASSWORD
) - Connection
Limits MdbMysql Cluster User Connection Limits - User's connection limits. The structure is documented below. If the attribute is not specified there will be no changes.
- Global
Permissions List<string> - List user's global permissions
Allowed permissions:REPLICATION_CLIENT
,REPLICATION_SLAVE
,PROCESS
for clear list use empty list. If the attribute is not specified there will be no changes. - Permissions
List<Mdb
Mysql Cluster User Permission> - Set of permissions granted to the user. The structure is documented below.
- Name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - Password string
- The password of the user.
- Authentication
Plugin string - Authentication plugin. Allowed values:
MYSQL_NATIVE_PASSWORD
,CACHING_SHA2_PASSWORD
,SHA256_PASSWORD
(for version 5.7MYSQL_NATIVE_PASSWORD
,SHA256_PASSWORD
) - Connection
Limits MdbMysql Cluster User Connection Limits - User's connection limits. The structure is documented below. If the attribute is not specified there will be no changes.
- Global
Permissions []string - List user's global permissions
Allowed permissions:REPLICATION_CLIENT
,REPLICATION_SLAVE
,PROCESS
for clear list use empty list. If the attribute is not specified there will be no changes. - Permissions
[]Mdb
Mysql Cluster User Permission - Set of permissions granted to the user. The structure is documented below.
- name String
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - password String
- The password of the user.
- authentication
Plugin String - Authentication plugin. Allowed values:
MYSQL_NATIVE_PASSWORD
,CACHING_SHA2_PASSWORD
,SHA256_PASSWORD
(for version 5.7MYSQL_NATIVE_PASSWORD
,SHA256_PASSWORD
) - connection
Limits MdbMysql Cluster User Connection Limits - User's connection limits. The structure is documented below. If the attribute is not specified there will be no changes.
- global
Permissions List<String> - List user's global permissions
Allowed permissions:REPLICATION_CLIENT
,REPLICATION_SLAVE
,PROCESS
for clear list use empty list. If the attribute is not specified there will be no changes. - permissions
List<Mdb
Mysql Cluster User Permission> - Set of permissions granted to the user. The structure is documented below.
- name string
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - password string
- The password of the user.
- authentication
Plugin string - Authentication plugin. Allowed values:
MYSQL_NATIVE_PASSWORD
,CACHING_SHA2_PASSWORD
,SHA256_PASSWORD
(for version 5.7MYSQL_NATIVE_PASSWORD
,SHA256_PASSWORD
) - connection
Limits MdbMysql Cluster User Connection Limits - User's connection limits. The structure is documented below. If the attribute is not specified there will be no changes.
- global
Permissions string[] - List user's global permissions
Allowed permissions:REPLICATION_CLIENT
,REPLICATION_SLAVE
,PROCESS
for clear list use empty list. If the attribute is not specified there will be no changes. - permissions
Mdb
Mysql Cluster User Permission[] - Set of permissions granted to the user. The structure is documented below.
- name str
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - password str
- The password of the user.
- authentication_
plugin str - Authentication plugin. Allowed values:
MYSQL_NATIVE_PASSWORD
,CACHING_SHA2_PASSWORD
,SHA256_PASSWORD
(for version 5.7MYSQL_NATIVE_PASSWORD
,SHA256_PASSWORD
) - connection_
limits MdbMysql Cluster User Connection Limits - User's connection limits. The structure is documented below. If the attribute is not specified there will be no changes.
- global_
permissions Sequence[str] - List user's global permissions
Allowed permissions:REPLICATION_CLIENT
,REPLICATION_SLAVE
,PROCESS
for clear list use empty list. If the attribute is not specified there will be no changes. - permissions
Sequence[Mdb
Mysql Cluster User Permission] - Set of permissions granted to the user. The structure is documented below.
- name String
- Host state name. It should be set for all hosts or unset for all hosts. This field can be used by another host, to select which host will be its replication source. Please refer to
replication_source_name
parameter. - password String
- The password of the user.
- authentication
Plugin String - Authentication plugin. Allowed values:
MYSQL_NATIVE_PASSWORD
,CACHING_SHA2_PASSWORD
,SHA256_PASSWORD
(for version 5.7MYSQL_NATIVE_PASSWORD
,SHA256_PASSWORD
) - connection
Limits Property Map - User's connection limits. The structure is documented below. If the attribute is not specified there will be no changes.
- global
Permissions List<String> - List user's global permissions
Allowed permissions:REPLICATION_CLIENT
,REPLICATION_SLAVE
,PROCESS
for clear list use empty list. If the attribute is not specified there will be no changes. - permissions List<Property Map>
- Set of permissions granted to the user. The structure is documented below.
MdbMysqlClusterUserConnectionLimits, MdbMysqlClusterUserConnectionLimitsArgs
- Max
Connections intPer Hour - Max connections per hour.
- Max
Questions intPer Hour - Max questions per hour.
- Max
Updates intPer Hour - Max updates per hour.
- Max
User intConnections - Max user connections.
- Max
Connections intPer Hour - Max connections per hour.
- Max
Questions intPer Hour - Max questions per hour.
- Max
Updates intPer Hour - Max updates per hour.
- Max
User intConnections - Max user connections.
- max
Connections IntegerPer Hour - Max connections per hour.
- max
Questions IntegerPer Hour - Max questions per hour.
- max
Updates IntegerPer Hour - Max updates per hour.
- max
User IntegerConnections - Max user connections.
- max
Connections numberPer Hour - Max connections per hour.
- max
Questions numberPer Hour - Max questions per hour.
- max
Updates numberPer Hour - Max updates per hour.
- max
User numberConnections - Max user connections.
- max_
connections_ intper_ hour - Max connections per hour.
- max_
questions_ intper_ hour - Max questions per hour.
- max_
updates_ intper_ hour - Max updates per hour.
- max_
user_ intconnections - Max user connections.
- max
Connections NumberPer Hour - Max connections per hour.
- max
Questions NumberPer Hour - Max questions per hour.
- max
Updates NumberPer Hour - Max updates per hour.
- max
User NumberConnections - Max user connections.
MdbMysqlClusterUserPermission, MdbMysqlClusterUserPermissionArgs
- Database
Name string - The name of the database that the permission grants access to.
- Roles List<string>
- List user's roles in the database.
Allowed roles:
ALL
,ALTER
,ALTER_ROUTINE
,CREATE
,CREATE_ROUTINE
,CREATE_TEMPORARY_TABLES
,CREATE_VIEW
,DELETE
,DROP
,EVENT
,EXECUTE
,INDEX
,INSERT
,LOCK_TABLES
,SELECT
,SHOW_VIEW
,TRIGGER
,UPDATE
.
- Database
Name string - The name of the database that the permission grants access to.
- Roles []string
- List user's roles in the database.
Allowed roles:
ALL
,ALTER
,ALTER_ROUTINE
,CREATE
,CREATE_ROUTINE
,CREATE_TEMPORARY_TABLES
,CREATE_VIEW
,DELETE
,DROP
,EVENT
,EXECUTE
,INDEX
,INSERT
,LOCK_TABLES
,SELECT
,SHOW_VIEW
,TRIGGER
,UPDATE
.
- database
Name String - The name of the database that the permission grants access to.
- roles List<String>
- List user's roles in the database.
Allowed roles:
ALL
,ALTER
,ALTER_ROUTINE
,CREATE
,CREATE_ROUTINE
,CREATE_TEMPORARY_TABLES
,CREATE_VIEW
,DELETE
,DROP
,EVENT
,EXECUTE
,INDEX
,INSERT
,LOCK_TABLES
,SELECT
,SHOW_VIEW
,TRIGGER
,UPDATE
.
- database
Name string - The name of the database that the permission grants access to.
- roles string[]
- List user's roles in the database.
Allowed roles:
ALL
,ALTER
,ALTER_ROUTINE
,CREATE
,CREATE_ROUTINE
,CREATE_TEMPORARY_TABLES
,CREATE_VIEW
,DELETE
,DROP
,EVENT
,EXECUTE
,INDEX
,INSERT
,LOCK_TABLES
,SELECT
,SHOW_VIEW
,TRIGGER
,UPDATE
.
- database_
name str - The name of the database that the permission grants access to.
- roles Sequence[str]
- List user's roles in the database.
Allowed roles:
ALL
,ALTER
,ALTER_ROUTINE
,CREATE
,CREATE_ROUTINE
,CREATE_TEMPORARY_TABLES
,CREATE_VIEW
,DELETE
,DROP
,EVENT
,EXECUTE
,INDEX
,INSERT
,LOCK_TABLES
,SELECT
,SHOW_VIEW
,TRIGGER
,UPDATE
.
- database
Name String - The name of the database that the permission grants access to.
- roles List<String>
- List user's roles in the database.
Allowed roles:
ALL
,ALTER
,ALTER_ROUTINE
,CREATE
,CREATE_ROUTINE
,CREATE_TEMPORARY_TABLES
,CREATE_VIEW
,DELETE
,DROP
,EVENT
,EXECUTE
,INDEX
,INSERT
,LOCK_TABLES
,SELECT
,SHOW_VIEW
,TRIGGER
,UPDATE
.
Import
A cluster can be imported using the id
of the resource, e.g.
$ pulumi import yandex:index/mdbMysqlCluster:MdbMysqlCluster 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.