import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Cloud Database SQL Server Edition is a stable, reliable, and scalable online database service built on the world-class commercial database product Microsoft SQL Server. Creating an instance is the first step to using Cloud Database SQL Server Edition * * ## Import * * ```sh * $ pulumi import volcenginecc:rdsmssql/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; /** * Advanced instance features to modify. This API currently requires allowlisting. To use it, contact technical support. Example value: {"Key":"Value"} */ readonly advancedFeatures: pulumi.Output; /** * Allowlist ID list permitted for access. */ readonly allowListIds: pulumi.Output; /** * Used backup space for the instance, in GiB. */ readonly backupUse: pulumi.Output; /** * Payment method. */ readonly chargeInfo: pulumi.Output; readonly connectionInfos: pulumi.Output; /** * Creation time. */ readonly createdTime: pulumi.Output; /** * Compatible version. Values: SQLServer*2019*Std: SQL Server 2019 Standard Edition. SQLServer*2019*Ent: SQL Server 2019 Enterprise Edition. SQLServer*2019*Web: SQL Server 2019 Web Edition. SQLServer*2022*Std: SQL Server 2022 Standard Edition. SQLServer*2022*Ent: SQL Server 2022 Enterprise Edition. SQLServer*2022*Web: SQL Server 2022 Web Edition. */ readonly dbEngineVersion: pulumi.Output; /** * Kernel version number. */ readonly innerVersion: pulumi.Output; /** * Instance category. Values: Primary: primary instance. ReadOnly: read-only instance. */ readonly instanceCategory: 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. Values: Running: running. Creating: creating. CreateFailed: creation failed. Deleting: deleting. Restarting: restarting. Updating: updating. MasterChanging: primary node switching. Error: error. */ readonly instanceStatus: pulumi.Output; /** * Instance type. Available values: HA (High Availability), Basic, Cluster. Supported types vary by engine version: 2019 Std supports HA/Basic; 2019 Ent supports Cluster/Basic; 2019 Web supports Basic. */ readonly instanceType: pulumi.Output; /** * Instance maintenance window. Format: HH:mmZ-HH:mmZ (UTC time). Default: UTC18:00Z-21:59Z (Beijing time 02:00-05:59). Note: To ensure cloud database stability, the system performs maintenance on instances periodically. It is recommended to set the maintenance window during off-peak hours to avoid business impact. During the maintenance window, the instance may experience 1–2 brief disconnections. Ensure your application supports automatic reconnection. The minimum maintenance window is 1 hour, the maximum is 24 hours, and cross-day maintenance windows are not allowed. */ readonly maintenanceTime: pulumi.Output; /** * Primary node ID. This parameter is required when manually switching master and standby nodes. */ readonly masterNodeId: pulumi.Output; /** * Memory size, in GiB. */ readonly memory: pulumi.Output; readonly nodeDetailInfos: pulumi.Output; /** * Instance specification code. */ readonly nodeSpec: pulumi.Output; /** * Port. */ readonly port: pulumi.Output; /** * Primary instance ID. If this field is empty, this instance is the primary instance. */ readonly primaryInstanceId: pulumi.Output; /** * Project. */ readonly projectName: pulumi.Output; /** * Number of read-only instances. */ readonly readOnlyNumber: pulumi.Output; /** * Instance collation. Default: Chinese*PRC*CI*AS. Most native collations are supported. Available values: Latin1*General*CI*AS, Latin1*General*CS*AS, SQL*Latin1*General*CP1*CI*AS, SQL*Latin1*General*CP1*CS*AS, Chinese*PRC*CI*AS, Chinese*PRC*CS*AS, Chinese*PRC*BIN, Japanese*CI*AS, Japanese*CS*AS, Chinese*Taiwan*Stroke*CI*AS, Chinese*Taiwan*Stroke*CS*AS, Thai*CI*AS, Chinese*PRC*CI*AI, Chinese*PRC*BIN2, Cyrillic*General*CI_AS. */ readonly serverCollation: pulumi.Output; /** * Indicates whether slow logs are enabled. Available values: true: slow logs enabled. false: slow logs disabled. */ readonly slowQueryEnable: pulumi.Output; /** * Slow log threshold. Range: [1~10], unit: seconds (s). */ readonly slowQueryTime: pulumi.Output; /** * Storage size, in GiB. Range: 20 GiB ~ 4000 GiB, increment: 10 GiB. */ readonly storageSpace: pulumi.Output; /** * Instance storage type. */ readonly storageType: pulumi.Output; /** * Used storage space for the instance. Unit: GiB. */ readonly storageUse: pulumi.Output; /** * Subnet ID. If the primary and standby nodes are in different availability zones, their subnets must be set to the corresponding private network subnets for each zone. Use a semicolon (;) to separate multiple zones. */ readonly subnetId: pulumi.Output; /** * Password for the high-privilege account. Password rules: 8–32 characters; must include at least three of the following: uppercase letters, lowercase letters, numbers, special characters. Allowed special characters: !@#$%^&*()_+-=. */ readonly superAccountPassword: pulumi.Output; readonly tags: pulumi.Output; /** * Time zone. */ readonly timeZone: pulumi.Output; /** * Update time. */ readonly updatedTime: pulumi.Output; /** * CPU size. For example: 1 means 1 core. */ readonly vcpu: pulumi.Output; /** * VPC ID */ readonly vpcId: pulumi.Output; /** * Availability zone of the node. If the primary and standby nodes are in different availability zones, use a semicolon (;) to separate them. The first is the primary node's zone by default, the second is the standby node's zone. */ readonly zoneId: 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 { /** * Advanced instance features to modify. This API currently requires allowlisting. To use it, contact technical support. Example value: {"Key":"Value"} */ advancedFeatures?: pulumi.Input; /** * Allowlist ID list permitted for access. */ allowListIds?: pulumi.Input[]>; /** * Used backup space for the instance, in GiB. */ backupUse?: pulumi.Input; /** * Payment method. */ chargeInfo?: pulumi.Input; connectionInfos?: pulumi.Input[]>; /** * Creation time. */ createdTime?: pulumi.Input; /** * Compatible version. Values: SQLServer*2019*Std: SQL Server 2019 Standard Edition. SQLServer*2019*Ent: SQL Server 2019 Enterprise Edition. SQLServer*2019*Web: SQL Server 2019 Web Edition. SQLServer*2022*Std: SQL Server 2022 Standard Edition. SQLServer*2022*Ent: SQL Server 2022 Enterprise Edition. SQLServer*2022*Web: SQL Server 2022 Web Edition. */ dbEngineVersion?: pulumi.Input; /** * Kernel version number. */ innerVersion?: pulumi.Input; /** * Instance category. Values: Primary: primary instance. ReadOnly: read-only instance. */ instanceCategory?: 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. Values: Running: running. Creating: creating. CreateFailed: creation failed. Deleting: deleting. Restarting: restarting. Updating: updating. MasterChanging: primary node switching. Error: error. */ instanceStatus?: pulumi.Input; /** * Instance type. Available values: HA (High Availability), Basic, Cluster. Supported types vary by engine version: 2019 Std supports HA/Basic; 2019 Ent supports Cluster/Basic; 2019 Web supports Basic. */ instanceType?: pulumi.Input; /** * Instance maintenance window. Format: HH:mmZ-HH:mmZ (UTC time). Default: UTC18:00Z-21:59Z (Beijing time 02:00-05:59). Note: To ensure cloud database stability, the system performs maintenance on instances periodically. It is recommended to set the maintenance window during off-peak hours to avoid business impact. During the maintenance window, the instance may experience 1–2 brief disconnections. Ensure your application supports automatic reconnection. The minimum maintenance window is 1 hour, the maximum is 24 hours, and cross-day maintenance windows are not allowed. */ maintenanceTime?: pulumi.Input; /** * Primary node ID. This parameter is required when manually switching master and standby nodes. */ masterNodeId?: pulumi.Input; /** * Memory size, in GiB. */ memory?: pulumi.Input; nodeDetailInfos?: pulumi.Input[]>; /** * Instance specification code. */ nodeSpec?: pulumi.Input; /** * Port. */ port?: pulumi.Input; /** * Primary instance ID. If this field is empty, this instance is the primary instance. */ primaryInstanceId?: pulumi.Input; /** * Project. */ projectName?: pulumi.Input; /** * Number of read-only instances. */ readOnlyNumber?: pulumi.Input; /** * Instance collation. Default: Chinese*PRC*CI*AS. Most native collations are supported. Available values: Latin1*General*CI*AS, Latin1*General*CS*AS, SQL*Latin1*General*CP1*CI*AS, SQL*Latin1*General*CP1*CS*AS, Chinese*PRC*CI*AS, Chinese*PRC*CS*AS, Chinese*PRC*BIN, Japanese*CI*AS, Japanese*CS*AS, Chinese*Taiwan*Stroke*CI*AS, Chinese*Taiwan*Stroke*CS*AS, Thai*CI*AS, Chinese*PRC*CI*AI, Chinese*PRC*BIN2, Cyrillic*General*CI_AS. */ serverCollation?: pulumi.Input; /** * Indicates whether slow logs are enabled. Available values: true: slow logs enabled. false: slow logs disabled. */ slowQueryEnable?: pulumi.Input; /** * Slow log threshold. Range: [1~10], unit: seconds (s). */ slowQueryTime?: pulumi.Input; /** * Storage size, in GiB. Range: 20 GiB ~ 4000 GiB, increment: 10 GiB. */ storageSpace?: pulumi.Input; /** * Instance storage type. */ storageType?: pulumi.Input; /** * Used storage space for the instance. Unit: GiB. */ storageUse?: pulumi.Input; /** * Subnet ID. If the primary and standby nodes are in different availability zones, their subnets must be set to the corresponding private network subnets for each zone. Use a semicolon (;) to separate multiple zones. */ subnetId?: pulumi.Input; /** * Password for the high-privilege account. Password rules: 8–32 characters; must include at least three of the following: uppercase letters, lowercase letters, numbers, special characters. Allowed special characters: !@#$%^&*()_+-=. */ superAccountPassword?: pulumi.Input; tags?: pulumi.Input[]>; /** * Time zone. */ timeZone?: pulumi.Input; /** * Update time. */ updatedTime?: pulumi.Input; /** * CPU size. For example: 1 means 1 core. */ vcpu?: pulumi.Input; /** * VPC ID */ vpcId?: pulumi.Input; /** * Availability zone of the node. If the primary and standby nodes are in different availability zones, use a semicolon (;) to separate them. The first is the primary node's zone by default, the second is the standby node's zone. */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a Instance resource. */ export interface InstanceArgs { /** * Advanced instance features to modify. This API currently requires allowlisting. To use it, contact technical support. Example value: {"Key":"Value"} */ advancedFeatures?: pulumi.Input; /** * Allowlist ID list permitted for access. */ allowListIds?: pulumi.Input[]>; /** * Payment method. */ chargeInfo?: pulumi.Input; /** * Compatible version. Values: SQLServer*2019*Std: SQL Server 2019 Standard Edition. SQLServer*2019*Ent: SQL Server 2019 Enterprise Edition. SQLServer*2019*Web: SQL Server 2019 Web Edition. SQLServer*2022*Std: SQL Server 2022 Standard Edition. SQLServer*2022*Ent: SQL Server 2022 Enterprise Edition. SQLServer*2022*Web: SQL Server 2022 Web Edition. */ dbEngineVersion: 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 type. Available values: HA (High Availability), Basic, Cluster. Supported types vary by engine version: 2019 Std supports HA/Basic; 2019 Ent supports Cluster/Basic; 2019 Web supports Basic. */ instanceType: pulumi.Input; /** * Instance maintenance window. Format: HH:mmZ-HH:mmZ (UTC time). Default: UTC18:00Z-21:59Z (Beijing time 02:00-05:59). Note: To ensure cloud database stability, the system performs maintenance on instances periodically. It is recommended to set the maintenance window during off-peak hours to avoid business impact. During the maintenance window, the instance may experience 1–2 brief disconnections. Ensure your application supports automatic reconnection. The minimum maintenance window is 1 hour, the maximum is 24 hours, and cross-day maintenance windows are not allowed. */ maintenanceTime?: pulumi.Input; /** * Primary node ID. This parameter is required when manually switching master and standby nodes. */ masterNodeId?: pulumi.Input; /** * Instance specification code. */ nodeSpec: pulumi.Input; /** * Project. */ projectName?: pulumi.Input; /** * Instance collation. Default: Chinese*PRC*CI*AS. Most native collations are supported. Available values: Latin1*General*CI*AS, Latin1*General*CS*AS, SQL*Latin1*General*CP1*CI*AS, SQL*Latin1*General*CP1*CS*AS, Chinese*PRC*CI*AS, Chinese*PRC*CS*AS, Chinese*PRC*BIN, Japanese*CI*AS, Japanese*CS*AS, Chinese*Taiwan*Stroke*CI*AS, Chinese*Taiwan*Stroke*CS*AS, Thai*CI*AS, Chinese*PRC*CI*AI, Chinese*PRC*BIN2, Cyrillic*General*CI_AS. */ serverCollation?: pulumi.Input; /** * Storage size, in GiB. Range: 20 GiB ~ 4000 GiB, increment: 10 GiB. */ storageSpace: pulumi.Input; /** * Subnet ID. If the primary and standby nodes are in different availability zones, their subnets must be set to the corresponding private network subnets for each zone. Use a semicolon (;) to separate multiple zones. */ subnetId: pulumi.Input; /** * Password for the high-privilege account. Password rules: 8–32 characters; must include at least three of the following: uppercase letters, lowercase letters, numbers, special characters. Allowed special characters: !@#$%^&*()_+-=. */ superAccountPassword: pulumi.Input; tags?: pulumi.Input[]>; /** * Time zone. */ timeZone: pulumi.Input; /** * VPC ID */ vpcId: pulumi.Input; /** * Availability zone of the node. If the primary and standby nodes are in different availability zones, use a semicolon (;) to separate them. The first is the primary node's zone by default, the second is the standby node's zone. */ zoneId: pulumi.Input; }