UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

56 lines 2.55 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getOncallScheduleOutput = exports.getOncallSchedule = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * * [Official documentation](https://grafana.com/docs/oncall/latest/manage/on-call-schedules/) * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/schedules/) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumi/grafana"; * * const schedule = grafana.onCall.getSchedule({ * name: "example_schedule", * }); * ``` */ /** @deprecated grafana.index/getoncallschedule.getOncallSchedule has been deprecated in favor of grafana.oncall/getschedule.getSchedule */ function getOncallSchedule(args, opts) { pulumi.log.warn("getOncallSchedule is deprecated: grafana.index/getoncallschedule.getOncallSchedule has been deprecated in favor of grafana.oncall/getschedule.getSchedule"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("grafana:index/getOncallSchedule:getOncallSchedule", { "name": args.name, }, opts); } exports.getOncallSchedule = getOncallSchedule; /** * * [Official documentation](https://grafana.com/docs/oncall/latest/manage/on-call-schedules/) * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/schedules/) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumi/grafana"; * * const schedule = grafana.onCall.getSchedule({ * name: "example_schedule", * }); * ``` */ /** @deprecated grafana.index/getoncallschedule.getOncallSchedule has been deprecated in favor of grafana.oncall/getschedule.getSchedule */ function getOncallScheduleOutput(args, opts) { pulumi.log.warn("getOncallSchedule is deprecated: grafana.index/getoncallschedule.getOncallSchedule has been deprecated in favor of grafana.oncall/getschedule.getSchedule"); opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("grafana:index/getOncallSchedule:getOncallSchedule", { "name": args.name, }, opts); } exports.getOncallScheduleOutput = getOncallScheduleOutput; //# sourceMappingURL=getOncallSchedule.js.map