oci.FleetAppsManagement.MaintenanceWindow
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMaintenanceWindow = new oci.fleetappsmanagement.MaintenanceWindow("test_maintenance_window", {
    compartmentId: compartmentId,
    duration: maintenanceWindowDuration,
    definedTags: {
        "foo-namespace.bar-key": "value",
    },
    description: maintenanceWindowDescription,
    displayName: maintenanceWindowDisplayName,
    freeformTags: {
        "bar-key": "value",
    },
    isOutage: maintenanceWindowIsOutage,
    isRecurring: maintenanceWindowIsRecurring,
    maintenanceWindowType: maintenanceWindowMaintenanceWindowType,
    recurrences: maintenanceWindowRecurrences,
    taskInitiationCutoff: maintenanceWindowTaskInitiationCutoff,
    timeScheduleStart: maintenanceWindowTimeScheduleStart,
});
import pulumi
import pulumi_oci as oci
test_maintenance_window = oci.fleet_apps_management.MaintenanceWindow("test_maintenance_window",
    compartment_id=compartment_id,
    duration=maintenance_window_duration,
    defined_tags={
        "foo-namespace.bar-key": "value",
    },
    description=maintenance_window_description,
    display_name=maintenance_window_display_name,
    freeform_tags={
        "bar-key": "value",
    },
    is_outage=maintenance_window_is_outage,
    is_recurring=maintenance_window_is_recurring,
    maintenance_window_type=maintenance_window_maintenance_window_type,
    recurrences=maintenance_window_recurrences,
    task_initiation_cutoff=maintenance_window_task_initiation_cutoff,
    time_schedule_start=maintenance_window_time_schedule_start)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/fleetappsmanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fleetappsmanagement.NewMaintenanceWindow(ctx, "test_maintenance_window", &fleetappsmanagement.MaintenanceWindowArgs{
			CompartmentId: pulumi.Any(compartmentId),
			Duration:      pulumi.Any(maintenanceWindowDuration),
			DefinedTags: pulumi.StringMap{
				"foo-namespace.bar-key": pulumi.String("value"),
			},
			Description: pulumi.Any(maintenanceWindowDescription),
			DisplayName: pulumi.Any(maintenanceWindowDisplayName),
			FreeformTags: pulumi.StringMap{
				"bar-key": pulumi.String("value"),
			},
			IsOutage:              pulumi.Any(maintenanceWindowIsOutage),
			IsRecurring:           pulumi.Any(maintenanceWindowIsRecurring),
			MaintenanceWindowType: pulumi.Any(maintenanceWindowMaintenanceWindowType),
			Recurrences:           pulumi.Any(maintenanceWindowRecurrences),
			TaskInitiationCutoff:  pulumi.Any(maintenanceWindowTaskInitiationCutoff),
			TimeScheduleStart:     pulumi.Any(maintenanceWindowTimeScheduleStart),
		})
		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.FleetAppsManagement.MaintenanceWindow("test_maintenance_window", new()
    {
        CompartmentId = compartmentId,
        Duration = maintenanceWindowDuration,
        DefinedTags = 
        {
            { "foo-namespace.bar-key", "value" },
        },
        Description = maintenanceWindowDescription,
        DisplayName = maintenanceWindowDisplayName,
        FreeformTags = 
        {
            { "bar-key", "value" },
        },
        IsOutage = maintenanceWindowIsOutage,
        IsRecurring = maintenanceWindowIsRecurring,
        MaintenanceWindowType = maintenanceWindowMaintenanceWindowType,
        Recurrences = maintenanceWindowRecurrences,
        TaskInitiationCutoff = maintenanceWindowTaskInitiationCutoff,
        TimeScheduleStart = maintenanceWindowTimeScheduleStart,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FleetAppsManagement.MaintenanceWindow;
import com.pulumi.oci.FleetAppsManagement.MaintenanceWindowArgs;
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)
            .duration(maintenanceWindowDuration)
            .definedTags(Map.of("foo-namespace.bar-key", "value"))
            .description(maintenanceWindowDescription)
            .displayName(maintenanceWindowDisplayName)
            .freeformTags(Map.of("bar-key", "value"))
            .isOutage(maintenanceWindowIsOutage)
            .isRecurring(maintenanceWindowIsRecurring)
            .maintenanceWindowType(maintenanceWindowMaintenanceWindowType)
            .recurrences(maintenanceWindowRecurrences)
            .taskInitiationCutoff(maintenanceWindowTaskInitiationCutoff)
            .timeScheduleStart(maintenanceWindowTimeScheduleStart)
            .build());
    }
}
resources:
  testMaintenanceWindow:
    type: oci:FleetAppsManagement:MaintenanceWindow
    name: test_maintenance_window
    properties:
      compartmentId: ${compartmentId}
      duration: ${maintenanceWindowDuration}
      definedTags:
        foo-namespace.bar-key: value
      description: ${maintenanceWindowDescription}
      displayName: ${maintenanceWindowDisplayName}
      freeformTags:
        bar-key: value
      isOutage: ${maintenanceWindowIsOutage}
      isRecurring: ${maintenanceWindowIsRecurring}
      maintenanceWindowType: ${maintenanceWindowMaintenanceWindowType}
      recurrences: ${maintenanceWindowRecurrences}
      taskInitiationCutoff: ${maintenanceWindowTaskInitiationCutoff}
      timeScheduleStart: ${maintenanceWindowTimeScheduleStart}
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,
                      duration: Optional[str] = None,
                      defined_tags: Optional[Mapping[str, str]] = None,
                      description: Optional[str] = None,
                      display_name: Optional[str] = None,
                      freeform_tags: Optional[Mapping[str, str]] = None,
                      is_outage: Optional[bool] = None,
                      is_recurring: Optional[bool] = None,
                      maintenance_window_type: Optional[str] = None,
                      recurrences: Optional[str] = None,
                      task_initiation_cutoff: Optional[int] = None,
                      time_schedule_start: 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:FleetAppsManagement: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 Oci.FleetAppsManagement.MaintenanceWindow("maintenanceWindowResource", new()
{
    CompartmentId = "string",
    Duration = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    Description = "string",
    DisplayName = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    IsOutage = false,
    IsRecurring = false,
    MaintenanceWindowType = "string",
    Recurrences = "string",
    TaskInitiationCutoff = 0,
    TimeScheduleStart = "string",
});
example, err := FleetAppsManagement.NewMaintenanceWindow(ctx, "maintenanceWindowResource", &FleetAppsManagement.MaintenanceWindowArgs{
	CompartmentId: pulumi.String("string"),
	Duration:      pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	DisplayName: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	IsOutage:              pulumi.Bool(false),
	IsRecurring:           pulumi.Bool(false),
	MaintenanceWindowType: pulumi.String("string"),
	Recurrences:           pulumi.String("string"),
	TaskInitiationCutoff:  pulumi.Int(0),
	TimeScheduleStart:     pulumi.String("string"),
})
var maintenanceWindowResource = new MaintenanceWindow("maintenanceWindowResource", MaintenanceWindowArgs.builder()
    .compartmentId("string")
    .duration("string")
    .definedTags(Map.of("string", "string"))
    .description("string")
    .displayName("string")
    .freeformTags(Map.of("string", "string"))
    .isOutage(false)
    .isRecurring(false)
    .maintenanceWindowType("string")
    .recurrences("string")
    .taskInitiationCutoff(0)
    .timeScheduleStart("string")
    .build());
maintenance_window_resource = oci.fleet_apps_management.MaintenanceWindow("maintenanceWindowResource",
    compartment_id="string",
    duration="string",
    defined_tags={
        "string": "string",
    },
    description="string",
    display_name="string",
    freeform_tags={
        "string": "string",
    },
    is_outage=False,
    is_recurring=False,
    maintenance_window_type="string",
    recurrences="string",
    task_initiation_cutoff=0,
    time_schedule_start="string")
const maintenanceWindowResource = new oci.fleetappsmanagement.MaintenanceWindow("maintenanceWindowResource", {
    compartmentId: "string",
    duration: "string",
    definedTags: {
        string: "string",
    },
    description: "string",
    displayName: "string",
    freeformTags: {
        string: "string",
    },
    isOutage: false,
    isRecurring: false,
    maintenanceWindowType: "string",
    recurrences: "string",
    taskInitiationCutoff: 0,
    timeScheduleStart: "string",
});
type: oci:FleetAppsManagement:MaintenanceWindow
properties:
    compartmentId: string
    definedTags:
        string: string
    description: string
    displayName: string
    duration: string
    freeformTags:
        string: string
    isOutage: false
    isRecurring: false
    maintenanceWindowType: string
    recurrences: string
    taskInitiationCutoff: 0
    timeScheduleStart: 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:
- CompartmentId string
- Tenancy OCID
- Duration string
- (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- DisplayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- IsOutage bool
- (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.
- IsRecurring bool
- (Updatable) Is this a recurring maintenance window?
- MaintenanceWindow stringType 
- (Updatable) Type of maintenenace window
- Recurrences string
- (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
- TaskInitiation intCutoff 
- (Updatable) Task initiation cutoff time for the maintenance window.
- TimeSchedule stringStart 
- (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 
- CompartmentId string
- Tenancy OCID
- Duration string
- (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- DisplayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- IsOutage bool
- (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.
- IsRecurring bool
- (Updatable) Is this a recurring maintenance window?
- MaintenanceWindow stringType 
- (Updatable) Type of maintenenace window
- Recurrences string
- (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
- TaskInitiation intCutoff 
- (Updatable) Task initiation cutoff time for the maintenance window.
- TimeSchedule stringStart 
- (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 
- compartmentId String
- Tenancy OCID
- duration String
- (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- displayName String
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- isOutage Boolean
- (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.
- isRecurring Boolean
- (Updatable) Is this a recurring maintenance window?
- maintenanceWindow StringType 
- (Updatable) Type of maintenenace window
- recurrences String
- (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
- taskInitiation IntegerCutoff 
- (Updatable) Task initiation cutoff time for the maintenance window.
- timeSchedule StringStart 
- (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 
- compartmentId string
- Tenancy OCID
- duration string
- (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description string
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- displayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- isOutage boolean
- (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.
- isRecurring boolean
- (Updatable) Is this a recurring maintenance window?
- maintenanceWindow stringType 
- (Updatable) Type of maintenenace window
- recurrences string
- (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
- taskInitiation numberCutoff 
- (Updatable) Task initiation cutoff time for the maintenance window.
- timeSchedule stringStart 
- (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 
- compartment_id str
- Tenancy OCID
- duration str
- (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description str
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- display_name str
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- Mapping[str, str]
- (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 bool
- (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 bool
- (Updatable) Is this a recurring maintenance window?
- maintenance_window_ strtype 
- (Updatable) Type of maintenenace window
- recurrences str
- (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
- task_initiation_ intcutoff 
- (Updatable) Task initiation cutoff time for the maintenance window.
- time_schedule_ strstart 
- (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 
- compartmentId String
- Tenancy OCID
- duration String
- (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- displayName String
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- isOutage Boolean
- (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.
- isRecurring Boolean
- (Updatable) Is this a recurring maintenance window?
- maintenanceWindow StringType 
- (Updatable) Type of maintenenace window
- recurrences String
- (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
- taskInitiation NumberCutoff 
- (Updatable) Task initiation cutoff time for the maintenance window.
- timeSchedule StringStart 
- (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 
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.
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- ResourceRegion string
- Associated region
- State string
- The current state of the MaintenanceWindow.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- ResourceRegion string
- Associated region
- State string
- The current state of the MaintenanceWindow.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resourceRegion String
- Associated region
- state String
- The current state of the MaintenanceWindow.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time this resource was last updated. An RFC3339 formatted datetime string.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resourceRegion string
- Associated region
- state string
- The current state of the MaintenanceWindow.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_details str
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resource_region str
- Associated region
- state str
- The current state of the MaintenanceWindow.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The time this resource was created. An RFC3339 formatted datetime string.
- time_updated str
- The time this resource was last updated. An RFC3339 formatted datetime string.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- resourceRegion String
- Associated region
- state String
- The current state of the MaintenanceWindow.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time this resource was last 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,
        defined_tags: Optional[Mapping[str, str]] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        duration: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        is_outage: Optional[bool] = None,
        is_recurring: Optional[bool] = None,
        lifecycle_details: Optional[str] = None,
        maintenance_window_type: Optional[str] = None,
        recurrences: Optional[str] = None,
        resource_region: Optional[str] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        task_initiation_cutoff: Optional[int] = None,
        time_created: Optional[str] = None,
        time_schedule_start: Optional[str] = None,
        time_updated: 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: oci:FleetAppsManagement: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.
- CompartmentId string
- Tenancy OCID
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- DisplayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- Duration string
- (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- IsOutage bool
- (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.
- IsRecurring bool
- (Updatable) Is this a recurring maintenance window?
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- MaintenanceWindow stringType 
- (Updatable) Type of maintenenace window
- Recurrences string
- (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
- ResourceRegion string
- Associated region
- State string
- The current state of the MaintenanceWindow.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TaskInitiation intCutoff 
- (Updatable) Task initiation cutoff time for the maintenance window.
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeSchedule stringStart 
- (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 
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- CompartmentId string
- Tenancy OCID
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- DisplayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- Duration string
- (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- IsOutage bool
- (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.
- IsRecurring bool
- (Updatable) Is this a recurring maintenance window?
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- MaintenanceWindow stringType 
- (Updatable) Type of maintenenace window
- Recurrences string
- (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
- ResourceRegion string
- Associated region
- State string
- The current state of the MaintenanceWindow.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TaskInitiation intCutoff 
- (Updatable) Task initiation cutoff time for the maintenance window.
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeSchedule stringStart 
- (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 
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- compartmentId String
- Tenancy OCID
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- displayName String
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- duration String
- (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- isOutage Boolean
- (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.
- isRecurring Boolean
- (Updatable) Is this a recurring maintenance window?
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- maintenanceWindow StringType 
- (Updatable) Type of maintenenace window
- recurrences String
- (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
- resourceRegion String
- Associated region
- state String
- The current state of the MaintenanceWindow.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- taskInitiation IntegerCutoff 
- (Updatable) Task initiation cutoff time for the maintenance window.
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeSchedule StringStart 
- (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 
- timeUpdated String
- The time this resource was last updated. An RFC3339 formatted datetime string.
- compartmentId string
- Tenancy OCID
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description string
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- displayName string
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- duration string
- (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- isOutage boolean
- (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.
- isRecurring boolean
- (Updatable) Is this a recurring maintenance window?
- lifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- maintenanceWindow stringType 
- (Updatable) Type of maintenenace window
- recurrences string
- (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
- resourceRegion string
- Associated region
- state string
- The current state of the MaintenanceWindow.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- taskInitiation numberCutoff 
- (Updatable) Task initiation cutoff time for the maintenance window.
- timeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- timeSchedule stringStart 
- (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 
- timeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- compartment_id str
- Tenancy OCID
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description str
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- display_name str
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- duration str
- (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.
- Mapping[str, str]
- (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 bool
- (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 bool
- (Updatable) Is this a recurring maintenance window?
- lifecycle_details str
- 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_ strtype 
- (Updatable) Type of maintenenace window
- recurrences str
- (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
- resource_region str
- Associated region
- state str
- The current state of the MaintenanceWindow.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- task_initiation_ intcutoff 
- (Updatable) Task initiation cutoff time for the maintenance window.
- time_created str
- The time this resource was created. An RFC3339 formatted datetime string.
- time_schedule_ strstart 
- (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 
- time_updated str
- The time this resource was last updated. An RFC3339 formatted datetime string.
- compartmentId String
- Tenancy OCID
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
- displayName String
- (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
- duration String
- (Updatable) Duration of the maintenance window. Specify how long the maintenance window remains open.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- isOutage Boolean
- (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.
- isRecurring Boolean
- (Updatable) Is this a recurring maintenance window?
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- maintenanceWindow StringType 
- (Updatable) Type of maintenenace window
- recurrences String
- (Updatable) Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
- resourceRegion String
- Associated region
- state String
- The current state of the MaintenanceWindow.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- taskInitiation NumberCutoff 
- (Updatable) Task initiation cutoff time for the maintenance window.
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeSchedule StringStart 
- (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 
- timeUpdated String
- The time this resource was last updated. An RFC3339 formatted datetime string.
Import
MaintenanceWindows can be imported using the id, e.g.
$ pulumi import oci:FleetAppsManagement/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 ociTerraform Provider.