import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Instance Maintenance Events in Oracle Cloud Infrastructure Core service. * * Gets a list of all the maintenance events for the given instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testInstanceMaintenanceEvents = oci.core.getInstanceMaintenanceEvents({ * compartmentId: compartmentId, * correlationToken: instanceMaintenanceEventCorrelationToken, * instanceAction: instanceMaintenanceEventInstanceAction, * instanceId: testInstance.id, * state: instanceMaintenanceEventState, * timeWindowStartGreaterThanOrEqualTo: instanceMaintenanceEventTimeWindowStartGreaterThanOrEqualTo, * timeWindowStartLessThanOrEqualTo: instanceMaintenanceEventTimeWindowStartLessThanOrEqualTo, * }); * ``` */ export declare function getInstanceMaintenanceEvents(args: GetInstanceMaintenanceEventsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getInstanceMaintenanceEvents. */ export interface GetInstanceMaintenanceEventsArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: string; /** * A filter to only return resources that have a matching correlationToken. */ correlationToken?: string; filters?: inputs.Core.GetInstanceMaintenanceEventsFilter[]; /** * A filter to only return resources that match the given instance action. */ instanceAction?: string; /** * The OCID of the instance. */ instanceId?: string; /** * A filter to only return resources that match the given lifecycle state. */ state?: string; /** * Starting range to return the maintenances which are not completed (date-time is in [RFC3339](https://tools.ietf.org/html/rfc3339) format). */ timeWindowStartGreaterThanOrEqualTo?: string; /** * Ending range to return the maintenances which are not completed (date-time is in [RFC3339](https://tools.ietf.org/html/rfc3339) format). */ timeWindowStartLessThanOrEqualTo?: string; } /** * A collection of values returned by getInstanceMaintenanceEvents. */ export interface GetInstanceMaintenanceEventsResult { /** * The OCID of the compartment that contains the instance. */ readonly compartmentId: string; /** * 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?: string; readonly filters?: outputs.Core.GetInstanceMaintenanceEventsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * This is the action that will be performed on the Instance by Oracle Cloud Infrastructure when the Maintenance begins. */ readonly instanceAction?: string; /** * The OCID of the instance. */ readonly instanceId?: string; /** * The list of instance_maintenance_events. */ readonly instanceMaintenanceEvents: outputs.Core.GetInstanceMaintenanceEventsInstanceMaintenanceEvent[]; /** * The current state of the maintenance event. */ readonly state?: string; readonly timeWindowStartGreaterThanOrEqualTo?: string; readonly timeWindowStartLessThanOrEqualTo?: string; } /** * This data source provides the list of Instance Maintenance Events in Oracle Cloud Infrastructure Core service. * * Gets a list of all the maintenance events for the given instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testInstanceMaintenanceEvents = oci.core.getInstanceMaintenanceEvents({ * compartmentId: compartmentId, * correlationToken: instanceMaintenanceEventCorrelationToken, * instanceAction: instanceMaintenanceEventInstanceAction, * instanceId: testInstance.id, * state: instanceMaintenanceEventState, * timeWindowStartGreaterThanOrEqualTo: instanceMaintenanceEventTimeWindowStartGreaterThanOrEqualTo, * timeWindowStartLessThanOrEqualTo: instanceMaintenanceEventTimeWindowStartLessThanOrEqualTo, * }); * ``` */ export declare function getInstanceMaintenanceEventsOutput(args: GetInstanceMaintenanceEventsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getInstanceMaintenanceEvents. */ export interface GetInstanceMaintenanceEventsOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: pulumi.Input; /** * A filter to only return resources that have a matching correlationToken. */ correlationToken?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to only return resources that match the given instance action. */ instanceAction?: pulumi.Input; /** * The OCID of the instance. */ instanceId?: pulumi.Input; /** * A filter to only return resources that match the given lifecycle state. */ state?: pulumi.Input; /** * Starting range to return the maintenances which are not completed (date-time is in [RFC3339](https://tools.ietf.org/html/rfc3339) format). */ timeWindowStartGreaterThanOrEqualTo?: pulumi.Input; /** * Ending range to return the maintenances which are not completed (date-time is in [RFC3339](https://tools.ietf.org/html/rfc3339) format). */ timeWindowStartLessThanOrEqualTo?: pulumi.Input; } //# sourceMappingURL=getInstanceMaintenanceEvents.d.ts.map