UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

87 lines (86 loc) 2.67 kB
import * as pulumi from "@pulumi/pulumi"; /** * > **Note** If you have a fully automated setup with workspaces created by databricks.MwsWorkspaces or azurerm_databricks_workspace, please make sure to add dependsOn attribute in order to prevent _default auth: cannot configure default credentials_ errors. * * This data source allows to get information about a directory in a Databricks Workspace. * * ## 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; /** * 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; /** * path on Workspace File System (WSFS) in form of `/Workspace` + `path` */ readonly workspacePath: string; } /** * > **Note** If you have a fully automated setup with workspaces created by databricks.MwsWorkspaces or azurerm_databricks_workspace, please make sure to add dependsOn attribute in order to prevent _default auth: cannot configure default credentials_ errors. * * This data source allows to get information about a directory in a Databricks Workspace. * * ## 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>; /** * path on Workspace File System (WSFS) in form of `/Workspace` + `path` */ workspacePath?: pulumi.Input<string>; }