zenduty.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_time: Optional[str] = None,
                      services: Optional[Sequence[str]] = None,
                      start_time: Optional[str] = None,
                      team_id: Optional[str] = None,
                      timezone: Optional[str] = None,
                      maintenance_window_id: Optional[str] = None,
                      name: Optional[str] = None,
                      repeat_interval: Optional[float] = None,
                      repeat_until: Optional[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: zenduty: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 Zenduty.MaintenanceWindow("maintenanceWindowResource", new()
{
    EndTime = "string",
    Services = new[]
    {
        "string",
    },
    StartTime = "string",
    TeamId = "string",
    Timezone = "string",
    MaintenanceWindowId = "string",
    Name = "string",
    RepeatInterval = 0,
    RepeatUntil = "string",
});
example, err := zenduty.NewMaintenanceWindow(ctx, "maintenanceWindowResource", &zenduty.MaintenanceWindowArgs{
EndTime: pulumi.String("string"),
Services: pulumi.StringArray{
pulumi.String("string"),
},
StartTime: pulumi.String("string"),
TeamId: pulumi.String("string"),
Timezone: pulumi.String("string"),
MaintenanceWindowId: pulumi.String("string"),
Name: pulumi.String("string"),
RepeatInterval: pulumi.Float64(0),
RepeatUntil: pulumi.String("string"),
})
var maintenanceWindowResource = new MaintenanceWindow("maintenanceWindowResource", MaintenanceWindowArgs.builder()
    .endTime("string")
    .services("string")
    .startTime("string")
    .teamId("string")
    .timezone("string")
    .maintenanceWindowId("string")
    .name("string")
    .repeatInterval(0)
    .repeatUntil("string")
    .build());
maintenance_window_resource = zenduty.MaintenanceWindow("maintenanceWindowResource",
    end_time="string",
    services=["string"],
    start_time="string",
    team_id="string",
    timezone="string",
    maintenance_window_id="string",
    name="string",
    repeat_interval=0,
    repeat_until="string")
const maintenanceWindowResource = new zenduty.MaintenanceWindow("maintenanceWindowResource", {
    endTime: "string",
    services: ["string"],
    startTime: "string",
    teamId: "string",
    timezone: "string",
    maintenanceWindowId: "string",
    name: "string",
    repeatInterval: 0,
    repeatUntil: "string",
});
type: zenduty:MaintenanceWindow
properties:
    endTime: string
    maintenanceWindowId: string
    name: string
    repeatInterval: 0
    repeatUntil: string
    services:
        - string
    startTime: string
    teamId: 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:
- EndTime string
- The end time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- Services List<string>
- The service ids that are associated with the maintenance window.
- StartTime string
- The start time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- TeamId string
- The unique_id of the team to create the maintenance window in.
- Timezone string
- The timezone of the maintenance window.
- MaintenanceWindow stringId 
- The ID of the Zenduty Service Maintenance.
- Name string
- The name of the maintenance window.
- RepeatInterval double
- (Number) The repeat interval of the maintenance window.
- RepeatUntil string
- (String) The repeat until of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- EndTime string
- The end time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- Services []string
- The service ids that are associated with the maintenance window.
- StartTime string
- The start time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- TeamId string
- The unique_id of the team to create the maintenance window in.
- Timezone string
- The timezone of the maintenance window.
- MaintenanceWindow stringId 
- The ID of the Zenduty Service Maintenance.
- Name string
- The name of the maintenance window.
- RepeatInterval float64
- (Number) The repeat interval of the maintenance window.
- RepeatUntil string
- (String) The repeat until of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- endTime String
- The end time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- services List<String>
- The service ids that are associated with the maintenance window.
- startTime String
- The start time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- teamId String
- The unique_id of the team to create the maintenance window in.
- timezone String
- The timezone of the maintenance window.
- maintenanceWindow StringId 
- The ID of the Zenduty Service Maintenance.
- name String
- The name of the maintenance window.
- repeatInterval Double
- (Number) The repeat interval of the maintenance window.
- repeatUntil String
- (String) The repeat until of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- endTime string
- The end time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- services string[]
- The service ids that are associated with the maintenance window.
- startTime string
- The start time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- teamId string
- The unique_id of the team to create the maintenance window in.
- timezone string
- The timezone of the maintenance window.
- maintenanceWindow stringId 
- The ID of the Zenduty Service Maintenance.
- name string
- The name of the maintenance window.
- repeatInterval number
- (Number) The repeat interval of the maintenance window.
- repeatUntil string
- (String) The repeat until of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- end_time str
- The end time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- services Sequence[str]
- The service ids that are associated with the maintenance window.
- start_time str
- The start time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- team_id str
- The unique_id of the team to create the maintenance window in.
- timezone str
- The timezone of the maintenance window.
- maintenance_window_ strid 
- The ID of the Zenduty Service Maintenance.
- name str
- The name of the maintenance window.
- repeat_interval float
- (Number) The repeat interval of the maintenance window.
- repeat_until str
- (String) The repeat until of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- endTime String
- The end time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- services List<String>
- The service ids that are associated with the maintenance window.
- startTime String
- The start time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- teamId String
- The unique_id of the team to create the maintenance window in.
- timezone String
- The timezone of the maintenance window.
- maintenanceWindow StringId 
- The ID of the Zenduty Service Maintenance.
- name String
- The name of the maintenance window.
- repeatInterval Number
- (Number) The repeat interval of the maintenance window.
- repeatUntil String
- (String) The repeat until of the maintenance window in the format of "YYYY-MM-DD HH:MM".
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_time: Optional[str] = None,
        maintenance_window_id: Optional[str] = None,
        name: Optional[str] = None,
        repeat_interval: Optional[float] = None,
        repeat_until: Optional[str] = None,
        services: Optional[Sequence[str]] = None,
        start_time: Optional[str] = None,
        team_id: Optional[str] = None,
        timezone: Optional[str] = None) -> MaintenanceWindowfunc 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)resources:  _:    type: zenduty:MaintenanceWindow    get:      id: ${id}- 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.
- EndTime string
- The end time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- MaintenanceWindow stringId 
- The ID of the Zenduty Service Maintenance.
- Name string
- The name of the maintenance window.
- RepeatInterval double
- (Number) The repeat interval of the maintenance window.
- RepeatUntil string
- (String) The repeat until of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- Services List<string>
- The service ids that are associated with the maintenance window.
- StartTime string
- The start time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- TeamId string
- The unique_id of the team to create the maintenance window in.
- Timezone string
- The timezone of the maintenance window.
- EndTime string
- The end time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- MaintenanceWindow stringId 
- The ID of the Zenduty Service Maintenance.
- Name string
- The name of the maintenance window.
- RepeatInterval float64
- (Number) The repeat interval of the maintenance window.
- RepeatUntil string
- (String) The repeat until of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- Services []string
- The service ids that are associated with the maintenance window.
- StartTime string
- The start time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- TeamId string
- The unique_id of the team to create the maintenance window in.
- Timezone string
- The timezone of the maintenance window.
- endTime String
- The end time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- maintenanceWindow StringId 
- The ID of the Zenduty Service Maintenance.
- name String
- The name of the maintenance window.
- repeatInterval Double
- (Number) The repeat interval of the maintenance window.
- repeatUntil String
- (String) The repeat until of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- services List<String>
- The service ids that are associated with the maintenance window.
- startTime String
- The start time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- teamId String
- The unique_id of the team to create the maintenance window in.
- timezone String
- The timezone of the maintenance window.
- endTime string
- The end time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- maintenanceWindow stringId 
- The ID of the Zenduty Service Maintenance.
- name string
- The name of the maintenance window.
- repeatInterval number
- (Number) The repeat interval of the maintenance window.
- repeatUntil string
- (String) The repeat until of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- services string[]
- The service ids that are associated with the maintenance window.
- startTime string
- The start time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- teamId string
- The unique_id of the team to create the maintenance window in.
- timezone string
- The timezone of the maintenance window.
- end_time str
- The end time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- maintenance_window_ strid 
- The ID of the Zenduty Service Maintenance.
- name str
- The name of the maintenance window.
- repeat_interval float
- (Number) The repeat interval of the maintenance window.
- repeat_until str
- (String) The repeat until of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- services Sequence[str]
- The service ids that are associated with the maintenance window.
- start_time str
- The start time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- team_id str
- The unique_id of the team to create the maintenance window in.
- timezone str
- The timezone of the maintenance window.
- endTime String
- The end time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- maintenanceWindow StringId 
- The ID of the Zenduty Service Maintenance.
- name String
- The name of the maintenance window.
- repeatInterval Number
- (Number) The repeat interval of the maintenance window.
- repeatUntil String
- (String) The repeat until of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- services List<String>
- The service ids that are associated with the maintenance window.
- startTime String
- The start time of the maintenance window in the format of "YYYY-MM-DD HH:MM".
- teamId String
- The unique_id of the team to create the maintenance window in.
- timezone String
- The timezone of the maintenance window.
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the zendutyTerraform Provider.