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
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const production = new aws.ssm.MaintenanceWindow("production", {
name: "maintenance-window-application",
schedule: "cron(0 16 ? * TUE *)",
duration: 3,
cutoff: 1,
});Content copied to clipboard
import pulumi
import pulumi_aws as aws
production = aws.ssm.MaintenanceWindow("production",
name="maintenance-window-application",
schedule="cron(0 16 ? * TUE *)",
duration=3,
cutoff=1)Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var production = new Aws.Ssm.MaintenanceWindow("production", new()
{
Name = "maintenance-window-application",
Schedule = "cron(0 16 ? * TUE *)",
Duration = 3,
Cutoff = 1,
});
});Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ssm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ssm.NewMaintenanceWindow(ctx, "production", &ssm.MaintenanceWindowArgs{
Name: pulumi.String("maintenance-window-application"),
Schedule: pulumi.String("cron(0 16 ? * TUE *)"),
Duration: pulumi.Int(3),
Cutoff: pulumi.Int(1),
})
if err != nil {
return err
}
return nil
})
}Content copied to clipboard
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()
.name("maintenance-window-application")
.schedule("cron(0 16 ? * TUE *)")
.duration(3)
.cutoff(1)
.build());
}
}Content copied to clipboard
resources:
production:
type: aws:ssm:MaintenanceWindow
properties:
name: maintenance-window-application
schedule: cron(0 16 ? * TUE *)
duration: 3
cutoff: 1Content 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-0123456789Content 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.