import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface PostgresClusterConfig extends cdktf.TerraformMetaArguments { /** * Replication mode. Possible values are `async` and `sync`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#ha_replication_mode PostgresCluster#ha_replication_mode} */ readonly haReplicationMode?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#id PostgresCluster#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; /** * Cluster name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#name PostgresCluster#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#project_id PostgresCluster#project_id} */ readonly projectId?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#project_name PostgresCluster#project_name} */ readonly projectName?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#region_id PostgresCluster#region_id} */ readonly regionId?: number; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#region_name PostgresCluster#region_name} */ readonly regionName?: string; /** * database block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#database PostgresCluster#database} */ readonly database: PostgresClusterDatabase[] | cdktf.IResolvable; /** * flavor block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#flavor PostgresCluster#flavor} */ readonly flavor: PostgresClusterFlavor; /** * network block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#network PostgresCluster#network} */ readonly network: PostgresClusterNetwork; /** * pg_config block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#pg_config PostgresCluster#pg_config} */ readonly pgConfig: PostgresClusterPgConfig; /** * storage block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#storage PostgresCluster#storage} */ readonly storage: PostgresClusterStorage; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#timeouts PostgresCluster#timeouts} */ readonly timeouts?: PostgresClusterTimeouts; /** * user block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#user PostgresCluster#user} */ readonly user: PostgresClusterUser[] | cdktf.IResolvable; } export interface PostgresClusterDatabase { /** * Database name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#name PostgresCluster#name} */ readonly name: string; /** * Owner of the database. Must be one of the users defined in the `users` block. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#owner PostgresCluster#owner} */ readonly owner: string; } export declare function postgresClusterDatabaseToTerraform(struct?: PostgresClusterDatabase | cdktf.IResolvable): any; export declare function postgresClusterDatabaseToHclTerraform(struct?: PostgresClusterDatabase | cdktf.IResolvable): any; export declare class PostgresClusterDatabaseOutputReference 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(): PostgresClusterDatabase | cdktf.IResolvable | undefined; set internalValue(value: PostgresClusterDatabase | cdktf.IResolvable | undefined); private _name?; get name(): string; set name(value: string); get nameInput(): string; private _owner?; get owner(): string; set owner(value: string); get ownerInput(): string; get size(): any; } export declare class PostgresClusterDatabaseList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: PostgresClusterDatabase[] | 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): PostgresClusterDatabaseOutputReference; } export interface PostgresClusterFlavor { /** * Number of CPU cores. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#cpu PostgresCluster#cpu} */ readonly cpu: number; /** * Amount of RAM in GiB. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#memory PostgresCluster#memory} */ readonly memory: number; } export declare function postgresClusterFlavorToTerraform(struct?: PostgresClusterFlavorOutputReference | PostgresClusterFlavor): any; export declare function postgresClusterFlavorToHclTerraform(struct?: PostgresClusterFlavorOutputReference | PostgresClusterFlavor): any; export declare class PostgresClusterFlavorOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @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(): PostgresClusterFlavor | undefined; set internalValue(value: PostgresClusterFlavor | undefined); private _cpu?; get cpu(): number; set cpu(value: number); get cpuInput(): number; private _memory?; get memory(): number; set memory(value: number); get memoryInput(): number; } export interface PostgresClusterNetwork { /** * List of IP addresses or CIDR blocks allowed to access the cluster. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#acl PostgresCluster#acl} */ readonly acl: string[]; /** * Network type. Currently, only `public` is supported. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#network_type PostgresCluster#network_type} */ readonly networkType?: string; } export declare function postgresClusterNetworkToTerraform(struct?: PostgresClusterNetworkOutputReference | PostgresClusterNetwork): any; export declare function postgresClusterNetworkToHclTerraform(struct?: PostgresClusterNetworkOutputReference | PostgresClusterNetwork): any; export declare class PostgresClusterNetworkOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @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(): PostgresClusterNetwork | undefined; set internalValue(value: PostgresClusterNetwork | undefined); private _acl?; get acl(): string[]; set acl(value: string[]); get aclInput(): string[]; get connectionString(): any; get host(): any; private _networkType?; get networkType(): string; set networkType(value: string); resetNetworkType(): void; get networkTypeInput(): string; } export interface PostgresClusterPgConfig { /** * PostgreSQL configuration in `key=value` format, one per line. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#pg_conf PostgresCluster#pg_conf} */ readonly pgConf?: string; /** * Connection pooler mode. Possible values are `session`, `transaction`, and `statement`. If not set, connection pooler is not enabled. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#pooler_mode PostgresCluster#pooler_mode} */ readonly poolerMode?: string; /** * Connection pooler type. Currently, only `pgbouncer` is supported. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#pooler_type PostgresCluster#pooler_type} */ readonly poolerType?: string; /** * PostgreSQL version. Possible values are `13`, `14`, and `15`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#version PostgresCluster#version} */ readonly version: string; } export declare function postgresClusterPgConfigToTerraform(struct?: PostgresClusterPgConfigOutputReference | PostgresClusterPgConfig): any; export declare function postgresClusterPgConfigToHclTerraform(struct?: PostgresClusterPgConfigOutputReference | PostgresClusterPgConfig): any; export declare class PostgresClusterPgConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @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(): PostgresClusterPgConfig | undefined; set internalValue(value: PostgresClusterPgConfig | undefined); private _pgConf?; get pgConf(): string; set pgConf(value: string); resetPgConf(): void; get pgConfInput(): string; private _poolerMode?; get poolerMode(): string; set poolerMode(value: string); resetPoolerMode(): void; get poolerModeInput(): string; private _poolerType?; get poolerType(): string; set poolerType(value: string); resetPoolerType(): void; get poolerTypeInput(): string; private _version?; get version(): string; set version(value: string); get versionInput(): string; } export interface PostgresClusterStorage { /** * Storage size in GiB. Must be between 1 and 100. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#size PostgresCluster#size} */ readonly size: number; /** * Storage type. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#type PostgresCluster#type} */ readonly type: string; } export declare function postgresClusterStorageToTerraform(struct?: PostgresClusterStorageOutputReference | PostgresClusterStorage): any; export declare function postgresClusterStorageToHclTerraform(struct?: PostgresClusterStorageOutputReference | PostgresClusterStorage): any; export declare class PostgresClusterStorageOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @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(): PostgresClusterStorage | undefined; set internalValue(value: PostgresClusterStorage | undefined); private _size?; get size(): number; set size(value: number); get sizeInput(): number; private _type?; get type(): string; set type(value: string); get typeInput(): string; } export interface PostgresClusterTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#create PostgresCluster#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#update PostgresCluster#update} */ readonly update?: string; } export declare function postgresClusterTimeoutsToTerraform(struct?: PostgresClusterTimeouts | cdktf.IResolvable): any; export declare function postgresClusterTimeoutsToHclTerraform(struct?: PostgresClusterTimeouts | cdktf.IResolvable): any; export declare class PostgresClusterTimeoutsOutputReference 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(): PostgresClusterTimeouts | cdktf.IResolvable | undefined; set internalValue(value: PostgresClusterTimeouts | cdktf.IResolvable | undefined); private _create?; get create(): string; set create(value: string); resetCreate(): void; get createInput(): string; private _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string; } export interface PostgresClusterUser { /** * User name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#name PostgresCluster#name} */ readonly name: string; /** * List of role attributes. Possible values are: BYPASSRLS, CREATEROLE, CREATEDB, INHERIT, LOGIN, NOLOGIN. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#role_attributes PostgresCluster#role_attributes} */ readonly roleAttributes: string[]; } export declare function postgresClusterUserToTerraform(struct?: PostgresClusterUser | cdktf.IResolvable): any; export declare function postgresClusterUserToHclTerraform(struct?: PostgresClusterUser | cdktf.IResolvable): any; export declare class PostgresClusterUserOutputReference 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(): PostgresClusterUser | cdktf.IResolvable | undefined; set internalValue(value: PostgresClusterUser | cdktf.IResolvable | undefined); get isSecretRevealed(): any; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _roleAttributes?; get roleAttributes(): string[]; set roleAttributes(value: string[]); get roleAttributesInput(): string[]; } export declare class PostgresClusterUserList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: PostgresClusterUser[] | 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): PostgresClusterUserOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster gcore_postgres_cluster} */ export declare class PostgresCluster extends cdktf.TerraformResource { static readonly tfResourceType = "gcore_postgres_cluster"; /** * Generates CDKTF code for importing a PostgresCluster 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 PostgresCluster to import * @param importFromId The id of the existing PostgresCluster that should be imported. Refer to the {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/postgres_cluster#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the PostgresCluster 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/g-core/gcore/0.32.5/docs/resources/postgres_cluster gcore_postgres_cluster} 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 PostgresClusterConfig */ constructor(scope: Construct, id: string, config: PostgresClusterConfig); get createdAt(): any; private _haReplicationMode?; get haReplicationMode(): string; set haReplicationMode(value: string); resetHaReplicationMode(): void; get haReplicationModeInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _projectId?; get projectId(): number; set projectId(value: number); resetProjectId(): void; get projectIdInput(): number; private _projectName?; get projectName(): string; set projectName(value: string); resetProjectName(): void; get projectNameInput(): string; private _regionId?; get regionId(): number; set regionId(value: number); resetRegionId(): void; get regionIdInput(): number; private _regionName?; get regionName(): string; set regionName(value: string); resetRegionName(): void; get regionNameInput(): string; get status(): any; private _database; get database(): PostgresClusterDatabaseList; putDatabase(value: PostgresClusterDatabase[] | cdktf.IResolvable): void; get databaseInput(): any; private _flavor; get flavor(): PostgresClusterFlavorOutputReference; putFlavor(value: PostgresClusterFlavor): void; get flavorInput(): PostgresClusterFlavor; private _network; get network(): PostgresClusterNetworkOutputReference; putNetwork(value: PostgresClusterNetwork): void; get networkInput(): PostgresClusterNetwork; private _pgConfig; get pgConfig(): PostgresClusterPgConfigOutputReference; putPgConfig(value: PostgresClusterPgConfig): void; get pgConfigInput(): PostgresClusterPgConfig; private _storage; get storage(): PostgresClusterStorageOutputReference; putStorage(value: PostgresClusterStorage): void; get storageInput(): PostgresClusterStorage; private _timeouts; get timeouts(): PostgresClusterTimeoutsOutputReference; putTimeouts(value: PostgresClusterTimeouts): void; resetTimeouts(): void; get timeoutsInput(): any; private _user; get user(): PostgresClusterUserList; putUser(value: PostgresClusterUser[] | cdktf.IResolvable): void; get userInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }