@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
76 lines • 2.58 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** 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");
/**
* Retrieves a list of databricks.Schema ids, that were created by Pulumi or manually, so that special handling could be applied.
*
* > This data source can only be used with a workspace-level provider!
*
* ## 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;
/**
* Retrieves a list of databricks.Schema ids, that were created by Pulumi or manually, so that special handling could be applied.
*
* > This data source can only be used with a workspace-level provider!
*
* ## 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