@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
70 lines • 2.36 kB
JavaScript
// *** 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.getSharesOutput = exports.getShares = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Retrieves a list of databricks.Share name, that were created by Pulumi or manually.
*
* ## Example Usage
*
* Getting all existing shares in the metastore
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const _this = databricks.getShares({});
* export const shareName = _this.then(_this => _this.shares);
* ```
*
* ## 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 getShares(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("databricks:index/getShares:getShares", {
"shares": args.shares,
}, opts);
}
exports.getShares = getShares;
/**
* Retrieves a list of databricks.Share name, that were created by Pulumi or manually.
*
* ## Example Usage
*
* Getting all existing shares in the metastore
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const _this = databricks.getShares({});
* export const shareName = _this.then(_this => _this.shares);
* ```
*
* ## 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 getSharesOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("databricks:index/getShares:getShares", {
"shares": args.shares,
}, opts);
}
exports.getSharesOutput = getSharesOutput;
//# sourceMappingURL=getShares.js.map
;