import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface MysqlAuditLogFileConfig extends cdktf.TerraformMetaArguments { /** * end time. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#end_time MysqlAuditLogFile#end_time} */ readonly endTime: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#id MysqlAuditLogFile#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; /** * The ID of instance. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#instance_id MysqlAuditLogFile#instance_id} */ readonly instanceId: string; /** * Sort by. supported values are: `ASC`- ascending order, `DESC`- descending order. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#order MysqlAuditLogFile#order} */ readonly order?: string; /** * Sort field. supported values include:`timestamp` - timestamp; `affectRows` - affected rows; `execTime` - execution time. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#order_by MysqlAuditLogFile#order_by} */ readonly orderBy?: string; /** * start time. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#start_time MysqlAuditLogFile#start_time} */ readonly startTime: string; /** * filter block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#filter MysqlAuditLogFile#filter} */ readonly filter?: MysqlAuditLogFileFilter; } export interface MysqlAuditLogFileFilter { /** * Affects the number of rows. Indicates to filter audit logs whose number of affected rows is greater than this value. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#affect_rows MysqlAuditLogFile#affect_rows} */ readonly affectRows?: number; /** * Database name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#db_name MysqlAuditLogFile#db_name} */ readonly dbName?: string[]; /** * Execution time. The unit is: ms. Indicates to filter audit logs whose execution time is greater than this value. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#exec_time MysqlAuditLogFile#exec_time} */ readonly execTime?: number; /** * Client address. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#host MysqlAuditLogFile#host} */ readonly host?: string[]; /** * The name of policy. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#policy_name MysqlAuditLogFile#policy_name} */ readonly policyName?: string[]; /** * SQL statement. support fuzzy matching. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#sql MysqlAuditLogFile#sql} */ readonly sql?: string; /** * SQL type. Currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#sql_type MysqlAuditLogFile#sql_type} */ readonly sqlType?: string; /** * SQL type. Supports simultaneous query of multiple types. Currently supported: SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, SET, REPLACE, EXECUTE. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#sql_types MysqlAuditLogFile#sql_types} */ readonly sqlTypes?: string[]; /** * SQL statement. Support passing multiple sql statements. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#sqls MysqlAuditLogFile#sqls} */ readonly sqls?: string[]; /** * Table name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#table_name MysqlAuditLogFile#table_name} */ readonly tableName?: string[]; /** * User name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#user MysqlAuditLogFile#user} */ readonly user?: string[]; } export declare function mysqlAuditLogFileFilterToTerraform(struct?: MysqlAuditLogFileFilterOutputReference | MysqlAuditLogFileFilter): any; export declare function mysqlAuditLogFileFilterToHclTerraform(struct?: MysqlAuditLogFileFilterOutputReference | MysqlAuditLogFileFilter): any; export declare class MysqlAuditLogFileFilterOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): MysqlAuditLogFileFilter | undefined; set internalValue(value: MysqlAuditLogFileFilter | undefined); private _affectRows?; get affectRows(): number; set affectRows(value: number); resetAffectRows(): void; get affectRowsInput(): number; private _dbName?; get dbName(): string[]; set dbName(value: string[]); resetDbName(): void; get dbNameInput(): string[]; private _execTime?; get execTime(): number; set execTime(value: number); resetExecTime(): void; get execTimeInput(): number; private _host?; get host(): string[]; set host(value: string[]); resetHost(): void; get hostInput(): string[]; private _policyName?; get policyName(): string[]; set policyName(value: string[]); resetPolicyName(): void; get policyNameInput(): string[]; private _sql?; get sql(): string; set sql(value: string); resetSql(): void; get sqlInput(): string; private _sqlType?; get sqlType(): string; set sqlType(value: string); resetSqlType(): void; get sqlTypeInput(): string; private _sqlTypes?; get sqlTypes(): string[]; set sqlTypes(value: string[]); resetSqlTypes(): void; get sqlTypesInput(): string[]; private _sqls?; get sqls(): string[]; set sqls(value: string[]); resetSqls(): void; get sqlsInput(): string[]; private _tableName?; get tableName(): string[]; set tableName(value: string[]); resetTableName(): void; get tableNameInput(): string[]; private _user?; get user(): string[]; set user(value: string[]); resetUser(): void; get userInput(): string[]; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file tencentcloud_mysql_audit_log_file} */ export declare class MysqlAuditLogFile extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_mysql_audit_log_file"; /** * Generates CDKTF code for importing a MysqlAuditLogFile 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 MysqlAuditLogFile to import * @param importFromId The id of the existing MysqlAuditLogFile that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_log_file#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the MysqlAuditLogFile 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/mysql_audit_log_file tencentcloud_mysql_audit_log_file} 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 MysqlAuditLogFileConfig */ constructor(scope: Construct, id: string, config: MysqlAuditLogFileConfig); get downloadUrl(): any; private _endTime?; get endTime(): string; set endTime(value: string); get endTimeInput(): string; get fileSize(): any; 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 _order?; get order(): string; set order(value: string); resetOrder(): void; get orderInput(): string; private _orderBy?; get orderBy(): string; set orderBy(value: string); resetOrderBy(): void; get orderByInput(): string; private _startTime?; get startTime(): string; set startTime(value: string); get startTimeInput(): string; private _filter; get filter(): MysqlAuditLogFileFilterOutputReference; putFilter(value: MysqlAuditLogFileFilter): void; resetFilter(): void; get filterInput(): MysqlAuditLogFileFilter; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }