UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

117 lines (116 loc) 3.92 kB
import * as pulumi from "@pulumi/pulumi"; /** * > **Note** This data source can only be used with a workspace-level provider! * * Retrieves a list of databricks.Volume ids (full names), that were created by Pulumi or manually. * * ## Plugin Framework Migration * * The volumes data source has been migrated from sdkv2 to plugin framework in version 1.57。 If you encounter any problem with this data source and suspect it is due to the migration, you can fallback to sdkv2 by setting the environment variable in the following way `export USE_SDK_V2_DATA_SOURCES="databricks.getVolumes"`. * * ## Example Usage * * Listing all volumes in a _things_ databricks.Schema of a _sandbox_ databricks_catalog: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getVolumes({ * catalogName: "sandbox", * schemaName: "things", * }); * export const allVolumes = _this; * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.Volume to manage volumes within Unity Catalog. * * databricks.Schema to manage schemas within Unity Catalog. * * databricks.Catalog to manage catalogs within Unity Catalog. */ export declare function getVolumes(args: GetVolumesArgs, opts?: pulumi.InvokeOptions): Promise<GetVolumesResult>; /** * A collection of arguments for invoking getVolumes. */ export interface GetVolumesArgs { /** * Name of databricks_catalog */ catalogName: string; /** * a list of databricks.Volume full names: *`catalog`.`schema`.`volume`* */ ids?: string[]; /** * Name of databricks_schema */ schemaName: string; } /** * A collection of values returned by getVolumes. */ export interface GetVolumesResult { readonly catalogName: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * a list of databricks.Volume full names: *`catalog`.`schema`.`volume`* */ readonly ids: string[]; readonly schemaName: string; } /** * > **Note** This data source can only be used with a workspace-level provider! * * Retrieves a list of databricks.Volume ids (full names), that were created by Pulumi or manually. * * ## Plugin Framework Migration * * The volumes data source has been migrated from sdkv2 to plugin framework in version 1.57。 If you encounter any problem with this data source and suspect it is due to the migration, you can fallback to sdkv2 by setting the environment variable in the following way `export USE_SDK_V2_DATA_SOURCES="databricks.getVolumes"`. * * ## Example Usage * * Listing all volumes in a _things_ databricks.Schema of a _sandbox_ databricks_catalog: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getVolumes({ * catalogName: "sandbox", * schemaName: "things", * }); * export const allVolumes = _this; * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.Volume to manage volumes within Unity Catalog. * * databricks.Schema to manage schemas within Unity Catalog. * * databricks.Catalog to manage catalogs within Unity Catalog. */ export declare function getVolumesOutput(args: GetVolumesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVolumesResult>; /** * A collection of arguments for invoking getVolumes. */ export interface GetVolumesOutputArgs { /** * Name of databricks_catalog */ catalogName: pulumi.Input<string>; /** * a list of databricks.Volume full names: *`catalog`.`schema`.`volume`* */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * Name of databricks_schema */ schemaName: pulumi.Input<string>; }