@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
83 lines (82 loc) • 2.83 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* > **Note** This data source can only be used with a workspace-level provider!
*
* Retrieves a list of databricks.StorageCredential objects, that were created by Pulumi or manually, so that special handling could be applied.
*
* ## Example Usage
*
* List all storage credentials in the metastore
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getStorageCredentials({});
* export const allStorageCredentials = all.then(all => all.names);
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.StorageCredential to get information about a single credential
* * databricks.StorageCredential to manage Storage Credentials within Unity Catalog.
*/
export declare function getStorageCredentials(args?: GetStorageCredentialsArgs, opts?: pulumi.InvokeOptions): Promise<GetStorageCredentialsResult>;
/**
* A collection of arguments for invoking getStorageCredentials.
*/
export interface GetStorageCredentialsArgs {
/**
* List of names of databricks.StorageCredential in the metastore
*/
names?: string[];
}
/**
* A collection of values returned by getStorageCredentials.
*/
export interface GetStorageCredentialsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* List of names of databricks.StorageCredential in the metastore
*/
readonly names: string[];
}
/**
* > **Note** This data source can only be used with a workspace-level provider!
*
* Retrieves a list of databricks.StorageCredential objects, that were created by Pulumi or manually, so that special handling could be applied.
*
* ## Example Usage
*
* List all storage credentials in the metastore
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getStorageCredentials({});
* export const allStorageCredentials = all.then(all => all.names);
* ```
*
* ## Related Resources
*
* The following resources are used in the same context:
*
* * databricks.StorageCredential to get information about a single credential
* * databricks.StorageCredential to manage Storage Credentials within Unity Catalog.
*/
export declare function getStorageCredentialsOutput(args?: GetStorageCredentialsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStorageCredentialsResult>;
/**
* A collection of arguments for invoking getStorageCredentials.
*/
export interface GetStorageCredentialsOutputArgs {
/**
* List of names of databricks.StorageCredential in the metastore
*/
names?: pulumi.Input<pulumi.Input<string>[]>;
}