UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

64 lines 2.5 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getNotebookOutput = exports.getNotebook = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > **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 export a notebook from Databricks Workspace. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const features = databricks.getNotebook({ * path: "/Production/Features", * format: "SOURCE", * }); * ``` */ function getNotebook(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getNotebook:getNotebook", { "format": args.format, "language": args.language, "objectId": args.objectId, "objectType": args.objectType, "path": args.path, }, opts); } exports.getNotebook = getNotebook; /** * > **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 export a notebook from Databricks Workspace. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const features = databricks.getNotebook({ * path: "/Production/Features", * format: "SOURCE", * }); * ``` */ function getNotebookOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getNotebook:getNotebook", { "format": args.format, "language": args.language, "objectId": args.objectId, "objectType": args.objectType, "path": args.path, }, opts); } exports.getNotebookOutput = getNotebookOutput; //# sourceMappingURL=getNotebook.js.map