@pulumi/databricks
Version:
A Pulumi package for creating and managing databricks cloud resources.
72 lines (71 loc) • 2.33 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* The SQL Alerts v2 data source allows you to retrieve a list of alerts in Databricks SQL that are accessible to the current user. This data source returns alerts ordered by their creation time.
*
* You can use this data source to:
* - Get a comprehensive list of all alerts in your workspace
* - Monitor and audit alert configurations across your workspace
*
* ## Example Usage
*
* ### List All Alerts
* This example retrieves all alerts accessible to the current user:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getAlertV2({});
* ```
*/
export declare function getAlertsV2(args?: GetAlertsV2Args, opts?: pulumi.InvokeOptions): Promise<GetAlertsV2Result>;
/**
* A collection of arguments for invoking getAlertsV2.
*/
export interface GetAlertsV2Args {
/**
* Workspace ID of the resource
*/
workspaceId?: string;
}
/**
* A collection of values returned by getAlertsV2.
*/
export interface GetAlertsV2Result {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly results: outputs.GetAlertsV2Result[];
readonly workspaceId?: string;
}
/**
* The SQL Alerts v2 data source allows you to retrieve a list of alerts in Databricks SQL that are accessible to the current user. This data source returns alerts ordered by their creation time.
*
* You can use this data source to:
* - Get a comprehensive list of all alerts in your workspace
* - Monitor and audit alert configurations across your workspace
*
* ## Example Usage
*
* ### List All Alerts
* This example retrieves all alerts accessible to the current user:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as databricks from "@pulumi/databricks";
*
* const all = databricks.getAlertV2({});
* ```
*/
export declare function getAlertsV2Output(args?: GetAlertsV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAlertsV2Result>;
/**
* A collection of arguments for invoking getAlertsV2.
*/
export interface GetAlertsV2OutputArgs {
/**
* Workspace ID of the resource
*/
workspaceId?: pulumi.Input<string>;
}