UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

76 lines 2.96 kB
"use strict"; // *** 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.getCatalogsOutput = exports.getCatalogs = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > **Note** This data source can only be used with a workspace-level provider! * * > **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 a list of databricks.Catalog ids, that were created by Pulumi or manually, so that special handling could be applied. * * ## 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; /** * > **Note** This data source can only be used with a workspace-level provider! * * > **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 a list of databricks.Catalog ids, that were created by Pulumi or manually, so that special handling could be applied. * * ## 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