import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface MdbPostgresqlDatabaseConfig 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/resources/mdb_postgresql_database#cluster_id MdbPostgresqlDatabase#cluster_id} */ readonly clusterId: string; /** * 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/resources/mdb_postgresql_database#deletion_protection MdbPostgresqlDatabase#deletion_protection} */ readonly deletionProtection?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#id MdbPostgresqlDatabase#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; /** * POSIX locale for string sorting order. Forbidden to change in an existing database. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#lc_collate MdbPostgresqlDatabase#lc_collate} */ readonly lcCollate?: string; /** * POSIX locale for character classification. Forbidden to change in an existing database. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#lc_type MdbPostgresqlDatabase#lc_type} */ readonly lcType?: string; /** * The resource name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#name MdbPostgresqlDatabase#name} */ readonly name: string; /** * Name of the user assigned as the owner of the database. Forbidden to change in an existing database. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#owner MdbPostgresqlDatabase#owner} */ readonly owner: string; /** * Name of the template database. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#template_db MdbPostgresqlDatabase#template_db} */ readonly templateDb?: string; /** * extension block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#extension MdbPostgresqlDatabase#extension} */ readonly extension?: MdbPostgresqlDatabaseExtension[] | cdktf.IResolvable; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#timeouts MdbPostgresqlDatabase#timeouts} */ readonly timeouts?: MdbPostgresqlDatabaseTimeouts; } export interface MdbPostgresqlDatabaseExtension { /** * Name of the database extension. For more information on available extensions see [the official documentation](https://yandex.cloud/docs/managed-postgresql/operations/cluster-extensions). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#name MdbPostgresqlDatabase#name} */ readonly name: string; } export declare function mdbPostgresqlDatabaseExtensionToTerraform(struct?: MdbPostgresqlDatabaseExtension | cdktf.IResolvable): any; export declare function mdbPostgresqlDatabaseExtensionToHclTerraform(struct?: MdbPostgresqlDatabaseExtension | cdktf.IResolvable): any; export declare class MdbPostgresqlDatabaseExtensionOutputReference 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(): MdbPostgresqlDatabaseExtension | cdktf.IResolvable | undefined; set internalValue(value: MdbPostgresqlDatabaseExtension | cdktf.IResolvable | undefined); private _name?; get name(): string; set name(value: string); get nameInput(): string; } export declare class MdbPostgresqlDatabaseExtensionList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: MdbPostgresqlDatabaseExtension[] | 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): MdbPostgresqlDatabaseExtensionOutputReference; } export interface MdbPostgresqlDatabaseTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#create MdbPostgresqlDatabase#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#delete MdbPostgresqlDatabase#delete} */ readonly delete?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#read MdbPostgresqlDatabase#read} */ readonly read?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#update MdbPostgresqlDatabase#update} */ readonly update?: string; } export declare function mdbPostgresqlDatabaseTimeoutsToTerraform(struct?: MdbPostgresqlDatabaseTimeouts | cdktf.IResolvable): any; export declare function mdbPostgresqlDatabaseTimeoutsToHclTerraform(struct?: MdbPostgresqlDatabaseTimeouts | cdktf.IResolvable): any; export declare class MdbPostgresqlDatabaseTimeoutsOutputReference 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(): MdbPostgresqlDatabaseTimeouts | cdktf.IResolvable | undefined; set internalValue(value: MdbPostgresqlDatabaseTimeouts | 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 _read?; get read(): string; set read(value: string); resetRead(): void; get readInput(): string; private _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string; } /** * Represents a {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database yandex_mdb_postgresql_database} */ export declare class MdbPostgresqlDatabase extends cdktf.TerraformResource { static readonly tfResourceType = "yandex_mdb_postgresql_database"; /** * Generates CDKTF code for importing a MdbPostgresqlDatabase 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 MdbPostgresqlDatabase to import * @param importFromId The id of the existing MdbPostgresqlDatabase that should be imported. Refer to the {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_postgresql_database#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the MdbPostgresqlDatabase 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_postgresql_database yandex_mdb_postgresql_database} 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 MdbPostgresqlDatabaseConfig */ constructor(scope: Construct, id: string, config: MdbPostgresqlDatabaseConfig); private _clusterId?; get clusterId(): string; set clusterId(value: string); get clusterIdInput(): string; private _deletionProtection?; get deletionProtection(): string; set deletionProtection(value: string); resetDeletionProtection(): void; get deletionProtectionInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _lcCollate?; get lcCollate(): string; set lcCollate(value: string); resetLcCollate(): void; get lcCollateInput(): string; private _lcType?; get lcType(): string; set lcType(value: string); resetLcType(): void; get lcTypeInput(): string; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _owner?; get owner(): string; set owner(value: string); get ownerInput(): string; private _templateDb?; get templateDb(): string; set templateDb(value: string); resetTemplateDb(): void; get templateDbInput(): string; private _extension; get extension(): MdbPostgresqlDatabaseExtensionList; putExtension(value: MdbPostgresqlDatabaseExtension[] | cdktf.IResolvable): void; resetExtension(): void; get extensionInput(): any; private _timeouts; get timeouts(): MdbPostgresqlDatabaseTimeoutsOutputReference; putTimeouts(value: MdbPostgresqlDatabaseTimeouts): void; resetTimeouts(): void; get timeoutsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }