import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface CynosdbAccountPrivilegesConfig extends cdktf.TerraformMetaArguments { /** * Account. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges#account_name CynosdbAccountPrivileges#account_name} */ readonly accountName: string; /** * Cluster ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges#cluster_id CynosdbAccountPrivileges#cluster_id} */ readonly clusterId: string; /** * Array of global permissions. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges#global_privileges CynosdbAccountPrivileges#global_privileges} */ readonly globalPrivileges: string[]; /** * Host, default `%`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges#host CynosdbAccountPrivileges#host} */ readonly host?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges#id CynosdbAccountPrivileges#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; /** * database_privileges block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges#database_privileges CynosdbAccountPrivileges#database_privileges} */ readonly databasePrivileges?: CynosdbAccountPrivilegesDatabasePrivileges[] | cdktf.IResolvable; /** * table_privileges block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges#table_privileges CynosdbAccountPrivileges#table_privileges} */ readonly tablePrivileges?: CynosdbAccountPrivilegesTablePrivileges[] | cdktf.IResolvable; } export interface CynosdbAccountPrivilegesDatabasePrivileges { /** * Database. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges#db CynosdbAccountPrivileges#db} */ readonly db: string; /** * Database privileges. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges#privileges CynosdbAccountPrivileges#privileges} */ readonly privileges: string[]; } export declare function cynosdbAccountPrivilegesDatabasePrivilegesToTerraform(struct?: CynosdbAccountPrivilegesDatabasePrivileges | cdktf.IResolvable): any; export declare function cynosdbAccountPrivilegesDatabasePrivilegesToHclTerraform(struct?: CynosdbAccountPrivilegesDatabasePrivileges | cdktf.IResolvable): any; export declare class CynosdbAccountPrivilegesDatabasePrivilegesOutputReference 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(): CynosdbAccountPrivilegesDatabasePrivileges | cdktf.IResolvable | undefined; set internalValue(value: CynosdbAccountPrivilegesDatabasePrivileges | cdktf.IResolvable | undefined); private _db?; get db(): string; set db(value: string); get dbInput(): string; private _privileges?; get privileges(): string[]; set privileges(value: string[]); get privilegesInput(): string[]; } export declare class CynosdbAccountPrivilegesDatabasePrivilegesList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: CynosdbAccountPrivilegesDatabasePrivileges[] | 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): CynosdbAccountPrivilegesDatabasePrivilegesOutputReference; } export interface CynosdbAccountPrivilegesTablePrivileges { /** * Database name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges#db CynosdbAccountPrivileges#db} */ readonly db: string; /** * Table privileges. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges#privileges CynosdbAccountPrivileges#privileges} */ readonly privileges: string[]; /** * Table name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges#table_name CynosdbAccountPrivileges#table_name} */ readonly tableName: string; } export declare function cynosdbAccountPrivilegesTablePrivilegesToTerraform(struct?: CynosdbAccountPrivilegesTablePrivileges | cdktf.IResolvable): any; export declare function cynosdbAccountPrivilegesTablePrivilegesToHclTerraform(struct?: CynosdbAccountPrivilegesTablePrivileges | cdktf.IResolvable): any; export declare class CynosdbAccountPrivilegesTablePrivilegesOutputReference 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(): CynosdbAccountPrivilegesTablePrivileges | cdktf.IResolvable | undefined; set internalValue(value: CynosdbAccountPrivilegesTablePrivileges | cdktf.IResolvable | undefined); private _db?; get db(): string; set db(value: string); get dbInput(): string; private _privileges?; get privileges(): string[]; set privileges(value: string[]); get privilegesInput(): string[]; private _tableName?; get tableName(): string; set tableName(value: string); get tableNameInput(): string; } export declare class CynosdbAccountPrivilegesTablePrivilegesList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: CynosdbAccountPrivilegesTablePrivileges[] | 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): CynosdbAccountPrivilegesTablePrivilegesOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges tencentcloud_cynosdb_account_privileges} */ export declare class CynosdbAccountPrivileges extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_cynosdb_account_privileges"; /** * Generates CDKTF code for importing a CynosdbAccountPrivileges 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 CynosdbAccountPrivileges to import * @param importFromId The id of the existing CynosdbAccountPrivileges that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/cynosdb_account_privileges#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the CynosdbAccountPrivileges 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/cynosdb_account_privileges tencentcloud_cynosdb_account_privileges} 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 CynosdbAccountPrivilegesConfig */ constructor(scope: Construct, id: string, config: CynosdbAccountPrivilegesConfig); private _accountName?; get accountName(): string; set accountName(value: string); get accountNameInput(): string; private _clusterId?; get clusterId(): string; set clusterId(value: string); get clusterIdInput(): string; private _globalPrivileges?; get globalPrivileges(): string[]; set globalPrivileges(value: string[]); get globalPrivilegesInput(): string[]; private _host?; get host(): string; set host(value: string); resetHost(): void; get hostInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _databasePrivileges; get databasePrivileges(): CynosdbAccountPrivilegesDatabasePrivilegesList; putDatabasePrivileges(value: CynosdbAccountPrivilegesDatabasePrivileges[] | cdktf.IResolvable): void; resetDatabasePrivileges(): void; get databasePrivilegesInput(): any; private _tablePrivileges; get tablePrivileges(): CynosdbAccountPrivilegesTablePrivilegesList; putTablePrivileges(value: CynosdbAccountPrivilegesTablePrivileges[] | cdktf.IResolvable): void; resetTablePrivileges(): void; get tablePrivilegesInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }