@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
68 lines • 2.94 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.getClusterOutput = exports.getCluster = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* > **Note** If you have a fully automated setup with workspaces created by databricks.MwsWorkspaces or azurerm_databricks_workspace, please make sure to add dependsOn attribute in order to prevent _default auth: cannot configure default credentials_ errors.
*
* Retrieves information about a databricks.Cluster using its id. This could be retrieved programmatically using databricks.getClusters data source.
*
* ## Example Usage
*
* Retrieve attributes of each SQL warehouses in a workspace
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getClusters({});
* const allGetCluster = all.then(all => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: databricks.getCluster({
* clusterId: __value,
* }) })));
* ```
*/
function getCluster(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("databricks:index/getCluster:getCluster", {
"clusterId": args.clusterId,
"clusterInfo": args.clusterInfo,
"clusterName": args.clusterName,
"id": args.id,
}, opts);
}
exports.getCluster = getCluster;
/**
* > **Note** If you have a fully automated setup with workspaces created by databricks.MwsWorkspaces or azurerm_databricks_workspace, please make sure to add dependsOn attribute in order to prevent _default auth: cannot configure default credentials_ errors.
*
* Retrieves information about a databricks.Cluster using its id. This could be retrieved programmatically using databricks.getClusters data source.
*
* ## Example Usage
*
* Retrieve attributes of each SQL warehouses in a workspace
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getClusters({});
* const allGetCluster = all.then(all => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: databricks.getCluster({
* clusterId: __value,
* }) })));
* ```
*/
function getClusterOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("databricks:index/getCluster:getCluster", {
"clusterId": args.clusterId,
"clusterInfo": args.clusterInfo,
"clusterName": args.clusterName,
"id": args.id,
}, opts);
}
exports.getClusterOutput = getClusterOutput;
//# sourceMappingURL=getCluster.js.map
;