UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

130 lines (129 loc) 3.44 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * This data source allows to export a notebook from 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 features = databricks.getNotebook({ * path: "/Production/Features", * format: "SOURCE", * }); * ``` */ export declare function getNotebook(args: GetNotebookArgs, opts?: pulumi.InvokeOptions): Promise<GetNotebookResult>; /** * A collection of arguments for invoking getNotebook. */ export interface GetNotebookArgs { /** * Notebook format to export. Either `SOURCE`, `HTML`, `JUPYTER`, or `DBC`. */ format: string; /** * notebook language */ language?: string; /** * notebook object ID */ objectId?: number; /** * notebook object type */ objectType?: string; /** * Notebook path on the workspace */ path: string; /** * Configure the provider for management through account provider. This block consists of the following fields: */ providerConfig?: inputs.GetNotebookProviderConfig; } /** * A collection of values returned by getNotebook. */ export interface GetNotebookResult { /** * notebook content in selected format */ readonly content: string; readonly format: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * notebook language */ readonly language: string; /** * notebook object ID */ readonly objectId: number; /** * notebook object type */ readonly objectType: string; readonly path: string; readonly providerConfig?: outputs.GetNotebookProviderConfig; /** * path on Workspace File System (WSFS) in form of `/Workspace` + `path` */ readonly workspacePath: string; } /** * This data source allows to export a notebook from 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 features = databricks.getNotebook({ * path: "/Production/Features", * format: "SOURCE", * }); * ``` */ export declare function getNotebookOutput(args: GetNotebookOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNotebookResult>; /** * A collection of arguments for invoking getNotebook. */ export interface GetNotebookOutputArgs { /** * Notebook format to export. Either `SOURCE`, `HTML`, `JUPYTER`, or `DBC`. */ format: pulumi.Input<string>; /** * notebook language */ language?: pulumi.Input<string>; /** * notebook object ID */ objectId?: pulumi.Input<number>; /** * notebook object type */ objectType?: pulumi.Input<string>; /** * Notebook path on 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.GetNotebookProviderConfigArgs>; }