Skip to content

/AWS1/CL_SSM=>UPDATEMAINTENANCEWINDOW()

About UpdateMaintenanceWindow

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.

Method Signature

IMPORTING

Required arguments:

IV_WINDOWID TYPE /AWS1/SSMMAINTENANCEWINDOWID /AWS1/SSMMAINTENANCEWINDOWID

The ID of the maintenance window to update.

Optional arguments:

IV_NAME TYPE /AWS1/SSMMAINTENANCEWINDOWNAME /AWS1/SSMMAINTENANCEWINDOWNAME

The name of the maintenance window.

IV_DESCRIPTION TYPE /AWS1/SSMMAINTENANCEWINDOWDESC /AWS1/SSMMAINTENANCEWINDOWDESC

An optional description for the update request.

IV_STARTDATE TYPE /AWS1/SSMMAINTENANCEWINDOWST00 /AWS1/SSMMAINTENANCEWINDOWST00

The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become active. StartDate allows 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.

IV_ENDDATE TYPE /AWS1/SSMMAINTENANCEWINDOWST00 /AWS1/SSMMAINTENANCEWINDOWST00

The date and time, in ISO-8601 Extended format, for when you want the maintenance window to become inactive. EndDate allows you to set a date and time in the future when the maintenance window will no longer run.

IV_SCHEDULE TYPE /AWS1/SSMMAINTENANCEWINDOWSCHD /AWS1/SSMMAINTENANCEWINDOWSCHD

The schedule of the maintenance window in the form of a cron or rate expression.

IV_SCHEDULETIMEZONE TYPE /AWS1/SSMMAINTENANCEWINDOWTI00 /AWS1/SSMMAINTENANCEWINDOWTI00

The 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.

IV_SCHEDULEOFFSET TYPE /AWS1/SSMMAINTENANCEWINDOWOFF /AWS1/SSMMAINTENANCEWINDOWOFF

The 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.

IV_DURATION TYPE /AWS1/SSMMAINTENANCEWINDOWDU00 /AWS1/SSMMAINTENANCEWINDOWDU00

The duration of the maintenance window in hours.

IV_CUTOFF TYPE /AWS1/SSMMAINTENANCEWINDOWCU00 /AWS1/SSMMAINTENANCEWINDOWCU00

The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.

IV_ALLOWUNASSOCIATEDTARGETS TYPE /AWS1/SSMMAINTENANCEWINDOWAL00 /AWS1/SSMMAINTENANCEWINDOWAL00

Whether targets must be registered with the maintenance window before tasks can be defined for those targets.

IV_ENABLED TYPE /AWS1/SSMMAINTENANCEWINDOWENBD /AWS1/SSMMAINTENANCEWINDOWENBD

Whether the maintenance window is enabled.

IV_REPLACE TYPE /AWS1/SSMBOOLEAN /AWS1/SSMBOOLEAN

If True, then all fields that are required by the CreateMaintenanceWindow operation are also required for this API request. Optional fields that aren't specified are set to null.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SSMUPMAINTENANCEWIN01 /AWS1/CL_SSMUPMAINTENANCEWIN01