import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "./types"; /** * Get information about a Yandex Managed PostgreSQL cluster. For more information, see * [the official documentation](https://cloud.yandex.com/docs/managed-postgresql/). * [How to connect to the DB](https://cloud.yandex.com/en-ru/docs/managed-postgresql/quickstart#connect). To connect, use port 6432. The port number is not configurable. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const foo = pulumi.output(yandex.getMdbPostgresqlCluster({ * name: "test", * })); * * export const fqdn = foo.hosts[0].fqdn; * ``` */ export declare function getMdbPostgresqlCluster(args?: GetMdbPostgresqlClusterArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getMdbPostgresqlCluster. */ export interface GetMdbPostgresqlClusterArgs { /** * The ID of the PostgreSQL cluster. */ clusterId?: string; deletionProtection?: boolean; /** * Description of the PostgreSQL cluster. */ description?: string; /** * The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used. */ folderId?: string; /** * The name of the PostgreSQL cluster. */ name?: string; } /** * A collection of values returned by getMdbPostgresqlCluster. */ export interface GetMdbPostgresqlClusterResult { readonly clusterId: string; /** * Configuration of the PostgreSQL cluster. The structure is documented below. */ readonly configs: outputs.GetMdbPostgresqlClusterConfig[]; /** * Timestamp of cluster creation. */ readonly createdAt: string; /** * A database of the PostgreSQL cluster. The structure is documented below. */ readonly databases: outputs.GetMdbPostgresqlClusterDatabase[]; readonly deletionProtection: boolean; /** * Description of the PostgreSQL cluster. */ readonly description?: string; /** * Deployment environment of the PostgreSQL cluster. */ readonly environment: string; readonly folderId: string; /** * Aggregated health of the cluster. */ readonly health: string; /** * A host of the PostgreSQL cluster. The structure is documented below. */ readonly hosts: outputs.GetMdbPostgresqlClusterHost[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * A set of key/value label pairs to assign to the PostgreSQL cluster. */ readonly labels: { [key: string]: string; }; /** * Maintenance window settings of the PostgreSQL cluster. The structure is documented below. */ readonly maintenanceWindows: outputs.GetMdbPostgresqlClusterMaintenanceWindow[]; /** * Name of the database extension. For more information on available extensions see [the official documentation](https://cloud.yandex.com/docs/managed-postgresql/operations/cluster-extensions). */ readonly name: string; /** * ID of the network, to which the PostgreSQL cluster belongs. */ readonly networkId: string; /** * A set of ids of security groups assigned to hosts of the cluster. */ readonly securityGroupIds: string[]; /** * Status of the cluster. */ readonly status: string; /** * A user of the PostgreSQL cluster. The structure is documented below. */ readonly users: outputs.GetMdbPostgresqlClusterUser[]; } export declare function getMdbPostgresqlClusterOutput(args?: GetMdbPostgresqlClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; /** * A collection of arguments for invoking getMdbPostgresqlCluster. */ export interface GetMdbPostgresqlClusterOutputArgs { /** * The ID of the PostgreSQL cluster. */ clusterId?: pulumi.Input; deletionProtection?: pulumi.Input; /** * Description of the PostgreSQL cluster. */ description?: pulumi.Input; /** * The ID of the folder that the resource belongs to. If it is not provided, the default provider folder is used. */ folderId?: pulumi.Input; /** * The name of the PostgreSQL cluster. */ name?: pulumi.Input; }