import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Maintenance Window resource in Oracle Cloud Infrastructure Stack Monitoring service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/stack-monitoring/latest/MaintenanceWindow * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/stack_monitoring * * 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 * * ```typescript * 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 === "true", * }], * schedule: { * scheduleType: maintenanceWindowScheduleScheduleType, * maintenanceWindowDuration: maintenanceWindowScheduleMaintenanceWindowDuration, * maintenanceWindowRecurrences: maintenanceWindowScheduleMaintenanceWindowRecurrences, * timeMaintenanceWindowEnd: maintenanceWindowScheduleTimeMaintenanceWindowEnd, * timeMaintenanceWindowStart: maintenanceWindowScheduleTimeMaintenanceWindowStart, * }, * definedTags: { * "foo-namespace.bar-key": "value", * }, * description: maintenanceWindowDescription, * freeformTags: { * "bar-key": "value", * }, * }); * ``` * * ## Import * * MaintenanceWindows can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:StackMonitoring/maintenanceWindow:MaintenanceWindow test_maintenance_window "id" * ``` */ export declare class MaintenanceWindow extends pulumi.CustomResource { /** * Get an existing MaintenanceWindow resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: MaintenanceWindowState, opts?: pulumi.CustomResourceOptions): MaintenanceWindow; /** * Returns true if the given object is an instance of MaintenanceWindow. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is MaintenanceWindow; /** * Compartment Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) Maintenance Window description. */ readonly description: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * Lifecycle Details of the Maintenance Window. */ readonly lifecycleDetails: pulumi.Output; /** * Maintenance Window name. */ readonly name: pulumi.Output; /** * (Updatable) List of resource Ids which are part of the Maintenance Window */ readonly resources: pulumi.Output; /** * List of resource details that are part of the Maintenance Window. */ readonly resourcesDetails: pulumi.Output; /** * (Updatable) Schedule information of the Maintenance Window */ readonly schedule: pulumi.Output; /** * Lifecycle state of the monitored resource. */ readonly state: pulumi.Output; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The time the the maintenance window was created. An RFC3339 formatted datetime string */ readonly timeCreated: pulumi.Output; /** * The time the the mainteance window was updated. An RFC3339 formatted datetime string */ readonly timeUpdated: pulumi.Output; /** * Create a MaintenanceWindow resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: MaintenanceWindowArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MaintenanceWindow resources. */ export interface MaintenanceWindowState { /** * Compartment Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Maintenance Window description. */ description?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Lifecycle Details of the Maintenance Window. */ lifecycleDetails?: pulumi.Input; /** * Maintenance Window name. */ name?: pulumi.Input; /** * (Updatable) List of resource Ids which are part of the Maintenance Window */ resources?: pulumi.Input[] | undefined>; /** * List of resource details that are part of the Maintenance Window. */ resourcesDetails?: pulumi.Input[] | undefined>; /** * (Updatable) Schedule information of the Maintenance Window */ schedule?: pulumi.Input; /** * Lifecycle state of the monitored resource. */ state?: pulumi.Input; /** * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The time the the maintenance window was created. An RFC3339 formatted datetime string */ timeCreated?: pulumi.Input; /** * The time the the mainteance window was updated. An RFC3339 formatted datetime string */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a MaintenanceWindow resource. */ export interface MaintenanceWindowArgs { /** * Compartment Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Maintenance Window description. */ description?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Maintenance Window name. */ name?: pulumi.Input; /** * (Updatable) List of resource Ids which are part of the Maintenance Window */ resources: pulumi.Input[]>; /** * (Updatable) Schedule information of the Maintenance Window */ schedule: pulumi.Input; } //# sourceMappingURL=maintenanceWindow.d.ts.map