UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

62 lines 2.37 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getAlertsV2Output = exports.getAlertsV2 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * 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({}); * ``` */ function getAlertsV2(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("databricks:index/getAlertsV2:getAlertsV2", { "workspaceId": args.workspaceId, }, opts); } exports.getAlertsV2 = getAlertsV2; /** * 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({}); * ``` */ function getAlertsV2Output(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("databricks:index/getAlertsV2:getAlertsV2", { "workspaceId": args.workspaceId, }, opts); } exports.getAlertsV2Output = getAlertsV2Output; //# sourceMappingURL=getAlertsV2.js.map