import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface MdbShardedPostgresqlUserConfig extends cdktf.TerraformMetaArguments { /** * ID of the Sharded PostgreSQL cluster. Provided by the client when the user is created. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_sharded_postgresql_user#cluster_id MdbShardedPostgresqlUser#cluster_id} */ readonly clusterId: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_sharded_postgresql_user#grants MdbShardedPostgresqlUser#grants} */ readonly grants?: string[]; /** * Name of the Sharded PostgreSQL user. Provided by the client when the user is created. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_sharded_postgresql_user#name MdbShardedPostgresqlUser#name} */ readonly name: string; /** * Password of the Sharded PostgreSQL user. Provided by the client when the user is created. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_sharded_postgresql_user#password MdbShardedPostgresqlUser#password} */ readonly password?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_sharded_postgresql_user#settings MdbShardedPostgresqlUser#settings} */ readonly settings?: { [key: string]: string; }; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_sharded_postgresql_user#timeouts MdbShardedPostgresqlUser#timeouts} */ readonly timeouts?: MdbShardedPostgresqlUserTimeouts; /** * permissions block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_sharded_postgresql_user#permissions MdbShardedPostgresqlUser#permissions} */ readonly permissions?: MdbShardedPostgresqlUserPermissions[] | cdktf.IResolvable; } export interface MdbShardedPostgresqlUserTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_sharded_postgresql_user#create MdbShardedPostgresqlUser#create} */ readonly create?: string; /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_sharded_postgresql_user#delete MdbShardedPostgresqlUser#delete} */ readonly delete?: string; /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_sharded_postgresql_user#update MdbShardedPostgresqlUser#update} */ readonly update?: string; } export declare function mdbShardedPostgresqlUserTimeoutsToTerraform(struct?: MdbShardedPostgresqlUserTimeouts | cdktf.IResolvable): any; export declare function mdbShardedPostgresqlUserTimeoutsToHclTerraform(struct?: MdbShardedPostgresqlUserTimeouts | cdktf.IResolvable): any; export declare class MdbShardedPostgresqlUserTimeoutsOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @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(): MdbShardedPostgresqlUserTimeouts | cdktf.IResolvable | undefined; set internalValue(value: MdbShardedPostgresqlUserTimeouts | cdktf.IResolvable | undefined); private _create?; get create(): string; set create(value: string); resetCreate(): void; get createInput(): string; private _delete?; get delete(): string; set delete(value: string); resetDelete(): void; get deleteInput(): string; private _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string; } export interface MdbShardedPostgresqlUserPermissions { /** * Name of the database that the permission grants access to. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_sharded_postgresql_user#database MdbShardedPostgresqlUser#database} */ readonly database: string; } export declare function mdbShardedPostgresqlUserPermissionsToTerraform(struct?: MdbShardedPostgresqlUserPermissions | cdktf.IResolvable): any; export declare function mdbShardedPostgresqlUserPermissionsToHclTerraform(struct?: MdbShardedPostgresqlUserPermissions | cdktf.IResolvable): any; export declare class MdbShardedPostgresqlUserPermissionsOutputReference 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(): MdbShardedPostgresqlUserPermissions | cdktf.IResolvable | undefined; set internalValue(value: MdbShardedPostgresqlUserPermissions | cdktf.IResolvable | undefined); private _database?; get database(): string; set database(value: string); get databaseInput(): string; } export declare class MdbShardedPostgresqlUserPermissionsList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: MdbShardedPostgresqlUserPermissions[] | 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): MdbShardedPostgresqlUserPermissionsOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_sharded_postgresql_user yandex_mdb_sharded_postgresql_user} */ export declare class MdbShardedPostgresqlUser extends cdktf.TerraformResource { static readonly tfResourceType = "yandex_mdb_sharded_postgresql_user"; /** * Generates CDKTF code for importing a MdbShardedPostgresqlUser 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 MdbShardedPostgresqlUser to import * @param importFromId The id of the existing MdbShardedPostgresqlUser that should be imported. Refer to the {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_sharded_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 MdbShardedPostgresqlUser 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/resources/mdb_sharded_postgresql_user yandex_mdb_sharded_postgresql_user} 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 MdbShardedPostgresqlUserConfig */ constructor(scope: Construct, id: string, config: MdbShardedPostgresqlUserConfig); private _clusterId?; get clusterId(): string; set clusterId(value: string); get clusterIdInput(): string; private _grants?; get grants(): string[]; set grants(value: string[]); resetGrants(): void; get grantsInput(): string[]; get id(): any; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _password?; get password(): string; set password(value: string); resetPassword(): void; get passwordInput(): string; private _settings?; get settings(): { [key: string]: string; }; set settings(value: { [key: string]: string; }); resetSettings(): void; get settingsInput(): { [key: string]: string; }; private _timeouts; get timeouts(): MdbShardedPostgresqlUserTimeoutsOutputReference; putTimeouts(value: MdbShardedPostgresqlUserTimeouts): void; resetTimeouts(): void; get timeoutsInput(): any; private _permissions; get permissions(): MdbShardedPostgresqlUserPermissionsList; putPermissions(value: MdbShardedPostgresqlUserPermissions[] | cdktf.IResolvable): void; resetPermissions(): void; get permissionsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }