UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

98 lines (97 loc) 2.84 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * This data source allows to get information about a directory in a Databricks Workspace. * * > This data source can only be used with a workspace-level provider! * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const prod = databricks.getDirectory({ * path: "/Production", * }); * ``` */ export declare function getDirectory(args: GetDirectoryArgs, opts?: pulumi.InvokeOptions): Promise<GetDirectoryResult>; /** * A collection of arguments for invoking getDirectory. */ export interface GetDirectoryArgs { id?: string; /** * directory object ID */ objectId?: number; /** * Path to a directory in the workspace */ path: string; /** * Configure the provider for management through account provider. This block consists of the following fields: */ providerConfig?: inputs.GetDirectoryProviderConfig; /** * path on Workspace File System (WSFS) in form of `/Workspace` + `path` */ workspacePath?: string; } /** * A collection of values returned by getDirectory. */ export interface GetDirectoryResult { readonly id: string; /** * directory object ID */ readonly objectId: number; readonly path: string; readonly providerConfig?: outputs.GetDirectoryProviderConfig; /** * path on Workspace File System (WSFS) in form of `/Workspace` + `path` */ readonly workspacePath: string; } /** * This data source allows to get information about a directory in a Databricks Workspace. * * > This data source can only be used with a workspace-level provider! * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const prod = databricks.getDirectory({ * path: "/Production", * }); * ``` */ export declare function getDirectoryOutput(args: GetDirectoryOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDirectoryResult>; /** * A collection of arguments for invoking getDirectory. */ export interface GetDirectoryOutputArgs { id?: pulumi.Input<string>; /** * directory object ID */ objectId?: pulumi.Input<number>; /** * Path to a directory in the workspace */ path: pulumi.Input<string>; /** * Configure the provider for management through account provider. This block consists of the following fields: */ providerConfig?: pulumi.Input<inputs.GetDirectoryProviderConfigArgs>; /** * path on Workspace File System (WSFS) in form of `/Workspace` + `path` */ workspacePath?: pulumi.Input<string>; }