@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
87 lines (86 loc) • 2.9 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* > **Note** This data source can only be used with a workspace-level provider!
*
* > **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 a list of databricks.Catalog ids, that were created by Pulumi or manually, so that special handling could be applied.
*
* ## Example Usage
*
* Listing all catalogs:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getCatalogs({});
* export const allCatalogs = all;
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.Schema to manage schemas within Unity Catalog.
* * databricks.Catalog to manage catalogs within Unity Catalog.
*/
export declare function getCatalogs(args?: GetCatalogsArgs, opts?: pulumi.InvokeOptions): Promise<GetCatalogsResult>;
/**
* A collection of arguments for invoking getCatalogs.
*/
export interface GetCatalogsArgs {
/**
* set of databricks.Catalog names
*/
ids?: string[];
}
/**
* A collection of values returned by getCatalogs.
*/
export interface GetCatalogsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* set of databricks.Catalog names
*/
readonly ids: string[];
}
/**
* > **Note** This data source can only be used with a workspace-level provider!
*
* > **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 a list of databricks.Catalog ids, that were created by Pulumi or manually, so that special handling could be applied.
*
* ## Example Usage
*
* Listing all catalogs:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getCatalogs({});
* export const allCatalogs = all;
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.Schema to manage schemas within Unity Catalog.
* * databricks.Catalog to manage catalogs within Unity Catalog.
*/
export declare function getCatalogsOutput(args?: GetCatalogsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCatalogsResult>;
/**
* A collection of arguments for invoking getCatalogs.
*/
export interface GetCatalogsOutputArgs {
/**
* set of databricks.Catalog names
*/
ids?: pulumi.Input<pulumi.Input<string>[]>;
}