import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface DataYandexMdbPostgresqlUserConfig extends cdktf.TerraformMetaArguments { /** * The ID of the PostgreSQL cluster. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/data-sources/mdb_postgresql_user#cluster_id DataYandexMdbPostgresqlUser#cluster_id} */ readonly clusterId: string; /** * The maximum number of connections per user. (Default 50). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/data-sources/mdb_postgresql_user#conn_limit DataYandexMdbPostgresqlUser#conn_limit} */ readonly connLimit?: number; /** * The `true` value means that resource is protected from accidental deletion. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/data-sources/mdb_postgresql_user#deletion_protection DataYandexMdbPostgresqlUser#deletion_protection} */ readonly deletionProtection?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/data-sources/mdb_postgresql_user#id DataYandexMdbPostgresqlUser#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; /** * User's ability to login. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/data-sources/mdb_postgresql_user#login DataYandexMdbPostgresqlUser#login} */ readonly login?: boolean | cdktf.IResolvable; /** * The name of the PostgreSQL user. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/data-sources/mdb_postgresql_user#name DataYandexMdbPostgresqlUser#name} */ readonly name: string; /** * Map of user settings. [Full description](https://yandex.cloud/docs/managed-postgresql/api-ref/grpc/Cluster/create#yandex.cloud.mdb.postgresql.v1.UserSettings). * * * `default_transaction_isolation` - defines the default isolation level to be set for all new SQL transactions. One of: * - `read uncommitted` * - `read committed` * - `repeatable read` * - `serializable` * * * `lock_timeout` - The maximum time (in milliseconds) for any statement to wait for acquiring a lock on an table, index, row or other database object (default 0) * * * `log_min_duration_statement` - This setting controls logging of the duration of statements. (default -1 disables logging of the duration of statements.) * * * `synchronous_commit` - This setting defines whether DBMS will commit transaction in a synchronous way. One of: * - `on` * - `off` * - `local` * - `remote write` * - `remote apply` * * * `temp_file_limit` - The maximum storage space size (in kilobytes) that a single process can use to create temporary files. * * * `log_statement` - This setting specifies which SQL statements should be logged (on the user level). One of: * - `none` * - `ddl` * - `mod` * - `all` * * * `pool_mode` - Mode that the connection pooler is working in with specified user. One of: * - `session` * - `transaction` * - `statement` * * * `prepared_statements_pooling` - This setting allows user to use prepared statements with transaction pooling. Boolean. * * * `catchup_timeout` - The connection pooler setting. It determines the maximum allowed replication lag (in seconds). Pooler will reject connections to the replica with a lag above this threshold. Default value is 0, which disables this feature. Integer. * * * `wal_sender_timeout` - The maximum time (in milliseconds) to wait for WAL replication (can be set only for PostgreSQL 12+). Terminate replication connections that are inactive for longer than this amount of time. Integer. * * * `idle_in_transaction_session_timeout` - Sets the maximum allowed idle time (in milliseconds) between queries, when in a transaction. Value of 0 (default) disables the timeout. Integer. * * * `statement_timeout` - The maximum time (in milliseconds) to wait for statement. Value of 0 (default) disables the timeout. Integer. * * * `pgaudit` - Settings of the PostgreSQL Audit Extension (pgaudit). [Full description](https://yandex.cloud/ru/docs/managed-postgresql/api-ref/grpc/Cluster/create#yandex.cloud.mdb.postgresql.v1.PGAuditSettings). String (json with with escaped quotes). Example `"{\"log\": [\"READ\", \"WRITE\"]}"` * * * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/data-sources/mdb_postgresql_user#settings DataYandexMdbPostgresqlUser#settings} */ readonly settings?: { [key: string]: string; }; } export interface DataYandexMdbPostgresqlUserPermission { } export declare function dataYandexMdbPostgresqlUserPermissionToTerraform(struct?: DataYandexMdbPostgresqlUserPermission): any; export declare function dataYandexMdbPostgresqlUserPermissionToHclTerraform(struct?: DataYandexMdbPostgresqlUserPermission): any; export declare class DataYandexMdbPostgresqlUserPermissionOutputReference 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(): DataYandexMdbPostgresqlUserPermission | undefined; set internalValue(value: DataYandexMdbPostgresqlUserPermission | undefined); get databaseName(): any; } export declare class DataYandexMdbPostgresqlUserPermissionList 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): DataYandexMdbPostgresqlUserPermissionOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/data-sources/mdb_postgresql_user yandex_mdb_postgresql_user} */ export declare class DataYandexMdbPostgresqlUser extends cdktf.TerraformDataSource { static readonly tfResourceType = "yandex_mdb_postgresql_user"; /** * Generates CDKTF code for importing a DataYandexMdbPostgresqlUser 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 DataYandexMdbPostgresqlUser to import * @param importFromId The id of the existing DataYandexMdbPostgresqlUser that should be imported. Refer to the {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/data-sources/mdb_postgresql_user#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataYandexMdbPostgresqlUser 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/yandex-cloud/yandex/0.177.0/docs/data-sources/mdb_postgresql_user yandex_mdb_postgresql_user} 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 DataYandexMdbPostgresqlUserConfig */ constructor(scope: Construct, id: string, config: DataYandexMdbPostgresqlUserConfig); get authMethod(): any; private _clusterId?; get clusterId(): string; set clusterId(value: string); get clusterIdInput(): string; private _connLimit?; get connLimit(): number; set connLimit(value: number); resetConnLimit(): void; get connLimitInput(): number; private _connectionManager; get connectionManager(): any; private _deletionProtection?; get deletionProtection(): string; set deletionProtection(value: string); resetDeletionProtection(): void; get deletionProtectionInput(): string; get grants(): any; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _login?; get login(): boolean | cdktf.IResolvable; set login(value: boolean | cdktf.IResolvable); resetLogin(): void; get loginInput(): any; private _name?; get name(): string; set name(value: string); get nameInput(): string; get password(): any; private _permission; get permission(): DataYandexMdbPostgresqlUserPermissionList; private _settings?; get settings(): { [key: string]: string; }; set settings(value: { [key: string]: string; }); resetSettings(): void; get settingsInput(): { [key: string]: string; }; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }