Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Yandex

v0.10.0 published on Thursday, Nov 18, 2021 by Pulumi

MdbMysqlCluster

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 boolean

  • auto_increment_increment integer

  • auto_increment_offset integer

  • binlog_cache_size integer

  • binlog_group_commit_sync_delay integer

  • binlog_row_image one of:

    • 0: “BINLOG_ROW_IMAGE_UNSPECIFIED”
    • 1: “FULL”
    • 2: “MINIMAL”
    • 3: “NOBLOB”
  • binlog_rows_query_log_events boolean

  • character_set_server text

  • collation_server text

  • default_authentication_plugin one of:

    • 0: “AUTH_PLUGIN_UNSPECIFIED”
    • 1: “MYSQL_NATIVE_PASSWORD”
    • 2: “CACHING_SHA2_PASSWORD”
    • 3: “SHA256_PASSWORD”
  • default_time_zone text

  • explicit_defaults_for_timestamp boolean

  • general_log boolean

  • group_concat_max_len integer

  • innodb_adaptive_hash_index boolean

  • innodb_buffer_pool_size integer

  • innodb_flush_log_at_trx_commit integer

  • innodb_io_capacity integer

  • innodb_io_capacity_max integer

  • innodb_lock_wait_timeout integer

  • innodb_log_buffer_size integer

  • innodb_log_file_size integer

  • innodb_numa_interleave boolean

  • innodb_print_all_deadlocks boolean

  • innodb_purge_threads integer

  • innodb_read_io_threads integer

  • innodb_temp_data_file_max_size integer

  • innodb_thread_concurrency integer

  • innodb_write_io_threads integer

  • join_buffer_size integer

  • long_query_time float

  • max_allowed_packet integer

  • max_connections integer

  • max_heap_table_size integer

  • net_read_timeout integer

  • net_write_timeout integer

  • regexp_time_limit integer

  • rpl_semi_sync_master_wait_for_slave_count integer

  • slave_parallel_type one of:

    • 0: “SLAVE_PARALLEL_TYPE_UNSPECIFIED”
    • 1: “DATABASE”
    • 2: “LOGICAL_CLOCK”
  • slave_parallel_workers integer

  • sort_buffer_size integer

  • sync_binlog integer

  • table_definition_cache integer

  • table_open_cache integer

  • table_open_cache_instances integer

  • thread_cache_size integer

  • thread_stack integer

  • tmp_table_size integer

  • transaction_isolation one of:

    • 0: “TRANSACTION_ISOLATION_UNSPECIFIED”
    • 1: “READ_COMMITTED”
    • 2: “REPEATABLE_READ”
    • 3: “SERIALIZABLE”

MysqlConfig 5.7

  • audit_log boolean

  • auto_increment_increment integer

  • auto_increment_offset integer

  • binlog_cache_size integer

  • binlog_group_commit_sync_delay integer

  • binlog_row_image one of:

    • 0: “BINLOG_ROW_IMAGE_UNSPECIFIED”
    • 1: “FULL”
    • 2: “MINIMAL”
    • 3: “NOBLOB”
  • binlog_rows_query_log_events boolean

  • character_set_server text

  • collation_server text

  • default_authentication_plugin one of:

    • 0: “AUTH_PLUGIN_UNSPECIFIED”
    • 1: “MYSQL_NATIVE_PASSWORD”
    • 2: “CACHING_SHA2_PASSWORD”
    • 3: “SHA256_PASSWORD”
  • default_time_zone text

  • explicit_defaults_for_timestamp boolean

  • general_log boolean

  • group_concat_max_len integer

  • innodb_adaptive_hash_index boolean

  • innodb_buffer_pool_size integer

  • innodb_flush_log_at_trx_commit integer

  • innodb_io_capacity integer

  • innodb_io_capacity_max integer

  • innodb_lock_wait_timeout integer

  • innodb_log_buffer_size integer

  • innodb_log_file_size integer

  • innodb_numa_interleave boolean

  • innodb_print_all_deadlocks boolean

  • innodb_purge_threads integer

  • innodb_read_io_threads integer

  • innodb_temp_data_file_max_size integer

  • innodb_thread_concurrency integer

  • innodb_write_io_threads integer

  • join_buffer_size integer

  • long_query_time float

  • max_allowed_packet integer

  • max_connections integer

  • max_heap_table_size integer

  • net_read_timeout integer

  • net_write_timeout integer

  • rpl_semi_sync_master_wait_for_slave_count integer

  • slave_parallel_type one of:

    • 0: “SLAVE_PARALLEL_TYPE_UNSPECIFIED”
    • 1: “DATABASE”
    • 2: “LOGICAL_CLOCK”
  • slave_parallel_workers integer

  • sort_buffer_size integer

  • sync_binlog integer

  • table_definition_cache integer

  • table_open_cache integer

  • table_open_cache_instances integer

  • thread_cache_size integer

  • thread_stack integer

  • tmp_table_size integer

  • transaction_isolation one of:

    • 0: “TRANSACTION_ISOLATION_UNSPECIFIED”
    • 1: “READ_COMMITTED”
    • 2: “REPEATABLE_READ”
    • 3: “SERIALIZABLE”

Example Usage

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

Create a MdbMysqlCluster Resource

new MdbMysqlCluster(name: string, args: MdbMysqlClusterArgs, opts?: CustomResourceOptions);
@overload
def MdbMysqlCluster(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    access: Optional[MdbMysqlClusterAccessArgs] = None,
                    allow_regeneration_host: Optional[bool] = None,
                    backup_window_start: Optional[MdbMysqlClusterBackupWindowStartArgs] = None,
                    databases: Optional[Sequence[MdbMysqlClusterDatabaseArgs]] = None,
                    deletion_protection: Optional[bool] = None,
                    description: Optional[str] = None,
                    environment: Optional[str] = None,
                    folder_id: 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,
                    users: Optional[Sequence[MdbMysqlClusterUserArgs]] = None,
                    version: Optional[str] = None)
@overload
def MdbMysqlCluster(resource_name: str,
                    args: MdbMysqlClusterArgs,
                    opts: Optional[ResourceOptions] = None)
func NewMdbMysqlCluster(ctx *Context, name string, args MdbMysqlClusterArgs, opts ...ResourceOption) (*MdbMysqlCluster, error)
public MdbMysqlCluster(string name, MdbMysqlClusterArgs args, CustomResourceOptions? opts = null)
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.

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

The MdbMysqlCluster resource accepts the following input properties:

Databases List<MdbMysqlClusterDatabaseArgs>
A database of the MySQL cluster. The structure is documented below.
Environment string
Deployment environment of the MySQL cluster.
Hosts List<MdbMysqlClusterHostArgs>
A host of the MySQL cluster. The structure is documented below.
NetworkId string
ID of the network, to which the MySQL cluster uses.
Resources MdbMysqlClusterResourcesArgs
Resources allocated to hosts of the MySQL cluster. The structure is documented below.
Users List<MdbMysqlClusterUserArgs>
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 MdbMysqlClusterAccessArgs
Access policy to the MySQL cluster. The structure is documented below.
AllowRegenerationHost bool

Deprecated: You can safely remove this option. There is no need to recreate host if assign_public_ip is changed.

BackupWindowStart MdbMysqlClusterBackupWindowStartArgs
Time to start the daily backup, in the UTC. The structure is documented below.
DeletionProtection bool
Inhibits deletion of the cluster. Can be either true or false.
Description string
Description of the MySQL cluster.
FolderId 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.
MaintenanceWindow MdbMysqlClusterMaintenanceWindowArgs
Maintenance policy of the MySQL cluster. The structure is documented below.
MysqlConfig 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 MdbMysqlClusterRestoreArgs
The cluster will be created from the specified backup. The structure is documented below.
SecurityGroupIds List<string>
A set of ids of security groups assigned to hosts of the cluster.
Databases []MdbMysqlClusterDatabaseArgs
A database of the MySQL cluster. The structure is documented below.
Environment string
Deployment environment of the MySQL cluster.
Hosts []MdbMysqlClusterHostArgs
A host of the MySQL cluster. The structure is documented below.
NetworkId string
ID of the network, to which the MySQL cluster uses.
Resources MdbMysqlClusterResourcesArgs
Resources allocated to hosts of the MySQL cluster. The structure is documented below.
Users []MdbMysqlClusterUserArgs
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 MdbMysqlClusterAccessArgs
Access policy to the MySQL cluster. The structure is documented below.
AllowRegenerationHost bool

Deprecated: You can safely remove this option. There is no need to recreate host if assign_public_ip is changed.

BackupWindowStart MdbMysqlClusterBackupWindowStartArgs
Time to start the daily backup, in the UTC. The structure is documented below.
DeletionProtection bool
Inhibits deletion of the cluster. Can be either true or false.
Description string
Description of the MySQL cluster.
FolderId 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.
MaintenanceWindow MdbMysqlClusterMaintenanceWindowArgs
Maintenance policy of the MySQL cluster. The structure is documented below.
MysqlConfig 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 MdbMysqlClusterRestoreArgs
The cluster will be created from the specified backup. The structure is documented below.
SecurityGroupIds []string
A set of ids of security groups assigned to hosts of the cluster.
databases MdbMysqlClusterDatabaseArgs[]
A database of the MySQL cluster. The structure is documented below.
environment string
Deployment environment of the MySQL cluster.
hosts MdbMysqlClusterHostArgs[]
A host of the MySQL cluster. The structure is documented below.
networkId string
ID of the network, to which the MySQL cluster uses.
resources MdbMysqlClusterResourcesArgs
Resources allocated to hosts of the MySQL cluster. The structure is documented below.
users MdbMysqlClusterUserArgs[]
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 MdbMysqlClusterAccessArgs
Access policy to the MySQL cluster. The structure is documented below.
allowRegenerationHost boolean

Deprecated: You can safely remove this option. There is no need to recreate host if assign_public_ip is changed.

backupWindowStart MdbMysqlClusterBackupWindowStartArgs
Time to start the daily backup, in the UTC. The structure is documented below.
deletionProtection boolean
Inhibits deletion of the cluster. Can be either true or false.
description string
Description of the MySQL cluster.
folderId 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.
maintenanceWindow MdbMysqlClusterMaintenanceWindowArgs
Maintenance policy of the MySQL cluster. The structure is documented below.
mysqlConfig {[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 MdbMysqlClusterRestoreArgs
The cluster will be created from the specified backup. The structure is documented below.
securityGroupIds string[]
A set of ids of security groups assigned to hosts of the cluster.
databases Sequence[MdbMysqlClusterDatabaseArgs]
A database of the MySQL cluster. The structure is documented below.
environment str
Deployment environment of the MySQL cluster.
hosts Sequence[MdbMysqlClusterHostArgs]
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 MdbMysqlClusterResourcesArgs
Resources allocated to hosts of the MySQL cluster. The structure is documented below.
users Sequence[MdbMysqlClusterUserArgs]
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 MdbMysqlClusterAccessArgs
Access policy to the MySQL cluster. The structure is documented below.
allow_regeneration_host bool

Deprecated: You can safely remove this option. There is no need to recreate host if assign_public_ip is changed.

backup_window_start MdbMysqlClusterBackupWindowStartArgs
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 or false.
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 MdbMysqlClusterMaintenanceWindowArgs
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 MdbMysqlClusterRestoreArgs
The cluster will be created from the specified backup. The structure is documented below.
security_group_ids Sequence[str]
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:

CreatedAt string
Creation timestamp of the cluster.
Health string
Aggregated health of the cluster.
Id string
The provider-assigned unique ID for this managed resource.
Status string
Status of the cluster.
CreatedAt string
Creation timestamp of the cluster.
Health string
Aggregated health of the cluster.
Id string
The provider-assigned unique ID for this managed resource.
Status string
Status of the cluster.
createdAt string
Creation timestamp of the cluster.
health string
Aggregated health of the cluster.
id string
The provider-assigned unique ID for this managed resource.
status string
Status of the cluster.
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 an 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)
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.

The following state arguments are supported:

Access MdbMysqlClusterAccessArgs
Access policy to the MySQL cluster. The structure is documented below.
AllowRegenerationHost bool

Deprecated: You can safely remove this option. There is no need to recreate host if assign_public_ip is changed.

BackupWindowStart MdbMysqlClusterBackupWindowStartArgs
Time to start the daily backup, in the UTC. The structure is documented below.
CreatedAt string
Creation timestamp of the cluster.
Databases List<MdbMysqlClusterDatabaseArgs>
A database of the MySQL cluster. The structure is documented below.
DeletionProtection bool
Inhibits deletion of the cluster. Can be either true or false.
Description string
Description of the MySQL cluster.
Environment string
Deployment environment of the MySQL cluster.
FolderId 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<MdbMysqlClusterHostArgs>
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.
MaintenanceWindow MdbMysqlClusterMaintenanceWindowArgs
Maintenance policy of the MySQL cluster. The structure is documented below.
MysqlConfig 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.
NetworkId string
ID of the network, to which the MySQL cluster uses.
Resources MdbMysqlClusterResourcesArgs
Resources allocated to hosts of the MySQL cluster. The structure is documented below.
Restore MdbMysqlClusterRestoreArgs
The cluster will be created from the specified backup. The structure is documented below.
SecurityGroupIds List<string>
A set of ids of security groups assigned to hosts of the cluster.
Status string
Status of the cluster.
Users List<MdbMysqlClusterUserArgs>
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 MdbMysqlClusterAccessArgs
Access policy to the MySQL cluster. The structure is documented below.
AllowRegenerationHost bool

Deprecated: You can safely remove this option. There is no need to recreate host if assign_public_ip is changed.

BackupWindowStart MdbMysqlClusterBackupWindowStartArgs
Time to start the daily backup, in the UTC. The structure is documented below.
CreatedAt string
Creation timestamp of the cluster.
Databases []MdbMysqlClusterDatabaseArgs
A database of the MySQL cluster. The structure is documented below.
DeletionProtection bool
Inhibits deletion of the cluster. Can be either true or false.
Description string
Description of the MySQL cluster.
Environment string
Deployment environment of the MySQL cluster.
FolderId 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 []MdbMysqlClusterHostArgs
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.
MaintenanceWindow MdbMysqlClusterMaintenanceWindowArgs
Maintenance policy of the MySQL cluster. The structure is documented below.
MysqlConfig 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.
NetworkId string
ID of the network, to which the MySQL cluster uses.
Resources MdbMysqlClusterResourcesArgs
Resources allocated to hosts of the MySQL cluster. The structure is documented below.
Restore MdbMysqlClusterRestoreArgs
The cluster will be created from the specified backup. The structure is documented below.
SecurityGroupIds []string
A set of ids of security groups assigned to hosts of the cluster.
Status string
Status of the cluster.
Users []MdbMysqlClusterUserArgs
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 MdbMysqlClusterAccessArgs
Access policy to the MySQL cluster. The structure is documented below.
allowRegenerationHost boolean

Deprecated: You can safely remove this option. There is no need to recreate host if assign_public_ip is changed.

backupWindowStart MdbMysqlClusterBackupWindowStartArgs
Time to start the daily backup, in the UTC. The structure is documented below.
createdAt string
Creation timestamp of the cluster.
databases MdbMysqlClusterDatabaseArgs[]
A database of the MySQL cluster. The structure is documented below.
deletionProtection boolean
Inhibits deletion of the cluster. Can be either true or false.
description string
Description of the MySQL cluster.
environment string
Deployment environment of the MySQL cluster.
folderId 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 MdbMysqlClusterHostArgs[]
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.
maintenanceWindow MdbMysqlClusterMaintenanceWindowArgs
Maintenance policy of the MySQL cluster. The structure is documented below.
mysqlConfig {[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.
networkId string
ID of the network, to which the MySQL cluster uses.
resources MdbMysqlClusterResourcesArgs
Resources allocated to hosts of the MySQL cluster. The structure is documented below.
restore MdbMysqlClusterRestoreArgs
The cluster will be created from the specified backup. The structure is documented below.
securityGroupIds string[]
A set of ids of security groups assigned to hosts of the cluster.
status string
Status of the cluster.
users MdbMysqlClusterUserArgs[]
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 MdbMysqlClusterAccessArgs
Access policy to the MySQL cluster. The structure is documented below.
allow_regeneration_host bool

Deprecated: You can safely remove this option. There is no need to recreate host if assign_public_ip is changed.

backup_window_start MdbMysqlClusterBackupWindowStartArgs
Time to start the daily backup, in the UTC. The structure is documented below.
created_at str
Creation timestamp of the cluster.
databases Sequence[MdbMysqlClusterDatabaseArgs]
A database of the MySQL cluster. The structure is documented below.
deletion_protection bool
Inhibits deletion of the cluster. Can be either true or false.
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[MdbMysqlClusterHostArgs]
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 MdbMysqlClusterMaintenanceWindowArgs
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 MdbMysqlClusterResourcesArgs
Resources allocated to hosts of the MySQL cluster. The structure is documented below.
restore MdbMysqlClusterRestoreArgs
The cluster will be created from the specified backup. The structure is documented below.
security_group_ids Sequence[str]
A set of ids of security groups assigned to hosts of the cluster.
status str
Status of the cluster.
users Sequence[MdbMysqlClusterUserArgs]
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)

Supporting Types

MdbMysqlClusterAccess

DataLens bool
Allow access for Yandex DataLens.
WebSql bool
Allows access for SQL queries in the management console.
DataLens bool
Allow access for Yandex DataLens.
WebSql bool
Allows access for SQL queries in the management console.
dataLens boolean
Allow access for Yandex DataLens.
webSql 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.

MdbMysqlClusterBackupWindowStart

Hours int
The hour at which backup will be started.
Minutes int
The minute at which backup will be started.
Hours int
The hour at which backup will be started.
Minutes int
The minute at which backup will be started.
hours number
The hour at which backup will be started.
minutes number
The minute at which backup will be started.
hours int
The hour at which backup will be started.
minutes int
The minute at which backup will be started.

MdbMysqlClusterDatabase

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.

MdbMysqlClusterHost

Zone string
The availability zone where the MySQL host will be created.
AssignPublicIp bool
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.
ReplicationSource string
Host replication source (fqdn), when replication_source is empty then host is in HA group.
ReplicationSourceName string
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 when name is set.
SubnetId 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.
AssignPublicIp bool
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.
ReplicationSource string
Host replication source (fqdn), when replication_source is empty then host is in HA group.
ReplicationSourceName string
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 when name is set.
SubnetId 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.
assignPublicIp boolean
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.
replicationSource string
Host replication source (fqdn), when replication_source is empty then host is in HA group.
replicationSourceName string
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 when name is set.
subnetId 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_ip bool
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_name str
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 when name 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.

MdbMysqlClusterMaintenanceWindow

Type string
Type of maintenance window. Can be either ANYTIME or WEEKLY. 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 or WEEKLY. 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 or WEEKLY. 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 or WEEKLY. 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.

MdbMysqlClusterResources

DiskSize int
Volume of the storage available to a MySQL host, in gigabytes.
DiskTypeId string
Type of the storage of MySQL hosts.
ResourcePresetId string
DiskSize int
Volume of the storage available to a MySQL host, in gigabytes.
DiskTypeId string
Type of the storage of MySQL hosts.
ResourcePresetId string
diskSize number
Volume of the storage available to a MySQL host, in gigabytes.
diskTypeId string
Type of the storage of MySQL hosts.
resourcePresetId string
disk_size int
Volume of the storage available to a MySQL host, in gigabytes.
disk_type_id str
Type of the storage of MySQL hosts.
resource_preset_id str

MdbMysqlClusterRestore

BackupId 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.
BackupId 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.
backupId 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.

MdbMysqlClusterUser

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.
AuthenticationPlugin string
Authentication plugin. Allowed values: MYSQL_NATIVE_PASSWORD, CACHING_SHA2_PASSWORD, SHA256_PASSWORD (for version 5.7 MYSQL_NATIVE_PASSWORD, SHA256_PASSWORD)
ConnectionLimits MdbMysqlClusterUserConnectionLimits
User’s connection limits. The structure is documented below. If the attribute is not specified there will be no changes.
GlobalPermissions 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<MdbMysqlClusterUserPermission>
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.
AuthenticationPlugin string
Authentication plugin. Allowed values: MYSQL_NATIVE_PASSWORD, CACHING_SHA2_PASSWORD, SHA256_PASSWORD (for version 5.7 MYSQL_NATIVE_PASSWORD, SHA256_PASSWORD)
ConnectionLimits MdbMysqlClusterUserConnectionLimits
User’s connection limits. The structure is documented below. If the attribute is not specified there will be no changes.
GlobalPermissions []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 []MdbMysqlClusterUserPermission
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.
authenticationPlugin string
Authentication plugin. Allowed values: MYSQL_NATIVE_PASSWORD, CACHING_SHA2_PASSWORD, SHA256_PASSWORD (for version 5.7 MYSQL_NATIVE_PASSWORD, SHA256_PASSWORD)
connectionLimits MdbMysqlClusterUserConnectionLimits
User’s connection limits. The structure is documented below. If the attribute is not specified there will be no changes.
globalPermissions 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 MdbMysqlClusterUserPermission[]
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.7 MYSQL_NATIVE_PASSWORD, SHA256_PASSWORD)
connection_limits MdbMysqlClusterUserConnectionLimits
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[MdbMysqlClusterUserPermission]
Set of permissions granted to the user. The structure is documented below.

MdbMysqlClusterUserConnectionLimits

MaxConnectionsPerHour int
Max connections per hour.
MaxQuestionsPerHour int
Max questions per hour.
MaxUpdatesPerHour int
Max updates per hour.
MaxUserConnections int
Max user connections.
MaxConnectionsPerHour int
Max connections per hour.
MaxQuestionsPerHour int
Max questions per hour.
MaxUpdatesPerHour int
Max updates per hour.
MaxUserConnections int
Max user connections.
maxConnectionsPerHour number
Max connections per hour.
maxQuestionsPerHour number
Max questions per hour.
maxUpdatesPerHour number
Max updates per hour.
maxUserConnections number
Max user connections.
max_connections_per_hour int
Max connections per hour.
max_questions_per_hour int
Max questions per hour.
max_updates_per_hour int
Max updates per hour.
max_user_connections int
Max user connections.

MdbMysqlClusterUserPermission

DatabaseName 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.
DatabaseName 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.
databaseName 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.

Import

A cluster can be imported using the id of the resource, e.g.

 $ pulumi import yandex:index/mdbMysqlCluster:MdbMysqlCluster foo cluster_id

Package Details

Repository
https://github.com/pulumi/pulumi-yandex
License
Apache-2.0
Notes
This Pulumi package is based on the yandex Terraform Provider.