@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
45 lines • 1.85 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMdbPostgresqlClusterOutput = exports.getMdbPostgresqlCluster = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* 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;
* ```
*/
function getMdbPostgresqlCluster(args, opts) {
args = args || {};
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("yandex:index/getMdbPostgresqlCluster:getMdbPostgresqlCluster", {
"clusterId": args.clusterId,
"deletionProtection": args.deletionProtection,
"description": args.description,
"folderId": args.folderId,
"name": args.name,
}, opts);
}
exports.getMdbPostgresqlCluster = getMdbPostgresqlCluster;
function getMdbPostgresqlClusterOutput(args, opts) {
return pulumi.output(args).apply(a => getMdbPostgresqlCluster(a, opts));
}
exports.getMdbPostgresqlClusterOutput = getMdbPostgresqlClusterOutput;
//# sourceMappingURL=getMdbPostgresqlCluster.js.map