import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface SqlserverConfigInstanceRoGroupConfig extends cdktf.TerraformMetaArguments { /** * 0-user-defined weight (adjusted according to WeightPairs), 1-system automatically assigns weight (WeightPairs is invalid), the default is 0. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group#auto_weight SqlserverConfigInstanceRoGroup#auto_weight} */ readonly autoWeight?: number; /** * 0-do not rebalance the load, 1-rebalance the load, the default is 0. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group#balance_weight SqlserverConfigInstanceRoGroup#balance_weight} */ readonly balanceWeight?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group#id SqlserverConfigInstanceRoGroup#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * Instance ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group#instance_id SqlserverConfigInstanceRoGroup#instance_id} */ readonly instanceId: string; /** * Whether to enable timeout culling function. 0- Disable the culling function. 1- Enable the culling function. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group#is_offline_delay SqlserverConfigInstanceRoGroup#is_offline_delay} */ readonly isOfflineDelay?: number; /** * After the timeout removal function is enabled, the number of read-only copies retained by the read-only group at least, if this parameter is not filled, it will not be modified. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group#min_read_only_in_group SqlserverConfigInstanceRoGroup#min_read_only_in_group} */ readonly minReadOnlyInGroup?: number; /** * Read-only group ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group#read_only_group_id SqlserverConfigInstanceRoGroup#read_only_group_id} */ readonly readOnlyGroupId: string; /** * Read-only group name. If this parameter is not specified, it is not modified. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group#read_only_group_name SqlserverConfigInstanceRoGroup#read_only_group_name} */ readonly readOnlyGroupName?: string; /** * After the timeout elimination function is enabled, the timeout threshold used, if this parameter is not filled, it will not be modified. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group#read_only_max_delay_time SqlserverConfigInstanceRoGroup#read_only_max_delay_time} */ readonly readOnlyMaxDelayTime?: number; /** * weight_pairs block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group#weight_pairs SqlserverConfigInstanceRoGroup#weight_pairs} */ readonly weightPairs?: SqlserverConfigInstanceRoGroupWeightPairs[] | cdktf.IResolvable; } export interface SqlserverConfigInstanceRoGroupWeightPairs { /** * Read-only instance ID, in the format: mssqlro-3l3fgqn7. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group#read_only_instance_id SqlserverConfigInstanceRoGroup#read_only_instance_id} */ readonly readOnlyInstanceId: string; /** * Read-only instance weight, the range is 0-100. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group#read_only_weight SqlserverConfigInstanceRoGroup#read_only_weight} */ readonly readOnlyWeight: number; } export declare function sqlserverConfigInstanceRoGroupWeightPairsToTerraform(struct?: SqlserverConfigInstanceRoGroupWeightPairs | cdktf.IResolvable): any; export declare function sqlserverConfigInstanceRoGroupWeightPairsToHclTerraform(struct?: SqlserverConfigInstanceRoGroupWeightPairs | cdktf.IResolvable): any; export declare class SqlserverConfigInstanceRoGroupWeightPairsOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): SqlserverConfigInstanceRoGroupWeightPairs | cdktf.IResolvable | undefined; set internalValue(value: SqlserverConfigInstanceRoGroupWeightPairs | cdktf.IResolvable | undefined); private _readOnlyInstanceId?; get readOnlyInstanceId(): string; set readOnlyInstanceId(value: string); get readOnlyInstanceIdInput(): string; private _readOnlyWeight?; get readOnlyWeight(): number; set readOnlyWeight(value: number); get readOnlyWeightInput(): number; } export declare class SqlserverConfigInstanceRoGroupWeightPairsList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: SqlserverConfigInstanceRoGroupWeightPairs[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): SqlserverConfigInstanceRoGroupWeightPairsOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group tencentcloud_sqlserver_config_instance_ro_group} */ export declare class SqlserverConfigInstanceRoGroup extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_sqlserver_config_instance_ro_group"; /** * Generates CDKTF code for importing a SqlserverConfigInstanceRoGroup resource upon running "cdktf plan " * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the SqlserverConfigInstanceRoGroup to import * @param importFromId The id of the existing SqlserverConfigInstanceRoGroup that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the SqlserverConfigInstanceRoGroup to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any; /** * Create a new {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/sqlserver_config_instance_ro_group tencentcloud_sqlserver_config_instance_ro_group} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options SqlserverConfigInstanceRoGroupConfig */ constructor(scope: Construct, id: string, config: SqlserverConfigInstanceRoGroupConfig); private _autoWeight?; get autoWeight(): number; set autoWeight(value: number); resetAutoWeight(): void; get autoWeightInput(): number; private _balanceWeight?; get balanceWeight(): number; set balanceWeight(value: number); resetBalanceWeight(): void; get balanceWeightInput(): number; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _instanceId?; get instanceId(): string; set instanceId(value: string); get instanceIdInput(): string; private _isOfflineDelay?; get isOfflineDelay(): number; set isOfflineDelay(value: number); resetIsOfflineDelay(): void; get isOfflineDelayInput(): number; private _minReadOnlyInGroup?; get minReadOnlyInGroup(): number; set minReadOnlyInGroup(value: number); resetMinReadOnlyInGroup(): void; get minReadOnlyInGroupInput(): number; private _readOnlyGroupId?; get readOnlyGroupId(): string; set readOnlyGroupId(value: string); get readOnlyGroupIdInput(): string; private _readOnlyGroupName?; get readOnlyGroupName(): string; set readOnlyGroupName(value: string); resetReadOnlyGroupName(): void; get readOnlyGroupNameInput(): string; private _readOnlyMaxDelayTime?; get readOnlyMaxDelayTime(): number; set readOnlyMaxDelayTime(value: number); resetReadOnlyMaxDelayTime(): void; get readOnlyMaxDelayTimeInput(): number; private _weightPairs; get weightPairs(): SqlserverConfigInstanceRoGroupWeightPairsList; putWeightPairs(value: SqlserverConfigInstanceRoGroupWeightPairs[] | cdktf.IResolvable): void; resetWeightPairs(): void; get weightPairsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }