UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

80 lines (79 loc) 2.56 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * > **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 list notebooks in the Databricks Workspace. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const prod = databricks.getNotebookPaths({ * path: "/Production", * recursive: true, * }); * ``` */ export declare function getNotebookPaths(args: GetNotebookPathsArgs, opts?: pulumi.InvokeOptions): Promise<GetNotebookPathsResult>; /** * A collection of arguments for invoking getNotebookPaths. */ export interface GetNotebookPathsArgs { /** * Path to workspace directory */ path: string; /** * Either or recursively walk given path */ recursive: boolean; } /** * A collection of values returned by getNotebookPaths. */ export interface GetNotebookPathsResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * list of objects with `path` and `language` attributes */ readonly notebookPathLists: outputs.GetNotebookPathsNotebookPathList[]; readonly path: string; readonly recursive: boolean; } /** * > **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 list notebooks in the Databricks Workspace. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const prod = databricks.getNotebookPaths({ * path: "/Production", * recursive: true, * }); * ``` */ export declare function getNotebookPathsOutput(args: GetNotebookPathsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNotebookPathsResult>; /** * A collection of arguments for invoking getNotebookPaths. */ export interface GetNotebookPathsOutputArgs { /** * Path to workspace directory */ path: pulumi.Input<string>; /** * Either or recursively walk given path */ recursive: pulumi.Input<boolean>; }