@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
72 lines • 2.79 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.getExternalLocationsOutput = exports.getExternalLocations = 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.ExternalLocation objects, that were created by Pulumi or manually, so that special handling could be applied.
*
* ## Example Usage
*
* List all external locations in the metastore
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getExternalLocations({});
* export const allExternalLocations = all.then(all => all.names);
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.ExternalLocation to get information about a single external location
* * databricks.ExternalLocation to manage external locations within Unity Catalog.
*/
function getExternalLocations(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("databricks:index/getExternalLocations:getExternalLocations", {
"names": args.names,
}, opts);
}
exports.getExternalLocations = getExternalLocations;
/**
* > **Note** This data source can only be used with a workspace-level provider!
*
* Retrieves a list of databricks.ExternalLocation objects, that were created by Pulumi or manually, so that special handling could be applied.
*
* ## Example Usage
*
* List all external locations in the metastore
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getExternalLocations({});
* export const allExternalLocations = all.then(all => all.names);
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.ExternalLocation to get information about a single external location
* * databricks.ExternalLocation to manage external locations within Unity Catalog.
*/
function getExternalLocationsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("databricks:index/getExternalLocations:getExternalLocations", {
"names": args.names,
}, opts);
}
exports.getExternalLocationsOutput = getExternalLocationsOutput;
//# sourceMappingURL=getExternalLocations.js.map
;