statuscake.MaintenanceWindow
Explore with Pulumi AI
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,
end: Optional[str] = None,
start: Optional[str] = None,
timezone: Optional[str] = None,
name: Optional[str] = None,
repeat_interval: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
tests: 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: statuscake: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 Statuscake.MaintenanceWindow("maintenanceWindowResource", new()
{
End = "string",
Start = "string",
Timezone = "string",
Name = "string",
RepeatInterval = "string",
Tags = new[]
{
"string",
},
Tests = new[]
{
"string",
},
});
example, err := statuscake.NewMaintenanceWindow(ctx, "maintenanceWindowResource", &statuscake.MaintenanceWindowArgs{
End: pulumi.String("string"),
Start: pulumi.String("string"),
Timezone: pulumi.String("string"),
Name: pulumi.String("string"),
RepeatInterval: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Tests: pulumi.StringArray{
pulumi.String("string"),
},
})
var maintenanceWindowResource = new MaintenanceWindow("maintenanceWindowResource", MaintenanceWindowArgs.builder()
.end("string")
.start("string")
.timezone("string")
.name("string")
.repeatInterval("string")
.tags("string")
.tests("string")
.build());
maintenance_window_resource = statuscake.MaintenanceWindow("maintenanceWindowResource",
end="string",
start="string",
timezone="string",
name="string",
repeat_interval="string",
tags=["string"],
tests=["string"])
const maintenanceWindowResource = new statuscake.MaintenanceWindow("maintenanceWindowResource", {
end: "string",
start: "string",
timezone: "string",
name: "string",
repeatInterval: "string",
tags: ["string"],
tests: ["string"],
});
type: statuscake:MaintenanceWindow
properties:
end: string
name: string
repeatInterval: string
start: string
tags:
- string
tests:
- string
timezone: 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:
- End string
- End of the maintenance window (RFC3339 format)
- Start string
- Start of the maintenance window (RFC3339 format)
- Timezone string
- Standard timezone associated with this maintenance window
- Name string
- Name of the maintenance window
- Repeat
Interval string - How often the maintenance window should occur
- List<string>
- List of tags used to include matching uptime checks in this maintenance window
- Tests List<string>
- List of uptime check IDs explicitly included in this maintenance window
- End string
- End of the maintenance window (RFC3339 format)
- Start string
- Start of the maintenance window (RFC3339 format)
- Timezone string
- Standard timezone associated with this maintenance window
- Name string
- Name of the maintenance window
- Repeat
Interval string - How often the maintenance window should occur
- []string
- List of tags used to include matching uptime checks in this maintenance window
- Tests []string
- List of uptime check IDs explicitly included in this maintenance window
- end String
- End of the maintenance window (RFC3339 format)
- start String
- Start of the maintenance window (RFC3339 format)
- timezone String
- Standard timezone associated with this maintenance window
- name String
- Name of the maintenance window
- repeat
Interval String - How often the maintenance window should occur
- List<String>
- List of tags used to include matching uptime checks in this maintenance window
- tests List<String>
- List of uptime check IDs explicitly included in this maintenance window
- end string
- End of the maintenance window (RFC3339 format)
- start string
- Start of the maintenance window (RFC3339 format)
- timezone string
- Standard timezone associated with this maintenance window
- name string
- Name of the maintenance window
- repeat
Interval string - How often the maintenance window should occur
- string[]
- List of tags used to include matching uptime checks in this maintenance window
- tests string[]
- List of uptime check IDs explicitly included in this maintenance window
- end str
- End of the maintenance window (RFC3339 format)
- start str
- Start of the maintenance window (RFC3339 format)
- timezone str
- Standard timezone associated with this maintenance window
- name str
- Name of the maintenance window
- repeat_
interval str - How often the maintenance window should occur
- Sequence[str]
- List of tags used to include matching uptime checks in this maintenance window
- tests Sequence[str]
- List of uptime check IDs explicitly included in this maintenance window
- end String
- End of the maintenance window (RFC3339 format)
- start String
- Start of the maintenance window (RFC3339 format)
- timezone String
- Standard timezone associated with this maintenance window
- name String
- Name of the maintenance window
- repeat
Interval String - How often the maintenance window should occur
- List<String>
- List of tags used to include matching uptime checks in this maintenance window
- tests List<String>
- List of uptime check IDs explicitly included in this maintenance window
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,
end: Optional[str] = None,
name: Optional[str] = None,
repeat_interval: Optional[str] = None,
start: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
tests: Optional[Sequence[str]] = None,
timezone: Optional[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.
- End string
- End of the maintenance window (RFC3339 format)
- Name string
- Name of the maintenance window
- Repeat
Interval string - How often the maintenance window should occur
- Start string
- Start of the maintenance window (RFC3339 format)
- List<string>
- List of tags used to include matching uptime checks in this maintenance window
- Tests List<string>
- List of uptime check IDs explicitly included in this maintenance window
- Timezone string
- Standard timezone associated with this maintenance window
- End string
- End of the maintenance window (RFC3339 format)
- Name string
- Name of the maintenance window
- Repeat
Interval string - How often the maintenance window should occur
- Start string
- Start of the maintenance window (RFC3339 format)
- []string
- List of tags used to include matching uptime checks in this maintenance window
- Tests []string
- List of uptime check IDs explicitly included in this maintenance window
- Timezone string
- Standard timezone associated with this maintenance window
- end String
- End of the maintenance window (RFC3339 format)
- name String
- Name of the maintenance window
- repeat
Interval String - How often the maintenance window should occur
- start String
- Start of the maintenance window (RFC3339 format)
- List<String>
- List of tags used to include matching uptime checks in this maintenance window
- tests List<String>
- List of uptime check IDs explicitly included in this maintenance window
- timezone String
- Standard timezone associated with this maintenance window
- end string
- End of the maintenance window (RFC3339 format)
- name string
- Name of the maintenance window
- repeat
Interval string - How often the maintenance window should occur
- start string
- Start of the maintenance window (RFC3339 format)
- string[]
- List of tags used to include matching uptime checks in this maintenance window
- tests string[]
- List of uptime check IDs explicitly included in this maintenance window
- timezone string
- Standard timezone associated with this maintenance window
- end str
- End of the maintenance window (RFC3339 format)
- name str
- Name of the maintenance window
- repeat_
interval str - How often the maintenance window should occur
- start str
- Start of the maintenance window (RFC3339 format)
- Sequence[str]
- List of tags used to include matching uptime checks in this maintenance window
- tests Sequence[str]
- List of uptime check IDs explicitly included in this maintenance window
- timezone str
- Standard timezone associated with this maintenance window
- end String
- End of the maintenance window (RFC3339 format)
- name String
- Name of the maintenance window
- repeat
Interval String - How often the maintenance window should occur
- start String
- Start of the maintenance window (RFC3339 format)
- List<String>
- List of tags used to include matching uptime checks in this maintenance window
- tests List<String>
- List of uptime check IDs explicitly included in this maintenance window
- timezone String
- Standard timezone associated with this maintenance window
Package Details
- Repository
- statuscake pulumiverse/pulumi-statuscake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
statuscake
Terraform Provider.