UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

78 lines 2.92 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getExternalLocationOutput = exports.getExternalLocation = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > **Note** This data source can only be used with a workspace-level provider! * * Retrieves details about a databricks.ExternalLocation that were created by Pulumi or manually. * * ## Example Usage * * Getting details of an existing external location in the metastore * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getExternalLocation({ * name: "this", * }); * export const createdBy = _this.then(_this => _this.externalLocationInfo?.createdBy); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.getExternalLocations to get names of all external locations * * databricks.ExternalLocation to manage external locations within Unity Catalog. */ function getExternalLocation(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getExternalLocation:getExternalLocation", { "externalLocationInfo": args.externalLocationInfo, "id": args.id, "name": args.name, }, opts); } exports.getExternalLocation = getExternalLocation; /** * > **Note** This data source can only be used with a workspace-level provider! * * Retrieves details about a databricks.ExternalLocation that were created by Pulumi or manually. * * ## Example Usage * * Getting details of an existing external location in the metastore * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getExternalLocation({ * name: "this", * }); * export const createdBy = _this.then(_this => _this.externalLocationInfo?.createdBy); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.getExternalLocations to get names of all external locations * * databricks.ExternalLocation to manage external locations within Unity Catalog. */ function getExternalLocationOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getExternalLocation:getExternalLocation", { "externalLocationInfo": args.externalLocationInfo, "id": args.id, "name": args.name, }, opts); } exports.getExternalLocationOutput = getExternalLocationOutput; //# sourceMappingURL=getExternalLocation.js.map