@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
70 lines • 3.02 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.getMwsWorkspacesOutput = exports.getMwsWorkspaces = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* > **Note** If you have a fully automated setup with workspaces created by databricks.MwsWorkspaces or azurerm_databricks_workspace, please make sure to add dependsOn attribute in order to prevent _default auth: cannot configure default credentials_ errors.
*
* Lists all databricks.MwsWorkspaces in Databricks Account.
*
* > **Note** `accountId` provider configuration property is required for this resource to work.
*
* ## Example Usage
*
* Listing all workspaces in
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getMwsWorkspaces({});
* export const allMwsWorkspaces = all.then(all => all.ids);
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.MwsWorkspaces to manage Databricks Workspaces on AWS and GCP.
* * databricks.MetastoreAssignment to assign databricks.Metastore to databricks.MwsWorkspaces or azurermDatabricksWorkspace
*/
function getMwsWorkspaces(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("databricks:index/getMwsWorkspaces:getMwsWorkspaces", {}, opts);
}
exports.getMwsWorkspaces = getMwsWorkspaces;
/**
* > **Note** If you have a fully automated setup with workspaces created by databricks.MwsWorkspaces or azurerm_databricks_workspace, please make sure to add dependsOn attribute in order to prevent _default auth: cannot configure default credentials_ errors.
*
* Lists all databricks.MwsWorkspaces in Databricks Account.
*
* > **Note** `accountId` provider configuration property is required for this resource to work.
*
* ## Example Usage
*
* Listing all workspaces in
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getMwsWorkspaces({});
* export const allMwsWorkspaces = all.then(all => all.ids);
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.MwsWorkspaces to manage Databricks Workspaces on AWS and GCP.
* * databricks.MetastoreAssignment to assign databricks.Metastore to databricks.MwsWorkspaces or azurermDatabricksWorkspace
*/
function getMwsWorkspacesOutput(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("databricks:index/getMwsWorkspaces:getMwsWorkspaces", {}, opts);
}
exports.getMwsWorkspacesOutput = getMwsWorkspacesOutput;
//# sourceMappingURL=getMwsWorkspaces.js.map