UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

80 lines 2.62 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.getShareOutput = exports.getShare = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Retrieves details about a databricks.Share that were created by Pulumi or manually. * * ## Example Usage * * Getting details of an existing share in the metastore * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getShare({ * name: "this", * }); * export const createdBy = _this.then(_this => _this.createdBy); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.Share to create Delta Sharing shares. * * databricks.Recipient to create Delta Sharing recipients. * * databricks.Grants to manage Delta Sharing permissions. */ function getShare(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getShare:getShare", { "createdAt": args.createdAt, "createdBy": args.createdBy, "name": args.name, "objects": args.objects, }, opts); } exports.getShare = getShare; /** * Retrieves details about a databricks.Share that were created by Pulumi or manually. * * ## Example Usage * * Getting details of an existing share in the metastore * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getShare({ * name: "this", * }); * export const createdBy = _this.then(_this => _this.createdBy); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.Share to create Delta Sharing shares. * * databricks.Recipient to create Delta Sharing recipients. * * databricks.Grants to manage Delta Sharing permissions. */ function getShareOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getShare:getShare", { "createdAt": args.createdAt, "createdBy": args.createdBy, "name": args.name, "objects": args.objects, }, opts); } exports.getShareOutput = getShareOutput; //# sourceMappingURL=getShare.js.map