UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

94 lines (93 loc) 3.36 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Retrieves a list of databricks.ExternalLocation objects, that were created by Pulumi or manually, so that special handling could be applied. * * > This data source can only be used with a workspace-level provider! * * ## 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[]; /** * Configure the provider for management through account provider. This block consists of the following fields: */ providerConfig?: inputs.GetExternalLocationsProviderConfig; } /** * 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[]; readonly providerConfig?: outputs.GetExternalLocationsProviderConfig; } /** * Retrieves a list of databricks.ExternalLocation objects, that were created by Pulumi or manually, so that special handling could be applied. * * > This data source can only be used with a workspace-level provider! * * ## 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>[]>; /** * Configure the provider for management through account provider. This block consists of the following fields: */ providerConfig?: pulumi.Input<inputs.GetExternalLocationsProviderConfigArgs>; }