UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

90 lines 3.03 kB
"use strict"; // *** 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.getCatalogOutput = exports.getCatalog = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Retrieves details of a specific catalog in Unity Catalog, that were created by Pulumi or manually. Use databricks.getCatalogs to retrieve IDs of multiple catalogs from Unity Catalog * * > This data source can only be used with a workspace-level provider! * * ## Example Usage * * Read on a specific catalog `test`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const test = databricks.getCatalog({ * name: "test", * }); * const things = new databricks.Grants("things", { * catalog: test.then(test => test.name), * grants: [{ * principal: "sensitive", * privileges: ["USE_CATALOG"], * }], * }); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.Grant to manage grants within Unity Catalog. * * databricks.getCatalogs to list all catalogs within Unity Catalog metastore. */ function getCatalog(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getCatalog:getCatalog", { "catalogInfo": args.catalogInfo, "id": args.id, "name": args.name, }, opts); } exports.getCatalog = getCatalog; /** * Retrieves details of a specific catalog in Unity Catalog, that were created by Pulumi or manually. Use databricks.getCatalogs to retrieve IDs of multiple catalogs from Unity Catalog * * > This data source can only be used with a workspace-level provider! * * ## Example Usage * * Read on a specific catalog `test`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const test = databricks.getCatalog({ * name: "test", * }); * const things = new databricks.Grants("things", { * catalog: test.then(test => test.name), * grants: [{ * principal: "sensitive", * privileges: ["USE_CATALOG"], * }], * }); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.Grant to manage grants within Unity Catalog. * * databricks.getCatalogs to list all catalogs within Unity Catalog metastore. */ function getCatalogOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getCatalog:getCatalog", { "catalogInfo": args.catalogInfo, "id": args.id, "name": args.name, }, opts); } exports.getCatalogOutput = getCatalogOutput; //# sourceMappingURL=getCatalog.js.map