@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
82 lines • 3.48 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.getCurrentMetastoreOutput = exports.getCurrentMetastore = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Retrieves information about metastore attached to a given workspace.
*
* > **Note** This is the workspace-level data source.
*
* > **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 to prevent _authentication is not configured for provider_ errors.
*
* ## Example Usage
*
* MetastoreSummary response for a metastore attached to the current workspace.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const _this = databricks.getCurrentMetastore({});
* export const someMetastore = _this.then(_this => _this.metastoreInfo);
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.Metastore to get information for a metastore with a given ID.
* * databricks.getMetastores to get a mapping of name to id of all metastores.
* * databricks.Metastore to manage Metastores within Unity Catalog.
* * databricks.Catalog to manage catalogs within Unity Catalog.
*/
function getCurrentMetastore(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("databricks:index/getCurrentMetastore:getCurrentMetastore", {
"id": args.id,
"metastoreInfo": args.metastoreInfo,
}, opts);
}
exports.getCurrentMetastore = getCurrentMetastore;
/**
* Retrieves information about metastore attached to a given workspace.
*
* > **Note** This is the workspace-level data source.
*
* > **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 to prevent _authentication is not configured for provider_ errors.
*
* ## Example Usage
*
* MetastoreSummary response for a metastore attached to the current workspace.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const _this = databricks.getCurrentMetastore({});
* export const someMetastore = _this.then(_this => _this.metastoreInfo);
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.Metastore to get information for a metastore with a given ID.
* * databricks.getMetastores to get a mapping of name to id of all metastores.
* * databricks.Metastore to manage Metastores within Unity Catalog.
* * databricks.Catalog to manage catalogs within Unity Catalog.
*/
function getCurrentMetastoreOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("databricks:index/getCurrentMetastore:getCurrentMetastore", {
"id": args.id,
"metastoreInfo": args.metastoreInfo,
}, opts);
}
exports.getCurrentMetastoreOutput = getCurrentMetastoreOutput;
//# sourceMappingURL=getCurrentMetastore.js.map
;