UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

60 lines 2 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.getDirectoryOutput = exports.getDirectory = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This data source allows to get information about a directory in a Databricks Workspace. * * > This data source can only be used with a workspace-level provider! * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const prod = databricks.getDirectory({ * path: "/Production", * }); * ``` */ function getDirectory(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getDirectory:getDirectory", { "id": args.id, "objectId": args.objectId, "path": args.path, "workspacePath": args.workspacePath, }, opts); } exports.getDirectory = getDirectory; /** * This data source allows to get information about a directory in a Databricks Workspace. * * > This data source can only be used with a workspace-level provider! * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const prod = databricks.getDirectory({ * path: "/Production", * }); * ``` */ function getDirectoryOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getDirectory:getDirectory", { "id": args.id, "objectId": args.objectId, "path": args.path, "workspacePath": args.workspacePath, }, opts); } exports.getDirectoryOutput = getDirectoryOutput; //# sourceMappingURL=getDirectory.js.map