@pulumiverse/cockroach
Version:
A Pulumi package to create and managed Cockroach DB resources in Pulumi programs.
64 lines • 2.25 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.getFolderOutput = exports.getFolder = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* A CockroachDB Cloud folder. Folders can contain clusters or other folders. They can be used to group resources together for the purposes of access control, organization or fine grained invoicing.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as cockroach from "@pulumi/cockroach";
*
* const config = new pulumi.Config();
* const prodFolderId = config.require("prodFolderId");
* const team1 = cockroach.getFolder({
* path: "/prod/team1",
* });
* const prod = cockroach.getFolder({
* id: prodFolderId,
* });
* ```
*/
function getFolder(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("cockroach:index/getFolder:getFolder", {
"id": args.id,
"path": args.path,
}, opts);
}
exports.getFolder = getFolder;
/**
* A CockroachDB Cloud folder. Folders can contain clusters or other folders. They can be used to group resources together for the purposes of access control, organization or fine grained invoicing.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as cockroach from "@pulumi/cockroach";
*
* const config = new pulumi.Config();
* const prodFolderId = config.require("prodFolderId");
* const team1 = cockroach.getFolder({
* path: "/prod/team1",
* });
* const prod = cockroach.getFolder({
* id: prodFolderId,
* });
* ```
*/
function getFolderOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("cockroach:index/getFolder:getFolder", {
"id": args.id,
"path": args.path,
}, opts);
}
exports.getFolderOutput = getFolderOutput;
//# sourceMappingURL=getFolder.js.map