import * as pulumi from "@pulumi/pulumi"; /** * * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/on_call_shifts/) * * ## Import * * ```sh * $ pulumi import grafana:index/oncallOnCallShift:OncallOnCallShift on_call_shift_name {{on_call_shift_id}} * ``` */ export declare class OncallOnCallShift extends pulumi.CustomResource { /** * Get an existing OncallOnCallShift 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?: OncallOnCallShiftState, opts?: pulumi.CustomResourceOptions): OncallOnCallShift; /** * Returns true if the given object is an instance of OncallOnCallShift. 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 OncallOnCallShift; /** * This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU */ readonly byDays: pulumi.Output; /** * This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1 */ readonly byMonthdays: pulumi.Output; /** * This parameter takes a list of months. Valid values are 1 to 12 */ readonly byMonths: pulumi.Output; /** * The duration of the event. */ readonly duration: pulumi.Output; /** * The frequency of the event. Can be daily, weekly, monthly */ readonly frequency: pulumi.Output; /** * The positive integer representing at which intervals the recurrence rule repeats. */ readonly interval: pulumi.Output; /** * The priority level. The higher the value, the higher the priority. */ readonly level: pulumi.Output; /** * The shift's name. */ readonly name: pulumi.Output; /** * The list of lists with on-call users (for rollingUsers event type) */ readonly rollingUsers: pulumi.Output; /** * The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00") */ readonly start: pulumi.Output; /** * The index of the list of users in rolling_users, from which on-call rotation starts. */ readonly startRotationFromUserIndex: pulumi.Output; /** * The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource. */ readonly teamId: pulumi.Output; /** * The shift's timezone. Overrides schedule's timezone. */ readonly timeZone: pulumi.Output; /** * The shift's type. Can be rolling*users, recurrent*event, single_event */ readonly type: pulumi.Output; /** * The list of on-call users (for single*event and recurrent*event event type). */ readonly users: pulumi.Output; /** * Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU */ readonly weekStart: pulumi.Output; /** * Create a OncallOnCallShift 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: OncallOnCallShiftArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OncallOnCallShift resources. */ export interface OncallOnCallShiftState { /** * This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU */ byDays?: pulumi.Input[]>; /** * This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1 */ byMonthdays?: pulumi.Input[]>; /** * This parameter takes a list of months. Valid values are 1 to 12 */ byMonths?: pulumi.Input[]>; /** * The duration of the event. */ duration?: pulumi.Input; /** * The frequency of the event. Can be daily, weekly, monthly */ frequency?: pulumi.Input; /** * The positive integer representing at which intervals the recurrence rule repeats. */ interval?: pulumi.Input; /** * The priority level. The higher the value, the higher the priority. */ level?: pulumi.Input; /** * The shift's name. */ name?: pulumi.Input; /** * The list of lists with on-call users (for rollingUsers event type) */ rollingUsers?: pulumi.Input[]>[]>; /** * The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00") */ start?: pulumi.Input; /** * The index of the list of users in rolling_users, from which on-call rotation starts. */ startRotationFromUserIndex?: pulumi.Input; /** * The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource. */ teamId?: pulumi.Input; /** * The shift's timezone. Overrides schedule's timezone. */ timeZone?: pulumi.Input; /** * The shift's type. Can be rolling*users, recurrent*event, single_event */ type?: pulumi.Input; /** * The list of on-call users (for single*event and recurrent*event event type). */ users?: pulumi.Input[]>; /** * Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU */ weekStart?: pulumi.Input; } /** * The set of arguments for constructing a OncallOnCallShift resource. */ export interface OncallOnCallShiftArgs { /** * This parameter takes a list of days in iCal format. Can be MO, TU, WE, TH, FR, SA, SU */ byDays?: pulumi.Input[]>; /** * This parameter takes a list of days of the month. Valid values are 1 to 31 or -31 to -1 */ byMonthdays?: pulumi.Input[]>; /** * This parameter takes a list of months. Valid values are 1 to 12 */ byMonths?: pulumi.Input[]>; /** * The duration of the event. */ duration: pulumi.Input; /** * The frequency of the event. Can be daily, weekly, monthly */ frequency?: pulumi.Input; /** * The positive integer representing at which intervals the recurrence rule repeats. */ interval?: pulumi.Input; /** * The priority level. The higher the value, the higher the priority. */ level?: pulumi.Input; /** * The shift's name. */ name?: pulumi.Input; /** * The list of lists with on-call users (for rollingUsers event type) */ rollingUsers?: pulumi.Input[]>[]>; /** * The start time of the on-call shift. This parameter takes a date format as yyyy-MM-dd'T'HH:mm:ss (for example "2020-09-05T08:00:00") */ start: pulumi.Input; /** * The index of the list of users in rolling_users, from which on-call rotation starts. */ startRotationFromUserIndex?: pulumi.Input; /** * The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the `grafana.getOncallTeam` datasource. */ teamId?: pulumi.Input; /** * The shift's timezone. Overrides schedule's timezone. */ timeZone?: pulumi.Input; /** * The shift's type. Can be rolling*users, recurrent*event, single_event */ type: pulumi.Input; /** * The list of on-call users (for single*event and recurrent*event event type). */ users?: pulumi.Input[]>; /** * Start day of the week in iCal format. Can be MO, TU, WE, TH, FR, SA, SU */ weekStart?: pulumi.Input; }