Maintenance Window Args
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());
}
}
Content copied to clipboard
Import
Using pulumi import
, import SSM Maintenance Windows using the maintenance window id
. For example:
$ pulumi import aws:ssm/maintenanceWindow:MaintenanceWindow imported-window mw-0123456789
Content copied to clipboard
Constructors
Link copied to clipboard
fun MaintenanceWindowArgs(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)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Timestamp in ISO-8601 extended format when to no longer run the maintenance window.
Link copied to clipboard
The schedule of the Maintenance Window in the form of a cron or rate expression.
Link copied to clipboard
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
Timestamp in ISO-8601 extended format when to begin the maintenance window.