import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * veDB MySQL Edition is Volcano Engine's self-developed next-generation cloud-native relational database. veDB MySQL Edition is fully compatible with MySQL and supports diverse enterprise database application scenarios. * * ## Import * * ```sh * $ pulumi import volcenginecc:vedbm/instance:Instance example "instance_id" * ``` */ export declare class Instance extends pulumi.CustomResource { /** * Get an existing Instance resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: InstanceState, opts?: pulumi.CustomResourceOptions): Instance; /** * Returns true if the given object is an instance of Instance. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Instance; /** * Billing details. */ readonly chargeDetail: pulumi.Output; /** * Instance creation time, format: YYYY-MM-DDTHH:MM:SSZ (UTC time) */ readonly createdTime: pulumi.Output; /** * Instance compatible version. Options: MySQL*8*0: Compatible with community MySQL 8.0. MySQL*5*7: Compatible with community MySQL 5.7 */ readonly dbEngineVersion: pulumi.Output; /** * Select the veDB MySQL minor version based on compatibility. When DBEngineVersion is set to MySQL*5*7, the default value for this parameter is 2.0. When DBEngineVersion is set to MySQL*8*0, the parameter value options are as follows: 3.0 (default): veDB MySQL stable version, 100% compatible with MySQL 8.0. 3.1: Native support for HTAP scenarios, accelerates complex queries. 3.2: Native support for HTAP scenarios, accelerates complex queries. */ readonly dbMinorVersion: pulumi.Output; /** * Instance kernel version. */ readonly dbRevisionVersion: pulumi.Output; /** * Whether deletion protection is enabled for the instance. Value range: enabled: enabled. disabled: disabled. */ readonly deletionProtection: pulumi.Output; readonly endpoints: pulumi.Output; /** * Instance ID. */ readonly instanceId: pulumi.Output; /** * Instance name. Naming rules: Cannot start with a digit or hyphen (-). Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters. */ readonly instanceName: pulumi.Output; /** * Instance status. */ readonly instanceStatus: pulumi.Output; /** * Whether table names are case-sensitive. Value range: 0: table names are case-sensitive; backend stores according to actual table name. 1: table names are not case-sensitive; backend stores table names in lowercase. */ readonly lowerCaseTableNames: pulumi.Output; /** * Instance maintenance window information */ readonly maintenanceWindow: pulumi.Output; /** * Number of instance nodes. Value range: 2–16. */ readonly nodeNumber: pulumi.Output; /** * Instance node specification code. */ readonly nodeSpec: pulumi.Output; readonly nodes: pulumi.Output; /** * Number of instances to create. Range: 1~50. Default: 1 */ readonly number: pulumi.Output; /** * Specify the private network port number for the default connection endpoint created for the instance. Default value is 3306. Value range: 1000–65534. */ readonly port: pulumi.Output; /** * Total prepaid storage capacity, in GiB */ readonly prePaidStorageInGb: pulumi.Output; /** * Project name to which the instance belongs. */ readonly projectName: pulumi.Output; /** * Instance specification type. Values: General: general purpose. Exclusive: dedicated. */ readonly specFamily: pulumi.Output; /** * Storage billing type. If this parameter is not specified, the storage billing type defaults to the same value as the compute billing type. Values: PostPaid: pay-as-you-go. PrePaid: annual/monthly subscription (prepaid). */ readonly storageChargeType: pulumi.Output; /** * Used storage space, in GiB */ readonly storageUsedGiB: pulumi.Output; /** * Subnet ID. The subnet must belong to the selected availability zone. */ readonly subnetId: pulumi.Output; /** * Account name for privileged user. Requirements: Must be unique, 2–32 characters. Letters, numbers, hyphens (-), and underscores (_) only. Must start with a letter and end with a letter or number. Cannot contain prohibited keywords */ readonly superAccountName: pulumi.Output; /** * Password for high-privilege account. The password must meet the following requirements: can only contain uppercase and lowercase letters, numbers, and special characters (such as ~!@#$%^&*_-+=`|(){}[]:;'<>,.?/). Length must be between 8 and 32 characters. Must include at least three of the following: uppercase letters, lowercase letters, numbers, or special characters. */ readonly superAccountPassword: pulumi.Output; readonly tags: pulumi.Output; /** * Parameter template ID */ readonly templateId: pulumi.Output; /** * Instance time zone. The default time zone for all regions in China is UTC +08:00. */ readonly timeZone: pulumi.Output; /** * Private network (VPC) ID. */ readonly vpcId: pulumi.Output; /** * Availability zone ID */ readonly zoneIds: pulumi.Output; /** * Create a Instance resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: InstanceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Instance resources. */ export interface InstanceState { /** * Billing details. */ chargeDetail?: pulumi.Input; /** * Instance creation time, format: YYYY-MM-DDTHH:MM:SSZ (UTC time) */ createdTime?: pulumi.Input; /** * Instance compatible version. Options: MySQL*8*0: Compatible with community MySQL 8.0. MySQL*5*7: Compatible with community MySQL 5.7 */ dbEngineVersion?: pulumi.Input; /** * Select the veDB MySQL minor version based on compatibility. When DBEngineVersion is set to MySQL*5*7, the default value for this parameter is 2.0. When DBEngineVersion is set to MySQL*8*0, the parameter value options are as follows: 3.0 (default): veDB MySQL stable version, 100% compatible with MySQL 8.0. 3.1: Native support for HTAP scenarios, accelerates complex queries. 3.2: Native support for HTAP scenarios, accelerates complex queries. */ dbMinorVersion?: pulumi.Input; /** * Instance kernel version. */ dbRevisionVersion?: pulumi.Input; /** * Whether deletion protection is enabled for the instance. Value range: enabled: enabled. disabled: disabled. */ deletionProtection?: pulumi.Input; endpoints?: pulumi.Input[]>; /** * Instance ID. */ instanceId?: pulumi.Input; /** * Instance name. Naming rules: Cannot start with a digit or hyphen (-). Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters. */ instanceName?: pulumi.Input; /** * Instance status. */ instanceStatus?: pulumi.Input; /** * Whether table names are case-sensitive. Value range: 0: table names are case-sensitive; backend stores according to actual table name. 1: table names are not case-sensitive; backend stores table names in lowercase. */ lowerCaseTableNames?: pulumi.Input; /** * Instance maintenance window information */ maintenanceWindow?: pulumi.Input; /** * Number of instance nodes. Value range: 2–16. */ nodeNumber?: pulumi.Input; /** * Instance node specification code. */ nodeSpec?: pulumi.Input; nodes?: pulumi.Input[]>; /** * Number of instances to create. Range: 1~50. Default: 1 */ number?: pulumi.Input; /** * Specify the private network port number for the default connection endpoint created for the instance. Default value is 3306. Value range: 1000–65534. */ port?: pulumi.Input; /** * Total prepaid storage capacity, in GiB */ prePaidStorageInGb?: pulumi.Input; /** * Project name to which the instance belongs. */ projectName?: pulumi.Input; /** * Instance specification type. Values: General: general purpose. Exclusive: dedicated. */ specFamily?: pulumi.Input; /** * Storage billing type. If this parameter is not specified, the storage billing type defaults to the same value as the compute billing type. Values: PostPaid: pay-as-you-go. PrePaid: annual/monthly subscription (prepaid). */ storageChargeType?: pulumi.Input; /** * Used storage space, in GiB */ storageUsedGiB?: pulumi.Input; /** * Subnet ID. The subnet must belong to the selected availability zone. */ subnetId?: pulumi.Input; /** * Account name for privileged user. Requirements: Must be unique, 2–32 characters. Letters, numbers, hyphens (-), and underscores (_) only. Must start with a letter and end with a letter or number. Cannot contain prohibited keywords */ superAccountName?: pulumi.Input; /** * Password for high-privilege account. The password must meet the following requirements: can only contain uppercase and lowercase letters, numbers, and special characters (such as ~!@#$%^&*_-+=`|(){}[]:;'<>,.?/). Length must be between 8 and 32 characters. Must include at least three of the following: uppercase letters, lowercase letters, numbers, or special characters. */ superAccountPassword?: pulumi.Input; tags?: pulumi.Input[]>; /** * Parameter template ID */ templateId?: pulumi.Input; /** * Instance time zone. The default time zone for all regions in China is UTC +08:00. */ timeZone?: pulumi.Input; /** * Private network (VPC) ID. */ vpcId?: pulumi.Input; /** * Availability zone ID */ zoneIds?: pulumi.Input; } /** * The set of arguments for constructing a Instance resource. */ export interface InstanceArgs { /** * Billing details. */ chargeDetail?: pulumi.Input; /** * Instance compatible version. Options: MySQL*8*0: Compatible with community MySQL 8.0. MySQL*5*7: Compatible with community MySQL 5.7 */ dbEngineVersion: pulumi.Input; /** * Select the veDB MySQL minor version based on compatibility. When DBEngineVersion is set to MySQL*5*7, the default value for this parameter is 2.0. When DBEngineVersion is set to MySQL*8*0, the parameter value options are as follows: 3.0 (default): veDB MySQL stable version, 100% compatible with MySQL 8.0. 3.1: Native support for HTAP scenarios, accelerates complex queries. 3.2: Native support for HTAP scenarios, accelerates complex queries. */ dbMinorVersion?: pulumi.Input; /** * Whether deletion protection is enabled for the instance. Value range: enabled: enabled. disabled: disabled. */ deletionProtection?: pulumi.Input; /** * Instance name. Naming rules: Cannot start with a digit or hyphen (-). Can only contain Chinese characters, letters, digits, underscores (_), and hyphens (-). Length must be between 1 and 128 characters. */ instanceName?: pulumi.Input; /** * Whether table names are case-sensitive. Value range: 0: table names are case-sensitive; backend stores according to actual table name. 1: table names are not case-sensitive; backend stores table names in lowercase. */ lowerCaseTableNames?: pulumi.Input; /** * Instance maintenance window information */ maintenanceWindow?: pulumi.Input; /** * Number of instance nodes. Value range: 2–16. */ nodeNumber: pulumi.Input; /** * Instance node specification code. */ nodeSpec: pulumi.Input; nodes?: pulumi.Input[]>; /** * Number of instances to create. Range: 1~50. Default: 1 */ number?: pulumi.Input; /** * Specify the private network port number for the default connection endpoint created for the instance. Default value is 3306. Value range: 1000–65534. */ port?: pulumi.Input; /** * Total prepaid storage capacity, in GiB */ prePaidStorageInGb?: pulumi.Input; /** * Project name to which the instance belongs. */ projectName?: pulumi.Input; /** * Storage billing type. If this parameter is not specified, the storage billing type defaults to the same value as the compute billing type. Values: PostPaid: pay-as-you-go. PrePaid: annual/monthly subscription (prepaid). */ storageChargeType?: pulumi.Input; /** * Subnet ID. The subnet must belong to the selected availability zone. */ subnetId: pulumi.Input; /** * Account name for privileged user. Requirements: Must be unique, 2–32 characters. Letters, numbers, hyphens (-), and underscores (_) only. Must start with a letter and end with a letter or number. Cannot contain prohibited keywords */ superAccountName?: pulumi.Input; /** * Password for high-privilege account. The password must meet the following requirements: can only contain uppercase and lowercase letters, numbers, and special characters (such as ~!@#$%^&*_-+=`|(){}[]:;'<>,.?/). Length must be between 8 and 32 characters. Must include at least three of the following: uppercase letters, lowercase letters, numbers, or special characters. */ superAccountPassword?: pulumi.Input; tags?: pulumi.Input[]>; /** * Parameter template ID */ templateId?: pulumi.Input; /** * Instance time zone. The default time zone for all regions in China is UTC +08:00. */ timeZone?: pulumi.Input; /** * Private network (VPC) ID. */ vpcId: pulumi.Input; /** * Availability zone ID */ zoneIds: pulumi.Input; }