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:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:56:06.476Z")
@Stability(Stable)
public class CfnMaintenanceWindow
extends CfnResource
implements IInspectable, 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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnMaintenanceWindow
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnMaintenanceWindow
(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.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).void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
Enables a maintenance window task to run on managed instances, even if you have not registered those instances as targets.void
Enables a maintenance window task to run on managed instances, even if you have not registered those instances as targets.void
The number of hours before the end of the maintenance window that AWS Systems Manager stops scheduling new tasks for execution.void
setDescription
(String value) A description of the maintenance window.void
setDuration
(Number value) The duration of the maintenance window in hours.void
setEndDate
(String value) The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive.void
The name of the maintenance window.void
setSchedule
(String value) The schedule of the maintenance window in the form of a cron or rate expression.void
setScheduleOffset
(Number value) The number of days to wait to run a maintenance window after the scheduled cron expression date and time.void
setScheduleTimezone
(String value) The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format.void
setStartDate
(String value) The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active.void
setTagsRaw
(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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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. -
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).
-