Update Maintenance Window
| ssm_update_maintenance_window | R Documentation |
Updates an existing maintenance window¶
Description¶
Updates an existing maintenance window. Only specified parameters are modified.
The value you specify for Duration determines the specific end time
for the maintenance window based on the time it begins. No maintenance
window tasks are permitted to start after the resulting endtime minus
the number of hours you specify for Cutoff. For example, if the
maintenance window starts at 3 PM, the duration is three hours, and the
value you specify for Cutoff is one hour, no maintenance window tasks
can start after 5 PM.
Usage¶
ssm_update_maintenance_window(WindowId, Name, Description, StartDate,
EndDate, Schedule, ScheduleTimezone, ScheduleOffset, Duration, Cutoff,
AllowUnassociatedTargets, Enabled, Replace)
Arguments¶
WindowId[required] The ID of the maintenance window to update.
NameThe name of the maintenance window.
DescriptionAn optional description for the update request.
StartDateThe date and time, in ISO-8601 Extended format, for when you want the maintenance window to become active.
StartDateallows you to delay activation of the maintenance window until the specified future date.When using a rate schedule, if you provide a start date that occurs in the past, the current date and time are used as the start date.
EndDateThe date and time, in ISO-8601 Extended format, for when you want the maintenance window to become inactive.
EndDateallows you to set a date and time in the future when the maintenance window will no longer run.ScheduleThe schedule of the maintenance window in the form of a cron or rate expression.
ScheduleTimezoneThe time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or "Asia/Seoul". For more information, see the Time Zone Database on the IANA website.
ScheduleOffsetThe number of days to wait after the date and time specified by a cron expression before running the maintenance window.
For example, the following cron expression schedules a maintenance window to run the third Tuesday of every month at 11:30 PM.
cron(30 23 ? * TUE#3 *)If the schedule offset is
2, the maintenance window won't run until two days later.DurationThe duration of the maintenance window in hours.
CutoffThe number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.
AllowUnassociatedTargetsWhether targets must be registered with the maintenance window before tasks can be defined for those targets.
EnabledWhether the maintenance window is enabled.
ReplaceIf
True, then all fields that are required by thecreate_maintenance_windowoperation are also required for this API request. Optional fields that aren't specified are set to null.
Value¶
A list with the following syntax:
list(
WindowId = "string",
Name = "string",
Description = "string",
StartDate = "string",
EndDate = "string",
Schedule = "string",
ScheduleTimezone = "string",
ScheduleOffset = 123,
Duration = 123,
Cutoff = 123,
AllowUnassociatedTargets = TRUE|FALSE,
Enabled = TRUE|FALSE
)
Request syntax¶
svc$update_maintenance_window(
WindowId = "string",
Name = "string",
Description = "string",
StartDate = "string",
EndDate = "string",
Schedule = "string",
ScheduleTimezone = "string",
ScheduleOffset = 123,
Duration = 123,
Cutoff = 123,
AllowUnassociatedTargets = TRUE|FALSE,
Enabled = TRUE|FALSE,
Replace = TRUE|FALSE
)