@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
106 lines (105 loc) • 3.38 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Retrieves details about a databricks.StorageCredential that were created by Pulumi or manually.
*
* > This data source can only be used with a workspace-level provider!
*
* ## 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.
*/
export declare function getStorageCredential(args: GetStorageCredentialArgs, opts?: pulumi.InvokeOptions): Promise<GetStorageCredentialResult>;
/**
* A collection of arguments for invoking getStorageCredential.
*/
export interface GetStorageCredentialArgs {
/**
* Unique ID of storage credential.
*/
id?: string;
/**
* The name of the storage credential
*/
name: string;
/**
* array of objects with information about storage credential.
*/
storageCredentialInfo?: inputs.GetStorageCredentialStorageCredentialInfo;
}
/**
* A collection of values returned by getStorageCredential.
*/
export interface GetStorageCredentialResult {
/**
* Unique ID of storage credential.
*/
readonly id: string;
readonly name: string;
/**
* array of objects with information about storage credential.
*/
readonly storageCredentialInfo: outputs.GetStorageCredentialStorageCredentialInfo;
}
/**
* Retrieves details about a databricks.StorageCredential that were created by Pulumi or manually.
*
* > This data source can only be used with a workspace-level provider!
*
* ## 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.
*/
export declare function getStorageCredentialOutput(args: GetStorageCredentialOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStorageCredentialResult>;
/**
* A collection of arguments for invoking getStorageCredential.
*/
export interface GetStorageCredentialOutputArgs {
/**
* Unique ID of storage credential.
*/
id?: pulumi.Input<string>;
/**
* The name of the storage credential
*/
name: pulumi.Input<string>;
/**
* array of objects with information about storage credential.
*/
storageCredentialInfo?: pulumi.Input<inputs.GetStorageCredentialStorageCredentialInfoArgs>;
}