Skip to content

SSMClient.update_maintenance_window

rboto-ssm==0.4.0 · Service index · Types

Model summary (excerpt): 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...

Install and imports

python -m pip install "rboto[ssm]==0.4.0"
from rboto import SSMClient
from rboto_ssm.types import (
    UpdateMaintenanceWindowOutput,
)

Signature

async def update_maintenance_window(
    *,
    window_id: str,
    name: str | None = None,
    description: str | None = None,
    start_date: str | None = None,
    end_date: str | None = None,
    schedule: str | None = None,
    schedule_timezone: str | None = None,
    schedule_offset: int | None = None,
    duration: int | None = None,
    cutoff: int | None = None,
    allow_unassociated_targets: bool | None = None,
    enabled: bool | None = None,
    replace: bool | None = None,
) -> UpdateMaintenanceWindowOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
window_id Yes The ID of the maintenance window to update.
name No The name of the maintenance window.
description No An optional description for the update request.
start_date No 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.
end_date No 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.
schedule No The schedule of the maintenance window in the form of a cron or rate expression.
schedule_timezone No 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.
schedule_offset No 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.
duration No The duration of the maintenance window in hours.
cutoff No The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling new tasks for execution.
allow_unassociated_targets No Whether targets must be registered with the maintenance window before tasks can be defined for those targets.
enabled No Whether the maintenance window is enabled.
replace No 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.

Output

UpdateMaintenanceWindowOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
window_id str | None Always present —
name str | None Always present —
description str | None Always present —
start_date str | None Always present —
end_date str | None Always present —
schedule str | None Always present —
schedule_timezone str | None Always present —
schedule_offset int | None Always present —
duration int | None Always present —
cutoff int Always present —
allow_unassociated_targets bool Always present —
enabled bool Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

UpdateMaintenanceWindowOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_ssm.exceptions:

DoesNotExistError, InternalServerError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model