oci.StackMonitoring.MaintenanceWindow
Explore with Pulumi AI
This resource provides the Maintenance Window resource in Oracle Cloud Infrastructure Stack Monitoring service.
Creates a new Maintenance Window for the given resources. It will create also the Alarms Suppression for each alarm that the resource migth trigger.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMaintenanceWindow = new oci.stackmonitoring.MaintenanceWindow("test_maintenance_window", {
compartmentId: compartmentId,
name: maintenanceWindowName,
resources: [{
resourceId: testResource.id,
areMembersIncluded: maintenanceWindowResourcesAreMembersIncluded,
}],
schedule: {
scheduleType: maintenanceWindowScheduleScheduleType,
maintenanceWindowDuration: maintenanceWindowScheduleMaintenanceWindowDuration,
maintenanceWindowRecurrences: maintenanceWindowScheduleMaintenanceWindowRecurrences,
timeMaintenanceWindowEnd: maintenanceWindowScheduleTimeMaintenanceWindowEnd,
timeMaintenanceWindowStart: maintenanceWindowScheduleTimeMaintenanceWindowStart,
},
description: maintenanceWindowDescription,
});
import pulumi
import pulumi_oci as oci
test_maintenance_window = oci.stack_monitoring.MaintenanceWindow("test_maintenance_window",
compartment_id=compartment_id,
name=maintenance_window_name,
resources=[{
"resource_id": test_resource["id"],
"are_members_included": maintenance_window_resources_are_members_included,
}],
schedule={
"schedule_type": maintenance_window_schedule_schedule_type,
"maintenance_window_duration": maintenance_window_schedule_maintenance_window_duration,
"maintenance_window_recurrences": maintenance_window_schedule_maintenance_window_recurrences,
"time_maintenance_window_end": maintenance_window_schedule_time_maintenance_window_end,
"time_maintenance_window_start": maintenance_window_schedule_time_maintenance_window_start,
},
description=maintenance_window_description)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/StackMonitoring"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := StackMonitoring.NewMaintenanceWindow(ctx, "test_maintenance_window", &StackMonitoring.MaintenanceWindowArgs{
CompartmentId: pulumi.Any(compartmentId),
Name: pulumi.Any(maintenanceWindowName),
Resources: stackmonitoring.MaintenanceWindowResourceArray{
&stackmonitoring.MaintenanceWindowResourceArgs{
ResourceId: pulumi.Any(testResource.Id),
AreMembersIncluded: pulumi.Any(maintenanceWindowResourcesAreMembersIncluded),
},
},
Schedule: &stackmonitoring.MaintenanceWindowScheduleArgs{
ScheduleType: pulumi.Any(maintenanceWindowScheduleScheduleType),
MaintenanceWindowDuration: pulumi.Any(maintenanceWindowScheduleMaintenanceWindowDuration),
MaintenanceWindowRecurrences: pulumi.Any(maintenanceWindowScheduleMaintenanceWindowRecurrences),
TimeMaintenanceWindowEnd: pulumi.Any(maintenanceWindowScheduleTimeMaintenanceWindowEnd),
TimeMaintenanceWindowStart: pulumi.Any(maintenanceWindowScheduleTimeMaintenanceWindowStart),
},
Description: pulumi.Any(maintenanceWindowDescription),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testMaintenanceWindow = new Oci.StackMonitoring.MaintenanceWindow("test_maintenance_window", new()
{
CompartmentId = compartmentId,
Name = maintenanceWindowName,
Resources = new[]
{
new Oci.StackMonitoring.Inputs.MaintenanceWindowResourceArgs
{
ResourceId = testResource.Id,
AreMembersIncluded = maintenanceWindowResourcesAreMembersIncluded,
},
},
Schedule = new Oci.StackMonitoring.Inputs.MaintenanceWindowScheduleArgs
{
ScheduleType = maintenanceWindowScheduleScheduleType,
MaintenanceWindowDuration = maintenanceWindowScheduleMaintenanceWindowDuration,
MaintenanceWindowRecurrences = maintenanceWindowScheduleMaintenanceWindowRecurrences,
TimeMaintenanceWindowEnd = maintenanceWindowScheduleTimeMaintenanceWindowEnd,
TimeMaintenanceWindowStart = maintenanceWindowScheduleTimeMaintenanceWindowStart,
},
Description = maintenanceWindowDescription,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.MaintenanceWindow;
import com.pulumi.oci.StackMonitoring.MaintenanceWindowArgs;
import com.pulumi.oci.StackMonitoring.inputs.MaintenanceWindowResourceArgs;
import com.pulumi.oci.StackMonitoring.inputs.MaintenanceWindowScheduleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testMaintenanceWindow = new MaintenanceWindow("testMaintenanceWindow", MaintenanceWindowArgs.builder()
.compartmentId(compartmentId)
.name(maintenanceWindowName)
.resources(MaintenanceWindowResourceArgs.builder()
.resourceId(testResource.id())
.areMembersIncluded(maintenanceWindowResourcesAreMembersIncluded)
.build())
.schedule(MaintenanceWindowScheduleArgs.builder()
.scheduleType(maintenanceWindowScheduleScheduleType)
.maintenanceWindowDuration(maintenanceWindowScheduleMaintenanceWindowDuration)
.maintenanceWindowRecurrences(maintenanceWindowScheduleMaintenanceWindowRecurrences)
.timeMaintenanceWindowEnd(maintenanceWindowScheduleTimeMaintenanceWindowEnd)
.timeMaintenanceWindowStart(maintenanceWindowScheduleTimeMaintenanceWindowStart)
.build())
.description(maintenanceWindowDescription)
.build());
}
}
resources:
testMaintenanceWindow:
type: oci:StackMonitoring:MaintenanceWindow
name: test_maintenance_window
properties:
compartmentId: ${compartmentId}
name: ${maintenanceWindowName}
resources:
- resourceId: ${testResource.id}
areMembersIncluded: ${maintenanceWindowResourcesAreMembersIncluded}
schedule:
scheduleType: ${maintenanceWindowScheduleScheduleType}
maintenanceWindowDuration: ${maintenanceWindowScheduleMaintenanceWindowDuration}
maintenanceWindowRecurrences: ${maintenanceWindowScheduleMaintenanceWindowRecurrences}
timeMaintenanceWindowEnd: ${maintenanceWindowScheduleTimeMaintenanceWindowEnd}
timeMaintenanceWindowStart: ${maintenanceWindowScheduleTimeMaintenanceWindowStart}
description: ${maintenanceWindowDescription}
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,
compartment_id: Optional[str] = None,
resources: Optional[Sequence[_stackmonitoring.MaintenanceWindowResourceArgs]] = None,
schedule: Optional[_stackmonitoring.MaintenanceWindowScheduleArgs] = None,
description: Optional[str] = None,
name: 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: oci:StackMonitoring: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 ociMaintenanceWindowResource = new Oci.StackMonitoring.MaintenanceWindow("ociMaintenanceWindowResource", new()
{
CompartmentId = "string",
Resources = new[]
{
new Oci.StackMonitoring.Inputs.MaintenanceWindowResourceArgs
{
ResourceId = "string",
AreMembersIncluded = false,
},
},
Schedule = new Oci.StackMonitoring.Inputs.MaintenanceWindowScheduleArgs
{
ScheduleType = "string",
MaintenanceWindowDuration = "string",
MaintenanceWindowRecurrences = "string",
TimeMaintenanceWindowEnd = "string",
TimeMaintenanceWindowStart = "string",
},
Description = "string",
Name = "string",
});
example, err := StackMonitoring.NewMaintenanceWindow(ctx, "ociMaintenanceWindowResource", &StackMonitoring.MaintenanceWindowArgs{
CompartmentId: pulumi.String("string"),
Resources: stackmonitoring.MaintenanceWindowResourceArray{
&stackmonitoring.MaintenanceWindowResourceArgs{
ResourceId: pulumi.String("string"),
AreMembersIncluded: pulumi.Bool(false),
},
},
Schedule: &stackmonitoring.MaintenanceWindowScheduleArgs{
ScheduleType: pulumi.String("string"),
MaintenanceWindowDuration: pulumi.String("string"),
MaintenanceWindowRecurrences: pulumi.String("string"),
TimeMaintenanceWindowEnd: pulumi.String("string"),
TimeMaintenanceWindowStart: pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var ociMaintenanceWindowResource = new MaintenanceWindow("ociMaintenanceWindowResource", MaintenanceWindowArgs.builder()
.compartmentId("string")
.resources(MaintenanceWindowResourceArgs.builder()
.resourceId("string")
.areMembersIncluded(false)
.build())
.schedule(MaintenanceWindowScheduleArgs.builder()
.scheduleType("string")
.maintenanceWindowDuration("string")
.maintenanceWindowRecurrences("string")
.timeMaintenanceWindowEnd("string")
.timeMaintenanceWindowStart("string")
.build())
.description("string")
.name("string")
.build());
oci_maintenance_window_resource = oci.stack_monitoring.MaintenanceWindow("ociMaintenanceWindowResource",
compartment_id="string",
resources=[{
"resource_id": "string",
"are_members_included": False,
}],
schedule={
"schedule_type": "string",
"maintenance_window_duration": "string",
"maintenance_window_recurrences": "string",
"time_maintenance_window_end": "string",
"time_maintenance_window_start": "string",
},
description="string",
name="string")
const ociMaintenanceWindowResource = new oci.stackmonitoring.MaintenanceWindow("ociMaintenanceWindowResource", {
compartmentId: "string",
resources: [{
resourceId: "string",
areMembersIncluded: false,
}],
schedule: {
scheduleType: "string",
maintenanceWindowDuration: "string",
maintenanceWindowRecurrences: "string",
timeMaintenanceWindowEnd: "string",
timeMaintenanceWindowStart: "string",
},
description: "string",
name: "string",
});
type: oci:StackMonitoring:MaintenanceWindow
properties:
compartmentId: string
description: string
name: string
resources:
- areMembersIncluded: false
resourceId: string
schedule:
maintenanceWindowDuration: string
maintenanceWindowRecurrences: string
scheduleType: string
timeMaintenanceWindowEnd: string
timeMaintenanceWindowStart: 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:
- Compartment
Id string - Compartment Identifier OCID.
- Resources
List<Maintenance
Window Resource> - (Updatable) List of resource Ids which are part of the Maintenance Window
- Schedule
Maintenance
Window Schedule - (Updatable) Schedule information of the Maintenance Window
- Description string
- (Updatable) Maintenance Window description.
- Name string
- Maintenance Window name.
- Compartment
Id string - Compartment Identifier OCID.
- Resources
[]Maintenance
Window Resource Args - (Updatable) List of resource Ids which are part of the Maintenance Window
- Schedule
Maintenance
Window Schedule Args - (Updatable) Schedule information of the Maintenance Window
- Description string
- (Updatable) Maintenance Window description.
- Name string
- Maintenance Window name.
- compartment
Id String - Compartment Identifier OCID.
- resources
List<Maintenance
Window Resource> - (Updatable) List of resource Ids which are part of the Maintenance Window
- schedule
Maintenance
Window Schedule - (Updatable) Schedule information of the Maintenance Window
- description String
- (Updatable) Maintenance Window description.
- name String
- Maintenance Window name.
- compartment
Id string - Compartment Identifier OCID.
- resources
Maintenance
Window Resource[] - (Updatable) List of resource Ids which are part of the Maintenance Window
- schedule
Maintenance
Window Schedule - (Updatable) Schedule information of the Maintenance Window
- description string
- (Updatable) Maintenance Window description.
- name string
- Maintenance Window name.
- compartment_
id str - Compartment Identifier OCID.
- resources
Sequence[stackmonitoring.
Maintenance Window Resource Args] - (Updatable) List of resource Ids which are part of the Maintenance Window
- schedule
stackmonitoring.
Maintenance Window Schedule Args - (Updatable) Schedule information of the Maintenance Window
- description str
- (Updatable) Maintenance Window description.
- name str
- Maintenance Window name.
- compartment
Id String - Compartment Identifier OCID.
- resources List<Property Map>
- (Updatable) List of resource Ids which are part of the Maintenance Window
- schedule Property Map
- (Updatable) Schedule information of the Maintenance Window
- description String
- (Updatable) Maintenance Window description.
- name String
- Maintenance Window name.
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.
- Lifecycle
Details string - Lifecycle Details of the Maintenance Window.
- Resources
Details List<MaintenanceWindow Resources Detail> - List of resource details that are part of the Maintenance Window.
- State string
- Lifecycle state of the monitored resource.
- Time
Created string - The time the the maintenance window was created. An RFC3339 formatted datetime string
- Time
Updated string - The time the the mainteance window was updated. An RFC3339 formatted datetime string
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Lifecycle Details of the Maintenance Window.
- Resources
Details []MaintenanceWindow Resources Detail - List of resource details that are part of the Maintenance Window.
- State string
- Lifecycle state of the monitored resource.
- Time
Created string - The time the the maintenance window was created. An RFC3339 formatted datetime string
- Time
Updated string - The time the the mainteance window was updated. An RFC3339 formatted datetime string
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Lifecycle Details of the Maintenance Window.
- resources
Details List<MaintenanceWindow Resources Detail> - List of resource details that are part of the Maintenance Window.
- state String
- Lifecycle state of the monitored resource.
- time
Created String - The time the the maintenance window was created. An RFC3339 formatted datetime string
- time
Updated String - The time the the mainteance window was updated. An RFC3339 formatted datetime string
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - Lifecycle Details of the Maintenance Window.
- resources
Details MaintenanceWindow Resources Detail[] - List of resource details that are part of the Maintenance Window.
- state string
- Lifecycle state of the monitored resource.
- time
Created string - The time the the maintenance window was created. An RFC3339 formatted datetime string
- time
Updated string - The time the the mainteance window was updated. An RFC3339 formatted datetime string
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - Lifecycle Details of the Maintenance Window.
- resources_
details Sequence[stackmonitoring.Maintenance Window Resources Detail] - List of resource details that are part of the Maintenance Window.
- state str
- Lifecycle state of the monitored resource.
- time_
created str - The time the the maintenance window was created. An RFC3339 formatted datetime string
- time_
updated str - The time the the mainteance window was updated. An RFC3339 formatted datetime string
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Lifecycle Details of the Maintenance Window.
- resources
Details List<Property Map> - List of resource details that are part of the Maintenance Window.
- state String
- Lifecycle state of the monitored resource.
- time
Created String - The time the the maintenance window was created. An RFC3339 formatted datetime string
- time
Updated String - The time the the mainteance window was updated. An RFC3339 formatted datetime string
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,
compartment_id: Optional[str] = None,
description: Optional[str] = None,
lifecycle_details: Optional[str] = None,
name: Optional[str] = None,
resources: Optional[Sequence[_stackmonitoring.MaintenanceWindowResourceArgs]] = None,
resources_details: Optional[Sequence[_stackmonitoring.MaintenanceWindowResourcesDetailArgs]] = None,
schedule: Optional[_stackmonitoring.MaintenanceWindowScheduleArgs] = None,
state: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: 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.
- Compartment
Id string - Compartment Identifier OCID.
- Description string
- (Updatable) Maintenance Window description.
- Lifecycle
Details string - Lifecycle Details of the Maintenance Window.
- Name string
- Maintenance Window name.
- Resources
List<Maintenance
Window Resource> - (Updatable) List of resource Ids which are part of the Maintenance Window
- Resources
Details List<MaintenanceWindow Resources Detail> - List of resource details that are part of the Maintenance Window.
- Schedule
Maintenance
Window Schedule - (Updatable) Schedule information of the Maintenance Window
- State string
- Lifecycle state of the monitored resource.
- Time
Created string - The time the the maintenance window was created. An RFC3339 formatted datetime string
- Time
Updated string - The time the the mainteance window was updated. An RFC3339 formatted datetime string
- Compartment
Id string - Compartment Identifier OCID.
- Description string
- (Updatable) Maintenance Window description.
- Lifecycle
Details string - Lifecycle Details of the Maintenance Window.
- Name string
- Maintenance Window name.
- Resources
[]Maintenance
Window Resource Args - (Updatable) List of resource Ids which are part of the Maintenance Window
- Resources
Details []MaintenanceWindow Resources Detail Args - List of resource details that are part of the Maintenance Window.
- Schedule
Maintenance
Window Schedule Args - (Updatable) Schedule information of the Maintenance Window
- State string
- Lifecycle state of the monitored resource.
- Time
Created string - The time the the maintenance window was created. An RFC3339 formatted datetime string
- Time
Updated string - The time the the mainteance window was updated. An RFC3339 formatted datetime string
- compartment
Id String - Compartment Identifier OCID.
- description String
- (Updatable) Maintenance Window description.
- lifecycle
Details String - Lifecycle Details of the Maintenance Window.
- name String
- Maintenance Window name.
- resources
List<Maintenance
Window Resource> - (Updatable) List of resource Ids which are part of the Maintenance Window
- resources
Details List<MaintenanceWindow Resources Detail> - List of resource details that are part of the Maintenance Window.
- schedule
Maintenance
Window Schedule - (Updatable) Schedule information of the Maintenance Window
- state String
- Lifecycle state of the monitored resource.
- time
Created String - The time the the maintenance window was created. An RFC3339 formatted datetime string
- time
Updated String - The time the the mainteance window was updated. An RFC3339 formatted datetime string
- compartment
Id string - Compartment Identifier OCID.
- description string
- (Updatable) Maintenance Window description.
- lifecycle
Details string - Lifecycle Details of the Maintenance Window.
- name string
- Maintenance Window name.
- resources
Maintenance
Window Resource[] - (Updatable) List of resource Ids which are part of the Maintenance Window
- resources
Details MaintenanceWindow Resources Detail[] - List of resource details that are part of the Maintenance Window.
- schedule
Maintenance
Window Schedule - (Updatable) Schedule information of the Maintenance Window
- state string
- Lifecycle state of the monitored resource.
- time
Created string - The time the the maintenance window was created. An RFC3339 formatted datetime string
- time
Updated string - The time the the mainteance window was updated. An RFC3339 formatted datetime string
- compartment_
id str - Compartment Identifier OCID.
- description str
- (Updatable) Maintenance Window description.
- lifecycle_
details str - Lifecycle Details of the Maintenance Window.
- name str
- Maintenance Window name.
- resources
Sequence[stackmonitoring.
Maintenance Window Resource Args] - (Updatable) List of resource Ids which are part of the Maintenance Window
- resources_
details Sequence[stackmonitoring.Maintenance Window Resources Detail Args] - List of resource details that are part of the Maintenance Window.
- schedule
stackmonitoring.
Maintenance Window Schedule Args - (Updatable) Schedule information of the Maintenance Window
- state str
- Lifecycle state of the monitored resource.
- time_
created str - The time the the maintenance window was created. An RFC3339 formatted datetime string
- time_
updated str - The time the the mainteance window was updated. An RFC3339 formatted datetime string
- compartment
Id String - Compartment Identifier OCID.
- description String
- (Updatable) Maintenance Window description.
- lifecycle
Details String - Lifecycle Details of the Maintenance Window.
- name String
- Maintenance Window name.
- resources List<Property Map>
- (Updatable) List of resource Ids which are part of the Maintenance Window
- resources
Details List<Property Map> - List of resource details that are part of the Maintenance Window.
- schedule Property Map
- (Updatable) Schedule information of the Maintenance Window
- state String
- Lifecycle state of the monitored resource.
- time
Created String - The time the the maintenance window was created. An RFC3339 formatted datetime string
- time
Updated String - The time the the mainteance window was updated. An RFC3339 formatted datetime string
Supporting Types
MaintenanceWindowResource, MaintenanceWindowResourceArgs
- Resource
Id string - (Updatable) The OCID of monitored resource part of the Maintenance window.
- Are
Members boolIncluded - (Updatable) Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- Resource
Id string - (Updatable) The OCID of monitored resource part of the Maintenance window.
- Are
Members boolIncluded - (Updatable) Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- resource
Id String - (Updatable) The OCID of monitored resource part of the Maintenance window.
- are
Members BooleanIncluded - (Updatable) Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- resource
Id string - (Updatable) The OCID of monitored resource part of the Maintenance window.
- are
Members booleanIncluded - (Updatable) Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- resource_
id str - (Updatable) The OCID of monitored resource part of the Maintenance window.
- are_
members_ boolincluded - (Updatable) Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- resource
Id String - (Updatable) The OCID of monitored resource part of the Maintenance window.
- are
Members BooleanIncluded - (Updatable) Flag to indicate if the members of the resource has to be include in the Maintenance Window.
MaintenanceWindowResourcesDetail, MaintenanceWindowResourcesDetailArgs
- Name string
- Maintenance Window name.
- Number
Of intMembers - Number of members of the resource
- Resource
Id string - The OCID of monitored resource part of the Maintenance window.
- Type string
- Type of the monitored resource
- Name string
- Maintenance Window name.
- Number
Of intMembers - Number of members of the resource
- Resource
Id string - The OCID of monitored resource part of the Maintenance window.
- Type string
- Type of the monitored resource
- name String
- Maintenance Window name.
- number
Of IntegerMembers - Number of members of the resource
- resource
Id String - The OCID of monitored resource part of the Maintenance window.
- type String
- Type of the monitored resource
- name string
- Maintenance Window name.
- number
Of numberMembers - Number of members of the resource
- resource
Id string - The OCID of monitored resource part of the Maintenance window.
- type string
- Type of the monitored resource
- name str
- Maintenance Window name.
- number_
of_ intmembers - Number of members of the resource
- resource_
id str - The OCID of monitored resource part of the Maintenance window.
- type str
- Type of the monitored resource
- name String
- Maintenance Window name.
- number
Of NumberMembers - Number of members of the resource
- resource
Id String - The OCID of monitored resource part of the Maintenance window.
- type String
- Type of the monitored resource
MaintenanceWindowSchedule, MaintenanceWindowScheduleArgs
- Schedule
Type string - (Updatable) Property to identify the type of the Maintenance Window.
- Maintenance
Window stringDuration - (Updatable) Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- Maintenance
Window stringRecurrences - (Updatable) A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. BYDAY: Comma separated days for Weekly Maintenance Window. BYHOUR: Specifies the start hour of each recurrence after
timeMaintenanceWindowStart
value. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 Other Rules are not supported. - Time
Maintenance stringWindow End - (Updatable) Start time of Maintenance window. A RFC3339 formatted datetime string
- Time
Maintenance stringWindow Start (Updatable) Start time of Maintenance window. A RFC3339 formatted datetime string
** 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
- Schedule
Type string - (Updatable) Property to identify the type of the Maintenance Window.
- Maintenance
Window stringDuration - (Updatable) Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- Maintenance
Window stringRecurrences - (Updatable) A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. BYDAY: Comma separated days for Weekly Maintenance Window. BYHOUR: Specifies the start hour of each recurrence after
timeMaintenanceWindowStart
value. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 Other Rules are not supported. - Time
Maintenance stringWindow End - (Updatable) Start time of Maintenance window. A RFC3339 formatted datetime string
- Time
Maintenance stringWindow Start (Updatable) Start time of Maintenance window. A RFC3339 formatted datetime string
** 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
- schedule
Type String - (Updatable) Property to identify the type of the Maintenance Window.
- maintenance
Window StringDuration - (Updatable) Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- maintenance
Window StringRecurrences - (Updatable) A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. BYDAY: Comma separated days for Weekly Maintenance Window. BYHOUR: Specifies the start hour of each recurrence after
timeMaintenanceWindowStart
value. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 Other Rules are not supported. - time
Maintenance StringWindow End - (Updatable) Start time of Maintenance window. A RFC3339 formatted datetime string
- time
Maintenance StringWindow Start (Updatable) Start time of Maintenance window. A RFC3339 formatted datetime string
** 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
- schedule
Type string - (Updatable) Property to identify the type of the Maintenance Window.
- maintenance
Window stringDuration - (Updatable) Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- maintenance
Window stringRecurrences - (Updatable) A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. BYDAY: Comma separated days for Weekly Maintenance Window. BYHOUR: Specifies the start hour of each recurrence after
timeMaintenanceWindowStart
value. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 Other Rules are not supported. - time
Maintenance stringWindow End - (Updatable) Start time of Maintenance window. A RFC3339 formatted datetime string
- time
Maintenance stringWindow Start (Updatable) Start time of Maintenance window. A RFC3339 formatted datetime string
** 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
- schedule_
type str - (Updatable) Property to identify the type of the Maintenance Window.
- maintenance_
window_ strduration - (Updatable) Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- maintenance_
window_ strrecurrences - (Updatable) A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. BYDAY: Comma separated days for Weekly Maintenance Window. BYHOUR: Specifies the start hour of each recurrence after
timeMaintenanceWindowStart
value. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 Other Rules are not supported. - time_
maintenance_ strwindow_ end - (Updatable) Start time of Maintenance window. A RFC3339 formatted datetime string
- time_
maintenance_ strwindow_ start (Updatable) Start time of Maintenance window. A RFC3339 formatted datetime string
** 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
- schedule
Type String - (Updatable) Property to identify the type of the Maintenance Window.
- maintenance
Window StringDuration - (Updatable) Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- maintenance
Window StringRecurrences - (Updatable) A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. BYDAY: Comma separated days for Weekly Maintenance Window. BYHOUR: Specifies the start hour of each recurrence after
timeMaintenanceWindowStart
value. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 Other Rules are not supported. - time
Maintenance StringWindow End - (Updatable) Start time of Maintenance window. A RFC3339 formatted datetime string
- time
Maintenance StringWindow Start (Updatable) Start time of Maintenance window. A RFC3339 formatted datetime string
** 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
Import
MaintenanceWindows can be imported using the id
, e.g.
$ pulumi import oci:StackMonitoring/maintenanceWindow:MaintenanceWindow test_maintenance_window "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.