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