AWS CloudFormation
User Guide (Version )

AWS::SSM::MaintenanceWindow

The AWS::SSM::MaintenanceWindow resource represents general information about a Maintenance Window for AWS Systems Manager. Maintenance Windows let you define a schedule for when to perform potentially disruptive actions on your instances, such as patching an operating system (OS), updating drivers, or installing software. Each Maintenance Window has a schedule, a duration, a set of registered targets, and a set of registered tasks.

For more information, see Systems Manager Maintenance Windows in the AWS Systems Manager User Guide and CreateMaintenanceWindow in the AWS Systems Manager API Reference.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::SSM::MaintenanceWindow", "Properties" : { "AllowUnassociatedTargets" : Boolean, "Cutoff" : Integer, "Description" : String, "Duration" : Integer, "EndDate" : String, "Name" : String, "Schedule" : String, "ScheduleTimezone" : String, "StartDate" : String, "Tags" : [ Tag, ... ] } }

YAML

Type: AWS::SSM::MaintenanceWindow Properties: AllowUnassociatedTargets: Boolean Cutoff: Integer Description: String Duration: Integer EndDate: String Name: String Schedule: String ScheduleTimezone: String StartDate: String Tags: - Tag

Properties

AllowUnassociatedTargets

Enables a Maintenance Window task to run on managed instances, even if you have not registered those instances as targets. If enabled, then you must specify the unregistered instances (by instance ID) when you register a task with the Maintenance Window

Required: Yes

Type: Boolean

Update requires: No interruption

Cutoff

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

Required: Yes

Type: Integer

Minimum: 0

Maximum: 23

Update requires: No interruption

Description

A description of the maintenance window.

Required: No

Type: String

Minimum: 1

Maximum: 128

Update requires: No interruption

Duration

The duration of the maintenance window in hours.

Required: Yes

Type: Integer

Minimum: 1

Maximum: 24

Update requires: No interruption

EndDate

The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive.

Required: No

Type: String

Update requires: No interruption

Name

The name of the maintenance window.

Required: Yes

Type: String

Minimum: 3

Maximum: 128

Pattern: ^[a-zA-Z0-9_\-.]{3,128}$

Update requires: No interruption

Schedule

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

Required: Yes

Type: String

Minimum: 1

Maximum: 256

Update requires: No interruption

ScheduleTimezone

The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format.

Required: No

Type: String

Update requires: No interruption

StartDate

The date and time, in ISO-8601 Extended format, for when the Maintenance Window is scheduled to become active. StartDate allows you to delay activation of the Maintenance Window until the specified future date.

Required: No

Type: String

Update requires: No interruption

Tags

Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs). Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a Maintenance Window to identify the type of tasks it will run, the types of targets, and the environment it will run in.

Required: No

Type: List of Tag

Maximum: 1000

Update requires: No interruption

Return Values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the Maintenance Window ID, such as mw-abcde1234567890yz.

For more information about using the Ref function, see Ref.

See Also