UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

80 lines 3.14 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.getSchemasOutput = exports.getSchemas = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > **Note** This data source can only be used with a workspace-level provider! * * > **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. * * Retrieves a list of databricks.Schema ids, that were created by Pulumi or manually, so that special handling could be applied. * * ## Example Usage * * Listing all schemas in a _sandbox_ databricks_catalog: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const sandbox = databricks.getSchemas({ * catalogName: "sandbox", * }); * export const allSandboxSchemas = sandbox; * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.Schema to manage schemas within Unity Catalog. * * databricks.Catalog to manage catalogs within Unity Catalog. */ function getSchemas(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getSchemas:getSchemas", { "catalogName": args.catalogName, "ids": args.ids, }, opts); } exports.getSchemas = getSchemas; /** * > **Note** This data source can only be used with a workspace-level provider! * * > **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. * * Retrieves a list of databricks.Schema ids, that were created by Pulumi or manually, so that special handling could be applied. * * ## Example Usage * * Listing all schemas in a _sandbox_ databricks_catalog: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const sandbox = databricks.getSchemas({ * catalogName: "sandbox", * }); * export const allSandboxSchemas = sandbox; * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.Schema to manage schemas within Unity Catalog. * * databricks.Catalog to manage catalogs within Unity Catalog. */ function getSchemasOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getSchemas:getSchemas", { "catalogName": args.catalogName, "ids": args.ids, }, opts); } exports.getSchemasOutput = getSchemasOutput; //# sourceMappingURL=getSchemas.js.map