UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

62 lines 2.56 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.getDatabaseOutput = exports.getDatabase = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about a database. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get the database foobar hosted on instance id 11111111-1111-1111-1111-111111111111 * const myDb = scaleway.databases.getDatabase({ * instanceId: "11111111-1111-1111-1111-111111111111", * name: "foobar", * }); * ``` */ /** @deprecated scaleway.index/getdatabase.getDatabase has been deprecated in favor of scaleway.databases/getdatabase.getDatabase */ function getDatabase(args, opts) { pulumi.log.warn("getDatabase is deprecated: scaleway.index/getdatabase.getDatabase has been deprecated in favor of scaleway.databases/getdatabase.getDatabase"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getDatabase:getDatabase", { "instanceId": args.instanceId, "name": args.name, "region": args.region, }, opts); } exports.getDatabase = getDatabase; /** * Gets information about a database. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Get the database foobar hosted on instance id 11111111-1111-1111-1111-111111111111 * const myDb = scaleway.databases.getDatabase({ * instanceId: "11111111-1111-1111-1111-111111111111", * name: "foobar", * }); * ``` */ /** @deprecated scaleway.index/getdatabase.getDatabase has been deprecated in favor of scaleway.databases/getdatabase.getDatabase */ function getDatabaseOutput(args, opts) { pulumi.log.warn("getDatabase is deprecated: scaleway.index/getdatabase.getDatabase has been deprecated in favor of scaleway.databases/getdatabase.getDatabase"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getDatabase:getDatabase", { "instanceId": args.instanceId, "name": args.name, "region": args.region, }, opts); } exports.getDatabaseOutput = getDatabaseOutput; //# sourceMappingURL=getDatabase.js.map