UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

62 lines 2.13 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getInstancePoolOutput = exports.getInstancePool = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Retrieves information about databricks_instance_pool. * * > This data source can only be used with a workspace-level provider! * * ## Example Usage * * Referring to an instance pool by name: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const pool = databricks.getInstancePool({ * name: "All spot", * }); * const myCluster = new databricks.Cluster("my_cluster", {instancePoolId: pool.then(pool => pool.id)}); * ``` */ function getInstancePool(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getInstancePool:getInstancePool", { "name": args.name, "poolInfo": args.poolInfo, }, opts); } exports.getInstancePool = getInstancePool; /** * Retrieves information about databricks_instance_pool. * * > This data source can only be used with a workspace-level provider! * * ## Example Usage * * Referring to an instance pool by name: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const pool = databricks.getInstancePool({ * name: "All spot", * }); * const myCluster = new databricks.Cluster("my_cluster", {instancePoolId: pool.then(pool => pool.id)}); * ``` */ function getInstancePoolOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getInstancePool:getInstancePool", { "name": args.name, "poolInfo": args.poolInfo, }, opts); } exports.getInstancePoolOutput = getInstancePoolOutput; //# sourceMappingURL=getInstancePool.js.map