@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
102 lines • 3.58 kB
JavaScript
// *** 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.getSchemaOutput = exports.getSchema = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Retrieves details about databricks.Schema that was created by Pulumi or manually.
* A schema can be identified by its two-level (fully qualified) name (in the form of: `catalogName`.`schemaName`) as input. This can be retrieved programmatically using databricks.getSchemas data source.
*
* ## Example Usage
*
* * Retrieve details of all schemas in in a _sandbox_ databricks_catalog:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getSchemas({
* catalogName: "sandbox",
* });
* const _this = all.then(all => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: databricks.getSchema({
* name: __value,
* }) })));
* ```
*
* * Search for a specific schema by its fully qualified name:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const _this = databricks.getSchema({
* name: "catalog.schema",
* });
* ```
*
* ## 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 getSchema(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("databricks:index/getSchema:getSchema", {
"id": args.id,
"name": args.name,
"schemaInfo": args.schemaInfo,
}, opts);
}
exports.getSchema = getSchema;
/**
* Retrieves details about databricks.Schema that was created by Pulumi or manually.
* A schema can be identified by its two-level (fully qualified) name (in the form of: `catalogName`.`schemaName`) as input. This can be retrieved programmatically using databricks.getSchemas data source.
*
* ## Example Usage
*
* * Retrieve details of all schemas in in a _sandbox_ databricks_catalog:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getSchemas({
* catalogName: "sandbox",
* });
* const _this = all.then(all => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: databricks.getSchema({
* name: __value,
* }) })));
* ```
*
* * Search for a specific schema by its fully qualified name:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const _this = databricks.getSchema({
* name: "catalog.schema",
* });
* ```
*
* ## 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 getSchemaOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("databricks:index/getSchema:getSchema", {
"id": args.id,
"name": args.name,
"schemaInfo": args.schemaInfo,
}, opts);
}
exports.getSchemaOutput = getSchemaOutput;
//# sourceMappingURL=getSchema.js.map
;