import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface DataTencentcloudDcdbSlowLogsConfig extends cdktf.TerraformMetaArguments { /** * Specific name of the database to be queried. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/dcdb_slow_logs#db DataTencentcloudDcdbSlowLogs#db} */ readonly db?: string; /** * Query end time in the format of 2016-08-22 14:55:20. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/dcdb_slow_logs#end_time DataTencentcloudDcdbSlowLogs#end_time} */ readonly endTime?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/dcdb_slow_logs#id DataTencentcloudDcdbSlowLogs#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 in the format of `tdsqlshard-ow728lmc`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/dcdb_slow_logs#instance_id DataTencentcloudDcdbSlowLogs#instance_id} */ readonly instanceId: string; /** * Sorting metric. Valid values: query_time_sum, query_count. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/dcdb_slow_logs#order_by DataTencentcloudDcdbSlowLogs#order_by} */ readonly orderBy?: string; /** * Sorting order. Valid values: desc, asc. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/dcdb_slow_logs#order_by_type DataTencentcloudDcdbSlowLogs#order_by_type} */ readonly orderByType?: string; /** * Used to save results. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/dcdb_slow_logs#result_output_file DataTencentcloudDcdbSlowLogs#result_output_file} */ readonly resultOutputFile?: string; /** * Instance shard ID in the format of `shard-rc754ljk`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/dcdb_slow_logs#shard_id DataTencentcloudDcdbSlowLogs#shard_id} */ readonly shardId: string; /** * Query slow queries from either the primary or the replica. Valid values: 0 (primary), 1 (replica). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/dcdb_slow_logs#slave DataTencentcloudDcdbSlowLogs#slave} */ readonly slave?: number; /** * Query start time in the format of 2016-07-23 14:55:20. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/dcdb_slow_logs#start_time DataTencentcloudDcdbSlowLogs#start_time} */ readonly startTime: string; } export interface DataTencentcloudDcdbSlowLogsData { } export declare function dataTencentcloudDcdbSlowLogsDataToTerraform(struct?: DataTencentcloudDcdbSlowLogsData): any; export declare function dataTencentcloudDcdbSlowLogsDataToHclTerraform(struct?: DataTencentcloudDcdbSlowLogsData): any; export declare class DataTencentcloudDcdbSlowLogsDataOutputReference 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(): DataTencentcloudDcdbSlowLogsData | undefined; set internalValue(value: DataTencentcloudDcdbSlowLogsData | undefined); get checkSum(): any; get db(): any; get exampleSql(): any; get fingerPrint(): any; get host(): any; get lockTimeAvg(): any; get lockTimeMax(): any; get lockTimeMin(): any; get lockTimeSum(): any; get queryCount(): any; get queryTimeAvg(): any; get queryTimeMax(): any; get queryTimeMin(): any; get queryTimeSum(): any; get rowsExaminedSum(): any; get rowsSentSum(): any; get tsMax(): any; get tsMin(): any; get user(): any; } export declare class DataTencentcloudDcdbSlowLogsDataList 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): DataTencentcloudDcdbSlowLogsDataOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/dcdb_slow_logs tencentcloud_dcdb_slow_logs} */ export declare class DataTencentcloudDcdbSlowLogs extends cdktf.TerraformDataSource { static readonly tfResourceType = "tencentcloud_dcdb_slow_logs"; /** * Generates CDKTF code for importing a DataTencentcloudDcdbSlowLogs 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 DataTencentcloudDcdbSlowLogs to import * @param importFromId The id of the existing DataTencentcloudDcdbSlowLogs that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/data-sources/dcdb_slow_logs#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataTencentcloudDcdbSlowLogs 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/dcdb_slow_logs tencentcloud_dcdb_slow_logs} 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 DataTencentcloudDcdbSlowLogsConfig */ constructor(scope: Construct, id: string, config: DataTencentcloudDcdbSlowLogsConfig); private _data; get data(): DataTencentcloudDcdbSlowLogsDataList; private _db?; get db(): string; set db(value: string); resetDb(): void; get dbInput(): string; private _endTime?; get endTime(): string; set endTime(value: string); resetEndTime(): void; get endTimeInput(): string; 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; get lockTimeSum(): any; private _orderBy?; get orderBy(): string; set orderBy(value: string); resetOrderBy(): void; get orderByInput(): string; private _orderByType?; get orderByType(): string; set orderByType(value: string); resetOrderByType(): void; get orderByTypeInput(): string; get queryCount(): any; get queryTimeSum(): any; private _resultOutputFile?; get resultOutputFile(): string; set resultOutputFile(value: string); resetResultOutputFile(): void; get resultOutputFileInput(): string; private _shardId?; get shardId(): string; set shardId(value: string); get shardIdInput(): string; private _slave?; get slave(): number; set slave(value: number); resetSlave(): void; get slaveInput(): number; private _startTime?; get startTime(): string; set startTime(value: string); get startTimeInput(): string; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }