import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Instance Maintenance Event resource in Oracle Cloud Infrastructure Core service. * * Updates the maintenance event for the given instance. * * ## Import * * InstanceMaintenanceEvents can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Core/instanceMaintenanceEvent:InstanceMaintenanceEvent test_instance_maintenance_event "id" * ``` */ export declare class InstanceMaintenanceEvent extends pulumi.CustomResource { /** * Get an existing InstanceMaintenanceEvent 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?: InstanceMaintenanceEventState, opts?: pulumi.CustomResourceOptions): InstanceMaintenanceEvent; /** * Returns true if the given object is an instance of InstanceMaintenanceEvent. 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 InstanceMaintenanceEvent; /** * Additional details of the maintenance in the form of json. */ readonly additionalDetails: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent. */ readonly alternativeResolutionAction: pulumi.Output; /** * These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance. */ readonly alternativeResolutionActions: pulumi.Output; /** * (Updatable) This field is only applicable when setting the alternativeResolutionAction. * * For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. * * In cases where the local storage will be lost, this parameter must be set or the request will fail. */ readonly canDeleteLocalStorage: pulumi.Output; /** * Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate. */ readonly canReschedule: pulumi.Output; /** * The OCID of the compartment that contains the instance. */ readonly compartmentId: pulumi.Output; /** * A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken. */ readonly correlationToken: pulumi.Output; /** * The creator of the maintenance event. */ readonly createdBy: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * It is the descriptive information about the maintenance taking place on the customer instance. */ readonly description: pulumi.Output; /** * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ readonly displayName: pulumi.Output; /** * This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state. */ readonly estimatedDuration: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins. */ readonly instanceAction: pulumi.Output; /** * The OCID of the instance. */ readonly instanceId: pulumi.Output; /** * The OCID of the instance maintenance event. */ readonly instanceMaintenanceEventId: pulumi.Output; /** * This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the [Instance Maintenance](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/placeholder.htm) documentation for details. */ readonly maintenanceCategory: pulumi.Output; /** * This is the reason that Maintenance is being performed. See [Instance Maintenance](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/placeholder.htm) documentation for details. */ readonly maintenanceReason: pulumi.Output; /** * The duration of the time window Maintenance is scheduled to begin within. */ readonly startWindowDuration: pulumi.Output; /** * The current state of the maintenance event. */ readonly state: pulumi.Output; /** * The date and time the maintenance event was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * The time at which the Maintenance actually finished. */ readonly timeFinished: pulumi.Output; /** * It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended. */ readonly timeHardDueDate: pulumi.Output; /** * The time at which the Maintenance actually started. */ readonly timeStarted: pulumi.Output; /** * (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. * * The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. * * ** 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 */ readonly timeWindowStart: pulumi.Output; /** * Create a InstanceMaintenanceEvent 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: InstanceMaintenanceEventArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering InstanceMaintenanceEvent resources. */ export interface InstanceMaintenanceEventState { /** * Additional details of the maintenance in the form of json. */ additionalDetails?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent. */ alternativeResolutionAction?: pulumi.Input; /** * These are alternative actions to the requested instanceAction that can be taken to resolve the Maintenance. */ alternativeResolutionActions?: pulumi.Input[] | undefined>; /** * (Updatable) This field is only applicable when setting the alternativeResolutionAction. * * For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. * * In cases where the local storage will be lost, this parameter must be set or the request will fail. */ canDeleteLocalStorage?: pulumi.Input; /** * Indicates if this MaintenanceEvent is capable of being rescheduled up to the timeHardDueDate. */ canReschedule?: pulumi.Input; /** * The OCID of the compartment that contains the instance. */ compartmentId?: pulumi.Input; /** * A unique identifier that will group Instances that have a relationship with one another and must be scheduled together for the Maintenance to proceed. Any Instances that have a relationship with one another from a Maintenance perspective will have a matching correlationToken. */ correlationToken?: pulumi.Input; /** * The creator of the maintenance event. */ createdBy?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * It is the descriptive information about the maintenance taking place on the customer instance. */ description?: pulumi.Input; /** * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * This is the estimated duration of the Maintenance, once the Maintenance has entered the STARTED state. */ estimatedDuration?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins. */ instanceAction?: pulumi.Input; /** * The OCID of the instance. */ instanceId?: pulumi.Input; /** * The OCID of the instance maintenance event. */ instanceMaintenanceEventId?: pulumi.Input; /** * This indicates the priority and allowed actions for this Maintenance. Higher priority forms of Maintenance have tighter restrictions and may not be rescheduled, while lower priority/severity Maintenance can be rescheduled, deferred, or even cancelled. Please see the [Instance Maintenance](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/placeholder.htm) documentation for details. */ maintenanceCategory?: pulumi.Input; /** * This is the reason that Maintenance is being performed. See [Instance Maintenance](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/placeholder.htm) documentation for details. */ maintenanceReason?: pulumi.Input; /** * The duration of the time window Maintenance is scheduled to begin within. */ startWindowDuration?: pulumi.Input; /** * The current state of the maintenance event. */ state?: pulumi.Input; /** * The date and time the maintenance event was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; /** * The time at which the Maintenance actually finished. */ timeFinished?: pulumi.Input; /** * It is the scheduled hard due date and time of the maintenance event. The maintenance event will happen at this time and the due date will not be extended. */ timeHardDueDate?: pulumi.Input; /** * The time at which the Maintenance actually started. */ timeStarted?: pulumi.Input; /** * (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. * * The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. * * ** 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 */ timeWindowStart?: pulumi.Input; } /** * The set of arguments for constructing a InstanceMaintenanceEvent resource. */ export interface InstanceMaintenanceEventArgs { /** * (Updatable) One of the alternativeResolutionActions that was provided in the InstanceMaintenanceEvent. */ alternativeResolutionAction?: pulumi.Input; /** * (Updatable) This field is only applicable when setting the alternativeResolutionAction. * * For Instances that have local storage, this must be set to true to verify that the local storage will be deleted during the migration. For instances without, this parameter has no effect. * * In cases where the local storage will be lost, this parameter must be set or the request will fail. */ canDeleteLocalStorage?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The OCID of the instance maintenance event. */ instanceMaintenanceEventId: pulumi.Input; /** * (Updatable) The beginning of the time window when Maintenance is scheduled to begin. The Maintenance will not begin before this time. * * The timeWindowEnd is automatically calculated based on the maintenanceReason and the instanceAction. * * ** 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 */ timeWindowStart?: pulumi.Input; } //# sourceMappingURL=instanceMaintenanceEvent.d.ts.map