MaintenanceWindow

class MaintenanceWindow : KotlinCustomResource

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

Properties

Link copied to clipboard

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>

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>?

A description for the maintenance window.

Link copied to clipboard
val duration: Output<Int>

The duration of the Maintenance Window in hours.

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

Whether the maintenance window is enabled. Default: true.

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

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the maintenance window.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val schedule: Output<String>

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

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

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>?

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>?

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

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

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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>