@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
72 lines • 2.4 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCatalogsOutput = exports.getCatalogs = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Retrieves a list of databricks.Catalog ids, that were created by Pulumi or manually, so that special handling could be applied.
*
* > This data source can only be used with a workspace-level provider!
*
* ## Example Usage
*
* Listing all catalogs:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getCatalogs({});
* export const allCatalogs = all;
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.Schema to manage schemas within Unity Catalog.
* * databricks.Catalog to manage catalogs within Unity Catalog.
*/
function getCatalogs(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("databricks:index/getCatalogs:getCatalogs", {
"ids": args.ids,
}, opts);
}
exports.getCatalogs = getCatalogs;
/**
* Retrieves a list of databricks.Catalog ids, that were created by Pulumi or manually, so that special handling could be applied.
*
* > This data source can only be used with a workspace-level provider!
*
* ## Example Usage
*
* Listing all catalogs:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getCatalogs({});
* export const allCatalogs = all;
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.Schema to manage schemas within Unity Catalog.
* * databricks.Catalog to manage catalogs within Unity Catalog.
*/
function getCatalogsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("databricks:index/getCatalogs:getCatalogs", {
"ids": args.ids,
}, opts);
}
exports.getCatalogsOutput = getCatalogsOutput;
//# sourceMappingURL=getCatalogs.js.map