1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. MaintenanceWindow
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.FleetAppsManagement.MaintenanceWindow

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This resource provides the Maintenance Window resource in Oracle Cloud Infrastructure Fleet Apps Management service.

    Creates a new MaintenanceWindow.

    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 if schedule type is Custom
    DefinedTags 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
    FreeformTags 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?
    IsRecurring bool
    (Updatable) Is this is a recurring maintenance window
    MaintenanceWindowType string
    (Updatable) Type of maintenenace window
    Recurrences string
    (Updatable) Recurrence rule specification if recurring
    TaskInitiationCutoff int
    (Updatable) Task initiation cutoff
    TimeScheduleStart string

    (Updatable) Start time of schedule

    ** 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 if schedule type is Custom
    DefinedTags 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
    FreeformTags 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?
    IsRecurring bool
    (Updatable) Is this is a recurring maintenance window
    MaintenanceWindowType string
    (Updatable) Type of maintenenace window
    Recurrences string
    (Updatable) Recurrence rule specification if recurring
    TaskInitiationCutoff int
    (Updatable) Task initiation cutoff
    TimeScheduleStart string

    (Updatable) Start time of schedule

    ** 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 if schedule type is Custom
    definedTags 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
    freeformTags 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?
    isRecurring Boolean
    (Updatable) Is this is a recurring maintenance window
    maintenanceWindowType String
    (Updatable) Type of maintenenace window
    recurrences String
    (Updatable) Recurrence rule specification if recurring
    taskInitiationCutoff Integer
    (Updatable) Task initiation cutoff
    timeScheduleStart String

    (Updatable) Start time of schedule

    ** 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 if schedule type is Custom
    definedTags {[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
    freeformTags {[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?
    isRecurring boolean
    (Updatable) Is this is a recurring maintenance window
    maintenanceWindowType string
    (Updatable) Type of maintenenace window
    recurrences string
    (Updatable) Recurrence rule specification if recurring
    taskInitiationCutoff number
    (Updatable) Task initiation cutoff
    timeScheduleStart string

    (Updatable) Start time of schedule

    ** 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 if schedule type is Custom
    defined_tags 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
    freeform_tags 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?
    is_recurring bool
    (Updatable) Is this is a recurring maintenance window
    maintenance_window_type str
    (Updatable) Type of maintenenace window
    recurrences str
    (Updatable) Recurrence rule specification if recurring
    task_initiation_cutoff int
    (Updatable) Task initiation cutoff
    time_schedule_start str

    (Updatable) Start time of schedule

    ** 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 if schedule type is Custom
    definedTags 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
    freeformTags 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?
    isRecurring Boolean
    (Updatable) Is this is a recurring maintenance window
    maintenanceWindowType String
    (Updatable) Type of maintenenace window
    recurrences String
    (Updatable) Recurrence rule specification if recurring
    taskInitiationCutoff Number
    (Updatable) Task initiation cutoff
    timeScheduleStart String

    (Updatable) Start time of schedule

    ** 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.
    SystemTags 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.
    SystemTags 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.
    systemTags 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.
    systemTags {[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.
    system_tags 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.
    systemTags 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) -> 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.
    The following state arguments are supported:
    CompartmentId string
    Tenancy OCID
    DefinedTags 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 if schedule type is Custom
    FreeformTags 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?
    IsRecurring bool
    (Updatable) Is this is 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.
    MaintenanceWindowType string
    (Updatable) Type of maintenenace window
    Recurrences string
    (Updatable) Recurrence rule specification if recurring
    ResourceRegion string
    Associated region
    State string
    The current state of the MaintenanceWindow.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TaskInitiationCutoff int
    (Updatable) Task initiation cutoff
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    TimeScheduleStart string

    (Updatable) Start time of schedule

    ** 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
    DefinedTags 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 if schedule type is Custom
    FreeformTags 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?
    IsRecurring bool
    (Updatable) Is this is 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.
    MaintenanceWindowType string
    (Updatable) Type of maintenenace window
    Recurrences string
    (Updatable) Recurrence rule specification if recurring
    ResourceRegion string
    Associated region
    State string
    The current state of the MaintenanceWindow.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TaskInitiationCutoff int
    (Updatable) Task initiation cutoff
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    TimeScheduleStart string

    (Updatable) Start time of schedule

    ** 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
    definedTags 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 if schedule type is Custom
    freeformTags 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?
    isRecurring Boolean
    (Updatable) Is this is 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.
    maintenanceWindowType String
    (Updatable) Type of maintenenace window
    recurrences String
    (Updatable) Recurrence rule specification if recurring
    resourceRegion String
    Associated region
    state String
    The current state of the MaintenanceWindow.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    taskInitiationCutoff Integer
    (Updatable) Task initiation cutoff
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.
    timeScheduleStart String

    (Updatable) Start time of schedule

    ** 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
    definedTags {[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 if schedule type is Custom
    freeformTags {[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?
    isRecurring boolean
    (Updatable) Is this is 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.
    maintenanceWindowType string
    (Updatable) Type of maintenenace window
    recurrences string
    (Updatable) Recurrence rule specification if recurring
    resourceRegion string
    Associated region
    state string
    The current state of the MaintenanceWindow.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    taskInitiationCutoff number
    (Updatable) Task initiation cutoff
    timeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    timeScheduleStart string

    (Updatable) Start time of schedule

    ** 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
    defined_tags 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 if schedule type is Custom
    freeform_tags 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?
    is_recurring bool
    (Updatable) Is this is 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_type str
    (Updatable) Type of maintenenace window
    recurrences str
    (Updatable) Recurrence rule specification if recurring
    resource_region str
    Associated region
    state str
    The current state of the MaintenanceWindow.
    system_tags 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_cutoff int
    (Updatable) Task initiation cutoff
    time_created str
    The time this resource was created. An RFC3339 formatted datetime string.
    time_schedule_start str

    (Updatable) Start time of schedule

    ** 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
    definedTags 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 if schedule type is Custom
    freeformTags 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?
    isRecurring Boolean
    (Updatable) Is this is 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.
    maintenanceWindowType String
    (Updatable) Type of maintenenace window
    recurrences String
    (Updatable) Recurrence rule specification if recurring
    resourceRegion String
    Associated region
    state String
    The current state of the MaintenanceWindow.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    taskInitiationCutoff Number
    (Updatable) Task initiation cutoff
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.
    timeScheduleStart String

    (Updatable) Start time of schedule

    ** 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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi