UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

44 lines 2.49 kB
"use strict"; // *** 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.getDatabaseInstanceOutput = exports.getDatabaseInstance = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about an Database Instance. * * For further information refer the Managed Databases for PostgreSQL and MySQL [API documentation](https://developers.scaleway.com/en/products/rdb/api/#database-instance) */ /** @deprecated scaleway.index/getdatabaseinstance.getDatabaseInstance has been deprecated in favor of scaleway.databases/getinstance.getInstance */ function getDatabaseInstance(args, opts) { pulumi.log.warn("getDatabaseInstance is deprecated: scaleway.index/getdatabaseinstance.getDatabaseInstance has been deprecated in favor of scaleway.databases/getinstance.getInstance"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getDatabaseInstance:getDatabaseInstance", { "instanceId": args.instanceId, "name": args.name, "projectId": args.projectId, "region": args.region, }, opts); } exports.getDatabaseInstance = getDatabaseInstance; /** * Gets information about an Database Instance. * * For further information refer the Managed Databases for PostgreSQL and MySQL [API documentation](https://developers.scaleway.com/en/products/rdb/api/#database-instance) */ /** @deprecated scaleway.index/getdatabaseinstance.getDatabaseInstance has been deprecated in favor of scaleway.databases/getinstance.getInstance */ function getDatabaseInstanceOutput(args, opts) { pulumi.log.warn("getDatabaseInstance is deprecated: scaleway.index/getdatabaseinstance.getDatabaseInstance has been deprecated in favor of scaleway.databases/getinstance.getInstance"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getDatabaseInstance:getDatabaseInstance", { "instanceId": args.instanceId, "name": args.name, "projectId": args.projectId, "region": args.region, }, opts); } exports.getDatabaseInstanceOutput = getDatabaseInstanceOutput; //# sourceMappingURL=getDatabaseInstance.js.map