import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Manages a schedule rotation. * * ## Example Usage * * ## Import * * rootly.ScheduleRotation can be imported using the `import` command. * * ```sh * $ pulumi import rootly:index/scheduleRotation:ScheduleRotation primary a816421c-6ceb-481a-87c4-585e47451f24 * ``` * * Or using an `import` block. * * Locate the resource id in the web app, or retrieve it by listing resources through the API if it's not visible in the web app. * * HCL can be generated from the import block using the `-generate-config-out` flag. * * ```sh * pulumi preview -generate-config-out=generated.tf * ``` */ export declare class ScheduleRotation extends pulumi.CustomResource { /** * Get an existing ScheduleRotation 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?: ScheduleRotationState, opts?: pulumi.CustomResourceOptions): ScheduleRotation; /** * Returns true if the given object is an instance of ScheduleRotation. 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 ScheduleRotation; /** * Schedule rotation active all week? */ readonly activeAllWeek: pulumi.Output; /** * Value must be one of `S`, `M`, `T`, `W`, `R`, `F`, `U`. */ readonly activeDays: pulumi.Output; /** * Schedule rotation's active times. */ readonly activeTimeAttributes: pulumi.Output; /** * Value must be one of `allDay`, `sameTime`, or `custom`. The value chosen will override `activeTimeAttributes` in any `rootly.ScheduleRotationActiveDay` resources linked to this `rootly.ScheduleRotation`. */ readonly activeTimeType: pulumi.Output; /** * ISO8601 date and time when rotation ends. Shifts will only be created before this time. */ readonly endTime: pulumi.Output; /** * The name of the schedule rotation. */ readonly name: pulumi.Output; /** * Position of the schedule rotation. */ readonly position: pulumi.Output; /** * The ID of parent schedule. */ readonly scheduleId: pulumi.Output; /** * Schedule rotation members. You can only add schedule rotation members if your account has schedule nesting feature enabled. */ readonly scheduleRotationMembers: pulumi.Output; /** * handoff*time and/or handoff*day may be required, depending on schedule*rotationable*type. Please see API docs for options based on schedule*rotationable*type: https://docs.rootly.com/api-reference/schedulerotations/creates-a-schedule-rotation#response-data-attributes-schedule-rotationable-attributes */ readonly scheduleRotationableAttributes: pulumi.Output; /** * Schedule rotation type. Value must be one of `ScheduleDailyRotation`, `ScheduleWeeklyRotation`, `ScheduleBiweeklyRotation`, `ScheduleMonthlyRotation`, `ScheduleCustomRotation`. */ readonly scheduleRotationableType: pulumi.Output; /** * ISO8601 date and time when rotation starts. Shifts will only be created after this time. */ readonly startTime: pulumi.Output; /** * A valid IANA time zone name. */ readonly timeZone: pulumi.Output; /** * Create a ScheduleRotation 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: ScheduleRotationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ScheduleRotation resources. */ export interface ScheduleRotationState { /** * Schedule rotation active all week? */ activeAllWeek?: pulumi.Input; /** * Value must be one of `S`, `M`, `T`, `W`, `R`, `F`, `U`. */ activeDays?: pulumi.Input[] | undefined>; /** * Schedule rotation's active times. */ activeTimeAttributes?: pulumi.Input[] | undefined>; /** * Value must be one of `allDay`, `sameTime`, or `custom`. The value chosen will override `activeTimeAttributes` in any `rootly.ScheduleRotationActiveDay` resources linked to this `rootly.ScheduleRotation`. */ activeTimeType?: pulumi.Input; /** * ISO8601 date and time when rotation ends. Shifts will only be created before this time. */ endTime?: pulumi.Input; /** * The name of the schedule rotation. */ name?: pulumi.Input; /** * Position of the schedule rotation. */ position?: pulumi.Input; /** * The ID of parent schedule. */ scheduleId?: pulumi.Input; /** * Schedule rotation members. You can only add schedule rotation members if your account has schedule nesting feature enabled. */ scheduleRotationMembers?: pulumi.Input[] | undefined>; /** * handoff*time and/or handoff*day may be required, depending on schedule*rotationable*type. Please see API docs for options based on schedule*rotationable*type: https://docs.rootly.com/api-reference/schedulerotations/creates-a-schedule-rotation#response-data-attributes-schedule-rotationable-attributes */ scheduleRotationableAttributes?: pulumi.Input; /** * Schedule rotation type. Value must be one of `ScheduleDailyRotation`, `ScheduleWeeklyRotation`, `ScheduleBiweeklyRotation`, `ScheduleMonthlyRotation`, `ScheduleCustomRotation`. */ scheduleRotationableType?: pulumi.Input; /** * ISO8601 date and time when rotation starts. Shifts will only be created after this time. */ startTime?: pulumi.Input; /** * A valid IANA time zone name. */ timeZone?: pulumi.Input; } /** * The set of arguments for constructing a ScheduleRotation resource. */ export interface ScheduleRotationArgs { /** * Schedule rotation active all week? */ activeAllWeek?: pulumi.Input; /** * Value must be one of `S`, `M`, `T`, `W`, `R`, `F`, `U`. */ activeDays?: pulumi.Input[] | undefined>; /** * Schedule rotation's active times. */ activeTimeAttributes?: pulumi.Input[] | undefined>; /** * Value must be one of `allDay`, `sameTime`, or `custom`. The value chosen will override `activeTimeAttributes` in any `rootly.ScheduleRotationActiveDay` resources linked to this `rootly.ScheduleRotation`. */ activeTimeType?: pulumi.Input; /** * ISO8601 date and time when rotation ends. Shifts will only be created before this time. */ endTime?: pulumi.Input; /** * The name of the schedule rotation. */ name?: pulumi.Input; /** * Position of the schedule rotation. */ position?: pulumi.Input; /** * The ID of parent schedule. */ scheduleId: pulumi.Input; /** * Schedule rotation members. You can only add schedule rotation members if your account has schedule nesting feature enabled. */ scheduleRotationMembers?: pulumi.Input[] | undefined>; /** * handoff*time and/or handoff*day may be required, depending on schedule*rotationable*type. Please see API docs for options based on schedule*rotationable*type: https://docs.rootly.com/api-reference/schedulerotations/creates-a-schedule-rotation#response-data-attributes-schedule-rotationable-attributes */ scheduleRotationableAttributes: pulumi.Input; /** * Schedule rotation type. Value must be one of `ScheduleDailyRotation`, `ScheduleWeeklyRotation`, `ScheduleBiweeklyRotation`, `ScheduleMonthlyRotation`, `ScheduleCustomRotation`. */ scheduleRotationableType?: pulumi.Input; /** * ISO8601 date and time when rotation starts. Shifts will only be created after this time. */ startTime?: pulumi.Input; /** * A valid IANA time zone name. */ timeZone?: pulumi.Input; } //# sourceMappingURL=scheduleRotation.d.ts.map