UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

106 lines (105 loc) 3.37 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Retrieves details about a databricks.ExternalLocation that were created by Pulumi or manually. * * > This data source can only be used with a workspace-level provider! * * ## Example Usage * * Getting details of an existing external location in the metastore * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getExternalLocation({ * name: "this", * }); * export const createdBy = _this.then(_this => _this.externalLocationInfo?.createdBy); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.getExternalLocations to get names of all external locations * * databricks.ExternalLocation to manage external locations within Unity Catalog. */ export declare function getExternalLocation(args: GetExternalLocationArgs, opts?: pulumi.InvokeOptions): Promise<GetExternalLocationResult>; /** * A collection of arguments for invoking getExternalLocation. */ export interface GetExternalLocationArgs { /** * array of objects with information about external location: */ externalLocationInfo?: inputs.GetExternalLocationExternalLocationInfo; /** * external location ID - same as name. */ id?: string; /** * The name of the external location */ name: string; } /** * A collection of values returned by getExternalLocation. */ export interface GetExternalLocationResult { /** * array of objects with information about external location: */ readonly externalLocationInfo: outputs.GetExternalLocationExternalLocationInfo; /** * external location ID - same as name. */ readonly id: string; readonly name: string; } /** * Retrieves details about a databricks.ExternalLocation that were created by Pulumi or manually. * * > This data source can only be used with a workspace-level provider! * * ## Example Usage * * Getting details of an existing external location in the metastore * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getExternalLocation({ * name: "this", * }); * export const createdBy = _this.then(_this => _this.externalLocationInfo?.createdBy); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.getExternalLocations to get names of all external locations * * databricks.ExternalLocation to manage external locations within Unity Catalog. */ export declare function getExternalLocationOutput(args: GetExternalLocationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetExternalLocationResult>; /** * A collection of arguments for invoking getExternalLocation. */ export interface GetExternalLocationOutputArgs { /** * array of objects with information about external location: */ externalLocationInfo?: pulumi.Input<inputs.GetExternalLocationExternalLocationInfoArgs>; /** * external location ID - same as name. */ id?: pulumi.Input<string>; /** * The name of the external location */ name: pulumi.Input<string>; }