1. Packages
  2. Checkly
  3. API Docs
  4. MaintenanceWindow
Checkly v1.1.4 published on Thursday, Mar 9, 2023 by checkly

checkly.MaintenanceWindow

Explore with Pulumi AI

checkly logo
Checkly v1.1.4 published on Thursday, Mar 9, 2023 by checkly

    Example Usage

    using Pulumi;
    using Checkly = Pulumi.Checkly;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var maintenance1 = new Checkly.MaintenanceWindow("maintenance1", new Checkly.MaintenanceWindowArgs
            {
                EndsAt = "2014-08-25T00:00:00.000Z",
                RepeatEndsAt = "2014-08-24T00:00:00.000Z",
                RepeatInterval = 1,
                RepeatUnit = "MONTH",
                StartsAt = "2014-08-24T00:00:00.000Z",
                Tags = 
                {
                    "production",
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/checkly/pulumi-checkly/sdk/go/checkly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := checkly.NewMaintenanceWindow(ctx, "maintenance1", &checkly.MaintenanceWindowArgs{
    			EndsAt:         pulumi.String("2014-08-25T00:00:00.000Z"),
    			RepeatEndsAt:   pulumi.String("2014-08-24T00:00:00.000Z"),
    			RepeatInterval: pulumi.Int(1),
    			RepeatUnit:     pulumi.String("MONTH"),
    			StartsAt:       pulumi.String("2014-08-24T00:00:00.000Z"),
    			Tags: pulumi.StringArray{
    				pulumi.String("production"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_checkly as checkly
    
    maintenance1 = checkly.MaintenanceWindow("maintenance1",
        ends_at="2014-08-25T00:00:00.000Z",
        repeat_ends_at="2014-08-24T00:00:00.000Z",
        repeat_interval=1,
        repeat_unit="MONTH",
        starts_at="2014-08-24T00:00:00.000Z",
        tags=["production"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as checkly from "@pulumi/checkly";
    
    const maintenance1 = new checkly.MaintenanceWindow("maintenance_1", {
        endsAt: "2014-08-25T00:00:00.000Z",
        repeatEndsAt: "2014-08-24T00:00:00.000Z",
        repeatInterval: 1,
        repeatUnit: "MONTH",
        startsAt: "2014-08-24T00:00:00.000Z",
        tags: ["production"],
    });
    

    Coming soon!

    Create MaintenanceWindow Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MaintenanceWindow(name: string, args: MaintenanceWindowArgs, opts?: CustomResourceOptions);
    @overload
    def MaintenanceWindow(resource_name: str,
                          args: MaintenanceWindowArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def MaintenanceWindow(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          ends_at: Optional[str] = None,
                          starts_at: Optional[str] = None,
                          name: Optional[str] = None,
                          repeat_ends_at: Optional[str] = None,
                          repeat_interval: Optional[int] = None,
                          repeat_unit: Optional[str] = None,
                          tags: Optional[Sequence[str]] = None)
    func NewMaintenanceWindow(ctx *Context, name string, args MaintenanceWindowArgs, opts ...ResourceOption) (*MaintenanceWindow, error)
    public MaintenanceWindow(string name, MaintenanceWindowArgs args, CustomResourceOptions? opts = null)
    public MaintenanceWindow(String name, MaintenanceWindowArgs args)
    public MaintenanceWindow(String name, MaintenanceWindowArgs args, CustomResourceOptions options)
    
    type: checkly:MaintenanceWindow
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MaintenanceWindowArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MaintenanceWindowArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MaintenanceWindowArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MaintenanceWindowArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MaintenanceWindowArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var maintenanceWindowResource = new Checkly.MaintenanceWindow("maintenanceWindowResource", new()
    {
        EndsAt = "string",
        StartsAt = "string",
        Name = "string",
        RepeatEndsAt = "string",
        RepeatInterval = 0,
        RepeatUnit = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := checkly.NewMaintenanceWindow(ctx, "maintenanceWindowResource", &checkly.MaintenanceWindowArgs{
    	EndsAt:         pulumi.String("string"),
    	StartsAt:       pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	RepeatEndsAt:   pulumi.String("string"),
    	RepeatInterval: pulumi.Int(0),
    	RepeatUnit:     pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var maintenanceWindowResource = new MaintenanceWindow("maintenanceWindowResource", MaintenanceWindowArgs.builder()
        .endsAt("string")
        .startsAt("string")
        .name("string")
        .repeatEndsAt("string")
        .repeatInterval(0)
        .repeatUnit("string")
        .tags("string")
        .build());
    
    maintenance_window_resource = checkly.MaintenanceWindow("maintenanceWindowResource",
        ends_at="string",
        starts_at="string",
        name="string",
        repeat_ends_at="string",
        repeat_interval=0,
        repeat_unit="string",
        tags=["string"])
    
    const maintenanceWindowResource = new checkly.MaintenanceWindow("maintenanceWindowResource", {
        endsAt: "string",
        startsAt: "string",
        name: "string",
        repeatEndsAt: "string",
        repeatInterval: 0,
        repeatUnit: "string",
        tags: ["string"],
    });
    
    type: checkly:MaintenanceWindow
    properties:
        endsAt: string
        name: string
        repeatEndsAt: string
        repeatInterval: 0
        repeatUnit: string
        startsAt: string
        tags:
            - string
    

    MaintenanceWindow Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MaintenanceWindow resource accepts the following input properties:

    EndsAt string
    The end date of the maintenance window.
    StartsAt string
    The start date of the maintenance window.
    Name string
    The maintenance window name.
    RepeatEndsAt string
    The date on which the maintenance window should stop repeating.
    RepeatInterval int
    The repeat interval of the maintenance window from the first occurrence.
    RepeatUnit string
    The repeat cadence for the maintenance window. Possible values DAY, WEEK and MONTH.
    Tags List<string>
    The names of the checks and groups maintenance window should apply to.
    EndsAt string
    The end date of the maintenance window.
    StartsAt string
    The start date of the maintenance window.
    Name string
    The maintenance window name.
    RepeatEndsAt string
    The date on which the maintenance window should stop repeating.
    RepeatInterval int
    The repeat interval of the maintenance window from the first occurrence.
    RepeatUnit string
    The repeat cadence for the maintenance window. Possible values DAY, WEEK and MONTH.
    Tags []string
    The names of the checks and groups maintenance window should apply to.
    endsAt String
    The end date of the maintenance window.
    startsAt String
    The start date of the maintenance window.
    name String
    The maintenance window name.
    repeatEndsAt String
    The date on which the maintenance window should stop repeating.
    repeatInterval Integer
    The repeat interval of the maintenance window from the first occurrence.
    repeatUnit String
    The repeat cadence for the maintenance window. Possible values DAY, WEEK and MONTH.
    tags List<String>
    The names of the checks and groups maintenance window should apply to.
    endsAt string
    The end date of the maintenance window.
    startsAt string
    The start date of the maintenance window.
    name string
    The maintenance window name.
    repeatEndsAt string
    The date on which the maintenance window should stop repeating.
    repeatInterval number
    The repeat interval of the maintenance window from the first occurrence.
    repeatUnit string
    The repeat cadence for the maintenance window. Possible values DAY, WEEK and MONTH.
    tags string[]
    The names of the checks and groups maintenance window should apply to.
    ends_at str
    The end date of the maintenance window.
    starts_at str
    The start date of the maintenance window.
    name str
    The maintenance window name.
    repeat_ends_at str
    The date on which the maintenance window should stop repeating.
    repeat_interval int
    The repeat interval of the maintenance window from the first occurrence.
    repeat_unit str
    The repeat cadence for the maintenance window. Possible values DAY, WEEK and MONTH.
    tags Sequence[str]
    The names of the checks and groups maintenance window should apply to.
    endsAt String
    The end date of the maintenance window.
    startsAt String
    The start date of the maintenance window.
    name String
    The maintenance window name.
    repeatEndsAt String
    The date on which the maintenance window should stop repeating.
    repeatInterval Number
    The repeat interval of the maintenance window from the first occurrence.
    repeatUnit String
    The repeat cadence for the maintenance window. Possible values DAY, WEEK and MONTH.
    tags List<String>
    The names of the checks and groups maintenance window should apply to.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MaintenanceWindow resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MaintenanceWindow Resource

    Get an existing MaintenanceWindow resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MaintenanceWindowState, opts?: CustomResourceOptions): MaintenanceWindow
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ends_at: Optional[str] = None,
            name: Optional[str] = None,
            repeat_ends_at: Optional[str] = None,
            repeat_interval: Optional[int] = None,
            repeat_unit: Optional[str] = None,
            starts_at: Optional[str] = None,
            tags: Optional[Sequence[str]] = None) -> MaintenanceWindow
    func GetMaintenanceWindow(ctx *Context, name string, id IDInput, state *MaintenanceWindowState, opts ...ResourceOption) (*MaintenanceWindow, error)
    public static MaintenanceWindow Get(string name, Input<string> id, MaintenanceWindowState? state, CustomResourceOptions? opts = null)
    public static MaintenanceWindow get(String name, Output<String> id, MaintenanceWindowState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    EndsAt string
    The end date of the maintenance window.
    Name string
    The maintenance window name.
    RepeatEndsAt string
    The date on which the maintenance window should stop repeating.
    RepeatInterval int
    The repeat interval of the maintenance window from the first occurrence.
    RepeatUnit string
    The repeat cadence for the maintenance window. Possible values DAY, WEEK and MONTH.
    StartsAt string
    The start date of the maintenance window.
    Tags List<string>
    The names of the checks and groups maintenance window should apply to.
    EndsAt string
    The end date of the maintenance window.
    Name string
    The maintenance window name.
    RepeatEndsAt string
    The date on which the maintenance window should stop repeating.
    RepeatInterval int
    The repeat interval of the maintenance window from the first occurrence.
    RepeatUnit string
    The repeat cadence for the maintenance window. Possible values DAY, WEEK and MONTH.
    StartsAt string
    The start date of the maintenance window.
    Tags []string
    The names of the checks and groups maintenance window should apply to.
    endsAt String
    The end date of the maintenance window.
    name String
    The maintenance window name.
    repeatEndsAt String
    The date on which the maintenance window should stop repeating.
    repeatInterval Integer
    The repeat interval of the maintenance window from the first occurrence.
    repeatUnit String
    The repeat cadence for the maintenance window. Possible values DAY, WEEK and MONTH.
    startsAt String
    The start date of the maintenance window.
    tags List<String>
    The names of the checks and groups maintenance window should apply to.
    endsAt string
    The end date of the maintenance window.
    name string
    The maintenance window name.
    repeatEndsAt string
    The date on which the maintenance window should stop repeating.
    repeatInterval number
    The repeat interval of the maintenance window from the first occurrence.
    repeatUnit string
    The repeat cadence for the maintenance window. Possible values DAY, WEEK and MONTH.
    startsAt string
    The start date of the maintenance window.
    tags string[]
    The names of the checks and groups maintenance window should apply to.
    ends_at str
    The end date of the maintenance window.
    name str
    The maintenance window name.
    repeat_ends_at str
    The date on which the maintenance window should stop repeating.
    repeat_interval int
    The repeat interval of the maintenance window from the first occurrence.
    repeat_unit str
    The repeat cadence for the maintenance window. Possible values DAY, WEEK and MONTH.
    starts_at str
    The start date of the maintenance window.
    tags Sequence[str]
    The names of the checks and groups maintenance window should apply to.
    endsAt String
    The end date of the maintenance window.
    name String
    The maintenance window name.
    repeatEndsAt String
    The date on which the maintenance window should stop repeating.
    repeatInterval Number
    The repeat interval of the maintenance window from the first occurrence.
    repeatUnit String
    The repeat cadence for the maintenance window. Possible values DAY, WEEK and MONTH.
    startsAt String
    The start date of the maintenance window.
    tags List<String>
    The names of the checks and groups maintenance window should apply to.

    Package Details

    Repository
    checkly checkly/pulumi-checkly
    License
    MIT
    Notes
    This Pulumi package is based on the checkly Terraform Provider.
    checkly logo
    Checkly v1.1.4 published on Thursday, Mar 9, 2023 by checkly