@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
78 lines • 3.27 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.getMetastoresOutput = exports.getMetastores = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* > **Note** This data source can only be used with an account-level provider!
*
* Retrieves a mapping of name to id of databricks.Metastore objects, that were created by Pulumi or manually, so that special handling could be applied.
*
* > **Note** `accountId` provider configuration property is required for this resource to work. Data resource will error in case of metastores with duplicate names. This data source is only available for users & service principals with account admin status
*
* ## Example Usage
*
* Mapping of name to id of all metastores:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getMetastores({});
* export const allMetastores = all.then(all => all.ids);
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.Metastore to get information about a single metastore.
* * databricks.Metastore to manage Metastores within Unity Catalog.
* * databricks.Catalog to manage catalogs within Unity Catalog.
*/
function getMetastores(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("databricks:index/getMetastores:getMetastores", {
"ids": args.ids,
}, opts);
}
exports.getMetastores = getMetastores;
/**
* > **Note** This data source can only be used with an account-level provider!
*
* Retrieves a mapping of name to id of databricks.Metastore objects, that were created by Pulumi or manually, so that special handling could be applied.
*
* > **Note** `accountId` provider configuration property is required for this resource to work. Data resource will error in case of metastores with duplicate names. This data source is only available for users & service principals with account admin status
*
* ## Example Usage
*
* Mapping of name to id of all metastores:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getMetastores({});
* export const allMetastores = all.then(all => all.ids);
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.Metastore to get information about a single metastore.
* * databricks.Metastore to manage Metastores within Unity Catalog.
* * databricks.Catalog to manage catalogs within Unity Catalog.
*/
function getMetastoresOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("databricks:index/getMetastores:getMetastores", {
"ids": args.ids,
}, opts);
}
exports.getMetastoresOutput = getMetastoresOutput;
//# sourceMappingURL=getMetastores.js.map
;