@lbrlabs/pulumi-grafana
Version:
A Pulumi package for creating and managing grafana.
49 lines • 1.76 kB
JavaScript
;
// *** 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/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.getOncallSchedule({
* name: "example_schedule",
* });
* ```
*/
function getOncallSchedule(args, opts) {
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/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.getOncallSchedule({
* name: "example_schedule",
* });
* ```
*/
function getOncallScheduleOutput(args, opts) {
return pulumi.output(args).apply((a) => getOncallSchedule(a, opts));
}
exports.getOncallScheduleOutput = getOncallScheduleOutput;
//# sourceMappingURL=getOncallSchedule.js.map