MaintenanceWindowArgs

data class MaintenanceWindowArgs(val allowUnassociatedTargets: Output<Boolean>? = null, val cutoff: Output<Int>? = null, val description: Output<String>? = null, val duration: Output<Int>? = null, val enabled: Output<Boolean>? = null, val endDate: Output<String>? = null, val name: Output<String>? = null, val schedule: Output<String>? = null, val scheduleOffset: Output<Int>? = null, val scheduleTimezone: Output<String>? = null, val startDate: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<MaintenanceWindowArgs>

Provides an SSM Maintenance Window resource

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssm.MaintenanceWindow;
import com.pulumi.aws.ssm.MaintenanceWindowArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var production = new MaintenanceWindow("production", MaintenanceWindowArgs.builder()
.cutoff(1)
.duration(3)
.schedule("cron(0 16 ? * TUE *)")
.build());
}
}

Import

SSM Maintenance Windows can be imported using the maintenance window id, e.g.,

$ pulumi import aws:ssm/maintenanceWindow:MaintenanceWindow imported-window mw-0123456789

Constructors

Link copied to clipboard
constructor(allowUnassociatedTargets: Output<Boolean>? = null, cutoff: Output<Int>? = null, description: Output<String>? = null, duration: Output<Int>? = null, enabled: Output<Boolean>? = null, endDate: Output<String>? = null, name: Output<String>? = null, schedule: Output<String>? = null, scheduleOffset: Output<Int>? = null, scheduleTimezone: Output<String>? = null, startDate: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val allowUnassociatedTargets: Output<Boolean>? = null

Whether targets must be registered with the Maintenance Window before tasks can be defined for those targets.

Link copied to clipboard
val cutoff: Output<Int>? = null

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

Link copied to clipboard
val description: Output<String>? = null

A description for the maintenance window.

Link copied to clipboard
val duration: Output<Int>? = null

The duration of the Maintenance Window in hours.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Whether the maintenance window is enabled. Default: true.

Link copied to clipboard
val endDate: Output<String>? = null

Timestamp in ISO-8601 extended format when to no longer run the maintenance window.

Link copied to clipboard
val name: Output<String>? = null

The name of the maintenance window.

Link copied to clipboard
val schedule: Output<String>? = null

The schedule of the Maintenance Window in the form of a cron or rate expression.

Link copied to clipboard
val scheduleOffset: Output<Int>? = null

The number of days to wait after the date and time specified by a CRON expression before running the maintenance window.

Link copied to clipboard
val scheduleTimezone: Output<String>? = null

Timezone for schedule in Internet Assigned Numbers Authority (IANA) Time Zone Database format. For example: America/Los_Angeles, etc/UTC, or Asia/Seoul.

Link copied to clipboard
val startDate: Output<String>? = null

Timestamp in ISO-8601 extended format when to begin the maintenance window.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): MaintenanceWindowArgs