Class CfnMaintenanceWindowMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ssm.CfnMaintenanceWindowMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMaintenanceWindowMixinProps>
- Enclosing interface:
CfnMaintenanceWindowMixinProps
@Stability(Stable)
public static final class CfnMaintenanceWindowMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMaintenanceWindowMixinProps>
A builder for
CfnMaintenanceWindowMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowUnassociatedTargets(Boolean allowUnassociatedTargets) Sets the value ofCfnMaintenanceWindowMixinProps.getAllowUnassociatedTargets()allowUnassociatedTargets(IResolvable allowUnassociatedTargets) Sets the value ofCfnMaintenanceWindowMixinProps.getAllowUnassociatedTargets()build()Builds the configured instance.Sets the value ofCfnMaintenanceWindowMixinProps.getCutoff()description(String description) Sets the value ofCfnMaintenanceWindowMixinProps.getDescription()Sets the value ofCfnMaintenanceWindowMixinProps.getDuration()Sets the value ofCfnMaintenanceWindowMixinProps.getEndDate()Sets the value ofCfnMaintenanceWindowMixinProps.getName()Sets the value ofCfnMaintenanceWindowMixinProps.getSchedule()scheduleOffset(Number scheduleOffset) Sets the value ofCfnMaintenanceWindowMixinProps.getScheduleOffset()scheduleTimezone(String scheduleTimezone) Sets the value ofCfnMaintenanceWindowMixinProps.getScheduleTimezone()Sets the value ofCfnMaintenanceWindowMixinProps.getStartDate()Sets the value ofCfnMaintenanceWindowMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowUnassociatedTargets
@Stability(Stable) public CfnMaintenanceWindowMixinProps.Builder allowUnassociatedTargets(Boolean allowUnassociatedTargets) Sets the value ofCfnMaintenanceWindowMixinProps.getAllowUnassociatedTargets()- Parameters:
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.- Returns:
this
-
allowUnassociatedTargets
@Stability(Stable) public CfnMaintenanceWindowMixinProps.Builder allowUnassociatedTargets(IResolvable allowUnassociatedTargets) Sets the value ofCfnMaintenanceWindowMixinProps.getAllowUnassociatedTargets()- Parameters:
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.- Returns:
this
-
cutoff
Sets the value ofCfnMaintenanceWindowMixinProps.getCutoff()- Parameters:
cutoff- The number of hours before the end of the maintenance window that AWS Systems Manager stops scheduling new tasks for execution.- Returns:
this
-
description
Sets the value ofCfnMaintenanceWindowMixinProps.getDescription()- Parameters:
description- A description of the maintenance window.- Returns:
this
-
duration
Sets the value ofCfnMaintenanceWindowMixinProps.getDuration()- Parameters:
duration- The duration of the maintenance window in hours.- Returns:
this
-
endDate
Sets the value ofCfnMaintenanceWindowMixinProps.getEndDate()- Parameters:
endDate- The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become inactive.- Returns:
this
-
name
Sets the value ofCfnMaintenanceWindowMixinProps.getName()- Parameters:
name- The name of the maintenance window.- Returns:
this
-
schedule
Sets the value ofCfnMaintenanceWindowMixinProps.getSchedule()- Parameters:
schedule- The schedule of the maintenance window in the form of a cron or rate expression.- Returns:
this
-
scheduleOffset
@Stability(Stable) public CfnMaintenanceWindowMixinProps.Builder scheduleOffset(Number scheduleOffset) Sets the value ofCfnMaintenanceWindowMixinProps.getScheduleOffset()- Parameters:
scheduleOffset- The number of days to wait to run a maintenance window after the scheduled cron expression date and time.- Returns:
this
-
scheduleTimezone
@Stability(Stable) public CfnMaintenanceWindowMixinProps.Builder scheduleTimezone(String scheduleTimezone) Sets the value ofCfnMaintenanceWindowMixinProps.getScheduleTimezone()- Parameters:
scheduleTimezone- The time zone that the scheduled maintenance window executions are based on, in Internet Assigned Numbers Authority (IANA) format.- Returns:
this
-
startDate
Sets the value ofCfnMaintenanceWindowMixinProps.getStartDate()- Parameters:
startDate- The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled to become active.StartDateallows you to delay activation of the maintenance window until the specified future date.- Returns:
this
-
tags
Sets the value ofCfnMaintenanceWindowMixinProps.getTags()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMaintenanceWindowMixinProps>- Returns:
- a new instance of
CfnMaintenanceWindowMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-