Class MaintenanceWindow
A maintenance window is used to temporarily disable one or more services for a set period of time. No incidents will be triggered and no notifications will be received while a service is disabled by a maintenance window.
Maintenance windows are specified to start at a certain time and end after they have begun. Once started, a maintenance window cannot be deleted; it can only be ended immediately to re-enable the service.
Example Usage
using Pulumi;
using Pagerduty = Pulumi.Pagerduty;
class MyStack : Stack
{
public MyStack()
{
var example = new Pagerduty.MaintenanceWindow("example", new Pagerduty.MaintenanceWindowArgs
{
EndTime = "2015-11-09T22:00:00-05:00",
Services =
{
pagerduty_service.Example.Id,
},
StartTime = "2015-11-09T20:00:00-05:00",
});
}
}
Inheritance
Inherited Members
Namespace: Pulumi.Pagerduty
Assembly: Pulumi.Pagerduty.dll
Syntax
public class MaintenanceWindow : CustomResource
Constructors
View SourceMaintenanceWindow(String, MaintenanceWindowArgs, CustomResourceOptions)
Create a MaintenanceWindow resource with the given unique name, arguments, and options.
Declaration
public MaintenanceWindow(string name, MaintenanceWindowArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| MaintenanceWindowArgs | args | The arguments used to populate this resource's properties |
| Pulumi.CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDescription
A description for the maintenance window.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
EndTime
The maintenance window's end time. This is when the services will start creating incidents again. This date must be in the future and after the start_time.
Declaration
public Output<string> EndTime { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Services
A list of service IDs to include in the maintenance window.
Declaration
public Output<ImmutableArray<string>> Services { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.Collections.Immutable.ImmutableArray<System.String>> |
StartTime
The maintenance window's start time. This is when the services will stop creating incidents. If this date is in the past, it will be updated to be the current time.
Declaration
public Output<string> StartTime { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Methods
View SourceGet(String, Input<String>, MaintenanceWindowState, CustomResourceOptions)
Get an existing MaintenanceWindow resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static MaintenanceWindow Get(string name, Input<string> id, MaintenanceWindowState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Pulumi.Input<System.String> | id | The unique provider ID of the resource to lookup. |
| MaintenanceWindowState | state | Any extra arguments used during the lookup. |
| Pulumi.CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| MaintenanceWindow |