@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
90 lines • 3.59 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.getVolumesOutput = exports.getVolumes = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* > **Note** This data source can only be used with a workspace-level provider!
*
* Retrieves a list of databricks.Volume ids (full names), that were created by Pulumi or manually.
*
* ## Plugin Framework Migration
*
* The volumes data source has been migrated from sdkv2 to plugin framework in version 1.57。 If you encounter any problem with this data source and suspect it is due to the migration, you can fallback to sdkv2 by setting the environment variable in the following way `export USE_SDK_V2_DATA_SOURCES="databricks.getVolumes"`.
*
* ## Example Usage
*
* Listing all volumes in a _things_ databricks.Schema of a _sandbox_ databricks_catalog:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const _this = databricks.getVolumes({
* catalogName: "sandbox",
* schemaName: "things",
* });
* export const allVolumes = _this;
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.Volume to manage volumes within Unity Catalog.
* * databricks.Schema to manage schemas within Unity Catalog.
* * databricks.Catalog to manage catalogs within Unity Catalog.
*/
function getVolumes(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("databricks:index/getVolumes:getVolumes", {
"catalogName": args.catalogName,
"ids": args.ids,
"schemaName": args.schemaName,
}, opts);
}
exports.getVolumes = getVolumes;
/**
* > **Note** This data source can only be used with a workspace-level provider!
*
* Retrieves a list of databricks.Volume ids (full names), that were created by Pulumi or manually.
*
* ## Plugin Framework Migration
*
* The volumes data source has been migrated from sdkv2 to plugin framework in version 1.57。 If you encounter any problem with this data source and suspect it is due to the migration, you can fallback to sdkv2 by setting the environment variable in the following way `export USE_SDK_V2_DATA_SOURCES="databricks.getVolumes"`.
*
* ## Example Usage
*
* Listing all volumes in a _things_ databricks.Schema of a _sandbox_ databricks_catalog:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const _this = databricks.getVolumes({
* catalogName: "sandbox",
* schemaName: "things",
* });
* export const allVolumes = _this;
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.Volume to manage volumes within Unity Catalog.
* * databricks.Schema to manage schemas within Unity Catalog.
* * databricks.Catalog to manage catalogs within Unity Catalog.
*/
function getVolumesOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("databricks:index/getVolumes:getVolumes", {
"catalogName": args.catalogName,
"ids": args.ids,
"schemaName": args.schemaName,
}, opts);
}
exports.getVolumesOutput = getVolumesOutput;
//# sourceMappingURL=getVolumes.js.map
;