@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
56 lines • 2.27 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.getZonesOutput = exports.getZones = 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.
*
* This data source allows you to fetch all available AWS availability zones on your workspace on AWS.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const zones = databricks.getZones({});
* ```
*/
function getZones(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("databricks:index/getZones:getZones", {
"defaultZone": args.defaultZone,
"id": args.id,
"zones": args.zones,
}, opts);
}
exports.getZones = getZones;
/**
* > **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.
*
* This data source allows you to fetch all available AWS availability zones on your workspace on AWS.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const zones = databricks.getZones({});
* ```
*/
function getZonesOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("databricks:index/getZones:getZones", {
"defaultZone": args.defaultZone,
"id": args.id,
"zones": args.zones,
}, opts);
}
exports.getZonesOutput = getZonesOutput;
//# sourceMappingURL=getZones.js.map
;