@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
123 lines (122 loc) • 3.33 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* 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.
*/
export declare function getShare(args?: GetShareArgs, opts?: pulumi.InvokeOptions): Promise<GetShareResult>;
/**
* A collection of arguments for invoking getShare.
*/
export interface GetShareArgs {
/**
* Time when the share was created.
*/
createdAt?: number;
/**
* The principal that created the share.
*/
createdBy?: string;
/**
* The name of the share
*/
name?: string;
/**
* arrays containing details of each object in the share.
*/
objects?: inputs.GetShareObject[];
}
/**
* A collection of values returned by getShare.
*/
export interface GetShareResult {
/**
* Time when the share was created.
*/
readonly createdAt: number;
/**
* The principal that created the share.
*/
readonly createdBy: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Full name of the object being shared.
*/
readonly name: string;
/**
* arrays containing details of each object in the share.
*/
readonly objects: outputs.GetShareObject[];
}
/**
* 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.
*/
export declare function getShareOutput(args?: GetShareOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetShareResult>;
/**
* A collection of arguments for invoking getShare.
*/
export interface GetShareOutputArgs {
/**
* Time when the share was created.
*/
createdAt?: pulumi.Input<number>;
/**
* The principal that created the share.
*/
createdBy?: pulumi.Input<string>;
/**
* The name of the share
*/
name?: pulumi.Input<string>;
/**
* arrays containing details of each object in the share.
*/
objects?: pulumi.Input<pulumi.Input<inputs.GetShareObjectArgs>[]>;
}