UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

28 lines 1.56 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.getCurrentUserOutput = exports.getCurrentUser = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Retrieves information about databricks.User or databricks_service_principal, that is calling Databricks REST API. Might be useful in applying the same Pulumi by different users in the shared workspace for testing purposes. * * > This data source can only be used with a workspace-level provider! */ function getCurrentUser(opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getCurrentUser:getCurrentUser", {}, opts); } exports.getCurrentUser = getCurrentUser; /** * Retrieves information about databricks.User or databricks_service_principal, that is calling Databricks REST API. Might be useful in applying the same Pulumi by different users in the shared workspace for testing purposes. * * > This data source can only be used with a workspace-level provider! */ function getCurrentUserOutput(opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getCurrentUser:getCurrentUser", {}, opts); } exports.getCurrentUserOutput = getCurrentUserOutput; //# sourceMappingURL=getCurrentUser.js.map