oci_fleet_apps_management_maintenance_window
This resource provides the Maintenance Window resource in Oracle Cloud Infrastructure Fleet Apps Management service.
Create a maintenance window in Fleet Application Management.
Example Usage
resource "oci_fleet_apps_management_maintenance_window" "test_maintenance_window" {
#Required
compartment_id = var.compartment_id
duration = var.maintenance_window_duration
#Optional
defined_tags = {"foo-namespace.bar-key"= "value"}
description = var.maintenance_window_description
display_name = var.maintenance_window_display_name
freeform_tags = {"bar-key"= "value"}
is_outage = var.maintenance_window_is_outage
is_recurring = var.maintenance_window_is_recurring
maintenance_window_type = var.maintenance_window_maintenance_window_type
recurrences = var.maintenance_window_recurrences
task_initiation_cutoff = var.maintenance_window_task_initiation_cutoff
time_schedule_start = var.maintenance_window_time_schedule_start
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) Tenancy OCIDdefined_tags
- (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
description
- (Optional) (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.display_name
- (Optional) (Updatable) A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information. Example:My new resource
duration
- (Required) (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.freeform_tags
- (Optional) (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
is_outage
- (Optional) (Updatable) Does the maintenenace window cause outage? An outage indicates whether a maintenance window can consider operations that require downtime. It means a period when the application is not accessible.is_recurring
- (Optional) (Updatable) Is this a recurring maintenance window?maintenance_window_type
- (Optional) (Updatable) Type of maintenenace windowrecurrences
- (Optional) (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.task_initiation_cutoff
- (Optional) (Updatable) Task initiation cutoff time for the maintenance window.time_schedule_start
- (Optional) (Updatable) Specify the date and time of the day that the maintenance window starts.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Attributes Reference
The following attributes are exported:
compartment_id
- Tenancy OCIDdefined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
description
- A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.display_name
- A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information. Example:My new resource
duration
- Duration of the maintenance window. Specify how long the maintenance window remains open.freeform_tags
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
id
- The OCID of the resource.is_outage
- Does the maintenenace window cause outage? An outage indicates whether a maintenance window can consider operations that require downtime. It means a period when the application is not accessible.is_recurring
- Is this a recurring maintenance window?lifecycle_details
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.maintenance_window_type
- Type of the MaintenanceWindow.recurrences
- Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.resource_region
- Associated regionstate
- The current state of the MaintenanceWindow.system_tags
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:{"orcl-cloud.free-tier-retained": "true"}
task_initiation_cutoff
- Task initiation cutoff time for the maintenance window.time_created
- The time this resource was created. An RFC3339 formatted datetime string.time_schedule_start
- Specify the date and time of the day that the maintenance window starts.time_updated
- The time this resource was last updated. An RFC3339 formatted datetime string.
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Maintenance Window
* update
- (Defaults to 20 minutes), when updating the Maintenance Window
* delete
- (Defaults to 20 minutes), when destroying the Maintenance Window
Import
MaintenanceWindows can be imported using the id
, e.g.
$ terraform import oci_fleet_apps_management_maintenance_window.test_maintenance_window "id"