published on Monday, Sep 14, 2026 by Matthias Hamacher
published on Monday, Sep 14, 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" {
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:
- End
Time string - End of the window,
HH:MM. - Monitor
Id int - 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 intMonth - Day for a monthly schedule, 1 to 31.
- Days
Of List<int>Week - Days for a weekly schedule, 0 (Sunday) to 6 (Saturday).
- End
Time string - End of the window,
HH:MM. - Monitor
Id int - 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 intMonth - Day for a monthly schedule, 1 to 31.
- Days
Of []intWeek - 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_ numbermonth - Day for a monthly schedule, 1 to 31.
- days_
of_ list(number)week - Days for a weekly schedule, 0 (Sunday) to 6 (Saturday).
- end
Time String - End of the window,
HH:MM. - monitor
Id Integer - 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 IntegerMonth - Day for a monthly schedule, 1 to 31.
- days
Of List<Integer>Week - 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 numberMonth - Day for a monthly schedule, 1 to 31.
- days
Of number[]Week - 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_ intmonth - Day for a monthly schedule, 1 to 31.
- days_
of_ Sequence[int]week - 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 NumberMonth - Day for a monthly schedule, 1 to 31.
- days
Of List<Number>Week - 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:
- Created
At string - When the schedule was created, as an ISO 8601 timestamp.
- Human
Readable stringSchedule - Plain-English rendering of the recurrence.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Generated stringUntil - Date through which concrete maintenance periods have been generated (ISO 8601).
- Recurring
Maintenance intPeriod Id - Numeric Oh Dear recurring maintenance period ID.
- Updated
At 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 stringSchedule - Plain-English rendering of the recurrence.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Generated stringUntil - Date through which concrete maintenance periods have been generated (ISO 8601).
- Recurring
Maintenance intPeriod Id - Numeric Oh Dear recurring maintenance period ID.
- Updated
At 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_ stringschedule - Plain-English rendering of the recurrence.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
generated_ stringuntil - Date through which concrete maintenance periods have been generated (ISO 8601).
- recurring_
maintenance_ numberperiod_ id - Numeric Oh Dear recurring maintenance period ID.
- updated_
at 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 StringSchedule - Plain-English rendering of the recurrence.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Generated StringUntil - Date through which concrete maintenance periods have been generated (ISO 8601).
- recurring
Maintenance IntegerPeriod Id - Numeric Oh Dear recurring maintenance period ID.
- updated
At 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 stringSchedule - Plain-English rendering of the recurrence.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Generated stringUntil - Date through which concrete maintenance periods have been generated (ISO 8601).
- recurring
Maintenance numberPeriod Id - Numeric Oh Dear recurring maintenance period ID.
- updated
At 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_ strschedule - Plain-English rendering of the recurrence.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
generated_ struntil - Date through which concrete maintenance periods have been generated (ISO 8601).
- recurring_
maintenance_ intperiod_ id - Numeric Oh Dear recurring maintenance period ID.
- updated_
at str - 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 StringSchedule - Plain-English rendering of the recurrence.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Generated StringUntil - Date through which concrete maintenance periods have been generated (ISO 8601).
- recurring
Maintenance NumberPeriod Id - Numeric Oh Dear recurring maintenance period ID.
- updated
At String - When the schedule was last updated, as an ISO 8601 timestamp.
Look up Existing RecurringMaintenancePeriod Resource
Get an existing RecurringMaintenancePeriod resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): RecurringMaintenancePeriod@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> RecurringMaintenancePeriodfunc GetRecurringMaintenancePeriod(ctx *Context, name string, id IDInput, state *RecurringMaintenancePeriodState, opts ...ResourceOption) (*RecurringMaintenancePeriod, error)public static RecurringMaintenancePeriod Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static RecurringMaintenancePeriod get(String name, Output<String> id, CustomResourceOptions options)resources: existingRecurringMaintenancePeriod: type: ohdear:RecurringMaintenancePeriod get: id: ${id}import {
to = ohdear_recurring_maintenance_period.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state RecurringMaintenancePeriodState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- ohdear matthiashamacher/pulumi-ohdear
- License
- Apache-2.0
published on Monday, Sep 14, 2026 by Matthias Hamacher