@pulumiverse/cockroach
Version:
A Pulumi package to create and managed Cockroach DB resources in Pulumi programs.
54 lines • 1.87 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.getCockroachClusterOutput = exports.getCockroachCluster = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* CockroachDB Cloud cluster. Can be Dedicated or Serverless.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as cockroach from "@pulumi/cockroach";
*
* const config = new pulumi.Config();
* const clusterId = config.require("clusterId");
* const cockroach = cockroach.getCockroachCluster({
* id: clusterId,
* });
* ```
*/
function getCockroachCluster(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("cockroach:index/getCockroachCluster:getCockroachCluster", {
"id": args.id,
}, opts);
}
exports.getCockroachCluster = getCockroachCluster;
/**
* CockroachDB Cloud cluster. Can be Dedicated or Serverless.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as cockroach from "@pulumi/cockroach";
*
* const config = new pulumi.Config();
* const clusterId = config.require("clusterId");
* const cockroach = cockroach.getCockroachCluster({
* id: clusterId,
* });
* ```
*/
function getCockroachClusterOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("cockroach:index/getCockroachCluster:getCockroachCluster", {
"id": args.id,
}, opts);
}
exports.getCockroachClusterOutput = getCockroachClusterOutput;
//# sourceMappingURL=getCockroachCluster.js.map