1. Registry
  2. Packages
  3. Oh Dear
  4. API Docs
  5. RecurringMaintenancePeriod
Viewing docs for Oh Dear v1.0.0
published on Tuesday, Sep 1, 2026 by Matthias Hamacher
ohdear logo
Viewing docs for Oh Dear v1.0.0
published on Tuesday, Sep 1, 2026 by Matthias Hamacher

    An Oh Dear recurring maintenance schedule that generates maintenance periods on a cadence.

    Create RecurringMaintenancePeriod Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RecurringMaintenancePeriod(name: string, args: RecurringMaintenancePeriodArgs, opts?: CustomResourceOptions);
    @overload
    def RecurringMaintenancePeriod(resource_name: str,
                                   args: RecurringMaintenancePeriodArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def RecurringMaintenancePeriod(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   end_time: Optional[str] = None,
                                   monitor_id: Optional[int] = None,
                                   name: Optional[str] = None,
                                   recurrence_type: Optional[str] = None,
                                   start_time: Optional[str] = None,
                                   day_of_month: Optional[int] = None,
                                   days_of_week: Optional[Sequence[int]] = None)
    func NewRecurringMaintenancePeriod(ctx *Context, name string, args RecurringMaintenancePeriodArgs, opts ...ResourceOption) (*RecurringMaintenancePeriod, error)
    public RecurringMaintenancePeriod(string name, RecurringMaintenancePeriodArgs args, CustomResourceOptions? opts = null)
    public RecurringMaintenancePeriod(String name, RecurringMaintenancePeriodArgs args)
    public RecurringMaintenancePeriod(String name, RecurringMaintenancePeriodArgs args, CustomResourceOptions options)
    
    type: ohdear:RecurringMaintenancePeriod
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "ohdear_recurring_maintenance_period" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RecurringMaintenancePeriodArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RecurringMaintenancePeriodArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RecurringMaintenancePeriodArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RecurringMaintenancePeriodArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RecurringMaintenancePeriodArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var recurringMaintenancePeriodResource = new Ohdear.RecurringMaintenancePeriod("recurringMaintenancePeriodResource", new()
    {
        EndTime = "string",
        MonitorId = 0,
        Name = "string",
        RecurrenceType = "string",
        StartTime = "string",
        DayOfMonth = 0,
        DaysOfWeek = new[]
        {
            0,
        },
    });
    
    example, err := ohdear.NewRecurringMaintenancePeriod(ctx, "recurringMaintenancePeriodResource", &ohdear.RecurringMaintenancePeriodArgs{
    	EndTime:        pulumi.String("string"),
    	MonitorId:      pulumi.Int(0),
    	Name:           pulumi.String("string"),
    	RecurrenceType: pulumi.String("string"),
    	StartTime:      pulumi.String("string"),
    	DayOfMonth:     pulumi.Int(0),
    	DaysOfWeek: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    })
    
    resource "ohdear_recurring_maintenance_period" "recurringMaintenancePeriodResource" {
      pulumi {
        replace_on_changes = [monitor_id]
      }
      lifecycle {
        create_before_destroy = true
      }
      end_time        = "string"
      monitor_id      = 0
      name            = "string"
      recurrence_type = "string"
      start_time      = "string"
      day_of_month    = 0
      days_of_week    = [0]
    }
    
    var recurringMaintenancePeriodResource = new RecurringMaintenancePeriod("recurringMaintenancePeriodResource", RecurringMaintenancePeriodArgs.builder()
        .endTime("string")
        .monitorId(0)
        .name("string")
        .recurrenceType("string")
        .startTime("string")
        .dayOfMonth(0)
        .daysOfWeek(0)
        .build());
    
    recurring_maintenance_period_resource = ohdear.RecurringMaintenancePeriod("recurringMaintenancePeriodResource",
        end_time="string",
        monitor_id=0,
        name="string",
        recurrence_type="string",
        start_time="string",
        day_of_month=0,
        days_of_week=[0])
    
    const recurringMaintenancePeriodResource = new ohdear.RecurringMaintenancePeriod("recurringMaintenancePeriodResource", {
        endTime: "string",
        monitorId: 0,
        name: "string",
        recurrenceType: "string",
        startTime: "string",
        dayOfMonth: 0,
        daysOfWeek: [0],
    });
    
    type: ohdear:RecurringMaintenancePeriod
    properties:
        dayOfMonth: 0
        daysOfWeek:
            - 0
        endTime: string
        monitorId: 0
        name: string
        recurrenceType: string
        startTime: string
    

    RecurringMaintenancePeriod Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RecurringMaintenancePeriod resource accepts the following input properties:

    EndTime string
    End of the window, HH:MM.
    MonitorId int
    Monitor this schedule applies to. Accepted only on create; immutable afterwards.
    Name string
    Display name for the recurring schedule.
    RecurrenceType string
    One of "daily", "weekly" or "monthly".
    StartTime string
    Start of the window, HH:MM.
    DayOfMonth int
    Day for a monthly schedule, 1 to 31.
    DaysOfWeek List<int>
    Days for a weekly schedule, 0 (Sunday) to 6 (Saturday).
    EndTime string
    End of the window, HH:MM.
    MonitorId int
    Monitor this schedule applies to. Accepted only on create; immutable afterwards.
    Name string
    Display name for the recurring schedule.
    RecurrenceType string
    One of "daily", "weekly" or "monthly".
    StartTime string
    Start of the window, HH:MM.
    DayOfMonth int
    Day for a monthly schedule, 1 to 31.
    DaysOfWeek []int
    Days for a weekly schedule, 0 (Sunday) to 6 (Saturday).
    end_time string
    End of the window, HH:MM.
    monitor_id number
    Monitor this schedule applies to. Accepted only on create; immutable afterwards.
    name string
    Display name for the recurring schedule.
    recurrence_type string
    One of "daily", "weekly" or "monthly".
    start_time string
    Start of the window, HH:MM.
    day_of_month number
    Day for a monthly schedule, 1 to 31.
    days_of_week list(number)
    Days for a weekly schedule, 0 (Sunday) to 6 (Saturday).
    endTime String
    End of the window, HH:MM.
    monitorId Integer
    Monitor this schedule applies to. Accepted only on create; immutable afterwards.
    name String
    Display name for the recurring schedule.
    recurrenceType String
    One of "daily", "weekly" or "monthly".
    startTime String
    Start of the window, HH:MM.
    dayOfMonth Integer
    Day for a monthly schedule, 1 to 31.
    daysOfWeek List<Integer>
    Days for a weekly schedule, 0 (Sunday) to 6 (Saturday).
    endTime string
    End of the window, HH:MM.
    monitorId number
    Monitor this schedule applies to. Accepted only on create; immutable afterwards.
    name string
    Display name for the recurring schedule.
    recurrenceType string
    One of "daily", "weekly" or "monthly".
    startTime string
    Start of the window, HH:MM.
    dayOfMonth number
    Day for a monthly schedule, 1 to 31.
    daysOfWeek number[]
    Days for a weekly schedule, 0 (Sunday) to 6 (Saturday).
    end_time str
    End of the window, HH:MM.
    monitor_id int
    Monitor this schedule applies to. Accepted only on create; immutable afterwards.
    name str
    Display name for the recurring schedule.
    recurrence_type str
    One of "daily", "weekly" or "monthly".
    start_time str
    Start of the window, HH:MM.
    day_of_month int
    Day for a monthly schedule, 1 to 31.
    days_of_week Sequence[int]
    Days for a weekly schedule, 0 (Sunday) to 6 (Saturday).
    endTime String
    End of the window, HH:MM.
    monitorId Number
    Monitor this schedule applies to. Accepted only on create; immutable afterwards.
    name String
    Display name for the recurring schedule.
    recurrenceType String
    One of "daily", "weekly" or "monthly".
    startTime String
    Start of the window, HH:MM.
    dayOfMonth Number
    Day for a monthly schedule, 1 to 31.
    daysOfWeek List<Number>
    Days for a weekly schedule, 0 (Sunday) to 6 (Saturday).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RecurringMaintenancePeriod resource produces the following output properties:

    CreatedAt string
    When the schedule was created, as an ISO 8601 timestamp.
    HumanReadableSchedule string
    Plain-English rendering of the recurrence.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastGeneratedUntil string
    Date through which concrete maintenance periods have been generated (ISO 8601).
    RecurringMaintenancePeriodId int
    Numeric Oh Dear recurring maintenance period ID.
    UpdatedAt string
    When the schedule was last updated, as an ISO 8601 timestamp.
    CreatedAt string
    When the schedule was created, as an ISO 8601 timestamp.
    HumanReadableSchedule string
    Plain-English rendering of the recurrence.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastGeneratedUntil string
    Date through which concrete maintenance periods have been generated (ISO 8601).
    RecurringMaintenancePeriodId int
    Numeric Oh Dear recurring maintenance period ID.
    UpdatedAt string
    When the schedule was last updated, as an ISO 8601 timestamp.
    created_at string
    When the schedule was created, as an ISO 8601 timestamp.
    human_readable_schedule string
    Plain-English rendering of the recurrence.
    id string
    The provider-assigned unique ID for this managed resource.
    last_generated_until string
    Date through which concrete maintenance periods have been generated (ISO 8601).
    recurring_maintenance_period_id number
    Numeric Oh Dear recurring maintenance period ID.
    updated_at string
    When the schedule was last updated, as an ISO 8601 timestamp.
    createdAt String
    When the schedule was created, as an ISO 8601 timestamp.
    humanReadableSchedule String
    Plain-English rendering of the recurrence.
    id String
    The provider-assigned unique ID for this managed resource.
    lastGeneratedUntil String
    Date through which concrete maintenance periods have been generated (ISO 8601).
    recurringMaintenancePeriodId Integer
    Numeric Oh Dear recurring maintenance period ID.
    updatedAt String
    When the schedule was last updated, as an ISO 8601 timestamp.
    createdAt string
    When the schedule was created, as an ISO 8601 timestamp.
    humanReadableSchedule string
    Plain-English rendering of the recurrence.
    id string
    The provider-assigned unique ID for this managed resource.
    lastGeneratedUntil string
    Date through which concrete maintenance periods have been generated (ISO 8601).
    recurringMaintenancePeriodId number
    Numeric Oh Dear recurring maintenance period ID.
    updatedAt string
    When the schedule was last updated, as an ISO 8601 timestamp.
    created_at str
    When the schedule was created, as an ISO 8601 timestamp.
    human_readable_schedule str
    Plain-English rendering of the recurrence.
    id str
    The provider-assigned unique ID for this managed resource.
    last_generated_until str
    Date through which concrete maintenance periods have been generated (ISO 8601).
    recurring_maintenance_period_id int
    Numeric Oh Dear recurring maintenance period ID.
    updated_at str
    When the schedule was last updated, as an ISO 8601 timestamp.
    createdAt String
    When the schedule was created, as an ISO 8601 timestamp.
    humanReadableSchedule String
    Plain-English rendering of the recurrence.
    id String
    The provider-assigned unique ID for this managed resource.
    lastGeneratedUntil String
    Date through which concrete maintenance periods have been generated (ISO 8601).
    recurringMaintenancePeriodId Number
    Numeric Oh Dear recurring maintenance period ID.
    updatedAt String
    When the schedule was last updated, as an ISO 8601 timestamp.

    Package Details

    Repository
    ohdear matthiashamacher/pulumi-ohdear
    License
    Apache-2.0
    ohdear logo
    Viewing docs for Oh Dear v1.0.0
    published on Tuesday, Sep 1, 2026 by Matthias Hamacher

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial