@lbrlabs/pulumi-grafana
Version:
A Pulumi package for creating and managing grafana.
107 lines (106 loc) • 3.44 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Manages Grafana Alerting mute timings.
*
* * [Official documentation](https://grafana.com/docs/grafana/latest/alerting/manage-notifications/mute-timings/)
* * [HTTP API](https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#mute-timings)
*
* 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 myMuteTiming = new grafana.MuteTiming("myMuteTiming", {intervals: [{
* daysOfMonths: [
* "1:7",
* "-1",
* ],
* months: [
* "1:3",
* "december",
* ],
* times: [{
* end: "14:17",
* start: "04:56",
* }],
* weekdays: [
* "monday",
* "tuesday:thursday",
* ],
* years: [
* "2030",
* "2025:2026",
* ],
* }]});
* ```
*
* ## Import
*
* ```sh
* $ pulumi import grafana:index/muteTiming:MuteTiming mute_timing_name {{mute_timing_name}}
* ```
*/
export declare class MuteTiming extends pulumi.CustomResource {
/**
* Get an existing MuteTiming 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<pulumi.ID>, state?: MuteTimingState, opts?: pulumi.CustomResourceOptions): MuteTiming;
/**
* Returns true if the given object is an instance of MuteTiming. 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 MuteTiming;
/**
* The time intervals at which to mute notifications.
*/
readonly intervals: pulumi.Output<outputs.MuteTimingInterval[] | undefined>;
/**
* The name of the mute timing.
*/
readonly name: pulumi.Output<string>;
/**
* Create a MuteTiming 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?: MuteTimingArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering MuteTiming resources.
*/
export interface MuteTimingState {
/**
* The time intervals at which to mute notifications.
*/
intervals?: pulumi.Input<pulumi.Input<inputs.MuteTimingInterval>[]>;
/**
* The name of the mute timing.
*/
name?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a MuteTiming resource.
*/
export interface MuteTimingArgs {
/**
* The time intervals at which to mute notifications.
*/
intervals?: pulumi.Input<pulumi.Input<inputs.MuteTimingInterval>[]>;
/**
* The name of the mute timing.
*/
name?: pulumi.Input<string>;
}