import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Manages Grafana Alerting contact points. * * * [Official documentation](https://grafana.com/docs/grafana/next/alerting/fundamentals/contact-points/) * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#contact-points) * * This resource requires Grafana 9.1.0 or later. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@lbrlabs/pulumi-grafana"; * * const myContactPoint = new grafana.ContactPoint("myContactPoint", {emails: [{ * addresses: [ * "one@company.org", * "two@company.org", * ], * disableResolveMessage: false, * message: "{{ len .Alerts.Firing }} firing.", * singleEmail: true, * subject: "{{ template \"default.title\" .}}", * }]}); * ``` * * ## Import * * ```sh * $ pulumi import grafana:index/contactPoint:ContactPoint contact_point_name {{contact_point_name}} * ``` */ export declare class ContactPoint extends pulumi.CustomResource { /** * Get an existing ContactPoint resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ContactPointState, opts?: pulumi.CustomResourceOptions): ContactPoint; /** * Returns true if the given object is an instance of ContactPoint. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ContactPoint; /** * A contact point that sends notifications to other Alertmanager instances. */ readonly alertmanagers: pulumi.Output; /** * A contact point that sends notifications to DingDing. */ readonly dingdings: pulumi.Output; /** * A contact point that sends notifications as Discord messages */ readonly discords: pulumi.Output; /** * A contact point that sends notifications to an email address. */ readonly emails: pulumi.Output; /** * A contact point that sends notifications to Google Chat. */ readonly googlechats: pulumi.Output; /** * A contact point that publishes notifications to Apache Kafka topics. */ readonly kafkas: pulumi.Output; /** * A contact point that sends notifications to LINE.me. */ readonly lines: pulumi.Output; /** * The name of the contact point. */ readonly name: pulumi.Output; /** * A contact point that sends notifications to OpsGenie. */ readonly opsgenies: pulumi.Output; /** * A contact point that sends notifications to PagerDuty. */ readonly pagerduties: pulumi.Output; /** * A contact point that sends notifications to Pushover. */ readonly pushovers: pulumi.Output; /** * A contact point that sends notifications to SensuGo. */ readonly sensugos: pulumi.Output; /** * A contact point that sends notifications to Slack. */ readonly slacks: pulumi.Output; /** * A contact point that sends notifications to Microsoft Teams. */ readonly teams: pulumi.Output; /** * A contact point that sends notifications to Telegram. */ readonly telegrams: pulumi.Output; /** * A contact point that sends notifications to Threema. */ readonly threemas: pulumi.Output; /** * A contact point that sends notifications to VictorOps (now known as Splunk OnCall). */ readonly victorops: pulumi.Output; /** * A contact point that sends notifications to Cisco Webex. */ readonly webexes: pulumi.Output; /** * A contact point that sends notifications to an arbitrary webhook, using the Prometheus webhook format defined here: https://prometheus.io/docs/alerting/latest/configuration/#webhook_config */ readonly webhooks: pulumi.Output; /** * A contact point that sends notifications to WeCom. */ readonly wecoms: pulumi.Output; /** * Create a ContactPoint resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: ContactPointArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ContactPoint resources. */ export interface ContactPointState { /** * A contact point that sends notifications to other Alertmanager instances. */ alertmanagers?: pulumi.Input[]>; /** * A contact point that sends notifications to DingDing. */ dingdings?: pulumi.Input[]>; /** * A contact point that sends notifications as Discord messages */ discords?: pulumi.Input[]>; /** * A contact point that sends notifications to an email address. */ emails?: pulumi.Input[]>; /** * A contact point that sends notifications to Google Chat. */ googlechats?: pulumi.Input[]>; /** * A contact point that publishes notifications to Apache Kafka topics. */ kafkas?: pulumi.Input[]>; /** * A contact point that sends notifications to LINE.me. */ lines?: pulumi.Input[]>; /** * The name of the contact point. */ name?: pulumi.Input; /** * A contact point that sends notifications to OpsGenie. */ opsgenies?: pulumi.Input[]>; /** * A contact point that sends notifications to PagerDuty. */ pagerduties?: pulumi.Input[]>; /** * A contact point that sends notifications to Pushover. */ pushovers?: pulumi.Input[]>; /** * A contact point that sends notifications to SensuGo. */ sensugos?: pulumi.Input[]>; /** * A contact point that sends notifications to Slack. */ slacks?: pulumi.Input[]>; /** * A contact point that sends notifications to Microsoft Teams. */ teams?: pulumi.Input[]>; /** * A contact point that sends notifications to Telegram. */ telegrams?: pulumi.Input[]>; /** * A contact point that sends notifications to Threema. */ threemas?: pulumi.Input[]>; /** * A contact point that sends notifications to VictorOps (now known as Splunk OnCall). */ victorops?: pulumi.Input[]>; /** * A contact point that sends notifications to Cisco Webex. */ webexes?: pulumi.Input[]>; /** * A contact point that sends notifications to an arbitrary webhook, using the Prometheus webhook format defined here: https://prometheus.io/docs/alerting/latest/configuration/#webhook_config */ webhooks?: pulumi.Input[]>; /** * A contact point that sends notifications to WeCom. */ wecoms?: pulumi.Input[]>; } /** * The set of arguments for constructing a ContactPoint resource. */ export interface ContactPointArgs { /** * A contact point that sends notifications to other Alertmanager instances. */ alertmanagers?: pulumi.Input[]>; /** * A contact point that sends notifications to DingDing. */ dingdings?: pulumi.Input[]>; /** * A contact point that sends notifications as Discord messages */ discords?: pulumi.Input[]>; /** * A contact point that sends notifications to an email address. */ emails?: pulumi.Input[]>; /** * A contact point that sends notifications to Google Chat. */ googlechats?: pulumi.Input[]>; /** * A contact point that publishes notifications to Apache Kafka topics. */ kafkas?: pulumi.Input[]>; /** * A contact point that sends notifications to LINE.me. */ lines?: pulumi.Input[]>; /** * The name of the contact point. */ name?: pulumi.Input; /** * A contact point that sends notifications to OpsGenie. */ opsgenies?: pulumi.Input[]>; /** * A contact point that sends notifications to PagerDuty. */ pagerduties?: pulumi.Input[]>; /** * A contact point that sends notifications to Pushover. */ pushovers?: pulumi.Input[]>; /** * A contact point that sends notifications to SensuGo. */ sensugos?: pulumi.Input[]>; /** * A contact point that sends notifications to Slack. */ slacks?: pulumi.Input[]>; /** * A contact point that sends notifications to Microsoft Teams. */ teams?: pulumi.Input[]>; /** * A contact point that sends notifications to Telegram. */ telegrams?: pulumi.Input[]>; /** * A contact point that sends notifications to Threema. */ threemas?: pulumi.Input[]>; /** * A contact point that sends notifications to VictorOps (now known as Splunk OnCall). */ victorops?: pulumi.Input[]>; /** * A contact point that sends notifications to Cisco Webex. */ webexes?: pulumi.Input[]>; /** * A contact point that sends notifications to an arbitrary webhook, using the Prometheus webhook format defined here: https://prometheus.io/docs/alerting/latest/configuration/#webhook_config */ webhooks?: pulumi.Input[]>; /** * A contact point that sends notifications to WeCom. */ wecoms?: pulumi.Input[]>; }