@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
84 lines (83 loc) • 3.19 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* > **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.
*
* Retrieves information about databricks_instance_pool.
*
* ## 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)});
* ```
*/
export declare function getInstancePool(args: GetInstancePoolArgs, opts?: pulumi.InvokeOptions): Promise<GetInstancePoolResult>;
/**
* A collection of arguments for invoking getInstancePool.
*/
export interface GetInstancePoolArgs {
/**
* Name of the instance pool. The instance pool must exist before this resource can be planned.
*/
name: string;
/**
* block describing instance pool and its state. Check documentation for databricks.InstancePool for a list of exposed attributes.
*/
poolInfo?: inputs.GetInstancePoolPoolInfo;
}
/**
* A collection of values returned by getInstancePool.
*/
export interface GetInstancePoolResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
/**
* block describing instance pool and its state. Check documentation for databricks.InstancePool for a list of exposed attributes.
*/
readonly poolInfo: outputs.GetInstancePoolPoolInfo;
}
/**
* > **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.
*
* Retrieves information about databricks_instance_pool.
*
* ## 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)});
* ```
*/
export declare function getInstancePoolOutput(args: GetInstancePoolOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInstancePoolResult>;
/**
* A collection of arguments for invoking getInstancePool.
*/
export interface GetInstancePoolOutputArgs {
/**
* Name of the instance pool. The instance pool must exist before this resource can be planned.
*/
name: pulumi.Input<string>;
/**
* block describing instance pool and its state. Check documentation for databricks.InstancePool for a list of exposed attributes.
*/
poolInfo?: pulumi.Input<inputs.GetInstancePoolPoolInfoArgs>;
}