import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface DataTencentcloudMysqlInstanceConfig extends cdktf.TerraformMetaArguments { /** * Pay type of instance, valid values are `PREPAID` and `POSTPAID`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#charge_type DataTencentcloudMysqlInstance#charge_type} */ readonly chargeType?: string; /** * The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#engine_version DataTencentcloudMysqlInstance#engine_version} */ readonly engineVersion?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#id DataTencentcloudMysqlInstance#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; /** * Initialization mark. Available values: `0` - Uninitialized; `1` - Initialized. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#init_flag DataTencentcloudMysqlInstance#init_flag} */ readonly initFlag?: number; /** * Name of mysql instance. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#instance_name DataTencentcloudMysqlInstance#instance_name} */ readonly instanceName?: string; /** * Instance type. Supported values include: `master` - master instance, `dr` - disaster recovery instance, and `ro` - read-only instance. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#instance_role DataTencentcloudMysqlInstance#instance_role} */ readonly instanceRole?: string; /** * Number of results returned for a single request. Default is `20`, and maximum is 2000. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#limit DataTencentcloudMysqlInstance#limit} */ readonly limit?: number; /** * Instance ID, such as `cdb-c1nl9rpv`. It is identical to the instance ID displayed in the database console page. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#mysql_id DataTencentcloudMysqlInstance#mysql_id} */ readonly mysqlId?: string; /** * Record offset. Default is 0. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#offset DataTencentcloudMysqlInstance#offset} */ readonly offset?: number; /** * Pay type of instance, `0`: prepay, `1`: postpaid. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#pay_type DataTencentcloudMysqlInstance#pay_type} */ readonly payType?: number; /** * Used to store results. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#result_output_file DataTencentcloudMysqlInstance#result_output_file} */ readonly resultOutputFile?: string; /** * Security groups ID of instance. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#security_group_id DataTencentcloudMysqlInstance#security_group_id} */ readonly securityGroupId?: string; /** * Instance status. Available values: `0` - Creating; `1` - Running; `4` - Isolating; `5` - Isolated. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#status DataTencentcloudMysqlInstance#status} */ readonly status?: number; /** * Indicates whether to query disaster recovery instances. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#with_dr DataTencentcloudMysqlInstance#with_dr} */ readonly withDr?: number; /** * Indicates whether to query master instances. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#with_master DataTencentcloudMysqlInstance#with_master} */ readonly withMaster?: number; /** * Indicates whether to query read-only instances. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#with_ro DataTencentcloudMysqlInstance#with_ro} */ readonly withRo?: number; } export interface DataTencentcloudMysqlInstanceInstanceListRoGroups { } export declare function dataTencentcloudMysqlInstanceInstanceListRoGroupsToTerraform(struct?: DataTencentcloudMysqlInstanceInstanceListRoGroups): any; export declare function dataTencentcloudMysqlInstanceInstanceListRoGroupsToHclTerraform(struct?: DataTencentcloudMysqlInstanceInstanceListRoGroups): any; export declare class DataTencentcloudMysqlInstanceInstanceListRoGroupsOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @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(): DataTencentcloudMysqlInstanceInstanceListRoGroups | undefined; set internalValue(value: DataTencentcloudMysqlInstanceInstanceListRoGroups | undefined); get groupId(): any; get instanceIds(): any; } export declare class DataTencentcloudMysqlInstanceInstanceListRoGroupsList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; /** * @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): DataTencentcloudMysqlInstanceInstanceListRoGroupsOutputReference; } export interface DataTencentcloudMysqlInstanceInstanceListStruct { } export declare function dataTencentcloudMysqlInstanceInstanceListStructToTerraform(struct?: DataTencentcloudMysqlInstanceInstanceListStruct): any; export declare function dataTencentcloudMysqlInstanceInstanceListStructToHclTerraform(struct?: DataTencentcloudMysqlInstanceInstanceListStruct): any; export declare class DataTencentcloudMysqlInstanceInstanceListStructOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @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(): DataTencentcloudMysqlInstanceInstanceListStruct | undefined; set internalValue(value: DataTencentcloudMysqlInstanceInstanceListStruct | undefined); get autoRenewFlag(): any; get chargeType(): any; get cpuCoreCount(): any; get createTime(): any; get deadLineTime(): any; get deviceType(): any; get drInstanceIds(): any; get engineVersion(): any; get initFlag(): any; get instanceName(): any; get instanceRole(): any; get internetHost(): any; get internetPort(): any; get internetStatus(): any; get intranetIp(): any; get intranetPort(): any; get masterInstanceId(): any; get memorySize(): any; get mysqlId(): any; get payType(): any; get projectId(): any; private _roGroups; get roGroups(): DataTencentcloudMysqlInstanceInstanceListRoGroupsList; get roInstanceIds(): any; get slaveSyncMode(): any; get status(): any; get subnetId(): any; get volumeSize(): any; get vpcId(): any; get zone(): any; } export declare class DataTencentcloudMysqlInstanceInstanceListStructList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; /** * @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): DataTencentcloudMysqlInstanceInstanceListStructOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance tencentcloud_mysql_instance} */ export declare class DataTencentcloudMysqlInstance extends cdktf.TerraformDataSource { static readonly tfResourceType = "tencentcloud_mysql_instance"; /** * Generates CDKTF code for importing a DataTencentcloudMysqlInstance 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 DataTencentcloudMysqlInstance to import * @param importFromId The id of the existing DataTencentcloudMysqlInstance that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/mysql_instance#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataTencentcloudMysqlInstance 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/data-sources/mysql_instance tencentcloud_mysql_instance} Data Source * * @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 DataTencentcloudMysqlInstanceConfig = {} */ constructor(scope: Construct, id: string, config?: DataTencentcloudMysqlInstanceConfig); private _chargeType?; get chargeType(): string; set chargeType(value: string); resetChargeType(): void; get chargeTypeInput(): string; private _engineVersion?; get engineVersion(): string; set engineVersion(value: string); resetEngineVersion(): void; get engineVersionInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _initFlag?; get initFlag(): number; set initFlag(value: number); resetInitFlag(): void; get initFlagInput(): number; private _instanceList; get instanceList(): DataTencentcloudMysqlInstanceInstanceListStructList; private _instanceName?; get instanceName(): string; set instanceName(value: string); resetInstanceName(): void; get instanceNameInput(): string; private _instanceRole?; get instanceRole(): string; set instanceRole(value: string); resetInstanceRole(): void; get instanceRoleInput(): string; private _limit?; get limit(): number; set limit(value: number); resetLimit(): void; get limitInput(): number; private _mysqlId?; get mysqlId(): string; set mysqlId(value: string); resetMysqlId(): void; get mysqlIdInput(): string; private _offset?; get offset(): number; set offset(value: number); resetOffset(): void; get offsetInput(): number; private _payType?; get payType(): number; set payType(value: number); resetPayType(): void; get payTypeInput(): number; private _resultOutputFile?; get resultOutputFile(): string; set resultOutputFile(value: string); resetResultOutputFile(): void; get resultOutputFileInput(): string; private _securityGroupId?; get securityGroupId(): string; set securityGroupId(value: string); resetSecurityGroupId(): void; get securityGroupIdInput(): string; private _status?; get status(): number; set status(value: number); resetStatus(): void; get statusInput(): number; private _withDr?; get withDr(): number; set withDr(value: number); resetWithDr(): void; get withDrInput(): number; private _withMaster?; get withMaster(): number; set withMaster(value: number); resetWithMaster(): void; get withMasterInput(): number; private _withRo?; get withRo(): number; set withRo(value: number); resetWithRo(): void; get withRoInput(): number; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }