UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

137 lines (136 loc) 4.61 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Retrieves details about databricks.Volume that was created by Pulumi or manually. * A volume can be identified by its three-level (fully qualified) name (in the form of: `catalogName`.`schemaName`.`volumeName`) as input. This can be retrieved programmatically using databricks.getVolumes data source. * * ## Example Usage * * * Retrieve details of all volumes in in a _things_ databricks.Schema of a _sandbox_ databricks_catalog: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const all = databricks.getVolumes({ * catalogName: "sandbox", * schemaName: "things", * }); * const _this = all.then(all => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: databricks.getVolume({ * name: __value, * }) }))); * ``` * * * Search for a specific volume by its fully qualified name * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getVolume({ * name: "catalog.schema.volume", * }); * ``` * * ## 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 getVolume(args: GetVolumeArgs, opts?: pulumi.InvokeOptions): Promise<GetVolumeResult>; /** * A collection of arguments for invoking getVolume. */ export interface GetVolumeArgs { /** * ID of this Unity Catalog Volume in form of `<catalog>.<schema>.<name>`. */ id?: string; /** * a fully qualified name of databricks_volume: *`catalog`.`schema`.`volume`* */ name: string; /** * `VolumeInfo` object for a Unity Catalog volume. This contains the following attributes: */ volumeInfo?: inputs.GetVolumeVolumeInfo; } /** * A collection of values returned by getVolume. */ export interface GetVolumeResult { /** * ID of this Unity Catalog Volume in form of `<catalog>.<schema>.<name>`. */ readonly id: string; /** * the name of the volume */ readonly name: string; /** * `VolumeInfo` object for a Unity Catalog volume. This contains the following attributes: */ readonly volumeInfo: outputs.GetVolumeVolumeInfo; } /** * Retrieves details about databricks.Volume that was created by Pulumi or manually. * A volume can be identified by its three-level (fully qualified) name (in the form of: `catalogName`.`schemaName`.`volumeName`) as input. This can be retrieved programmatically using databricks.getVolumes data source. * * ## Example Usage * * * Retrieve details of all volumes in in a _things_ databricks.Schema of a _sandbox_ databricks_catalog: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const all = databricks.getVolumes({ * catalogName: "sandbox", * schemaName: "things", * }); * const _this = all.then(all => .reduce((__obj, [__key, __value]) => ({ ...__obj, [__key]: databricks.getVolume({ * name: __value, * }) }))); * ``` * * * Search for a specific volume by its fully qualified name * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getVolume({ * name: "catalog.schema.volume", * }); * ``` * * ## 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 getVolumeOutput(args: GetVolumeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVolumeResult>; /** * A collection of arguments for invoking getVolume. */ export interface GetVolumeOutputArgs { /** * ID of this Unity Catalog Volume in form of `<catalog>.<schema>.<name>`. */ id?: pulumi.Input<string>; /** * a fully qualified name of databricks_volume: *`catalog`.`schema`.`volume`* */ name: pulumi.Input<string>; /** * `VolumeInfo` object for a Unity Catalog volume. This contains the following attributes: */ volumeInfo?: pulumi.Input<inputs.GetVolumeVolumeInfoArgs>; }