UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

83 lines (82 loc) 2.81 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.ExternalLocation objects, that were created by Pulumi or manually, so that special handling could be applied. * * ## Example Usage * * List all external locations in the metastore * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const all = databricks.getExternalLocations({}); * export const allExternalLocations = all.then(all => all.names); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.ExternalLocation to get information about a single external location * * databricks.ExternalLocation to manage external locations within Unity Catalog. */ export declare function getExternalLocations(args?: GetExternalLocationsArgs, opts?: pulumi.InvokeOptions): Promise<GetExternalLocationsResult>; /** * A collection of arguments for invoking getExternalLocations. */ export interface GetExternalLocationsArgs { /** * List of names of databricks.ExternalLocation in the metastore */ names?: string[]; } /** * A collection of values returned by getExternalLocations. */ export interface GetExternalLocationsResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * List of names of databricks.ExternalLocation in the metastore */ readonly names: string[]; } /** * > **Note** This data source can only be used with a workspace-level provider! * * Retrieves a list of databricks.ExternalLocation objects, that were created by Pulumi or manually, so that special handling could be applied. * * ## Example Usage * * List all external locations in the metastore * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const all = databricks.getExternalLocations({}); * export const allExternalLocations = all.then(all => all.names); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.ExternalLocation to get information about a single external location * * databricks.ExternalLocation to manage external locations within Unity Catalog. */ export declare function getExternalLocationsOutput(args?: GetExternalLocationsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetExternalLocationsResult>; /** * A collection of arguments for invoking getExternalLocations. */ export interface GetExternalLocationsOutputArgs { /** * List of names of databricks.ExternalLocation in the metastore */ names?: pulumi.Input<pulumi.Input<string>[]>; }