UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

70 lines (69 loc) 2.54 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * [![Public Preview](https://img.shields.io/badge/Release_Stage-Public_Preview-yellowgreen)](https://docs.databricks.com/aws/en/release-notes/release-types) * * 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 { pageSize?: number; } /** * A collection of values returned by getAlertsV2. */ export interface GetAlertsV2Result { readonly alerts: outputs.GetAlertsV2Alert[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly pageSize?: number; } /** * [![Public Preview](https://img.shields.io/badge/Release_Stage-Public_Preview-yellowgreen)](https://docs.databricks.com/aws/en/release-notes/release-types) * * 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 { pageSize?: pulumi.Input<number>; }