UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

78 lines 2.94 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.getStorageCredentialOutput = exports.getStorageCredential = 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.StorageCredential that were created by Pulumi or manually. * * ## Example Usage * * Getting details of an existing storage credential in the metastore * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getStorageCredential({ * name: "this", * }); * export const createdBy = _this.then(_this => _this.storageCredentialInfo?.createdBy); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.getStorageCredentials to get names of all credentials * * databricks.StorageCredential to manage Storage Credentials within Unity Catalog. */ function getStorageCredential(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getStorageCredential:getStorageCredential", { "id": args.id, "name": args.name, "storageCredentialInfo": args.storageCredentialInfo, }, opts); } exports.getStorageCredential = getStorageCredential; /** * > **Note** This data source can only be used with a workspace-level provider! * * Retrieves details about a databricks.StorageCredential that were created by Pulumi or manually. * * ## Example Usage * * Getting details of an existing storage credential in the metastore * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as databricks from "@pulumi/databricks"; * * const _this = databricks.getStorageCredential({ * name: "this", * }); * export const createdBy = _this.then(_this => _this.storageCredentialInfo?.createdBy); * ``` * * ## Related Resources * * The following resources are used in the same context: * * * databricks.getStorageCredentials to get names of all credentials * * databricks.StorageCredential to manage Storage Credentials within Unity Catalog. */ function getStorageCredentialOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getStorageCredential:getStorageCredential", { "id": args.id, "name": args.name, "storageCredentialInfo": args.storageCredentialInfo, }, opts); } exports.getStorageCredentialOutput = getStorageCredentialOutput; //# sourceMappingURL=getStorageCredential.js.map