import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface MysqlAuditServiceConfig extends cdktf.TerraformMetaArguments { /** * Audit type. Valid values: true: Record all; false: Record by rules (default value). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_service#audit_all MysqlAuditService#audit_all} */ readonly auditAll?: boolean | cdktf.IResolvable; /** * Retention period of high-frequency audit logs. Valid values: `7` (one week), `30` (one month). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_service#high_log_expire_day MysqlAuditService#high_log_expire_day} */ readonly highLogExpireDay?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_service#id MysqlAuditService#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; /** * TencentDB for MySQL instance ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_service#instance_id MysqlAuditService#instance_id} */ readonly instanceId: string; /** * Retention period of the audit log. Valid values: `7` (one week), `30` (one month), `90` (three months), `180` (six months), `365` (one year), `1095` (three years), `1825` (five years). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_service#log_expire_day MysqlAuditService#log_expire_day} */ readonly logExpireDay: number; /** * Rule template ID. If both this parameter and AuditRuleFilters are not specified, all SQL statements will be recorded. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_service#rule_template_ids MysqlAuditService#rule_template_ids} */ readonly ruleTemplateIds?: string[]; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_service tencentcloud_mysql_audit_service} */ export declare class MysqlAuditService extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_mysql_audit_service"; /** * Generates CDKTF code for importing a MysqlAuditService 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 MysqlAuditService to import * @param importFromId The id of the existing MysqlAuditService that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_audit_service#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the MysqlAuditService 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_service tencentcloud_mysql_audit_service} 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 MysqlAuditServiceConfig */ constructor(scope: Construct, id: string, config: MysqlAuditServiceConfig); private _auditAll?; get auditAll(): boolean | cdktf.IResolvable; set auditAll(value: boolean | cdktf.IResolvable); resetAuditAll(): void; get auditAllInput(): any; private _highLogExpireDay?; get highLogExpireDay(): number; set highLogExpireDay(value: number); resetHighLogExpireDay(): void; get highLogExpireDayInput(): 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 _logExpireDay?; get logExpireDay(): number; set logExpireDay(value: number); get logExpireDayInput(): number; private _ruleTemplateIds?; get ruleTemplateIds(): string[]; set ruleTemplateIds(value: string[]); resetRuleTemplateIds(): void; get ruleTemplateIdsInput(): string[]; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }