@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
81 lines (80 loc) • 2.3 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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.
*/
export declare function getShares(args?: GetSharesArgs, opts?: pulumi.InvokeOptions): Promise<GetSharesResult>;
/**
* A collection of arguments for invoking getShares.
*/
export interface GetSharesArgs {
/**
* list of databricks.Share names.
*/
shares?: string[];
}
/**
* A collection of values returned by getShares.
*/
export interface GetSharesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* list of databricks.Share names.
*/
readonly shares: string[];
}
/**
* 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.
*/
export declare function getSharesOutput(args?: GetSharesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSharesResult>;
/**
* A collection of arguments for invoking getShares.
*/
export interface GetSharesOutputArgs {
/**
* list of databricks.Share names.
*/
shares?: pulumi.Input<pulumi.Input<string>[]>;
}