Class CfnMaintenanceWindow
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ssm.CfnMaintenanceWindow
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IMaintenanceWindowRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:15.605Z")
@Stability(Stable)
public class CfnMaintenanceWindow
extends CfnResource
implements IInspectable, IMaintenanceWindowRef, ITaggable
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 .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ssm.*;
CfnMaintenanceWindow cfnMaintenanceWindow = CfnMaintenanceWindow.Builder.create(this, "MyCfnMaintenanceWindow")
.allowUnassociatedTargets(false)
.cutoff(123)
.duration(123)
.name("name")
.schedule("schedule")
// the properties below are optional
.description("description")
.endDate("endDate")
.scheduleOffset(123)
.scheduleTimezone("scheduleTimezone")
.startDate("startDate")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ssm.IMaintenanceWindowRef
IMaintenanceWindowRef.Jsii$Default, IMaintenanceWindowRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnMaintenanceWindow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnMaintenanceWindow(software.amazon.jsii.JsiiObjectRef objRef) CfnMaintenanceWindow(software.constructs.Construct scope, String id, CfnMaintenanceWindowProps props) -
Method Summary
Modifier and TypeMethodDescriptionEnables a maintenance window task to run on managed instances, even if you have not registered those instances as targets.The number of hours before the end of the maintenance window that AWS Systems Manager stops scheduling new tasks for execution.A description of the maintenance window.The duration of the maintenance window in hours.The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive.A reference to a MaintenanceWindow resource.getName()The name of the maintenance window.The schedule of the maintenance window in the form of a cron or rate expression.The number of days to wait to run a maintenance window after the scheduled cron expression date and time.The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format.The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active.getTags()Tag Manager which manages the tags for this resource.Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs).voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidEnables a maintenance window task to run on managed instances, even if you have not registered those instances as targets.voidEnables a maintenance window task to run on managed instances, even if you have not registered those instances as targets.voidThe number of hours before the end of the maintenance window that AWS Systems Manager stops scheduling new tasks for execution.voidsetDescription(String value) A description of the maintenance window.voidsetDuration(Number value) The duration of the maintenance window in hours.voidsetEndDate(String value) The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive.voidThe name of the maintenance window.voidsetSchedule(String value) The schedule of the maintenance window in the form of a cron or rate expression.voidsetScheduleOffset(Number value) The number of days to wait to run a maintenance window after the scheduled cron expression date and time.voidsetScheduleTimezone(String value) The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format.voidsetStartDate(String value) The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active.voidsetTagsRaw(List<CfnTag> value) Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs).Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnMaintenanceWindow
protected CfnMaintenanceWindow(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMaintenanceWindow
protected CfnMaintenanceWindow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMaintenanceWindow
@Stability(Stable) public CfnMaintenanceWindow(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnMaintenanceWindowProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getMaintenanceWindowRef
A reference to a MaintenanceWindow resource.- Specified by:
getMaintenanceWindowRefin interfaceIMaintenanceWindowRef
-
getTags
Tag Manager which manages the tags for this resource. -
getAllowUnassociatedTargets
Enables a maintenance window task to run on managed instances, even if you have not registered those instances as targets.Returns union: either
BooleanorIResolvable -
setAllowUnassociatedTargets
Enables a maintenance window task to run on managed instances, even if you have not registered those instances as targets. -
setAllowUnassociatedTargets
Enables a maintenance window task to run on managed instances, even if you have not registered those instances as targets. -
getCutoff
The number of hours before the end of the maintenance window that AWS Systems Manager stops scheduling new tasks for execution. -
setCutoff
The number of hours before the end of the maintenance window that AWS Systems Manager stops scheduling new tasks for execution. -
getDuration
The duration of the maintenance window in hours. -
setDuration
The duration of the maintenance window in hours. -
getName
The name of the maintenance window. -
setName
The name of the maintenance window. -
getSchedule
The schedule of the maintenance window in the form of a cron or rate expression. -
setSchedule
The schedule of the maintenance window in the form of a cron or rate expression. -
getDescription
A description of the maintenance window. -
setDescription
A description of the maintenance window. -
getEndDate
The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. -
setEndDate
The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive. -
getScheduleOffset
The number of days to wait to run a maintenance window after the scheduled cron expression date and time. -
setScheduleOffset
The number of days to wait to run a maintenance window after the scheduled cron expression date and time. -
getScheduleTimezone
The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. -
setScheduleTimezone
The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format. -
getStartDate
The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. -
setStartDate
The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active. -
getTagsRaw
Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs). -
setTagsRaw
Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs).
-